aws_sdk_rds/operation/create_db_instance_read_replica/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_db_instance_read_replica::_create_db_instance_read_replica_output::CreateDbInstanceReadReplicaOutputBuilder;
3
4pub use crate::operation::create_db_instance_read_replica::_create_db_instance_read_replica_input::CreateDbInstanceReadReplicaInputBuilder;
5
6impl crate::operation::create_db_instance_read_replica::builders::CreateDbInstanceReadReplicaInputBuilder {
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_instance_read_replica::CreateDbInstanceReadReplicaOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_db_instance_read_replica::CreateDBInstanceReadReplicaError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_db_instance_read_replica();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateDBInstanceReadReplica`.
24///
25/// <p>Creates a new DB instance that acts as a read replica for an existing source DB instance or Multi-AZ DB cluster. You can create a read replica for a DB instance running Db2, MariaDB, MySQL, Oracle, PostgreSQL, or SQL Server. You can create a read replica for a Multi-AZ DB cluster running MySQL or PostgreSQL. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html">Working with read replicas</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html#multi-az-db-clusters-migrating-to-instance-with-read-replica">Migrating from a Multi-AZ DB cluster to a DB instance using a read replica</a> in the <i>Amazon RDS User Guide</i>.</p>
26/// <p>Amazon Aurora doesn't support this operation. To create a DB instance for an Aurora DB cluster, use the <code>CreateDBInstance</code> operation.</p>
27/// <p>RDS creates read replicas with backups disabled. All other attributes (including DB security groups and DB parameter groups) are inherited from the source DB instance or cluster, except as specified.</p><important>
28/// <p>Your source DB instance or cluster must have backup retention enabled.</p>
29/// </important>
30#[derive(::std::clone::Clone, ::std::fmt::Debug)]
31pub struct CreateDBInstanceReadReplicaFluentBuilder {
32    handle: ::std::sync::Arc<crate::client::Handle>,
33    inner: crate::operation::create_db_instance_read_replica::builders::CreateDbInstanceReadReplicaInputBuilder,
34    config_override: ::std::option::Option<crate::config::Builder>,
35}
36impl
37    crate::client::customize::internal::CustomizableSend<
38        crate::operation::create_db_instance_read_replica::CreateDbInstanceReadReplicaOutput,
39        crate::operation::create_db_instance_read_replica::CreateDBInstanceReadReplicaError,
40    > for CreateDBInstanceReadReplicaFluentBuilder
41{
42    fn send(
43        self,
44        config_override: crate::config::Builder,
45    ) -> crate::client::customize::internal::BoxFuture<
46        crate::client::customize::internal::SendResult<
47            crate::operation::create_db_instance_read_replica::CreateDbInstanceReadReplicaOutput,
48            crate::operation::create_db_instance_read_replica::CreateDBInstanceReadReplicaError,
49        >,
50    > {
51        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
52    }
53}
54impl CreateDBInstanceReadReplicaFluentBuilder {
55    /// Creates a new `CreateDBInstanceReadReplicaFluentBuilder`.
56    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
57        Self {
58            handle,
59            inner: ::std::default::Default::default(),
60            config_override: ::std::option::Option::None,
61        }
62    }
63    /// Access the CreateDBInstanceReadReplica as a reference.
64    pub fn as_input(&self) -> &crate::operation::create_db_instance_read_replica::builders::CreateDbInstanceReadReplicaInputBuilder {
65        &self.inner
66    }
67    /// Sends the request and returns the response.
68    ///
69    /// If an error occurs, an `SdkError` will be returned with additional details that
70    /// can be matched against.
71    ///
72    /// By default, any retryable failures will be retried twice. Retry behavior
73    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
74    /// set when configuring the client.
75    pub async fn send(
76        self,
77    ) -> ::std::result::Result<
78        crate::operation::create_db_instance_read_replica::CreateDbInstanceReadReplicaOutput,
79        ::aws_smithy_runtime_api::client::result::SdkError<
80            crate::operation::create_db_instance_read_replica::CreateDBInstanceReadReplicaError,
81            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
82        >,
83    > {
84        let input = self
85            .inner
86            .build()
87            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
88        let runtime_plugins = crate::operation::create_db_instance_read_replica::CreateDBInstanceReadReplica::operation_runtime_plugins(
89            self.handle.runtime_plugins.clone(),
90            &self.handle.conf,
91            self.config_override,
92        );
93        crate::operation::create_db_instance_read_replica::CreateDBInstanceReadReplica::orchestrate(&runtime_plugins, input).await
94    }
95
96    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
97    pub fn customize(
98        self,
99    ) -> crate::client::customize::CustomizableOperation<
100        crate::operation::create_db_instance_read_replica::CreateDbInstanceReadReplicaOutput,
101        crate::operation::create_db_instance_read_replica::CreateDBInstanceReadReplicaError,
102        Self,
103    > {
104        crate::client::customize::CustomizableOperation::new(self)
105    }
106    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
107        self.set_config_override(::std::option::Option::Some(config_override.into()));
108        self
109    }
110
111    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
112        self.config_override = config_override;
113        self
114    }
115    /// <p>The DB instance identifier of the read replica. This identifier is the unique key that identifies a DB instance. This parameter is stored as a lowercase string.</p>
116    pub fn db_instance_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
117        self.inner = self.inner.db_instance_identifier(input.into());
118        self
119    }
120    /// <p>The DB instance identifier of the read replica. This identifier is the unique key that identifies a DB instance. This parameter is stored as a lowercase string.</p>
121    pub fn set_db_instance_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
122        self.inner = self.inner.set_db_instance_identifier(input);
123        self
124    }
125    /// <p>The DB instance identifier of the read replica. This identifier is the unique key that identifies a DB instance. This parameter is stored as a lowercase string.</p>
126    pub fn get_db_instance_identifier(&self) -> &::std::option::Option<::std::string::String> {
127        self.inner.get_db_instance_identifier()
128    }
129    /// <p>The identifier of the DB instance that will act as the source for the read replica. Each DB instance can have up to 15 read replicas, except for the following engines:</p>
130    /// <ul>
131    /// <li>
132    /// <p>Db2 - Can have up to three replicas.</p></li>
133    /// <li>
134    /// <p>Oracle - Can have up to five read replicas.</p></li>
135    /// <li>
136    /// <p>SQL Server - Can have up to five read replicas.</p></li>
137    /// </ul>
138    /// <p>Constraints:</p>
139    /// <ul>
140    /// <li>
141    /// <p>Must be the identifier of an existing Db2, MariaDB, MySQL, Oracle, PostgreSQL, or SQL Server DB instance.</p></li>
142    /// <li>
143    /// <p>Can't be specified if the <code>SourceDBClusterIdentifier</code> parameter is also specified.</p></li>
144    /// <li>
145    /// <p>For the limitations of Oracle read replicas, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.limitations.html#oracle-read-replicas.limitations.versions-and-licenses">Version and licensing considerations for RDS for Oracle replicas</a> in the <i>Amazon RDS User Guide</i>.</p></li>
146    /// <li>
147    /// <p>For the limitations of SQL Server read replicas, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.ReadReplicas.html#SQLServer.ReadReplicas.Limitations">Read replica limitations with SQL Server</a> in the <i>Amazon RDS User Guide</i>.</p></li>
148    /// <li>
149    /// <p>The specified DB instance must have automatic backups enabled, that is, its backup retention period must be greater than 0.</p></li>
150    /// <li>
151    /// <p>If the source DB instance is in the same Amazon Web Services Region as the read replica, specify a valid DB instance identifier.</p></li>
152    /// <li>
153    /// <p>If the source DB instance is in a different Amazon Web Services Region from the read replica, specify a valid DB instance ARN. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing">Constructing an ARN for Amazon RDS</a> in the <i>Amazon RDS User Guide</i>. This doesn't apply to SQL Server or RDS Custom, which don't support cross-Region replicas.</p></li>
154    /// </ul>
155    pub fn source_db_instance_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
156        self.inner = self.inner.source_db_instance_identifier(input.into());
157        self
158    }
159    /// <p>The identifier of the DB instance that will act as the source for the read replica. Each DB instance can have up to 15 read replicas, except for the following engines:</p>
160    /// <ul>
161    /// <li>
162    /// <p>Db2 - Can have up to three replicas.</p></li>
163    /// <li>
164    /// <p>Oracle - Can have up to five read replicas.</p></li>
165    /// <li>
166    /// <p>SQL Server - Can have up to five read replicas.</p></li>
167    /// </ul>
168    /// <p>Constraints:</p>
169    /// <ul>
170    /// <li>
171    /// <p>Must be the identifier of an existing Db2, MariaDB, MySQL, Oracle, PostgreSQL, or SQL Server DB instance.</p></li>
172    /// <li>
173    /// <p>Can't be specified if the <code>SourceDBClusterIdentifier</code> parameter is also specified.</p></li>
174    /// <li>
175    /// <p>For the limitations of Oracle read replicas, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.limitations.html#oracle-read-replicas.limitations.versions-and-licenses">Version and licensing considerations for RDS for Oracle replicas</a> in the <i>Amazon RDS User Guide</i>.</p></li>
176    /// <li>
177    /// <p>For the limitations of SQL Server read replicas, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.ReadReplicas.html#SQLServer.ReadReplicas.Limitations">Read replica limitations with SQL Server</a> in the <i>Amazon RDS User Guide</i>.</p></li>
178    /// <li>
179    /// <p>The specified DB instance must have automatic backups enabled, that is, its backup retention period must be greater than 0.</p></li>
180    /// <li>
181    /// <p>If the source DB instance is in the same Amazon Web Services Region as the read replica, specify a valid DB instance identifier.</p></li>
182    /// <li>
183    /// <p>If the source DB instance is in a different Amazon Web Services Region from the read replica, specify a valid DB instance ARN. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing">Constructing an ARN for Amazon RDS</a> in the <i>Amazon RDS User Guide</i>. This doesn't apply to SQL Server or RDS Custom, which don't support cross-Region replicas.</p></li>
184    /// </ul>
185    pub fn set_source_db_instance_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
186        self.inner = self.inner.set_source_db_instance_identifier(input);
187        self
188    }
189    /// <p>The identifier of the DB instance that will act as the source for the read replica. Each DB instance can have up to 15 read replicas, except for the following engines:</p>
190    /// <ul>
191    /// <li>
192    /// <p>Db2 - Can have up to three replicas.</p></li>
193    /// <li>
194    /// <p>Oracle - Can have up to five read replicas.</p></li>
195    /// <li>
196    /// <p>SQL Server - Can have up to five read replicas.</p></li>
197    /// </ul>
198    /// <p>Constraints:</p>
199    /// <ul>
200    /// <li>
201    /// <p>Must be the identifier of an existing Db2, MariaDB, MySQL, Oracle, PostgreSQL, or SQL Server DB instance.</p></li>
202    /// <li>
203    /// <p>Can't be specified if the <code>SourceDBClusterIdentifier</code> parameter is also specified.</p></li>
204    /// <li>
205    /// <p>For the limitations of Oracle read replicas, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.limitations.html#oracle-read-replicas.limitations.versions-and-licenses">Version and licensing considerations for RDS for Oracle replicas</a> in the <i>Amazon RDS User Guide</i>.</p></li>
206    /// <li>
207    /// <p>For the limitations of SQL Server read replicas, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.ReadReplicas.html#SQLServer.ReadReplicas.Limitations">Read replica limitations with SQL Server</a> in the <i>Amazon RDS User Guide</i>.</p></li>
208    /// <li>
209    /// <p>The specified DB instance must have automatic backups enabled, that is, its backup retention period must be greater than 0.</p></li>
210    /// <li>
211    /// <p>If the source DB instance is in the same Amazon Web Services Region as the read replica, specify a valid DB instance identifier.</p></li>
212    /// <li>
213    /// <p>If the source DB instance is in a different Amazon Web Services Region from the read replica, specify a valid DB instance ARN. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing">Constructing an ARN for Amazon RDS</a> in the <i>Amazon RDS User Guide</i>. This doesn't apply to SQL Server or RDS Custom, which don't support cross-Region replicas.</p></li>
214    /// </ul>
215    pub fn get_source_db_instance_identifier(&self) -> &::std::option::Option<::std::string::String> {
216        self.inner.get_source_db_instance_identifier()
217    }
218    /// <p>The compute and memory capacity of the read replica, for example db.m4.large. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. 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>
219    /// <p>Default: Inherits the value from the source DB instance.</p>
220    pub fn db_instance_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
221        self.inner = self.inner.db_instance_class(input.into());
222        self
223    }
224    /// <p>The compute and memory capacity of the read replica, for example db.m4.large. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. 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>
225    /// <p>Default: Inherits the value from the source DB instance.</p>
226    pub fn set_db_instance_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
227        self.inner = self.inner.set_db_instance_class(input);
228        self
229    }
230    /// <p>The compute and memory capacity of the read replica, for example db.m4.large. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. 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>
231    /// <p>Default: Inherits the value from the source DB instance.</p>
232    pub fn get_db_instance_class(&self) -> &::std::option::Option<::std::string::String> {
233        self.inner.get_db_instance_class()
234    }
235    /// <p>The Availability Zone (AZ) where the read replica will be created.</p>
236    /// <p>Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.</p>
237    /// <p>Example: <code>us-east-1d</code></p>
238    pub fn availability_zone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
239        self.inner = self.inner.availability_zone(input.into());
240        self
241    }
242    /// <p>The Availability Zone (AZ) where the read replica will be created.</p>
243    /// <p>Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.</p>
244    /// <p>Example: <code>us-east-1d</code></p>
245    pub fn set_availability_zone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
246        self.inner = self.inner.set_availability_zone(input);
247        self
248    }
249    /// <p>The Availability Zone (AZ) where the read replica will be created.</p>
250    /// <p>Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.</p>
251    /// <p>Example: <code>us-east-1d</code></p>
252    pub fn get_availability_zone(&self) -> &::std::option::Option<::std::string::String> {
253        self.inner.get_availability_zone()
254    }
255    /// <p>The port number that the DB instance uses for connections.</p>
256    /// <p>Valid Values: <code>1150-65535</code></p>
257    /// <p>Default: Inherits the value from the source DB instance.</p>
258    pub fn port(mut self, input: i32) -> Self {
259        self.inner = self.inner.port(input);
260        self
261    }
262    /// <p>The port number that the DB instance uses for connections.</p>
263    /// <p>Valid Values: <code>1150-65535</code></p>
264    /// <p>Default: Inherits the value from the source DB instance.</p>
265    pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
266        self.inner = self.inner.set_port(input);
267        self
268    }
269    /// <p>The port number that the DB instance uses for connections.</p>
270    /// <p>Valid Values: <code>1150-65535</code></p>
271    /// <p>Default: Inherits the value from the source DB instance.</p>
272    pub fn get_port(&self) -> &::std::option::Option<i32> {
273        self.inner.get_port()
274    }
275    /// <p>Specifies whether the read replica is in a Multi-AZ deployment.</p>
276    /// <p>You can create a read replica as a Multi-AZ DB instance. RDS creates a standby of your replica in another Availability Zone for failover support for the replica. Creating your read replica as a Multi-AZ DB instance is independent of whether the source is a Multi-AZ DB instance or a Multi-AZ DB cluster.</p>
277    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
278    pub fn multi_az(mut self, input: bool) -> Self {
279        self.inner = self.inner.multi_az(input);
280        self
281    }
282    /// <p>Specifies whether the read replica is in a Multi-AZ deployment.</p>
283    /// <p>You can create a read replica as a Multi-AZ DB instance. RDS creates a standby of your replica in another Availability Zone for failover support for the replica. Creating your read replica as a Multi-AZ DB instance is independent of whether the source is a Multi-AZ DB instance or a Multi-AZ DB cluster.</p>
284    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
285    pub fn set_multi_az(mut self, input: ::std::option::Option<bool>) -> Self {
286        self.inner = self.inner.set_multi_az(input);
287        self
288    }
289    /// <p>Specifies whether the read replica is in a Multi-AZ deployment.</p>
290    /// <p>You can create a read replica as a Multi-AZ DB instance. RDS creates a standby of your replica in another Availability Zone for failover support for the replica. Creating your read replica as a Multi-AZ DB instance is independent of whether the source is a Multi-AZ DB instance or a Multi-AZ DB cluster.</p>
291    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
292    pub fn get_multi_az(&self) -> &::std::option::Option<bool> {
293        self.inner.get_multi_az()
294    }
295    /// <p>Specifies whether to automatically apply minor engine upgrades to the read replica during the maintenance window.</p>
296    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
297    /// <p>Default: Inherits the value from the source DB instance.</p>
298    /// <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>
299    pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
300        self.inner = self.inner.auto_minor_version_upgrade(input);
301        self
302    }
303    /// <p>Specifies whether to automatically apply minor engine upgrades to the read replica during the maintenance window.</p>
304    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
305    /// <p>Default: Inherits the value from the source DB instance.</p>
306    /// <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>
307    pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
308        self.inner = self.inner.set_auto_minor_version_upgrade(input);
309        self
310    }
311    /// <p>Specifies whether to automatically apply minor engine upgrades to the read replica during the maintenance window.</p>
312    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
313    /// <p>Default: Inherits the value from the source DB instance.</p>
314    /// <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>
315    pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
316        self.inner.get_auto_minor_version_upgrade()
317    }
318    /// <p>The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance.</p>
319    pub fn iops(mut self, input: i32) -> Self {
320        self.inner = self.inner.iops(input);
321        self
322    }
323    /// <p>The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance.</p>
324    pub fn set_iops(mut self, input: ::std::option::Option<i32>) -> Self {
325        self.inner = self.inner.set_iops(input);
326        self
327    }
328    /// <p>The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance.</p>
329    pub fn get_iops(&self) -> &::std::option::Option<i32> {
330        self.inner.get_iops()
331    }
332    /// <p>Specifies the storage throughput value for the read replica.</p>
333    /// <p>This setting doesn't apply to RDS Custom or Amazon Aurora DB instances.</p>
334    pub fn storage_throughput(mut self, input: i32) -> Self {
335        self.inner = self.inner.storage_throughput(input);
336        self
337    }
338    /// <p>Specifies the storage throughput value for the read replica.</p>
339    /// <p>This setting doesn't apply to RDS Custom or Amazon Aurora DB instances.</p>
340    pub fn set_storage_throughput(mut self, input: ::std::option::Option<i32>) -> Self {
341        self.inner = self.inner.set_storage_throughput(input);
342        self
343    }
344    /// <p>Specifies the storage throughput value for the read replica.</p>
345    /// <p>This setting doesn't apply to RDS Custom or Amazon Aurora DB instances.</p>
346    pub fn get_storage_throughput(&self) -> &::std::option::Option<i32> {
347        self.inner.get_storage_throughput()
348    }
349    /// <p>The option group to associate the DB instance with. If not specified, RDS uses the option group associated with the source DB instance or cluster.</p><note>
350    /// <p>For SQL Server, you must use the option group associated with the source.</p>
351    /// </note>
352    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
353    pub fn option_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
354        self.inner = self.inner.option_group_name(input.into());
355        self
356    }
357    /// <p>The option group to associate the DB instance with. If not specified, RDS uses the option group associated with the source DB instance or cluster.</p><note>
358    /// <p>For SQL Server, you must use the option group associated with the source.</p>
359    /// </note>
360    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
361    pub fn set_option_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
362        self.inner = self.inner.set_option_group_name(input);
363        self
364    }
365    /// <p>The option group to associate the DB instance with. If not specified, RDS uses the option group associated with the source DB instance or cluster.</p><note>
366    /// <p>For SQL Server, you must use the option group associated with the source.</p>
367    /// </note>
368    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
369    pub fn get_option_group_name(&self) -> &::std::option::Option<::std::string::String> {
370        self.inner.get_option_group_name()
371    }
372    /// <p>The name of the DB parameter group to associate with this read replica DB instance.</p>
373    /// <p>For the Db2 DB engine, if your source DB instance uses the bring your own license (BYOL) model, then a custom parameter group must be associated with the replica. For a same Amazon Web Services Region replica, if you don't specify a custom parameter group, Amazon RDS associates the custom parameter group associated with the source DB instance. For a cross-Region replica, you must specify a custom parameter group. This custom parameter group must include your IBM Site ID and IBM Customer ID. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html#db2-prereqs-ibm-info">IBM IDs for bring your own license (BYOL) for Db2</a>.</p>
374    /// <p>For Single-AZ or Multi-AZ DB instance read replica instances, if you don't specify a value for <code>DBParameterGroupName</code>, then Amazon RDS uses the <code>DBParameterGroup</code> of the source DB instance for a same Region read replica, or the default <code>DBParameterGroup</code> for the specified DB engine for a cross-Region read replica.</p>
375    /// <p>For Multi-AZ DB cluster same Region read replica instances, if you don't specify a value for <code>DBParameterGroupName</code>, then Amazon RDS uses the default <code>DBParameterGroup</code>.</p>
376    /// <p>Specifying a parameter group for this operation is only supported for MySQL DB instances for cross-Region read replicas, for Multi-AZ DB cluster read replica instances, for Db2 DB instances, and for Oracle DB instances. It isn't supported for MySQL DB instances for same Region read replicas or for RDS Custom.</p>
377    /// <p>Constraints:</p>
378    /// <ul>
379    /// <li>
380    /// <p>Must be 1 to 255 letters, numbers, or hyphens.</p></li>
381    /// <li>
382    /// <p>First character must be a letter.</p></li>
383    /// <li>
384    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
385    /// </ul>
386    pub fn db_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
387        self.inner = self.inner.db_parameter_group_name(input.into());
388        self
389    }
390    /// <p>The name of the DB parameter group to associate with this read replica DB instance.</p>
391    /// <p>For the Db2 DB engine, if your source DB instance uses the bring your own license (BYOL) model, then a custom parameter group must be associated with the replica. For a same Amazon Web Services Region replica, if you don't specify a custom parameter group, Amazon RDS associates the custom parameter group associated with the source DB instance. For a cross-Region replica, you must specify a custom parameter group. This custom parameter group must include your IBM Site ID and IBM Customer ID. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html#db2-prereqs-ibm-info">IBM IDs for bring your own license (BYOL) for Db2</a>.</p>
392    /// <p>For Single-AZ or Multi-AZ DB instance read replica instances, if you don't specify a value for <code>DBParameterGroupName</code>, then Amazon RDS uses the <code>DBParameterGroup</code> of the source DB instance for a same Region read replica, or the default <code>DBParameterGroup</code> for the specified DB engine for a cross-Region read replica.</p>
393    /// <p>For Multi-AZ DB cluster same Region read replica instances, if you don't specify a value for <code>DBParameterGroupName</code>, then Amazon RDS uses the default <code>DBParameterGroup</code>.</p>
394    /// <p>Specifying a parameter group for this operation is only supported for MySQL DB instances for cross-Region read replicas, for Multi-AZ DB cluster read replica instances, for Db2 DB instances, and for Oracle DB instances. It isn't supported for MySQL DB instances for same Region read replicas or for RDS Custom.</p>
395    /// <p>Constraints:</p>
396    /// <ul>
397    /// <li>
398    /// <p>Must be 1 to 255 letters, numbers, or hyphens.</p></li>
399    /// <li>
400    /// <p>First character must be a letter.</p></li>
401    /// <li>
402    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
403    /// </ul>
404    pub fn set_db_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
405        self.inner = self.inner.set_db_parameter_group_name(input);
406        self
407    }
408    /// <p>The name of the DB parameter group to associate with this read replica DB instance.</p>
409    /// <p>For the Db2 DB engine, if your source DB instance uses the bring your own license (BYOL) model, then a custom parameter group must be associated with the replica. For a same Amazon Web Services Region replica, if you don't specify a custom parameter group, Amazon RDS associates the custom parameter group associated with the source DB instance. For a cross-Region replica, you must specify a custom parameter group. This custom parameter group must include your IBM Site ID and IBM Customer ID. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html#db2-prereqs-ibm-info">IBM IDs for bring your own license (BYOL) for Db2</a>.</p>
410    /// <p>For Single-AZ or Multi-AZ DB instance read replica instances, if you don't specify a value for <code>DBParameterGroupName</code>, then Amazon RDS uses the <code>DBParameterGroup</code> of the source DB instance for a same Region read replica, or the default <code>DBParameterGroup</code> for the specified DB engine for a cross-Region read replica.</p>
411    /// <p>For Multi-AZ DB cluster same Region read replica instances, if you don't specify a value for <code>DBParameterGroupName</code>, then Amazon RDS uses the default <code>DBParameterGroup</code>.</p>
412    /// <p>Specifying a parameter group for this operation is only supported for MySQL DB instances for cross-Region read replicas, for Multi-AZ DB cluster read replica instances, for Db2 DB instances, and for Oracle DB instances. It isn't supported for MySQL DB instances for same Region read replicas or for RDS Custom.</p>
413    /// <p>Constraints:</p>
414    /// <ul>
415    /// <li>
416    /// <p>Must be 1 to 255 letters, numbers, or hyphens.</p></li>
417    /// <li>
418    /// <p>First character must be a letter.</p></li>
419    /// <li>
420    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
421    /// </ul>
422    pub fn get_db_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
423        self.inner.get_db_parameter_group_name()
424    }
425    /// <p>Specifies whether the DB instance is publicly accessible.</p>
426    /// <p>When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to the public IP address from outside of the DB cluster's VPC. 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>
427    /// <p>When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.</p>
428    /// <p>For more information, see <code>CreateDBInstance</code>.</p>
429    pub fn publicly_accessible(mut self, input: bool) -> Self {
430        self.inner = self.inner.publicly_accessible(input);
431        self
432    }
433    /// <p>Specifies whether the DB instance is publicly accessible.</p>
434    /// <p>When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to the public IP address from outside of the DB cluster's VPC. 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>
435    /// <p>When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.</p>
436    /// <p>For more information, see <code>CreateDBInstance</code>.</p>
437    pub fn set_publicly_accessible(mut self, input: ::std::option::Option<bool>) -> Self {
438        self.inner = self.inner.set_publicly_accessible(input);
439        self
440    }
441    /// <p>Specifies whether the DB instance is publicly accessible.</p>
442    /// <p>When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to the public IP address from outside of the DB cluster's VPC. 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>
443    /// <p>When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.</p>
444    /// <p>For more information, see <code>CreateDBInstance</code>.</p>
445    pub fn get_publicly_accessible(&self) -> &::std::option::Option<bool> {
446        self.inner.get_publicly_accessible()
447    }
448    ///
449    /// Appends an item to `Tags`.
450    ///
451    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
452    ///
453    /// <p>A list of tags.</p>
454    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS resources</a> in the <i>Amazon RDS User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html">Tagging Amazon Aurora and Amazon RDS resources</a> in the <i>Amazon Aurora User Guide</i>.</p>
455    pub fn tags(mut self, input: crate::types::Tag) -> Self {
456        self.inner = self.inner.tags(input);
457        self
458    }
459    /// <p>A list of tags.</p>
460    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS resources</a> in the <i>Amazon RDS User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html">Tagging Amazon Aurora and Amazon RDS resources</a> in the <i>Amazon Aurora User Guide</i>.</p>
461    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
462        self.inner = self.inner.set_tags(input);
463        self
464    }
465    /// <p>A list of tags.</p>
466    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS resources</a> in the <i>Amazon RDS User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html">Tagging Amazon Aurora and Amazon RDS resources</a> in the <i>Amazon Aurora User Guide</i>.</p>
467    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
468        self.inner.get_tags()
469    }
470    /// <p>A DB subnet group for the DB instance. The new DB instance is created in the VPC associated with the DB subnet group. If no DB subnet group is specified, then the new DB instance isn't created in a VPC.</p>
471    /// <p>Constraints:</p>
472    /// <ul>
473    /// <li>
474    /// <p>If supplied, must match the name of an existing DB subnet group.</p></li>
475    /// <li>
476    /// <p>The specified DB subnet group must be in the same Amazon Web Services Region in which the operation is running.</p></li>
477    /// <li>
478    /// <p>All read replicas in one Amazon Web Services Region that are created from the same source DB instance must either:</p>
479    /// <ul>
480    /// <li>
481    /// <p>Specify DB subnet groups from the same VPC. All these read replicas are created in the same VPC.</p></li>
482    /// <li>
483    /// <p>Not specify a DB subnet group. All these read replicas are created outside of any VPC.</p></li>
484    /// </ul></li>
485    /// </ul>
486    /// <p>Example: <code>mydbsubnetgroup</code></p>
487    pub fn db_subnet_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
488        self.inner = self.inner.db_subnet_group_name(input.into());
489        self
490    }
491    /// <p>A DB subnet group for the DB instance. The new DB instance is created in the VPC associated with the DB subnet group. If no DB subnet group is specified, then the new DB instance isn't created in a VPC.</p>
492    /// <p>Constraints:</p>
493    /// <ul>
494    /// <li>
495    /// <p>If supplied, must match the name of an existing DB subnet group.</p></li>
496    /// <li>
497    /// <p>The specified DB subnet group must be in the same Amazon Web Services Region in which the operation is running.</p></li>
498    /// <li>
499    /// <p>All read replicas in one Amazon Web Services Region that are created from the same source DB instance must either:</p>
500    /// <ul>
501    /// <li>
502    /// <p>Specify DB subnet groups from the same VPC. All these read replicas are created in the same VPC.</p></li>
503    /// <li>
504    /// <p>Not specify a DB subnet group. All these read replicas are created outside of any VPC.</p></li>
505    /// </ul></li>
506    /// </ul>
507    /// <p>Example: <code>mydbsubnetgroup</code></p>
508    pub fn set_db_subnet_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
509        self.inner = self.inner.set_db_subnet_group_name(input);
510        self
511    }
512    /// <p>A DB subnet group for the DB instance. The new DB instance is created in the VPC associated with the DB subnet group. If no DB subnet group is specified, then the new DB instance isn't created in a VPC.</p>
513    /// <p>Constraints:</p>
514    /// <ul>
515    /// <li>
516    /// <p>If supplied, must match the name of an existing DB subnet group.</p></li>
517    /// <li>
518    /// <p>The specified DB subnet group must be in the same Amazon Web Services Region in which the operation is running.</p></li>
519    /// <li>
520    /// <p>All read replicas in one Amazon Web Services Region that are created from the same source DB instance must either:</p>
521    /// <ul>
522    /// <li>
523    /// <p>Specify DB subnet groups from the same VPC. All these read replicas are created in the same VPC.</p></li>
524    /// <li>
525    /// <p>Not specify a DB subnet group. All these read replicas are created outside of any VPC.</p></li>
526    /// </ul></li>
527    /// </ul>
528    /// <p>Example: <code>mydbsubnetgroup</code></p>
529    pub fn get_db_subnet_group_name(&self) -> &::std::option::Option<::std::string::String> {
530        self.inner.get_db_subnet_group_name()
531    }
532    ///
533    /// Appends an item to `VpcSecurityGroupIds`.
534    ///
535    /// To override the contents of this collection use [`set_vpc_security_group_ids`](Self::set_vpc_security_group_ids).
536    ///
537    /// <p>A list of Amazon EC2 VPC security groups to associate with the read replica.</p>
538    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
539    /// <p>Default: The default EC2 VPC security group for the DB subnet group's VPC.</p>
540    pub fn vpc_security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
541        self.inner = self.inner.vpc_security_group_ids(input.into());
542        self
543    }
544    /// <p>A list of Amazon EC2 VPC security groups to associate with the read replica.</p>
545    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
546    /// <p>Default: The default EC2 VPC security group for the DB subnet group's VPC.</p>
547    pub fn set_vpc_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
548        self.inner = self.inner.set_vpc_security_group_ids(input);
549        self
550    }
551    /// <p>A list of Amazon EC2 VPC security groups to associate with the read replica.</p>
552    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
553    /// <p>Default: The default EC2 VPC security group for the DB subnet group's VPC.</p>
554    pub fn get_vpc_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
555        self.inner.get_vpc_security_group_ids()
556    }
557    /// <p>The storage type to associate with the read replica.</p>
558    /// <p>If you specify <code>io1</code>, <code>io2</code>, or <code>gp3</code>, you must also include a value for the <code>Iops</code> parameter.</p>
559    /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
560    /// <p>Default: <code>io1</code> if the <code>Iops</code> parameter is specified. Otherwise, <code>gp3</code>.</p>
561    pub fn storage_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
562        self.inner = self.inner.storage_type(input.into());
563        self
564    }
565    /// <p>The storage type to associate with the read replica.</p>
566    /// <p>If you specify <code>io1</code>, <code>io2</code>, or <code>gp3</code>, you must also include a value for the <code>Iops</code> parameter.</p>
567    /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
568    /// <p>Default: <code>io1</code> if the <code>Iops</code> parameter is specified. Otherwise, <code>gp3</code>.</p>
569    pub fn set_storage_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
570        self.inner = self.inner.set_storage_type(input);
571        self
572    }
573    /// <p>The storage type to associate with the read replica.</p>
574    /// <p>If you specify <code>io1</code>, <code>io2</code>, or <code>gp3</code>, you must also include a value for the <code>Iops</code> parameter.</p>
575    /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
576    /// <p>Default: <code>io1</code> if the <code>Iops</code> parameter is specified. Otherwise, <code>gp3</code>.</p>
577    pub fn get_storage_type(&self) -> &::std::option::Option<::std::string::String> {
578        self.inner.get_storage_type()
579    }
580    /// <p>Specifies whether to copy all tags from the read replica to snapshots of the read replica. By default, tags aren't copied.</p>
581    pub fn copy_tags_to_snapshot(mut self, input: bool) -> Self {
582        self.inner = self.inner.copy_tags_to_snapshot(input);
583        self
584    }
585    /// <p>Specifies whether to copy all tags from the read replica to snapshots of the read replica. By default, tags aren't copied.</p>
586    pub fn set_copy_tags_to_snapshot(mut self, input: ::std::option::Option<bool>) -> Self {
587        self.inner = self.inner.set_copy_tags_to_snapshot(input);
588        self
589    }
590    /// <p>Specifies whether to copy all tags from the read replica to snapshots of the read replica. By default, tags aren't copied.</p>
591    pub fn get_copy_tags_to_snapshot(&self) -> &::std::option::Option<bool> {
592        self.inner.get_copy_tags_to_snapshot()
593    }
594    /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the read replica. To disable collection of Enhanced Monitoring metrics, specify <code>0</code>. The default is <code>0</code>.</p>
595    /// <p>If <code>MonitoringRoleArn</code> is specified, then you must set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
596    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
597    /// <p>Valid Values: <code>0, 1, 5, 10, 15, 30, 60</code></p>
598    /// <p>Default: <code>0</code></p>
599    pub fn monitoring_interval(mut self, input: i32) -> Self {
600        self.inner = self.inner.monitoring_interval(input);
601        self
602    }
603    /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the read replica. To disable collection of Enhanced Monitoring metrics, specify <code>0</code>. The default is <code>0</code>.</p>
604    /// <p>If <code>MonitoringRoleArn</code> is specified, then you must set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
605    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
606    /// <p>Valid Values: <code>0, 1, 5, 10, 15, 30, 60</code></p>
607    /// <p>Default: <code>0</code></p>
608    pub fn set_monitoring_interval(mut self, input: ::std::option::Option<i32>) -> Self {
609        self.inner = self.inner.set_monitoring_interval(input);
610        self
611    }
612    /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the read replica. To disable collection of Enhanced Monitoring metrics, specify <code>0</code>. The default is <code>0</code>.</p>
613    /// <p>If <code>MonitoringRoleArn</code> is specified, then you must set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
614    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
615    /// <p>Valid Values: <code>0, 1, 5, 10, 15, 30, 60</code></p>
616    /// <p>Default: <code>0</code></p>
617    pub fn get_monitoring_interval(&self) -> &::std::option::Option<i32> {
618        self.inner.get_monitoring_interval()
619    }
620    /// <p>The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, go to <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole">To create an IAM role for Amazon RDS Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
621    /// <p>If <code>MonitoringInterval</code> is set to a value other than 0, then you must supply a <code>MonitoringRoleArn</code> value.</p>
622    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
623    pub fn monitoring_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
624        self.inner = self.inner.monitoring_role_arn(input.into());
625        self
626    }
627    /// <p>The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, go to <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole">To create an IAM role for Amazon RDS Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
628    /// <p>If <code>MonitoringInterval</code> is set to a value other than 0, then you must supply a <code>MonitoringRoleArn</code> value.</p>
629    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
630    pub fn set_monitoring_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
631        self.inner = self.inner.set_monitoring_role_arn(input);
632        self
633    }
634    /// <p>The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, go to <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole">To create an IAM role for Amazon RDS Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
635    /// <p>If <code>MonitoringInterval</code> is set to a value other than 0, then you must supply a <code>MonitoringRoleArn</code> value.</p>
636    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
637    pub fn get_monitoring_role_arn(&self) -> &::std::option::Option<::std::string::String> {
638        self.inner.get_monitoring_role_arn()
639    }
640    /// <p>The Amazon Web Services KMS key identifier for an encrypted read replica.</p>
641    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
642    /// <p>If you create an encrypted read replica in the same Amazon Web Services Region as the source DB instance or Multi-AZ DB cluster, don't specify a value for this parameter. A read replica in the same Amazon Web Services Region is always encrypted with the same KMS key as the source DB instance or cluster.</p>
643    /// <p>If you create an encrypted read replica in a different Amazon Web Services Region, then you must specify a KMS key identifier for the destination Amazon Web Services Region. KMS keys are specific to the Amazon Web Services Region that they are created in, and you can't use KMS keys from one Amazon Web Services Region in another Amazon Web Services Region.</p>
644    /// <p>You can't create an encrypted read replica from an unencrypted DB instance or Multi-AZ DB cluster.</p>
645    /// <p>This setting doesn't apply to RDS Custom, which uses the same KMS key as the primary replica.</p>
646    pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
647        self.inner = self.inner.kms_key_id(input.into());
648        self
649    }
650    /// <p>The Amazon Web Services KMS key identifier for an encrypted read replica.</p>
651    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
652    /// <p>If you create an encrypted read replica in the same Amazon Web Services Region as the source DB instance or Multi-AZ DB cluster, don't specify a value for this parameter. A read replica in the same Amazon Web Services Region is always encrypted with the same KMS key as the source DB instance or cluster.</p>
653    /// <p>If you create an encrypted read replica in a different Amazon Web Services Region, then you must specify a KMS key identifier for the destination Amazon Web Services Region. KMS keys are specific to the Amazon Web Services Region that they are created in, and you can't use KMS keys from one Amazon Web Services Region in another Amazon Web Services Region.</p>
654    /// <p>You can't create an encrypted read replica from an unencrypted DB instance or Multi-AZ DB cluster.</p>
655    /// <p>This setting doesn't apply to RDS Custom, which uses the same KMS key as the primary replica.</p>
656    pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
657        self.inner = self.inner.set_kms_key_id(input);
658        self
659    }
660    /// <p>The Amazon Web Services KMS key identifier for an encrypted read replica.</p>
661    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
662    /// <p>If you create an encrypted read replica in the same Amazon Web Services Region as the source DB instance or Multi-AZ DB cluster, don't specify a value for this parameter. A read replica in the same Amazon Web Services Region is always encrypted with the same KMS key as the source DB instance or cluster.</p>
663    /// <p>If you create an encrypted read replica in a different Amazon Web Services Region, then you must specify a KMS key identifier for the destination Amazon Web Services Region. KMS keys are specific to the Amazon Web Services Region that they are created in, and you can't use KMS keys from one Amazon Web Services Region in another Amazon Web Services Region.</p>
664    /// <p>You can't create an encrypted read replica from an unencrypted DB instance or Multi-AZ DB cluster.</p>
665    /// <p>This setting doesn't apply to RDS Custom, which uses the same KMS key as the primary replica.</p>
666    pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
667        self.inner.get_kms_key_id()
668    }
669    /// <p>When you are creating a read replica from one Amazon Web Services GovCloud (US) Region to another or from one China Amazon Web Services Region to another, the URL that contains a Signature Version 4 signed request for the <code>CreateDBInstanceReadReplica</code> API operation in the source Amazon Web Services Region that contains the source DB instance.</p>
670    /// <p>This setting applies only to Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions. It's ignored in other Amazon Web Services Regions.</p>
671    /// <p>This setting applies only when replicating from a source DB <i>instance</i>. Source DB clusters aren't supported in Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions.</p>
672    /// <p>You must specify this parameter when you create an encrypted read replica from another Amazon Web Services Region by using the Amazon RDS API. Don't specify <code>PreSignedUrl</code> when you are creating an encrypted read replica in the same Amazon Web Services Region.</p>
673    /// <p>The presigned URL must be a valid request for the <code>CreateDBInstanceReadReplica</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted source DB instance. The presigned URL request must contain the following parameter values:</p>
674    /// <ul>
675    /// <li>
676    /// <p><code>DestinationRegion</code> - The Amazon Web Services Region that the encrypted read replica is created in. This Amazon Web Services Region is the same one where the <code>CreateDBInstanceReadReplica</code> operation is called that contains this presigned URL.</p>
677    /// <p>For example, if you create an encrypted DB instance in the us-west-1 Amazon Web Services Region, from a source DB instance in the us-east-2 Amazon Web Services Region, then you call the <code>CreateDBInstanceReadReplica</code> operation in the us-east-1 Amazon Web Services Region and provide a presigned URL that contains a call to the <code>CreateDBInstanceReadReplica</code> operation in the us-west-2 Amazon Web Services Region. For this example, the <code>DestinationRegion</code> in the presigned URL must be set to the us-east-1 Amazon Web Services Region.</p></li>
678    /// <li>
679    /// <p><code>KmsKeyId</code> - The KMS key identifier for the key to use to encrypt the read replica in the destination Amazon Web Services Region. This is the same identifier for both the <code>CreateDBInstanceReadReplica</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
680    /// <li>
681    /// <p><code>SourceDBInstanceIdentifier</code> - The DB instance identifier for the encrypted DB instance to be replicated. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are creating an encrypted read replica from a DB instance in the us-west-2 Amazon Web Services Region, then your <code>SourceDBInstanceIdentifier</code> looks like the following example: <code>arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115</code>.</p></li>
682    /// </ul>
683    /// <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>
684    /// <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>
685    /// </note>
686    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
687    pub fn pre_signed_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
688        self.inner = self.inner.pre_signed_url(input.into());
689        self
690    }
691    /// <p>When you are creating a read replica from one Amazon Web Services GovCloud (US) Region to another or from one China Amazon Web Services Region to another, the URL that contains a Signature Version 4 signed request for the <code>CreateDBInstanceReadReplica</code> API operation in the source Amazon Web Services Region that contains the source DB instance.</p>
692    /// <p>This setting applies only to Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions. It's ignored in other Amazon Web Services Regions.</p>
693    /// <p>This setting applies only when replicating from a source DB <i>instance</i>. Source DB clusters aren't supported in Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions.</p>
694    /// <p>You must specify this parameter when you create an encrypted read replica from another Amazon Web Services Region by using the Amazon RDS API. Don't specify <code>PreSignedUrl</code> when you are creating an encrypted read replica in the same Amazon Web Services Region.</p>
695    /// <p>The presigned URL must be a valid request for the <code>CreateDBInstanceReadReplica</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted source DB instance. The presigned URL request must contain the following parameter values:</p>
696    /// <ul>
697    /// <li>
698    /// <p><code>DestinationRegion</code> - The Amazon Web Services Region that the encrypted read replica is created in. This Amazon Web Services Region is the same one where the <code>CreateDBInstanceReadReplica</code> operation is called that contains this presigned URL.</p>
699    /// <p>For example, if you create an encrypted DB instance in the us-west-1 Amazon Web Services Region, from a source DB instance in the us-east-2 Amazon Web Services Region, then you call the <code>CreateDBInstanceReadReplica</code> operation in the us-east-1 Amazon Web Services Region and provide a presigned URL that contains a call to the <code>CreateDBInstanceReadReplica</code> operation in the us-west-2 Amazon Web Services Region. For this example, the <code>DestinationRegion</code> in the presigned URL must be set to the us-east-1 Amazon Web Services Region.</p></li>
700    /// <li>
701    /// <p><code>KmsKeyId</code> - The KMS key identifier for the key to use to encrypt the read replica in the destination Amazon Web Services Region. This is the same identifier for both the <code>CreateDBInstanceReadReplica</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
702    /// <li>
703    /// <p><code>SourceDBInstanceIdentifier</code> - The DB instance identifier for the encrypted DB instance to be replicated. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are creating an encrypted read replica from a DB instance in the us-west-2 Amazon Web Services Region, then your <code>SourceDBInstanceIdentifier</code> looks like the following example: <code>arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115</code>.</p></li>
704    /// </ul>
705    /// <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>
706    /// <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>
707    /// </note>
708    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
709    pub fn set_pre_signed_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
710        self.inner = self.inner.set_pre_signed_url(input);
711        self
712    }
713    /// <p>When you are creating a read replica from one Amazon Web Services GovCloud (US) Region to another or from one China Amazon Web Services Region to another, the URL that contains a Signature Version 4 signed request for the <code>CreateDBInstanceReadReplica</code> API operation in the source Amazon Web Services Region that contains the source DB instance.</p>
714    /// <p>This setting applies only to Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions. It's ignored in other Amazon Web Services Regions.</p>
715    /// <p>This setting applies only when replicating from a source DB <i>instance</i>. Source DB clusters aren't supported in Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions.</p>
716    /// <p>You must specify this parameter when you create an encrypted read replica from another Amazon Web Services Region by using the Amazon RDS API. Don't specify <code>PreSignedUrl</code> when you are creating an encrypted read replica in the same Amazon Web Services Region.</p>
717    /// <p>The presigned URL must be a valid request for the <code>CreateDBInstanceReadReplica</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted source DB instance. The presigned URL request must contain the following parameter values:</p>
718    /// <ul>
719    /// <li>
720    /// <p><code>DestinationRegion</code> - The Amazon Web Services Region that the encrypted read replica is created in. This Amazon Web Services Region is the same one where the <code>CreateDBInstanceReadReplica</code> operation is called that contains this presigned URL.</p>
721    /// <p>For example, if you create an encrypted DB instance in the us-west-1 Amazon Web Services Region, from a source DB instance in the us-east-2 Amazon Web Services Region, then you call the <code>CreateDBInstanceReadReplica</code> operation in the us-east-1 Amazon Web Services Region and provide a presigned URL that contains a call to the <code>CreateDBInstanceReadReplica</code> operation in the us-west-2 Amazon Web Services Region. For this example, the <code>DestinationRegion</code> in the presigned URL must be set to the us-east-1 Amazon Web Services Region.</p></li>
722    /// <li>
723    /// <p><code>KmsKeyId</code> - The KMS key identifier for the key to use to encrypt the read replica in the destination Amazon Web Services Region. This is the same identifier for both the <code>CreateDBInstanceReadReplica</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
724    /// <li>
725    /// <p><code>SourceDBInstanceIdentifier</code> - The DB instance identifier for the encrypted DB instance to be replicated. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are creating an encrypted read replica from a DB instance in the us-west-2 Amazon Web Services Region, then your <code>SourceDBInstanceIdentifier</code> looks like the following example: <code>arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115</code>.</p></li>
726    /// </ul>
727    /// <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>
728    /// <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>
729    /// </note>
730    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
731    pub fn get_pre_signed_url(&self) -> &::std::option::Option<::std::string::String> {
732        self.inner.get_pre_signed_url()
733    }
734    /// <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>
735    /// <p>For more information about IAM database authentication, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication for MySQL and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
736    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
737    pub fn enable_iam_database_authentication(mut self, input: bool) -> Self {
738        self.inner = self.inner.enable_iam_database_authentication(input);
739        self
740    }
741    /// <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>
742    /// <p>For more information about IAM database authentication, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication for MySQL and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
743    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
744    pub fn set_enable_iam_database_authentication(mut self, input: ::std::option::Option<bool>) -> Self {
745        self.inner = self.inner.set_enable_iam_database_authentication(input);
746        self
747    }
748    /// <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>
749    /// <p>For more information about IAM database authentication, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication for MySQL and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
750    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
751    pub fn get_enable_iam_database_authentication(&self) -> &::std::option::Option<bool> {
752        self.inner.get_enable_iam_database_authentication()
753    }
754    /// <p>The mode of Database Insights to enable for the read replica.</p><note>
755    /// <p>This setting isn't supported.</p>
756    /// </note>
757    pub fn database_insights_mode(mut self, input: crate::types::DatabaseInsightsMode) -> Self {
758        self.inner = self.inner.database_insights_mode(input);
759        self
760    }
761    /// <p>The mode of Database Insights to enable for the read replica.</p><note>
762    /// <p>This setting isn't supported.</p>
763    /// </note>
764    pub fn set_database_insights_mode(mut self, input: ::std::option::Option<crate::types::DatabaseInsightsMode>) -> Self {
765        self.inner = self.inner.set_database_insights_mode(input);
766        self
767    }
768    /// <p>The mode of Database Insights to enable for the read replica.</p><note>
769    /// <p>This setting isn't supported.</p>
770    /// </note>
771    pub fn get_database_insights_mode(&self) -> &::std::option::Option<crate::types::DatabaseInsightsMode> {
772        self.inner.get_database_insights_mode()
773    }
774    /// <p>Specifies whether to enable Performance Insights for the read replica.</p>
775    /// <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>
776    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
777    pub fn enable_performance_insights(mut self, input: bool) -> Self {
778        self.inner = self.inner.enable_performance_insights(input);
779        self
780    }
781    /// <p>Specifies whether to enable Performance Insights for the read replica.</p>
782    /// <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>
783    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
784    pub fn set_enable_performance_insights(mut self, input: ::std::option::Option<bool>) -> Self {
785        self.inner = self.inner.set_enable_performance_insights(input);
786        self
787    }
788    /// <p>Specifies whether to enable Performance Insights for the read replica.</p>
789    /// <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>
790    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
791    pub fn get_enable_performance_insights(&self) -> &::std::option::Option<bool> {
792        self.inner.get_enable_performance_insights()
793    }
794    /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
795    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
796    /// <p>If you do not 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>
797    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
798    pub fn performance_insights_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
799        self.inner = self.inner.performance_insights_kms_key_id(input.into());
800        self
801    }
802    /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
803    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
804    /// <p>If you do not 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>
805    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
806    pub fn set_performance_insights_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
807        self.inner = self.inner.set_performance_insights_kms_key_id(input);
808        self
809    }
810    /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
811    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
812    /// <p>If you do not 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>
813    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
814    pub fn get_performance_insights_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
815        self.inner.get_performance_insights_kms_key_id()
816    }
817    /// <p>The number of days to retain Performance Insights data.</p>
818    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
819    /// <p>Valid Values:</p>
820    /// <ul>
821    /// <li>
822    /// <p><code>7</code></p></li>
823    /// <li>
824    /// <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>
825    /// <li>
826    /// <p><code>731</code></p></li>
827    /// </ul>
828    /// <p>Default: <code>7</code> days</p>
829    /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
830    pub fn performance_insights_retention_period(mut self, input: i32) -> Self {
831        self.inner = self.inner.performance_insights_retention_period(input);
832        self
833    }
834    /// <p>The number of days to retain Performance Insights data.</p>
835    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
836    /// <p>Valid Values:</p>
837    /// <ul>
838    /// <li>
839    /// <p><code>7</code></p></li>
840    /// <li>
841    /// <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>
842    /// <li>
843    /// <p><code>731</code></p></li>
844    /// </ul>
845    /// <p>Default: <code>7</code> days</p>
846    /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
847    pub fn set_performance_insights_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
848        self.inner = self.inner.set_performance_insights_retention_period(input);
849        self
850    }
851    /// <p>The number of days to retain Performance Insights data.</p>
852    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
853    /// <p>Valid Values:</p>
854    /// <ul>
855    /// <li>
856    /// <p><code>7</code></p></li>
857    /// <li>
858    /// <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>
859    /// <li>
860    /// <p><code>731</code></p></li>
861    /// </ul>
862    /// <p>Default: <code>7</code> days</p>
863    /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
864    pub fn get_performance_insights_retention_period(&self) -> &::std::option::Option<i32> {
865        self.inner.get_performance_insights_retention_period()
866    }
867    ///
868    /// Appends an item to `EnableCloudwatchLogsExports`.
869    ///
870    /// To override the contents of this collection use [`set_enable_cloudwatch_logs_exports`](Self::set_enable_cloudwatch_logs_exports).
871    ///
872    /// <p>The list of logs that the new DB instance is to export to CloudWatch Logs. The values in the list depend on the DB engine being used. For more information, 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>
873    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
874    pub fn enable_cloudwatch_logs_exports(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
875        self.inner = self.inner.enable_cloudwatch_logs_exports(input.into());
876        self
877    }
878    /// <p>The list of logs that the new DB instance is to export to CloudWatch Logs. The values in the list depend on the DB engine being used. For more information, 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>
879    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
880    pub fn set_enable_cloudwatch_logs_exports(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
881        self.inner = self.inner.set_enable_cloudwatch_logs_exports(input);
882        self
883    }
884    /// <p>The list of logs that the new DB instance is to export to CloudWatch Logs. The values in the list depend on the DB engine being used. For more information, 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>
885    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
886    pub fn get_enable_cloudwatch_logs_exports(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
887        self.inner.get_enable_cloudwatch_logs_exports()
888    }
889    ///
890    /// Appends an item to `ProcessorFeatures`.
891    ///
892    /// To override the contents of this collection use [`set_processor_features`](Self::set_processor_features).
893    ///
894    /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
895    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
896    pub fn processor_features(mut self, input: crate::types::ProcessorFeature) -> Self {
897        self.inner = self.inner.processor_features(input);
898        self
899    }
900    /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
901    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
902    pub fn set_processor_features(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProcessorFeature>>) -> Self {
903        self.inner = self.inner.set_processor_features(input);
904        self
905    }
906    /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
907    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
908    pub fn get_processor_features(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProcessorFeature>> {
909        self.inner.get_processor_features()
910    }
911    /// <p>Specifies whether the DB instance class of the DB instance uses its default processor features.</p>
912    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
913    pub fn use_default_processor_features(mut self, input: bool) -> Self {
914        self.inner = self.inner.use_default_processor_features(input);
915        self
916    }
917    /// <p>Specifies whether the DB instance class of the DB instance uses its default processor features.</p>
918    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
919    pub fn set_use_default_processor_features(mut self, input: ::std::option::Option<bool>) -> Self {
920        self.inner = self.inner.set_use_default_processor_features(input);
921        self
922    }
923    /// <p>Specifies whether the DB instance class of the DB instance uses its default processor features.</p>
924    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
925    pub fn get_use_default_processor_features(&self) -> &::std::option::Option<bool> {
926        self.inner.get_use_default_processor_features()
927    }
928    /// <p>Specifies whether to enable deletion protection for the DB instance. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html"> Deleting a DB Instance</a>.</p>
929    pub fn deletion_protection(mut self, input: bool) -> Self {
930        self.inner = self.inner.deletion_protection(input);
931        self
932    }
933    /// <p>Specifies whether to enable deletion protection for the DB instance. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html"> Deleting a DB Instance</a>.</p>
934    pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
935        self.inner = self.inner.set_deletion_protection(input);
936        self
937    }
938    /// <p>Specifies whether to enable deletion protection for the DB instance. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html"> Deleting a DB Instance</a>.</p>
939    pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
940        self.inner.get_deletion_protection()
941    }
942    /// <p>The Active Directory directory ID to create the DB instance in. Currently, only MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be created in an Active Directory Domain.</p>
943    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html"> Kerberos Authentication</a> in the <i>Amazon RDS User Guide</i>.</p>
944    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
945    pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
946        self.inner = self.inner.domain(input.into());
947        self
948    }
949    /// <p>The Active Directory directory ID to create the DB instance in. Currently, only MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be created in an Active Directory Domain.</p>
950    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html"> Kerberos Authentication</a> in the <i>Amazon RDS User Guide</i>.</p>
951    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
952    pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
953        self.inner = self.inner.set_domain(input);
954        self
955    }
956    /// <p>The Active Directory directory ID to create the DB instance in. Currently, only MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be created in an Active Directory Domain.</p>
957    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html"> Kerberos Authentication</a> in the <i>Amazon RDS User Guide</i>.</p>
958    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
959    pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
960        self.inner.get_domain()
961    }
962    /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
963    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
964    pub fn domain_iam_role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
965        self.inner = self.inner.domain_iam_role_name(input.into());
966        self
967    }
968    /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
969    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
970    pub fn set_domain_iam_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
971        self.inner = self.inner.set_domain_iam_role_name(input);
972        self
973    }
974    /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
975    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
976    pub fn get_domain_iam_role_name(&self) -> &::std::option::Option<::std::string::String> {
977        self.inner.get_domain_iam_role_name()
978    }
979    /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
980    /// <p>Constraints:</p>
981    /// <ul>
982    /// <li>
983    /// <p>Can't be longer than 64 characters.</p></li>
984    /// </ul>
985    /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
986    pub fn domain_fqdn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
987        self.inner = self.inner.domain_fqdn(input.into());
988        self
989    }
990    /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
991    /// <p>Constraints:</p>
992    /// <ul>
993    /// <li>
994    /// <p>Can't be longer than 64 characters.</p></li>
995    /// </ul>
996    /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
997    pub fn set_domain_fqdn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
998        self.inner = self.inner.set_domain_fqdn(input);
999        self
1000    }
1001    /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
1002    /// <p>Constraints:</p>
1003    /// <ul>
1004    /// <li>
1005    /// <p>Can't be longer than 64 characters.</p></li>
1006    /// </ul>
1007    /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
1008    pub fn get_domain_fqdn(&self) -> &::std::option::Option<::std::string::String> {
1009        self.inner.get_domain_fqdn()
1010    }
1011    /// <p>The Active Directory organizational unit for your DB instance to join.</p>
1012    /// <p>Constraints:</p>
1013    /// <ul>
1014    /// <li>
1015    /// <p>Must be in the distinguished name format.</p></li>
1016    /// <li>
1017    /// <p>Can't be longer than 64 characters.</p></li>
1018    /// </ul>
1019    /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
1020    pub fn domain_ou(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1021        self.inner = self.inner.domain_ou(input.into());
1022        self
1023    }
1024    /// <p>The Active Directory organizational unit for your DB instance to join.</p>
1025    /// <p>Constraints:</p>
1026    /// <ul>
1027    /// <li>
1028    /// <p>Must be in the distinguished name format.</p></li>
1029    /// <li>
1030    /// <p>Can't be longer than 64 characters.</p></li>
1031    /// </ul>
1032    /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
1033    pub fn set_domain_ou(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1034        self.inner = self.inner.set_domain_ou(input);
1035        self
1036    }
1037    /// <p>The Active Directory organizational unit for your DB instance to join.</p>
1038    /// <p>Constraints:</p>
1039    /// <ul>
1040    /// <li>
1041    /// <p>Must be in the distinguished name format.</p></li>
1042    /// <li>
1043    /// <p>Can't be longer than 64 characters.</p></li>
1044    /// </ul>
1045    /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
1046    pub fn get_domain_ou(&self) -> &::std::option::Option<::std::string::String> {
1047        self.inner.get_domain_ou()
1048    }
1049    /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
1050    /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
1051    pub fn domain_auth_secret_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1052        self.inner = self.inner.domain_auth_secret_arn(input.into());
1053        self
1054    }
1055    /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
1056    /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
1057    pub fn set_domain_auth_secret_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1058        self.inner = self.inner.set_domain_auth_secret_arn(input);
1059        self
1060    }
1061    /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
1062    /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
1063    pub fn get_domain_auth_secret_arn(&self) -> &::std::option::Option<::std::string::String> {
1064        self.inner.get_domain_auth_secret_arn()
1065    }
1066    ///
1067    /// Appends an item to `DomainDnsIps`.
1068    ///
1069    /// To override the contents of this collection use [`set_domain_dns_ips`](Self::set_domain_dns_ips).
1070    ///
1071    /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
1072    /// <p>Constraints:</p>
1073    /// <ul>
1074    /// <li>
1075    /// <p>Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list.</p></li>
1076    /// </ul>
1077    /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
1078    pub fn domain_dns_ips(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1079        self.inner = self.inner.domain_dns_ips(input.into());
1080        self
1081    }
1082    /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
1083    /// <p>Constraints:</p>
1084    /// <ul>
1085    /// <li>
1086    /// <p>Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list.</p></li>
1087    /// </ul>
1088    /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
1089    pub fn set_domain_dns_ips(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1090        self.inner = self.inner.set_domain_dns_ips(input);
1091        self
1092    }
1093    /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
1094    /// <p>Constraints:</p>
1095    /// <ul>
1096    /// <li>
1097    /// <p>Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list.</p></li>
1098    /// </ul>
1099    /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
1100    pub fn get_domain_dns_ips(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1101        self.inner.get_domain_dns_ips()
1102    }
1103    /// <p>The open mode of the replica database.</p>
1104    /// <p>This parameter is only supported for Db2 DB instances and Oracle DB instances.</p>
1105    /// <dl>
1106    /// <dt>
1107    /// Db2
1108    /// </dt>
1109    /// <dd>
1110    /// <p>Standby DB replicas are included in Db2 Advanced Edition (AE) and Db2 Standard Edition (SE). The main use case for standby replicas is cross-Region disaster recovery. Because it doesn't accept user connections, a standby replica can't serve a read-only workload.</p>
1111    /// <p>You can create a combination of standby and read-only DB replicas for the same primary DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html">Working with replicas for Amazon RDS for Db2</a> in the <i>Amazon RDS User Guide</i>.</p>
1112    /// <p>To create standby DB replicas for RDS for Db2, set this parameter to <code>mounted</code>.</p>
1113    /// </dd>
1114    /// <dt>
1115    /// Oracle
1116    /// </dt>
1117    /// <dd>
1118    /// <p>Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for mounted replicas is cross-Region disaster recovery. The primary database doesn't use Active Data Guard to transmit information to the mounted replica. Because it doesn't accept user connections, a mounted replica can't serve a read-only workload.</p>
1119    /// <p>You can create a combination of mounted and read-only DB replicas for the same primary DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html">Working with read replicas for Amazon RDS for Oracle</a> in the <i>Amazon RDS User Guide</i>.</p>
1120    /// <p>For RDS Custom, you must specify this parameter and set it to <code>mounted</code>. The value won't be set by default. After replica creation, you can manage the open mode manually.</p>
1121    /// </dd>
1122    /// </dl>
1123    pub fn replica_mode(mut self, input: crate::types::ReplicaMode) -> Self {
1124        self.inner = self.inner.replica_mode(input);
1125        self
1126    }
1127    /// <p>The open mode of the replica database.</p>
1128    /// <p>This parameter is only supported for Db2 DB instances and Oracle DB instances.</p>
1129    /// <dl>
1130    /// <dt>
1131    /// Db2
1132    /// </dt>
1133    /// <dd>
1134    /// <p>Standby DB replicas are included in Db2 Advanced Edition (AE) and Db2 Standard Edition (SE). The main use case for standby replicas is cross-Region disaster recovery. Because it doesn't accept user connections, a standby replica can't serve a read-only workload.</p>
1135    /// <p>You can create a combination of standby and read-only DB replicas for the same primary DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html">Working with replicas for Amazon RDS for Db2</a> in the <i>Amazon RDS User Guide</i>.</p>
1136    /// <p>To create standby DB replicas for RDS for Db2, set this parameter to <code>mounted</code>.</p>
1137    /// </dd>
1138    /// <dt>
1139    /// Oracle
1140    /// </dt>
1141    /// <dd>
1142    /// <p>Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for mounted replicas is cross-Region disaster recovery. The primary database doesn't use Active Data Guard to transmit information to the mounted replica. Because it doesn't accept user connections, a mounted replica can't serve a read-only workload.</p>
1143    /// <p>You can create a combination of mounted and read-only DB replicas for the same primary DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html">Working with read replicas for Amazon RDS for Oracle</a> in the <i>Amazon RDS User Guide</i>.</p>
1144    /// <p>For RDS Custom, you must specify this parameter and set it to <code>mounted</code>. The value won't be set by default. After replica creation, you can manage the open mode manually.</p>
1145    /// </dd>
1146    /// </dl>
1147    pub fn set_replica_mode(mut self, input: ::std::option::Option<crate::types::ReplicaMode>) -> Self {
1148        self.inner = self.inner.set_replica_mode(input);
1149        self
1150    }
1151    /// <p>The open mode of the replica database.</p>
1152    /// <p>This parameter is only supported for Db2 DB instances and Oracle DB instances.</p>
1153    /// <dl>
1154    /// <dt>
1155    /// Db2
1156    /// </dt>
1157    /// <dd>
1158    /// <p>Standby DB replicas are included in Db2 Advanced Edition (AE) and Db2 Standard Edition (SE). The main use case for standby replicas is cross-Region disaster recovery. Because it doesn't accept user connections, a standby replica can't serve a read-only workload.</p>
1159    /// <p>You can create a combination of standby and read-only DB replicas for the same primary DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html">Working with replicas for Amazon RDS for Db2</a> in the <i>Amazon RDS User Guide</i>.</p>
1160    /// <p>To create standby DB replicas for RDS for Db2, set this parameter to <code>mounted</code>.</p>
1161    /// </dd>
1162    /// <dt>
1163    /// Oracle
1164    /// </dt>
1165    /// <dd>
1166    /// <p>Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for mounted replicas is cross-Region disaster recovery. The primary database doesn't use Active Data Guard to transmit information to the mounted replica. Because it doesn't accept user connections, a mounted replica can't serve a read-only workload.</p>
1167    /// <p>You can create a combination of mounted and read-only DB replicas for the same primary DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html">Working with read replicas for Amazon RDS for Oracle</a> in the <i>Amazon RDS User Guide</i>.</p>
1168    /// <p>For RDS Custom, you must specify this parameter and set it to <code>mounted</code>. The value won't be set by default. After replica creation, you can manage the open mode manually.</p>
1169    /// </dd>
1170    /// </dl>
1171    pub fn get_replica_mode(&self) -> &::std::option::Option<crate::types::ReplicaMode> {
1172        self.inner.get_replica_mode()
1173    }
1174    /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts read replica.</p>
1175    /// <p>A <i>CoIP</i> provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the read replica from outside of its virtual private cloud (VPC) on your local network.</p>
1176    /// <p>For more information about RDS on Outposts, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
1177    /// <p>For more information about CoIPs, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing">Customer-owned IP addresses</a> in the <i>Amazon Web Services Outposts User Guide</i>.</p>
1178    pub fn enable_customer_owned_ip(mut self, input: bool) -> Self {
1179        self.inner = self.inner.enable_customer_owned_ip(input);
1180        self
1181    }
1182    /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts read replica.</p>
1183    /// <p>A <i>CoIP</i> provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the read replica from outside of its virtual private cloud (VPC) on your local network.</p>
1184    /// <p>For more information about RDS on Outposts, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
1185    /// <p>For more information about CoIPs, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing">Customer-owned IP addresses</a> in the <i>Amazon Web Services Outposts User Guide</i>.</p>
1186    pub fn set_enable_customer_owned_ip(mut self, input: ::std::option::Option<bool>) -> Self {
1187        self.inner = self.inner.set_enable_customer_owned_ip(input);
1188        self
1189    }
1190    /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts read replica.</p>
1191    /// <p>A <i>CoIP</i> provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the read replica from outside of its virtual private cloud (VPC) on your local network.</p>
1192    /// <p>For more information about RDS on Outposts, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
1193    /// <p>For more information about CoIPs, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing">Customer-owned IP addresses</a> in the <i>Amazon Web Services Outposts User Guide</i>.</p>
1194    pub fn get_enable_customer_owned_ip(&self) -> &::std::option::Option<bool> {
1195        self.inner.get_enable_customer_owned_ip()
1196    }
1197    /// <p>The network type of the DB instance.</p>
1198    /// <p>Valid Values:</p>
1199    /// <ul>
1200    /// <li>
1201    /// <p><code>IPV4</code></p></li>
1202    /// <li>
1203    /// <p><code>DUAL</code></p></li>
1204    /// </ul>
1205    /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for read replica. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1206    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide.</i></p>
1207    pub fn network_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1208        self.inner = self.inner.network_type(input.into());
1209        self
1210    }
1211    /// <p>The network type of the DB instance.</p>
1212    /// <p>Valid Values:</p>
1213    /// <ul>
1214    /// <li>
1215    /// <p><code>IPV4</code></p></li>
1216    /// <li>
1217    /// <p><code>DUAL</code></p></li>
1218    /// </ul>
1219    /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for read replica. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1220    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide.</i></p>
1221    pub fn set_network_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1222        self.inner = self.inner.set_network_type(input);
1223        self
1224    }
1225    /// <p>The network type of the DB instance.</p>
1226    /// <p>Valid Values:</p>
1227    /// <ul>
1228    /// <li>
1229    /// <p><code>IPV4</code></p></li>
1230    /// <li>
1231    /// <p><code>DUAL</code></p></li>
1232    /// </ul>
1233    /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for read replica. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1234    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide.</i></p>
1235    pub fn get_network_type(&self) -> &::std::option::Option<::std::string::String> {
1236        self.inner.get_network_type()
1237    }
1238    /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
1239    /// <p>For more information about this setting, including limitations that apply to it, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling"> Managing capacity automatically with Amazon RDS storage autoscaling</a> in the <i>Amazon RDS User Guide</i>.</p>
1240    pub fn max_allocated_storage(mut self, input: i32) -> Self {
1241        self.inner = self.inner.max_allocated_storage(input);
1242        self
1243    }
1244    /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
1245    /// <p>For more information about this setting, including limitations that apply to it, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling"> Managing capacity automatically with Amazon RDS storage autoscaling</a> in the <i>Amazon RDS User Guide</i>.</p>
1246    pub fn set_max_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
1247        self.inner = self.inner.set_max_allocated_storage(input);
1248        self
1249    }
1250    /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
1251    /// <p>For more information about this setting, including limitations that apply to it, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling"> Managing capacity automatically with Amazon RDS storage autoscaling</a> in the <i>Amazon RDS User Guide</i>.</p>
1252    pub fn get_max_allocated_storage(&self) -> &::std::option::Option<i32> {
1253        self.inner.get_max_allocated_storage()
1254    }
1255    /// <p>The location where RDS stores automated backups and manual snapshots.</p>
1256    /// <p>Valid Values:</p>
1257    /// <ul>
1258    /// <li>
1259    /// <p><code>local</code> for Dedicated Local Zones</p></li>
1260    /// <li>
1261    /// <p><code>region</code> for Amazon Web Services Region</p></li>
1262    /// </ul>
1263    pub fn backup_target(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1264        self.inner = self.inner.backup_target(input.into());
1265        self
1266    }
1267    /// <p>The location where RDS stores automated backups and manual snapshots.</p>
1268    /// <p>Valid Values:</p>
1269    /// <ul>
1270    /// <li>
1271    /// <p><code>local</code> for Dedicated Local Zones</p></li>
1272    /// <li>
1273    /// <p><code>region</code> for Amazon Web Services Region</p></li>
1274    /// </ul>
1275    pub fn set_backup_target(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1276        self.inner = self.inner.set_backup_target(input);
1277        self
1278    }
1279    /// <p>The location where RDS stores automated backups and manual snapshots.</p>
1280    /// <p>Valid Values:</p>
1281    /// <ul>
1282    /// <li>
1283    /// <p><code>local</code> for Dedicated Local Zones</p></li>
1284    /// <li>
1285    /// <p><code>region</code> for Amazon Web Services Region</p></li>
1286    /// </ul>
1287    pub fn get_backup_target(&self) -> &::std::option::Option<::std::string::String> {
1288        self.inner.get_backup_target()
1289    }
1290    /// <p>The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The instance profile must meet the following requirements:</p>
1291    /// <ul>
1292    /// <li>
1293    /// <p>The profile must exist in your account.</p></li>
1294    /// <li>
1295    /// <p>The profile must have an IAM role that Amazon EC2 has permissions to assume.</p></li>
1296    /// <li>
1297    /// <p>The instance profile name and the associated IAM role name must start with the prefix <code>AWSRDSCustom</code>.</p></li>
1298    /// </ul>
1299    /// <p>For the list of permissions required for the IAM role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc"> Configure IAM and your VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
1300    /// <p>This setting is required for RDS Custom DB instances.</p>
1301    pub fn custom_iam_instance_profile(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1302        self.inner = self.inner.custom_iam_instance_profile(input.into());
1303        self
1304    }
1305    /// <p>The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The instance profile must meet the following requirements:</p>
1306    /// <ul>
1307    /// <li>
1308    /// <p>The profile must exist in your account.</p></li>
1309    /// <li>
1310    /// <p>The profile must have an IAM role that Amazon EC2 has permissions to assume.</p></li>
1311    /// <li>
1312    /// <p>The instance profile name and the associated IAM role name must start with the prefix <code>AWSRDSCustom</code>.</p></li>
1313    /// </ul>
1314    /// <p>For the list of permissions required for the IAM role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc"> Configure IAM and your VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
1315    /// <p>This setting is required for RDS Custom DB instances.</p>
1316    pub fn set_custom_iam_instance_profile(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1317        self.inner = self.inner.set_custom_iam_instance_profile(input);
1318        self
1319    }
1320    /// <p>The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The instance profile must meet the following requirements:</p>
1321    /// <ul>
1322    /// <li>
1323    /// <p>The profile must exist in your account.</p></li>
1324    /// <li>
1325    /// <p>The profile must have an IAM role that Amazon EC2 has permissions to assume.</p></li>
1326    /// <li>
1327    /// <p>The instance profile name and the associated IAM role name must start with the prefix <code>AWSRDSCustom</code>.</p></li>
1328    /// </ul>
1329    /// <p>For the list of permissions required for the IAM role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc"> Configure IAM and your VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
1330    /// <p>This setting is required for RDS Custom DB instances.</p>
1331    pub fn get_custom_iam_instance_profile(&self) -> &::std::option::Option<::std::string::String> {
1332        self.inner.get_custom_iam_instance_profile()
1333    }
1334    /// <p>The amount of storage (in gibibytes) to allocate initially for the read replica. Follow the allocation rules specified in <code>CreateDBInstance</code>.</p>
1335    /// <p>This setting isn't valid for RDS for SQL Server.</p><note>
1336    /// <p>Be sure to allocate enough storage for your read replica so that the create operation can succeed. You can also allocate additional storage for future growth.</p>
1337    /// </note>
1338    pub fn allocated_storage(mut self, input: i32) -> Self {
1339        self.inner = self.inner.allocated_storage(input);
1340        self
1341    }
1342    /// <p>The amount of storage (in gibibytes) to allocate initially for the read replica. Follow the allocation rules specified in <code>CreateDBInstance</code>.</p>
1343    /// <p>This setting isn't valid for RDS for SQL Server.</p><note>
1344    /// <p>Be sure to allocate enough storage for your read replica so that the create operation can succeed. You can also allocate additional storage for future growth.</p>
1345    /// </note>
1346    pub fn set_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
1347        self.inner = self.inner.set_allocated_storage(input);
1348        self
1349    }
1350    /// <p>The amount of storage (in gibibytes) to allocate initially for the read replica. Follow the allocation rules specified in <code>CreateDBInstance</code>.</p>
1351    /// <p>This setting isn't valid for RDS for SQL Server.</p><note>
1352    /// <p>Be sure to allocate enough storage for your read replica so that the create operation can succeed. You can also allocate additional storage for future growth.</p>
1353    /// </note>
1354    pub fn get_allocated_storage(&self) -> &::std::option::Option<i32> {
1355        self.inner.get_allocated_storage()
1356    }
1357    /// <p>The identifier of the Multi-AZ DB cluster that will act as the source for the read replica. Each DB cluster can have up to 15 read replicas.</p>
1358    /// <p>Constraints:</p>
1359    /// <ul>
1360    /// <li>
1361    /// <p>Must be the identifier of an existing Multi-AZ DB cluster.</p></li>
1362    /// <li>
1363    /// <p>Can't be specified if the <code>SourceDBInstanceIdentifier</code> parameter is also specified.</p></li>
1364    /// <li>
1365    /// <p>The specified DB cluster must have automatic backups enabled, that is, its backup retention period must be greater than 0.</p></li>
1366    /// <li>
1367    /// <p>The source DB cluster must be in the same Amazon Web Services Region as the read replica. Cross-Region replication isn't supported.</p></li>
1368    /// </ul>
1369    pub fn source_db_cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1370        self.inner = self.inner.source_db_cluster_identifier(input.into());
1371        self
1372    }
1373    /// <p>The identifier of the Multi-AZ DB cluster that will act as the source for the read replica. Each DB cluster can have up to 15 read replicas.</p>
1374    /// <p>Constraints:</p>
1375    /// <ul>
1376    /// <li>
1377    /// <p>Must be the identifier of an existing Multi-AZ DB cluster.</p></li>
1378    /// <li>
1379    /// <p>Can't be specified if the <code>SourceDBInstanceIdentifier</code> parameter is also specified.</p></li>
1380    /// <li>
1381    /// <p>The specified DB cluster must have automatic backups enabled, that is, its backup retention period must be greater than 0.</p></li>
1382    /// <li>
1383    /// <p>The source DB cluster must be in the same Amazon Web Services Region as the read replica. Cross-Region replication isn't supported.</p></li>
1384    /// </ul>
1385    pub fn set_source_db_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1386        self.inner = self.inner.set_source_db_cluster_identifier(input);
1387        self
1388    }
1389    /// <p>The identifier of the Multi-AZ DB cluster that will act as the source for the read replica. Each DB cluster can have up to 15 read replicas.</p>
1390    /// <p>Constraints:</p>
1391    /// <ul>
1392    /// <li>
1393    /// <p>Must be the identifier of an existing Multi-AZ DB cluster.</p></li>
1394    /// <li>
1395    /// <p>Can't be specified if the <code>SourceDBInstanceIdentifier</code> parameter is also specified.</p></li>
1396    /// <li>
1397    /// <p>The specified DB cluster must have automatic backups enabled, that is, its backup retention period must be greater than 0.</p></li>
1398    /// <li>
1399    /// <p>The source DB cluster must be in the same Amazon Web Services Region as the read replica. Cross-Region replication isn't supported.</p></li>
1400    /// </ul>
1401    pub fn get_source_db_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
1402        self.inner.get_source_db_cluster_identifier()
1403    }
1404    /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
1405    pub fn dedicated_log_volume(mut self, input: bool) -> Self {
1406        self.inner = self.inner.dedicated_log_volume(input);
1407        self
1408    }
1409    /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
1410    pub fn set_dedicated_log_volume(mut self, input: ::std::option::Option<bool>) -> Self {
1411        self.inner = self.inner.set_dedicated_log_volume(input);
1412        self
1413    }
1414    /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
1415    pub fn get_dedicated_log_volume(&self) -> &::std::option::Option<bool> {
1416        self.inner.get_dedicated_log_volume()
1417    }
1418    /// <p>Whether to upgrade the storage file system configuration on the read replica. This option migrates the read replica from the old storage file system layout to the preferred layout.</p>
1419    pub fn upgrade_storage_config(mut self, input: bool) -> Self {
1420        self.inner = self.inner.upgrade_storage_config(input);
1421        self
1422    }
1423    /// <p>Whether to upgrade the storage file system configuration on the read replica. This option migrates the read replica from the old storage file system layout to the preferred layout.</p>
1424    pub fn set_upgrade_storage_config(mut self, input: ::std::option::Option<bool>) -> Self {
1425        self.inner = self.inner.set_upgrade_storage_config(input);
1426        self
1427    }
1428    /// <p>Whether to upgrade the storage file system configuration on the read replica. This option migrates the read replica from the old storage file system layout to the preferred layout.</p>
1429    pub fn get_upgrade_storage_config(&self) -> &::std::option::Option<bool> {
1430        self.inner.get_upgrade_storage_config()
1431    }
1432    /// <p>The CA certificate identifier to use for the read replica's server certificate.</p>
1433    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1434    /// <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> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html"> Using SSL/TLS to encrypt a connection to a DB cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
1435    pub fn ca_certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1436        self.inner = self.inner.ca_certificate_identifier(input.into());
1437        self
1438    }
1439    /// <p>The CA certificate identifier to use for the read replica's server certificate.</p>
1440    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1441    /// <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> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html"> Using SSL/TLS to encrypt a connection to a DB cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
1442    pub fn set_ca_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1443        self.inner = self.inner.set_ca_certificate_identifier(input);
1444        self
1445    }
1446    /// <p>The CA certificate identifier to use for the read replica's server certificate.</p>
1447    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1448    /// <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> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html"> Using SSL/TLS to encrypt a connection to a DB cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
1449    pub fn get_ca_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
1450        self.inner.get_ca_certificate_identifier()
1451    }
1452}