aws_sdk_rds/operation/modify_db_instance/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::modify_db_instance::_modify_db_instance_output::ModifyDbInstanceOutputBuilder;
3
4pub use crate::operation::modify_db_instance::_modify_db_instance_input::ModifyDbInstanceInputBuilder;
5
6impl crate::operation::modify_db_instance::builders::ModifyDbInstanceInputBuilder {
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::modify_db_instance::ModifyDbInstanceOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::modify_db_instance::ModifyDBInstanceError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.modify_db_instance();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `ModifyDBInstance`.
24///
25/// <p>Modifies settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. To learn what modifications you can make to your DB instance, call <code>DescribeValidDBInstanceModifications</code> before you call <code>ModifyDBInstance</code>.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct ModifyDBInstanceFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::modify_db_instance::builders::ModifyDbInstanceInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::modify_db_instance::ModifyDbInstanceOutput,
35 crate::operation::modify_db_instance::ModifyDBInstanceError,
36 > for ModifyDBInstanceFluentBuilder
37{
38 fn send(
39 self,
40 config_override: crate::config::Builder,
41 ) -> crate::client::customize::internal::BoxFuture<
42 crate::client::customize::internal::SendResult<
43 crate::operation::modify_db_instance::ModifyDbInstanceOutput,
44 crate::operation::modify_db_instance::ModifyDBInstanceError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl ModifyDBInstanceFluentBuilder {
51 /// Creates a new `ModifyDBInstanceFluentBuilder`.
52 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53 Self {
54 handle,
55 inner: ::std::default::Default::default(),
56 config_override: ::std::option::Option::None,
57 }
58 }
59 /// Access the ModifyDBInstance as a reference.
60 pub fn as_input(&self) -> &crate::operation::modify_db_instance::builders::ModifyDbInstanceInputBuilder {
61 &self.inner
62 }
63 /// Sends the request and returns the response.
64 ///
65 /// If an error occurs, an `SdkError` will be returned with additional details that
66 /// can be matched against.
67 ///
68 /// By default, any retryable failures will be retried twice. Retry behavior
69 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70 /// set when configuring the client.
71 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::modify_db_instance::ModifyDbInstanceOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::modify_db_instance::ModifyDBInstanceError,
77 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78 >,
79 > {
80 let input = self
81 .inner
82 .build()
83 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84 let runtime_plugins = crate::operation::modify_db_instance::ModifyDBInstance::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::modify_db_instance::ModifyDBInstance::orchestrate(&runtime_plugins, input).await
90 }
91
92 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::modify_db_instance::ModifyDbInstanceOutput,
97 crate::operation::modify_db_instance::ModifyDBInstanceError,
98 Self,
99 > {
100 crate::client::customize::CustomizableOperation::new(self)
101 }
102 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103 self.set_config_override(::std::option::Option::Some(config_override.into()));
104 self
105 }
106
107 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108 self.config_override = config_override;
109 self
110 }
111 /// <p>The identifier of DB instance to modify. This value is stored as a lowercase string.</p>
112 /// <p>Constraints:</p>
113 /// <ul>
114 /// <li>
115 /// <p>Must match the identifier of an existing DB instance.</p></li>
116 /// </ul>
117 pub fn db_instance_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
118 self.inner = self.inner.db_instance_identifier(input.into());
119 self
120 }
121 /// <p>The identifier of DB instance to modify. This value is stored as a lowercase string.</p>
122 /// <p>Constraints:</p>
123 /// <ul>
124 /// <li>
125 /// <p>Must match the identifier of an existing DB instance.</p></li>
126 /// </ul>
127 pub fn set_db_instance_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
128 self.inner = self.inner.set_db_instance_identifier(input);
129 self
130 }
131 /// <p>The identifier of DB instance to modify. This value is stored as a lowercase string.</p>
132 /// <p>Constraints:</p>
133 /// <ul>
134 /// <li>
135 /// <p>Must match the identifier of an existing DB instance.</p></li>
136 /// </ul>
137 pub fn get_db_instance_identifier(&self) -> &::std::option::Option<::std::string::String> {
138 self.inner.get_db_instance_identifier()
139 }
140 /// <p>The new amount of storage in gibibytes (GiB) to allocate for the DB instance.</p>
141 /// <p>For RDS for Db2, MariaDB, RDS for MySQL, RDS for Oracle, and RDS for PostgreSQL, the value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.</p>
142 /// <p>For the valid values for allocated storage for each engine, see <code>CreateDBInstance</code>.</p>
143 /// <p>Constraints:</p>
144 /// <ul>
145 /// <li>
146 /// <p>When you increase the allocated storage for a DB instance that uses Provisioned IOPS (<code>gp3</code>, <code>io1</code>, or <code>io2</code> storage type), you must also specify the <code>Iops</code> parameter. You can use the current value for <code>Iops</code>.</p></li>
147 /// </ul>
148 pub fn allocated_storage(mut self, input: i32) -> Self {
149 self.inner = self.inner.allocated_storage(input);
150 self
151 }
152 /// <p>The new amount of storage in gibibytes (GiB) to allocate for the DB instance.</p>
153 /// <p>For RDS for Db2, MariaDB, RDS for MySQL, RDS for Oracle, and RDS for PostgreSQL, the value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.</p>
154 /// <p>For the valid values for allocated storage for each engine, see <code>CreateDBInstance</code>.</p>
155 /// <p>Constraints:</p>
156 /// <ul>
157 /// <li>
158 /// <p>When you increase the allocated storage for a DB instance that uses Provisioned IOPS (<code>gp3</code>, <code>io1</code>, or <code>io2</code> storage type), you must also specify the <code>Iops</code> parameter. You can use the current value for <code>Iops</code>.</p></li>
159 /// </ul>
160 pub fn set_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
161 self.inner = self.inner.set_allocated_storage(input);
162 self
163 }
164 /// <p>The new amount of storage in gibibytes (GiB) to allocate for the DB instance.</p>
165 /// <p>For RDS for Db2, MariaDB, RDS for MySQL, RDS for Oracle, and RDS for PostgreSQL, the value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.</p>
166 /// <p>For the valid values for allocated storage for each engine, see <code>CreateDBInstance</code>.</p>
167 /// <p>Constraints:</p>
168 /// <ul>
169 /// <li>
170 /// <p>When you increase the allocated storage for a DB instance that uses Provisioned IOPS (<code>gp3</code>, <code>io1</code>, or <code>io2</code> storage type), you must also specify the <code>Iops</code> parameter. You can use the current value for <code>Iops</code>.</p></li>
171 /// </ul>
172 pub fn get_allocated_storage(&self) -> &::std::option::Option<i32> {
173 self.inner.get_allocated_storage()
174 }
175 /// <p>The new compute and memory capacity of the DB instance, for example <code>db.m4.large</code>. 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> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html">Aurora DB instance classes</a> in the <i>Amazon Aurora User Guide</i>. For RDS Custom, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits.html#custom-reqs-limits.instances">DB instance class support for RDS Custom for Oracle</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html#custom-reqs-limits.instancesMS"> DB instance class support for RDS Custom for SQL Server</a>.</p>
176 /// <p>If you modify the DB instance class, an outage occurs during the change. The change is applied during the next maintenance window, unless you specify <code>ApplyImmediately</code> in your request.</p>
177 /// <p>Default: Uses existing setting</p>
178 /// <p>Constraints:</p>
179 /// <ul>
180 /// <li>
181 /// <p>If you are modifying the DB instance class and upgrading the engine version at the same time, the currently running engine version must be supported on the specified DB instance class. Otherwise, the operation returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class.</p></li>
182 /// </ul>
183 pub fn db_instance_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
184 self.inner = self.inner.db_instance_class(input.into());
185 self
186 }
187 /// <p>The new compute and memory capacity of the DB instance, for example <code>db.m4.large</code>. 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> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html">Aurora DB instance classes</a> in the <i>Amazon Aurora User Guide</i>. For RDS Custom, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits.html#custom-reqs-limits.instances">DB instance class support for RDS Custom for Oracle</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html#custom-reqs-limits.instancesMS"> DB instance class support for RDS Custom for SQL Server</a>.</p>
188 /// <p>If you modify the DB instance class, an outage occurs during the change. The change is applied during the next maintenance window, unless you specify <code>ApplyImmediately</code> in your request.</p>
189 /// <p>Default: Uses existing setting</p>
190 /// <p>Constraints:</p>
191 /// <ul>
192 /// <li>
193 /// <p>If you are modifying the DB instance class and upgrading the engine version at the same time, the currently running engine version must be supported on the specified DB instance class. Otherwise, the operation returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class.</p></li>
194 /// </ul>
195 pub fn set_db_instance_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
196 self.inner = self.inner.set_db_instance_class(input);
197 self
198 }
199 /// <p>The new compute and memory capacity of the DB instance, for example <code>db.m4.large</code>. 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> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html">Aurora DB instance classes</a> in the <i>Amazon Aurora User Guide</i>. For RDS Custom, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits.html#custom-reqs-limits.instances">DB instance class support for RDS Custom for Oracle</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html#custom-reqs-limits.instancesMS"> DB instance class support for RDS Custom for SQL Server</a>.</p>
200 /// <p>If you modify the DB instance class, an outage occurs during the change. The change is applied during the next maintenance window, unless you specify <code>ApplyImmediately</code> in your request.</p>
201 /// <p>Default: Uses existing setting</p>
202 /// <p>Constraints:</p>
203 /// <ul>
204 /// <li>
205 /// <p>If you are modifying the DB instance class and upgrading the engine version at the same time, the currently running engine version must be supported on the specified DB instance class. Otherwise, the operation returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class.</p></li>
206 /// </ul>
207 pub fn get_db_instance_class(&self) -> &::std::option::Option<::std::string::String> {
208 self.inner.get_db_instance_class()
209 }
210 /// <p>The new DB subnet group for the DB instance. You can use this parameter to move your DB instance to a different VPC. If your DB instance isn't in a VPC, you can also use this parameter to move your DB instance into a VPC. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Non-VPC2VPC">Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
211 /// <p>Changing the subnet group causes an outage during the change. The change is applied during the next maintenance window, unless you enable <code>ApplyImmediately</code>.</p>
212 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
213 /// <p>Constraints:</p>
214 /// <ul>
215 /// <li>
216 /// <p>If supplied, must match existing DB subnet group.</p></li>
217 /// </ul>
218 /// <p>Example: <code>mydbsubnetgroup</code></p>
219 pub fn db_subnet_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
220 self.inner = self.inner.db_subnet_group_name(input.into());
221 self
222 }
223 /// <p>The new DB subnet group for the DB instance. You can use this parameter to move your DB instance to a different VPC. If your DB instance isn't in a VPC, you can also use this parameter to move your DB instance into a VPC. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Non-VPC2VPC">Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
224 /// <p>Changing the subnet group causes an outage during the change. The change is applied during the next maintenance window, unless you enable <code>ApplyImmediately</code>.</p>
225 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
226 /// <p>Constraints:</p>
227 /// <ul>
228 /// <li>
229 /// <p>If supplied, must match existing DB subnet group.</p></li>
230 /// </ul>
231 /// <p>Example: <code>mydbsubnetgroup</code></p>
232 pub fn set_db_subnet_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
233 self.inner = self.inner.set_db_subnet_group_name(input);
234 self
235 }
236 /// <p>The new DB subnet group for the DB instance. You can use this parameter to move your DB instance to a different VPC. If your DB instance isn't in a VPC, you can also use this parameter to move your DB instance into a VPC. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Non-VPC2VPC">Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
237 /// <p>Changing the subnet group causes an outage during the change. The change is applied during the next maintenance window, unless you enable <code>ApplyImmediately</code>.</p>
238 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
239 /// <p>Constraints:</p>
240 /// <ul>
241 /// <li>
242 /// <p>If supplied, must match existing DB subnet group.</p></li>
243 /// </ul>
244 /// <p>Example: <code>mydbsubnetgroup</code></p>
245 pub fn get_db_subnet_group_name(&self) -> &::std::option::Option<::std::string::String> {
246 self.inner.get_db_subnet_group_name()
247 }
248 ///
249 /// Appends an item to `DBSecurityGroups`.
250 ///
251 /// To override the contents of this collection use [`set_db_security_groups`](Self::set_db_security_groups).
252 ///
253 /// <p>A list of DB security groups to authorize on this DB instance. Changing this setting doesn't result in an outage and the change is asynchronously applied as soon as possible.</p>
254 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
255 /// <p>Constraints:</p>
256 /// <ul>
257 /// <li>
258 /// <p>If supplied, must match existing DB security groups.</p></li>
259 /// </ul>
260 pub fn db_security_groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
261 self.inner = self.inner.db_security_groups(input.into());
262 self
263 }
264 /// <p>A list of DB security groups to authorize on this DB instance. Changing this setting doesn't result in an outage and the change is asynchronously applied as soon as possible.</p>
265 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
266 /// <p>Constraints:</p>
267 /// <ul>
268 /// <li>
269 /// <p>If supplied, must match existing DB security groups.</p></li>
270 /// </ul>
271 pub fn set_db_security_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
272 self.inner = self.inner.set_db_security_groups(input);
273 self
274 }
275 /// <p>A list of DB security groups to authorize on this DB instance. Changing this setting doesn't result in an outage and the change is asynchronously applied as soon as possible.</p>
276 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
277 /// <p>Constraints:</p>
278 /// <ul>
279 /// <li>
280 /// <p>If supplied, must match existing DB security groups.</p></li>
281 /// </ul>
282 pub fn get_db_security_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
283 self.inner.get_db_security_groups()
284 }
285 ///
286 /// Appends an item to `VpcSecurityGroupIds`.
287 ///
288 /// To override the contents of this collection use [`set_vpc_security_group_ids`](Self::set_vpc_security_group_ids).
289 ///
290 /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance. This change is asynchronously applied as soon as possible.</p>
291 /// <p>This setting doesn't apply to the following DB instances:</p>
292 /// <ul>
293 /// <li>
294 /// <p>Amazon Aurora (The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.)</p></li>
295 /// <li>
296 /// <p>RDS Custom</p></li>
297 /// </ul>
298 /// <p>Constraints:</p>
299 /// <ul>
300 /// <li>
301 /// <p>If supplied, must match existing VPC security group IDs.</p></li>
302 /// </ul>
303 pub fn vpc_security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
304 self.inner = self.inner.vpc_security_group_ids(input.into());
305 self
306 }
307 /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance. This change is asynchronously applied as soon as possible.</p>
308 /// <p>This setting doesn't apply to the following DB instances:</p>
309 /// <ul>
310 /// <li>
311 /// <p>Amazon Aurora (The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.)</p></li>
312 /// <li>
313 /// <p>RDS Custom</p></li>
314 /// </ul>
315 /// <p>Constraints:</p>
316 /// <ul>
317 /// <li>
318 /// <p>If supplied, must match existing VPC security group IDs.</p></li>
319 /// </ul>
320 pub fn set_vpc_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
321 self.inner = self.inner.set_vpc_security_group_ids(input);
322 self
323 }
324 /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance. This change is asynchronously applied as soon as possible.</p>
325 /// <p>This setting doesn't apply to the following DB instances:</p>
326 /// <ul>
327 /// <li>
328 /// <p>Amazon Aurora (The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.)</p></li>
329 /// <li>
330 /// <p>RDS Custom</p></li>
331 /// </ul>
332 /// <p>Constraints:</p>
333 /// <ul>
334 /// <li>
335 /// <p>If supplied, must match existing VPC security group IDs.</p></li>
336 /// </ul>
337 pub fn get_vpc_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
338 self.inner.get_vpc_security_group_ids()
339 }
340 /// <p>Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the <code>PreferredMaintenanceWindow</code> setting for the DB instance. By default, this parameter is disabled.</p>
341 /// <p>If this parameter is disabled, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and are applied on the next call to <code>RebootDBInstance</code>, or the next failure reboot. Review the table of parameters in <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html">Modifying a DB Instance</a> in the <i>Amazon RDS User Guide</i> to see the impact of enabling or disabling <code>ApplyImmediately</code> for each modified parameter and to determine when the changes are applied.</p>
342 pub fn apply_immediately(mut self, input: bool) -> Self {
343 self.inner = self.inner.apply_immediately(input);
344 self
345 }
346 /// <p>Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the <code>PreferredMaintenanceWindow</code> setting for the DB instance. By default, this parameter is disabled.</p>
347 /// <p>If this parameter is disabled, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and are applied on the next call to <code>RebootDBInstance</code>, or the next failure reboot. Review the table of parameters in <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html">Modifying a DB Instance</a> in the <i>Amazon RDS User Guide</i> to see the impact of enabling or disabling <code>ApplyImmediately</code> for each modified parameter and to determine when the changes are applied.</p>
348 pub fn set_apply_immediately(mut self, input: ::std::option::Option<bool>) -> Self {
349 self.inner = self.inner.set_apply_immediately(input);
350 self
351 }
352 /// <p>Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the <code>PreferredMaintenanceWindow</code> setting for the DB instance. By default, this parameter is disabled.</p>
353 /// <p>If this parameter is disabled, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and are applied on the next call to <code>RebootDBInstance</code>, or the next failure reboot. Review the table of parameters in <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html">Modifying a DB Instance</a> in the <i>Amazon RDS User Guide</i> to see the impact of enabling or disabling <code>ApplyImmediately</code> for each modified parameter and to determine when the changes are applied.</p>
354 pub fn get_apply_immediately(&self) -> &::std::option::Option<bool> {
355 self.inner.get_apply_immediately()
356 }
357 /// <p>The new password for the master user.</p>
358 /// <p>Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the <code>MasterUserPassword</code> element exists in the <code>PendingModifiedValues</code> element of the operation response.</p><note>
359 /// <p>Amazon RDS API operations never return the password, so this operation provides a way to regain access to a primary instance user if the password is lost. This includes restoring privileges that might have been accidentally revoked.</p>
360 /// </note>
361 /// <p>This setting doesn't apply to the following DB instances:</p>
362 /// <ul>
363 /// <li>
364 /// <p>Amazon Aurora</p>
365 /// <p>The password for the master user is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p></li>
366 /// <li>
367 /// <p>RDS Custom</p></li>
368 /// <li>
369 /// <p>RDS for Oracle CDBs in the multi-tenant configuration</p>
370 /// <p>Specify the master password in <code>ModifyTenantDatabase</code> instead.</p></li>
371 /// </ul>
372 /// <p>Default: Uses existing setting</p>
373 /// <p>Constraints:</p>
374 /// <ul>
375 /// <li>
376 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
377 /// <li>
378 /// <p>Can include any printable ASCII character except "/", """, or "@". For RDS for Oracle, can't include the "&" (ampersand) or the "'" (single quotes) character.</p></li>
379 /// </ul>
380 /// <p>Length Constraints:</p>
381 /// <ul>
382 /// <li>
383 /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
384 /// <li>
385 /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
386 /// <li>
387 /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
388 /// <li>
389 /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
390 /// <li>
391 /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
392 /// <li>
393 /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
394 /// </ul>
395 pub fn master_user_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
396 self.inner = self.inner.master_user_password(input.into());
397 self
398 }
399 /// <p>The new password for the master user.</p>
400 /// <p>Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the <code>MasterUserPassword</code> element exists in the <code>PendingModifiedValues</code> element of the operation response.</p><note>
401 /// <p>Amazon RDS API operations never return the password, so this operation provides a way to regain access to a primary instance user if the password is lost. This includes restoring privileges that might have been accidentally revoked.</p>
402 /// </note>
403 /// <p>This setting doesn't apply to the following DB instances:</p>
404 /// <ul>
405 /// <li>
406 /// <p>Amazon Aurora</p>
407 /// <p>The password for the master user is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p></li>
408 /// <li>
409 /// <p>RDS Custom</p></li>
410 /// <li>
411 /// <p>RDS for Oracle CDBs in the multi-tenant configuration</p>
412 /// <p>Specify the master password in <code>ModifyTenantDatabase</code> instead.</p></li>
413 /// </ul>
414 /// <p>Default: Uses existing setting</p>
415 /// <p>Constraints:</p>
416 /// <ul>
417 /// <li>
418 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
419 /// <li>
420 /// <p>Can include any printable ASCII character except "/", """, or "@". For RDS for Oracle, can't include the "&" (ampersand) or the "'" (single quotes) character.</p></li>
421 /// </ul>
422 /// <p>Length Constraints:</p>
423 /// <ul>
424 /// <li>
425 /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
426 /// <li>
427 /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
428 /// <li>
429 /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
430 /// <li>
431 /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
432 /// <li>
433 /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
434 /// <li>
435 /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
436 /// </ul>
437 pub fn set_master_user_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
438 self.inner = self.inner.set_master_user_password(input);
439 self
440 }
441 /// <p>The new password for the master user.</p>
442 /// <p>Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the <code>MasterUserPassword</code> element exists in the <code>PendingModifiedValues</code> element of the operation response.</p><note>
443 /// <p>Amazon RDS API operations never return the password, so this operation provides a way to regain access to a primary instance user if the password is lost. This includes restoring privileges that might have been accidentally revoked.</p>
444 /// </note>
445 /// <p>This setting doesn't apply to the following DB instances:</p>
446 /// <ul>
447 /// <li>
448 /// <p>Amazon Aurora</p>
449 /// <p>The password for the master user is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p></li>
450 /// <li>
451 /// <p>RDS Custom</p></li>
452 /// <li>
453 /// <p>RDS for Oracle CDBs in the multi-tenant configuration</p>
454 /// <p>Specify the master password in <code>ModifyTenantDatabase</code> instead.</p></li>
455 /// </ul>
456 /// <p>Default: Uses existing setting</p>
457 /// <p>Constraints:</p>
458 /// <ul>
459 /// <li>
460 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
461 /// <li>
462 /// <p>Can include any printable ASCII character except "/", """, or "@". For RDS for Oracle, can't include the "&" (ampersand) or the "'" (single quotes) character.</p></li>
463 /// </ul>
464 /// <p>Length Constraints:</p>
465 /// <ul>
466 /// <li>
467 /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
468 /// <li>
469 /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
470 /// <li>
471 /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
472 /// <li>
473 /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
474 /// <li>
475 /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
476 /// <li>
477 /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
478 /// </ul>
479 pub fn get_master_user_password(&self) -> &::std::option::Option<::std::string::String> {
480 self.inner.get_master_user_password()
481 }
482 /// <p>The name of the DB parameter group to apply to the DB instance.</p>
483 /// <p>Changing this setting doesn't result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. In this case, the DB instance isn't rebooted automatically, and the parameter changes aren't applied during the next maintenance window. However, if you modify dynamic parameters in the newly associated DB parameter group, these changes are applied immediately without a reboot.</p>
484 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
485 /// <p>Default: Uses existing setting</p>
486 /// <p>Constraints:</p>
487 /// <ul>
488 /// <li>
489 /// <p>Must be in the same DB parameter group family as the DB instance.</p></li>
490 /// </ul>
491 pub fn db_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
492 self.inner = self.inner.db_parameter_group_name(input.into());
493 self
494 }
495 /// <p>The name of the DB parameter group to apply to the DB instance.</p>
496 /// <p>Changing this setting doesn't result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. In this case, the DB instance isn't rebooted automatically, and the parameter changes aren't applied during the next maintenance window. However, if you modify dynamic parameters in the newly associated DB parameter group, these changes are applied immediately without a reboot.</p>
497 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
498 /// <p>Default: Uses existing setting</p>
499 /// <p>Constraints:</p>
500 /// <ul>
501 /// <li>
502 /// <p>Must be in the same DB parameter group family as the DB instance.</p></li>
503 /// </ul>
504 pub fn set_db_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
505 self.inner = self.inner.set_db_parameter_group_name(input);
506 self
507 }
508 /// <p>The name of the DB parameter group to apply to the DB instance.</p>
509 /// <p>Changing this setting doesn't result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. In this case, the DB instance isn't rebooted automatically, and the parameter changes aren't applied during the next maintenance window. However, if you modify dynamic parameters in the newly associated DB parameter group, these changes are applied immediately without a reboot.</p>
510 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
511 /// <p>Default: Uses existing setting</p>
512 /// <p>Constraints:</p>
513 /// <ul>
514 /// <li>
515 /// <p>Must be in the same DB parameter group family as the DB instance.</p></li>
516 /// </ul>
517 pub fn get_db_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
518 self.inner.get_db_parameter_group_name()
519 }
520 /// <p>The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.</p><note>
521 /// <p>Enabling and disabling backups can result in a brief I/O suspension that lasts from a few seconds to a few minutes, depending on the size and class of your DB instance.</p>
522 /// </note>
523 /// <p>These changes are applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.</p>
524 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p>
525 /// <p>Default: Uses existing setting</p>
526 /// <p>Constraints:</p>
527 /// <ul>
528 /// <li>
529 /// <p>Must be a value from 0 to 35.</p></li>
530 /// <li>
531 /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
532 /// <li>
533 /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
534 /// </ul>
535 pub fn backup_retention_period(mut self, input: i32) -> Self {
536 self.inner = self.inner.backup_retention_period(input);
537 self
538 }
539 /// <p>The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.</p><note>
540 /// <p>Enabling and disabling backups can result in a brief I/O suspension that lasts from a few seconds to a few minutes, depending on the size and class of your DB instance.</p>
541 /// </note>
542 /// <p>These changes are applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.</p>
543 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p>
544 /// <p>Default: Uses existing setting</p>
545 /// <p>Constraints:</p>
546 /// <ul>
547 /// <li>
548 /// <p>Must be a value from 0 to 35.</p></li>
549 /// <li>
550 /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
551 /// <li>
552 /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
553 /// </ul>
554 pub fn set_backup_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
555 self.inner = self.inner.set_backup_retention_period(input);
556 self
557 }
558 /// <p>The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.</p><note>
559 /// <p>Enabling and disabling backups can result in a brief I/O suspension that lasts from a few seconds to a few minutes, depending on the size and class of your DB instance.</p>
560 /// </note>
561 /// <p>These changes are applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.</p>
562 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p>
563 /// <p>Default: Uses existing setting</p>
564 /// <p>Constraints:</p>
565 /// <ul>
566 /// <li>
567 /// <p>Must be a value from 0 to 35.</p></li>
568 /// <li>
569 /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
570 /// <li>
571 /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
572 /// </ul>
573 pub fn get_backup_retention_period(&self) -> &::std::option::Option<i32> {
574 self.inner.get_backup_retention_period()
575 }
576 /// <p>The daily time range during which automated backups are created if automated backups are enabled, as determined by the <code>BackupRetentionPeriod</code> parameter. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow">Backup window</a> in the <i>Amazon RDS User Guide</i>.</p>
577 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The daily time range for creating automated backups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p>
578 /// <p>Constraints:</p>
579 /// <ul>
580 /// <li>
581 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
582 /// <li>
583 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
584 /// <li>
585 /// <p>Must not conflict with the preferred maintenance window.</p></li>
586 /// <li>
587 /// <p>Must be at least 30 minutes.</p></li>
588 /// </ul>
589 pub fn preferred_backup_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
590 self.inner = self.inner.preferred_backup_window(input.into());
591 self
592 }
593 /// <p>The daily time range during which automated backups are created if automated backups are enabled, as determined by the <code>BackupRetentionPeriod</code> parameter. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow">Backup window</a> in the <i>Amazon RDS User Guide</i>.</p>
594 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The daily time range for creating automated backups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p>
595 /// <p>Constraints:</p>
596 /// <ul>
597 /// <li>
598 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
599 /// <li>
600 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
601 /// <li>
602 /// <p>Must not conflict with the preferred maintenance window.</p></li>
603 /// <li>
604 /// <p>Must be at least 30 minutes.</p></li>
605 /// </ul>
606 pub fn set_preferred_backup_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
607 self.inner = self.inner.set_preferred_backup_window(input);
608 self
609 }
610 /// <p>The daily time range during which automated backups are created if automated backups are enabled, as determined by the <code>BackupRetentionPeriod</code> parameter. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow">Backup window</a> in the <i>Amazon RDS User Guide</i>.</p>
611 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The daily time range for creating automated backups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p>
612 /// <p>Constraints:</p>
613 /// <ul>
614 /// <li>
615 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
616 /// <li>
617 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
618 /// <li>
619 /// <p>Must not conflict with the preferred maintenance window.</p></li>
620 /// <li>
621 /// <p>Must be at least 30 minutes.</p></li>
622 /// </ul>
623 pub fn get_preferred_backup_window(&self) -> &::std::option::Option<::std::string::String> {
624 self.inner.get_preferred_backup_window()
625 }
626 /// <p>The weekly time range during which system maintenance can occur, which might result in an outage. Changing this parameter doesn't result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter causes a reboot of the DB instance. If you change this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.</p>
627 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance">Amazon RDS Maintenance Window</a> in the <i>Amazon RDS User Guide.</i></p>
628 /// <p>Default: Uses existing setting</p>
629 /// <p>Constraints:</p>
630 /// <ul>
631 /// <li>
632 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
633 /// <li>
634 /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
635 /// <li>
636 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
637 /// <li>
638 /// <p>Must not conflict with the preferred backup window.</p></li>
639 /// <li>
640 /// <p>Must be at least 30 minutes.</p></li>
641 /// </ul>
642 pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
643 self.inner = self.inner.preferred_maintenance_window(input.into());
644 self
645 }
646 /// <p>The weekly time range during which system maintenance can occur, which might result in an outage. Changing this parameter doesn't result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter causes a reboot of the DB instance. If you change this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.</p>
647 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance">Amazon RDS Maintenance Window</a> in the <i>Amazon RDS User Guide.</i></p>
648 /// <p>Default: Uses existing setting</p>
649 /// <p>Constraints:</p>
650 /// <ul>
651 /// <li>
652 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
653 /// <li>
654 /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
655 /// <li>
656 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
657 /// <li>
658 /// <p>Must not conflict with the preferred backup window.</p></li>
659 /// <li>
660 /// <p>Must be at least 30 minutes.</p></li>
661 /// </ul>
662 pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
663 self.inner = self.inner.set_preferred_maintenance_window(input);
664 self
665 }
666 /// <p>The weekly time range during which system maintenance can occur, which might result in an outage. Changing this parameter doesn't result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter causes a reboot of the DB instance. If you change this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.</p>
667 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance">Amazon RDS Maintenance Window</a> in the <i>Amazon RDS User Guide.</i></p>
668 /// <p>Default: Uses existing setting</p>
669 /// <p>Constraints:</p>
670 /// <ul>
671 /// <li>
672 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
673 /// <li>
674 /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
675 /// <li>
676 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
677 /// <li>
678 /// <p>Must not conflict with the preferred backup window.</p></li>
679 /// <li>
680 /// <p>Must be at least 30 minutes.</p></li>
681 /// </ul>
682 pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
683 self.inner.get_preferred_maintenance_window()
684 }
685 /// <p>Specifies whether the DB instance is a Multi-AZ deployment. Changing this parameter doesn't result in an outage. The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
686 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
687 pub fn multi_az(mut self, input: bool) -> Self {
688 self.inner = self.inner.multi_az(input);
689 self
690 }
691 /// <p>Specifies whether the DB instance is a Multi-AZ deployment. Changing this parameter doesn't result in an outage. The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
692 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
693 pub fn set_multi_az(mut self, input: ::std::option::Option<bool>) -> Self {
694 self.inner = self.inner.set_multi_az(input);
695 self
696 }
697 /// <p>Specifies whether the DB instance is a Multi-AZ deployment. Changing this parameter doesn't result in an outage. The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
698 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
699 pub fn get_multi_az(&self) -> &::std::option::Option<bool> {
700 self.inner.get_multi_az()
701 }
702 /// <p>The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
703 /// <p>For major version upgrades, if a nondefault DB parameter group is currently in use, a new DB parameter group in the DB parameter group family for the new engine version must be specified. The new DB parameter group can be the default for that DB parameter group family.</p>
704 /// <p>If you specify only a major version, Amazon RDS updates the DB instance to the default minor version if the current minor version is lower. For information about valid engine versions, see <code>CreateDBInstance</code>, or call <code>DescribeDBEngineVersions</code>.</p>
705 /// <p>If the instance that you're modifying is acting as a read replica, the engine version that you specify must be the same or higher than the version that the source DB instance or cluster is running.</p>
706 /// <p>In RDS Custom for Oracle, this parameter is supported for read replicas only if they are in the <code>PATCH_DB_FAILURE</code> lifecycle.</p>
707 /// <p>Constraints:</p>
708 /// <ul>
709 /// <li>
710 /// <p>If you are upgrading the engine version and modifying the DB instance class at the same time, the currently running engine version must be supported on the specified DB instance class. Otherwise, the operation returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class.</p></li>
711 /// </ul>
712 pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
713 self.inner = self.inner.engine_version(input.into());
714 self
715 }
716 /// <p>The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
717 /// <p>For major version upgrades, if a nondefault DB parameter group is currently in use, a new DB parameter group in the DB parameter group family for the new engine version must be specified. The new DB parameter group can be the default for that DB parameter group family.</p>
718 /// <p>If you specify only a major version, Amazon RDS updates the DB instance to the default minor version if the current minor version is lower. For information about valid engine versions, see <code>CreateDBInstance</code>, or call <code>DescribeDBEngineVersions</code>.</p>
719 /// <p>If the instance that you're modifying is acting as a read replica, the engine version that you specify must be the same or higher than the version that the source DB instance or cluster is running.</p>
720 /// <p>In RDS Custom for Oracle, this parameter is supported for read replicas only if they are in the <code>PATCH_DB_FAILURE</code> lifecycle.</p>
721 /// <p>Constraints:</p>
722 /// <ul>
723 /// <li>
724 /// <p>If you are upgrading the engine version and modifying the DB instance class at the same time, the currently running engine version must be supported on the specified DB instance class. Otherwise, the operation returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class.</p></li>
725 /// </ul>
726 pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
727 self.inner = self.inner.set_engine_version(input);
728 self
729 }
730 /// <p>The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
731 /// <p>For major version upgrades, if a nondefault DB parameter group is currently in use, a new DB parameter group in the DB parameter group family for the new engine version must be specified. The new DB parameter group can be the default for that DB parameter group family.</p>
732 /// <p>If you specify only a major version, Amazon RDS updates the DB instance to the default minor version if the current minor version is lower. For information about valid engine versions, see <code>CreateDBInstance</code>, or call <code>DescribeDBEngineVersions</code>.</p>
733 /// <p>If the instance that you're modifying is acting as a read replica, the engine version that you specify must be the same or higher than the version that the source DB instance or cluster is running.</p>
734 /// <p>In RDS Custom for Oracle, this parameter is supported for read replicas only if they are in the <code>PATCH_DB_FAILURE</code> lifecycle.</p>
735 /// <p>Constraints:</p>
736 /// <ul>
737 /// <li>
738 /// <p>If you are upgrading the engine version and modifying the DB instance class at the same time, the currently running engine version must be supported on the specified DB instance class. Otherwise, the operation returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class.</p></li>
739 /// </ul>
740 pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
741 self.inner.get_engine_version()
742 }
743 /// <p>Specifies whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible.</p>
744 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
745 /// <p>Constraints:</p>
746 /// <ul>
747 /// <li>
748 /// <p>Major version upgrades must be allowed when specifying a value for the <code>EngineVersion</code> parameter that's a different major version than the DB instance's current version.</p></li>
749 /// </ul>
750 pub fn allow_major_version_upgrade(mut self, input: bool) -> Self {
751 self.inner = self.inner.allow_major_version_upgrade(input);
752 self
753 }
754 /// <p>Specifies whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible.</p>
755 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
756 /// <p>Constraints:</p>
757 /// <ul>
758 /// <li>
759 /// <p>Major version upgrades must be allowed when specifying a value for the <code>EngineVersion</code> parameter that's a different major version than the DB instance's current version.</p></li>
760 /// </ul>
761 pub fn set_allow_major_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
762 self.inner = self.inner.set_allow_major_version_upgrade(input);
763 self
764 }
765 /// <p>Specifies whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible.</p>
766 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
767 /// <p>Constraints:</p>
768 /// <ul>
769 /// <li>
770 /// <p>Major version upgrades must be allowed when specifying a value for the <code>EngineVersion</code> parameter that's a different major version than the DB instance's current version.</p></li>
771 /// </ul>
772 pub fn get_allow_major_version_upgrade(&self) -> &::std::option::Option<bool> {
773 self.inner.get_allow_major_version_upgrade()
774 }
775 /// <p>Specifies whether minor version upgrades are applied automatically to the DB instance during the maintenance window. An outage occurs when all the following conditions are met:</p>
776 /// <ul>
777 /// <li>
778 /// <p>The automatic upgrade is enabled for the maintenance window.</p></li>
779 /// <li>
780 /// <p>A newer minor version is available.</p></li>
781 /// <li>
782 /// <p>RDS has enabled automatic patching for the engine version.</p></li>
783 /// </ul>
784 /// <p>If any of the preceding conditions isn't met, Amazon RDS applies the change as soon as possible and doesn't cause an outage.</p>
785 /// <p>For an RDS Custom DB instance, don't enable this setting. Otherwise, the operation returns an error.</p>
786 /// <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>
787 pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
788 self.inner = self.inner.auto_minor_version_upgrade(input);
789 self
790 }
791 /// <p>Specifies whether minor version upgrades are applied automatically to the DB instance during the maintenance window. An outage occurs when all the following conditions are met:</p>
792 /// <ul>
793 /// <li>
794 /// <p>The automatic upgrade is enabled for the maintenance window.</p></li>
795 /// <li>
796 /// <p>A newer minor version is available.</p></li>
797 /// <li>
798 /// <p>RDS has enabled automatic patching for the engine version.</p></li>
799 /// </ul>
800 /// <p>If any of the preceding conditions isn't met, Amazon RDS applies the change as soon as possible and doesn't cause an outage.</p>
801 /// <p>For an RDS Custom DB instance, don't enable this setting. Otherwise, the operation returns an error.</p>
802 /// <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>
803 pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
804 self.inner = self.inner.set_auto_minor_version_upgrade(input);
805 self
806 }
807 /// <p>Specifies whether minor version upgrades are applied automatically to the DB instance during the maintenance window. An outage occurs when all the following conditions are met:</p>
808 /// <ul>
809 /// <li>
810 /// <p>The automatic upgrade is enabled for the maintenance window.</p></li>
811 /// <li>
812 /// <p>A newer minor version is available.</p></li>
813 /// <li>
814 /// <p>RDS has enabled automatic patching for the engine version.</p></li>
815 /// </ul>
816 /// <p>If any of the preceding conditions isn't met, Amazon RDS applies the change as soon as possible and doesn't cause an outage.</p>
817 /// <p>For an RDS Custom DB instance, don't enable this setting. Otherwise, the operation returns an error.</p>
818 /// <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>
819 pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
820 self.inner.get_auto_minor_version_upgrade()
821 }
822 /// <p>The license model for the DB instance.</p>
823 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
824 /// <p>Valid Values:</p>
825 /// <ul>
826 /// <li>
827 /// <p>RDS for Db2 - <code>bring-your-own-license</code></p></li>
828 /// <li>
829 /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
830 /// <li>
831 /// <p>RDS for Microsoft SQL Server - <code>license-included</code></p></li>
832 /// <li>
833 /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
834 /// <li>
835 /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
836 /// <li>
837 /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
838 /// </ul>
839 pub fn license_model(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
840 self.inner = self.inner.license_model(input.into());
841 self
842 }
843 /// <p>The license model for the DB instance.</p>
844 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
845 /// <p>Valid Values:</p>
846 /// <ul>
847 /// <li>
848 /// <p>RDS for Db2 - <code>bring-your-own-license</code></p></li>
849 /// <li>
850 /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
851 /// <li>
852 /// <p>RDS for Microsoft SQL Server - <code>license-included</code></p></li>
853 /// <li>
854 /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
855 /// <li>
856 /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
857 /// <li>
858 /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
859 /// </ul>
860 pub fn set_license_model(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
861 self.inner = self.inner.set_license_model(input);
862 self
863 }
864 /// <p>The license model for the DB instance.</p>
865 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
866 /// <p>Valid Values:</p>
867 /// <ul>
868 /// <li>
869 /// <p>RDS for Db2 - <code>bring-your-own-license</code></p></li>
870 /// <li>
871 /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
872 /// <li>
873 /// <p>RDS for Microsoft SQL Server - <code>license-included</code></p></li>
874 /// <li>
875 /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
876 /// <li>
877 /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
878 /// <li>
879 /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
880 /// </ul>
881 pub fn get_license_model(&self) -> &::std::option::Option<::std::string::String> {
882 self.inner.get_license_model()
883 }
884 /// <p>The new Provisioned IOPS (I/O operations per second) value for the RDS instance.</p>
885 /// <p>Changing this setting doesn't result in an outage and the change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request. If you are migrating from Provisioned IOPS to standard storage, set this value to 0. The DB instance will require a reboot for the change in storage type to take effect.</p>
886 /// <p>If you choose to migrate your DB instance from using standard storage to Provisioned IOPS (io1), or from Provisioned IOPS to standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.</p>
887 /// <p></p>
888 /// <p>Constraints:</p>
889 /// <ul>
890 /// <li>
891 /// <p>For RDS for MariaDB, RDS for MySQL, RDS for Oracle, and RDS for PostgreSQL - The value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.</p></li>
892 /// <li>
893 /// <p>When you increase the Provisioned IOPS, you must also specify the <code>AllocatedStorage</code> parameter. You can use the current value for <code>AllocatedStorage</code>.</p></li>
894 /// </ul>
895 /// <p>Default: Uses existing setting</p>
896 pub fn iops(mut self, input: i32) -> Self {
897 self.inner = self.inner.iops(input);
898 self
899 }
900 /// <p>The new Provisioned IOPS (I/O operations per second) value for the RDS instance.</p>
901 /// <p>Changing this setting doesn't result in an outage and the change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request. If you are migrating from Provisioned IOPS to standard storage, set this value to 0. The DB instance will require a reboot for the change in storage type to take effect.</p>
902 /// <p>If you choose to migrate your DB instance from using standard storage to Provisioned IOPS (io1), or from Provisioned IOPS to standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.</p>
903 /// <p></p>
904 /// <p>Constraints:</p>
905 /// <ul>
906 /// <li>
907 /// <p>For RDS for MariaDB, RDS for MySQL, RDS for Oracle, and RDS for PostgreSQL - The value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.</p></li>
908 /// <li>
909 /// <p>When you increase the Provisioned IOPS, you must also specify the <code>AllocatedStorage</code> parameter. You can use the current value for <code>AllocatedStorage</code>.</p></li>
910 /// </ul>
911 /// <p>Default: Uses existing setting</p>
912 pub fn set_iops(mut self, input: ::std::option::Option<i32>) -> Self {
913 self.inner = self.inner.set_iops(input);
914 self
915 }
916 /// <p>The new Provisioned IOPS (I/O operations per second) value for the RDS instance.</p>
917 /// <p>Changing this setting doesn't result in an outage and the change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request. If you are migrating from Provisioned IOPS to standard storage, set this value to 0. The DB instance will require a reboot for the change in storage type to take effect.</p>
918 /// <p>If you choose to migrate your DB instance from using standard storage to Provisioned IOPS (io1), or from Provisioned IOPS to standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.</p>
919 /// <p></p>
920 /// <p>Constraints:</p>
921 /// <ul>
922 /// <li>
923 /// <p>For RDS for MariaDB, RDS for MySQL, RDS for Oracle, and RDS for PostgreSQL - The value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.</p></li>
924 /// <li>
925 /// <p>When you increase the Provisioned IOPS, you must also specify the <code>AllocatedStorage</code> parameter. You can use the current value for <code>AllocatedStorage</code>.</p></li>
926 /// </ul>
927 /// <p>Default: Uses existing setting</p>
928 pub fn get_iops(&self) -> &::std::option::Option<i32> {
929 self.inner.get_iops()
930 }
931 /// <p>The storage throughput value for the DB instance.</p>
932 /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
933 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
934 pub fn storage_throughput(mut self, input: i32) -> Self {
935 self.inner = self.inner.storage_throughput(input);
936 self
937 }
938 /// <p>The storage throughput value for the DB instance.</p>
939 /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
940 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
941 pub fn set_storage_throughput(mut self, input: ::std::option::Option<i32>) -> Self {
942 self.inner = self.inner.set_storage_throughput(input);
943 self
944 }
945 /// <p>The storage throughput value for the DB instance.</p>
946 /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
947 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
948 pub fn get_storage_throughput(&self) -> &::std::option::Option<i32> {
949 self.inner.get_storage_throughput()
950 }
951 /// <p>The option group to associate the DB instance with.</p>
952 /// <p>Changing this parameter doesn't result in an outage, with one exception. If the parameter change results in an option group that enables OEM, it can cause a brief period, lasting less than a second, during which new connections are rejected but existing connections aren't interrupted.</p>
953 /// <p>The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
954 /// <p>Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group, and that option group can't be removed from a DB instance after it is associated with a DB instance.</p>
955 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
956 pub fn option_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
957 self.inner = self.inner.option_group_name(input.into());
958 self
959 }
960 /// <p>The option group to associate the DB instance with.</p>
961 /// <p>Changing this parameter doesn't result in an outage, with one exception. If the parameter change results in an option group that enables OEM, it can cause a brief period, lasting less than a second, during which new connections are rejected but existing connections aren't interrupted.</p>
962 /// <p>The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
963 /// <p>Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group, and that option group can't be removed from a DB instance after it is associated with a DB instance.</p>
964 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
965 pub fn set_option_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
966 self.inner = self.inner.set_option_group_name(input);
967 self
968 }
969 /// <p>The option group to associate the DB instance with.</p>
970 /// <p>Changing this parameter doesn't result in an outage, with one exception. If the parameter change results in an option group that enables OEM, it can cause a brief period, lasting less than a second, during which new connections are rejected but existing connections aren't interrupted.</p>
971 /// <p>The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
972 /// <p>Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group, and that option group can't be removed from a DB instance after it is associated with a DB instance.</p>
973 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
974 pub fn get_option_group_name(&self) -> &::std::option::Option<::std::string::String> {
975 self.inner.get_option_group_name()
976 }
977 /// <p>The new identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot occurs immediately if you enable <code>ApplyImmediately</code>, or will occur during the next maintenance window if you disable <code>ApplyImmediately</code>. This value is stored as a lowercase string.</p>
978 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
979 /// <p>Constraints:</p>
980 /// <ul>
981 /// <li>
982 /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
983 /// <li>
984 /// <p>The first character must be a letter.</p></li>
985 /// <li>
986 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
987 /// </ul>
988 /// <p>Example: <code>mydbinstance</code></p>
989 pub fn new_db_instance_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
990 self.inner = self.inner.new_db_instance_identifier(input.into());
991 self
992 }
993 /// <p>The new identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot occurs immediately if you enable <code>ApplyImmediately</code>, or will occur during the next maintenance window if you disable <code>ApplyImmediately</code>. This value is stored as a lowercase string.</p>
994 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
995 /// <p>Constraints:</p>
996 /// <ul>
997 /// <li>
998 /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
999 /// <li>
1000 /// <p>The first character must be a letter.</p></li>
1001 /// <li>
1002 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
1003 /// </ul>
1004 /// <p>Example: <code>mydbinstance</code></p>
1005 pub fn set_new_db_instance_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1006 self.inner = self.inner.set_new_db_instance_identifier(input);
1007 self
1008 }
1009 /// <p>The new identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot occurs immediately if you enable <code>ApplyImmediately</code>, or will occur during the next maintenance window if you disable <code>ApplyImmediately</code>. This value is stored as a lowercase string.</p>
1010 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1011 /// <p>Constraints:</p>
1012 /// <ul>
1013 /// <li>
1014 /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
1015 /// <li>
1016 /// <p>The first character must be a letter.</p></li>
1017 /// <li>
1018 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
1019 /// </ul>
1020 /// <p>Example: <code>mydbinstance</code></p>
1021 pub fn get_new_db_instance_identifier(&self) -> &::std::option::Option<::std::string::String> {
1022 self.inner.get_new_db_instance_identifier()
1023 }
1024 /// <p>The storage type to associate with the DB instance.</p>
1025 /// <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>
1026 /// <p>If you choose to migrate your DB instance from using standard storage to gp2 (General Purpose SSD), gp3, or Provisioned IOPS (io1), or from these storage types to standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.</p>
1027 /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
1028 /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp2</code>.</p>
1029 pub fn storage_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1030 self.inner = self.inner.storage_type(input.into());
1031 self
1032 }
1033 /// <p>The storage type to associate with the DB instance.</p>
1034 /// <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>
1035 /// <p>If you choose to migrate your DB instance from using standard storage to gp2 (General Purpose SSD), gp3, or Provisioned IOPS (io1), or from these storage types to standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.</p>
1036 /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
1037 /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp2</code>.</p>
1038 pub fn set_storage_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1039 self.inner = self.inner.set_storage_type(input);
1040 self
1041 }
1042 /// <p>The storage type to associate with the DB instance.</p>
1043 /// <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>
1044 /// <p>If you choose to migrate your DB instance from using standard storage to gp2 (General Purpose SSD), gp3, or Provisioned IOPS (io1), or from these storage types to standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.</p>
1045 /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
1046 /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp2</code>.</p>
1047 pub fn get_storage_type(&self) -> &::std::option::Option<::std::string::String> {
1048 self.inner.get_storage_type()
1049 }
1050 /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
1051 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1052 pub fn tde_credential_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1053 self.inner = self.inner.tde_credential_arn(input.into());
1054 self
1055 }
1056 /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
1057 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1058 pub fn set_tde_credential_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1059 self.inner = self.inner.set_tde_credential_arn(input);
1060 self
1061 }
1062 /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
1063 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1064 pub fn get_tde_credential_arn(&self) -> &::std::option::Option<::std::string::String> {
1065 self.inner.get_tde_credential_arn()
1066 }
1067 /// <p>The password for the given ARN from the key store in order to access the device.</p>
1068 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1069 pub fn tde_credential_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1070 self.inner = self.inner.tde_credential_password(input.into());
1071 self
1072 }
1073 /// <p>The password for the given ARN from the key store in order to access the device.</p>
1074 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1075 pub fn set_tde_credential_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1076 self.inner = self.inner.set_tde_credential_password(input);
1077 self
1078 }
1079 /// <p>The password for the given ARN from the key store in order to access the device.</p>
1080 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1081 pub fn get_tde_credential_password(&self) -> &::std::option::Option<::std::string::String> {
1082 self.inner.get_tde_credential_password()
1083 }
1084 /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
1085 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1086 /// <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>
1087 pub fn ca_certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1088 self.inner = self.inner.ca_certificate_identifier(input.into());
1089 self
1090 }
1091 /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
1092 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1093 /// <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>
1094 pub fn set_ca_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1095 self.inner = self.inner.set_ca_certificate_identifier(input);
1096 self
1097 }
1098 /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
1099 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1100 /// <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>
1101 pub fn get_ca_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
1102 self.inner.get_ca_certificate_identifier()
1103 }
1104 /// <p>The Active Directory directory ID to move the DB instance to. Specify <code>none</code> to remove the instance from its current domain. You must create the domain before this operation. Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain.</p>
1105 /// <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>
1106 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1107 pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1108 self.inner = self.inner.domain(input.into());
1109 self
1110 }
1111 /// <p>The Active Directory directory ID to move the DB instance to. Specify <code>none</code> to remove the instance from its current domain. You must create the domain before this operation. Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain.</p>
1112 /// <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>
1113 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1114 pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1115 self.inner = self.inner.set_domain(input);
1116 self
1117 }
1118 /// <p>The Active Directory directory ID to move the DB instance to. Specify <code>none</code> to remove the instance from its current domain. You must create the domain before this operation. Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain.</p>
1119 /// <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>
1120 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1121 pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
1122 self.inner.get_domain()
1123 }
1124 /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
1125 /// <p>Constraints:</p>
1126 /// <ul>
1127 /// <li>
1128 /// <p>Can't be longer than 64 characters.</p></li>
1129 /// </ul>
1130 /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
1131 pub fn domain_fqdn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1132 self.inner = self.inner.domain_fqdn(input.into());
1133 self
1134 }
1135 /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
1136 /// <p>Constraints:</p>
1137 /// <ul>
1138 /// <li>
1139 /// <p>Can't be longer than 64 characters.</p></li>
1140 /// </ul>
1141 /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
1142 pub fn set_domain_fqdn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1143 self.inner = self.inner.set_domain_fqdn(input);
1144 self
1145 }
1146 /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
1147 /// <p>Constraints:</p>
1148 /// <ul>
1149 /// <li>
1150 /// <p>Can't be longer than 64 characters.</p></li>
1151 /// </ul>
1152 /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
1153 pub fn get_domain_fqdn(&self) -> &::std::option::Option<::std::string::String> {
1154 self.inner.get_domain_fqdn()
1155 }
1156 /// <p>The Active Directory organizational unit for your DB instance to join.</p>
1157 /// <p>Constraints:</p>
1158 /// <ul>
1159 /// <li>
1160 /// <p>Must be in the distinguished name format.</p></li>
1161 /// <li>
1162 /// <p>Can't be longer than 64 characters.</p></li>
1163 /// </ul>
1164 /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
1165 pub fn domain_ou(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1166 self.inner = self.inner.domain_ou(input.into());
1167 self
1168 }
1169 /// <p>The Active Directory organizational unit for your DB instance to join.</p>
1170 /// <p>Constraints:</p>
1171 /// <ul>
1172 /// <li>
1173 /// <p>Must be in the distinguished name format.</p></li>
1174 /// <li>
1175 /// <p>Can't be longer than 64 characters.</p></li>
1176 /// </ul>
1177 /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
1178 pub fn set_domain_ou(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1179 self.inner = self.inner.set_domain_ou(input);
1180 self
1181 }
1182 /// <p>The Active Directory organizational unit for your DB instance to join.</p>
1183 /// <p>Constraints:</p>
1184 /// <ul>
1185 /// <li>
1186 /// <p>Must be in the distinguished name format.</p></li>
1187 /// <li>
1188 /// <p>Can't be longer than 64 characters.</p></li>
1189 /// </ul>
1190 /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
1191 pub fn get_domain_ou(&self) -> &::std::option::Option<::std::string::String> {
1192 self.inner.get_domain_ou()
1193 }
1194 /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
1195 /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
1196 pub fn domain_auth_secret_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1197 self.inner = self.inner.domain_auth_secret_arn(input.into());
1198 self
1199 }
1200 /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
1201 /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
1202 pub fn set_domain_auth_secret_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1203 self.inner = self.inner.set_domain_auth_secret_arn(input);
1204 self
1205 }
1206 /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
1207 /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
1208 pub fn get_domain_auth_secret_arn(&self) -> &::std::option::Option<::std::string::String> {
1209 self.inner.get_domain_auth_secret_arn()
1210 }
1211 ///
1212 /// Appends an item to `DomainDnsIps`.
1213 ///
1214 /// To override the contents of this collection use [`set_domain_dns_ips`](Self::set_domain_dns_ips).
1215 ///
1216 /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
1217 /// <p>Constraints:</p>
1218 /// <ul>
1219 /// <li>
1220 /// <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>
1221 /// </ul>
1222 /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
1223 pub fn domain_dns_ips(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1224 self.inner = self.inner.domain_dns_ips(input.into());
1225 self
1226 }
1227 /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
1228 /// <p>Constraints:</p>
1229 /// <ul>
1230 /// <li>
1231 /// <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>
1232 /// </ul>
1233 /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
1234 pub fn set_domain_dns_ips(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1235 self.inner = self.inner.set_domain_dns_ips(input);
1236 self
1237 }
1238 /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
1239 /// <p>Constraints:</p>
1240 /// <ul>
1241 /// <li>
1242 /// <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>
1243 /// </ul>
1244 /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
1245 pub fn get_domain_dns_ips(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1246 self.inner.get_domain_dns_ips()
1247 }
1248 /// <p>Specifies whether to remove the DB instance from the Active Directory domain.</p>
1249 pub fn disable_domain(mut self, input: bool) -> Self {
1250 self.inner = self.inner.disable_domain(input);
1251 self
1252 }
1253 /// <p>Specifies whether to remove the DB instance from the Active Directory domain.</p>
1254 pub fn set_disable_domain(mut self, input: ::std::option::Option<bool>) -> Self {
1255 self.inner = self.inner.set_disable_domain(input);
1256 self
1257 }
1258 /// <p>Specifies whether to remove the DB instance from the Active Directory domain.</p>
1259 pub fn get_disable_domain(&self) -> &::std::option::Option<bool> {
1260 self.inner.get_disable_domain()
1261 }
1262 /// <p>Specifies whether to copy all tags from the DB instance to snapshots of the DB instance. By default, tags aren't copied.</p>
1263 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting. For more information, see <code>ModifyDBCluster</code>.</p>
1264 pub fn copy_tags_to_snapshot(mut self, input: bool) -> Self {
1265 self.inner = self.inner.copy_tags_to_snapshot(input);
1266 self
1267 }
1268 /// <p>Specifies whether to copy all tags from the DB instance to snapshots of the DB instance. By default, tags aren't copied.</p>
1269 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting. For more information, see <code>ModifyDBCluster</code>.</p>
1270 pub fn set_copy_tags_to_snapshot(mut self, input: ::std::option::Option<bool>) -> Self {
1271 self.inner = self.inner.set_copy_tags_to_snapshot(input);
1272 self
1273 }
1274 /// <p>Specifies whether to copy all tags from the DB instance to snapshots of the DB instance. By default, tags aren't copied.</p>
1275 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting. For more information, see <code>ModifyDBCluster</code>.</p>
1276 pub fn get_copy_tags_to_snapshot(&self) -> &::std::option::Option<bool> {
1277 self.inner.get_copy_tags_to_snapshot()
1278 }
1279 /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collection of Enhanced Monitoring metrics, specify <code>0</code>.</p>
1280 /// <p>If <code>MonitoringRoleArn</code> is specified, set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1281 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1282 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1283 /// <p>Default: <code>0</code></p>
1284 pub fn monitoring_interval(mut self, input: i32) -> Self {
1285 self.inner = self.inner.monitoring_interval(input);
1286 self
1287 }
1288 /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collection of Enhanced Monitoring metrics, specify <code>0</code>.</p>
1289 /// <p>If <code>MonitoringRoleArn</code> is specified, set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1290 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1291 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1292 /// <p>Default: <code>0</code></p>
1293 pub fn set_monitoring_interval(mut self, input: ::std::option::Option<i32>) -> Self {
1294 self.inner = self.inner.set_monitoring_interval(input);
1295 self
1296 }
1297 /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collection of Enhanced Monitoring metrics, specify <code>0</code>.</p>
1298 /// <p>If <code>MonitoringRoleArn</code> is specified, set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1299 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1300 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1301 /// <p>Default: <code>0</code></p>
1302 pub fn get_monitoring_interval(&self) -> &::std::option::Option<i32> {
1303 self.inner.get_monitoring_interval()
1304 }
1305 /// <p>The port number on which the database accepts connections.</p>
1306 /// <p>The value of the <code>DBPortNumber</code> parameter must not match any of the port values specified for options in the option group for the DB instance.</p>
1307 /// <p>If you change the <code>DBPortNumber</code> value, your database restarts regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
1308 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1309 /// <p>Valid Values: <code>1150-65535</code></p>
1310 /// <p>Default:</p>
1311 /// <ul>
1312 /// <li>
1313 /// <p>Amazon Aurora - <code>3306</code></p></li>
1314 /// <li>
1315 /// <p>RDS for Db2 - <code>50000</code></p></li>
1316 /// <li>
1317 /// <p>RDS for MariaDB - <code>3306</code></p></li>
1318 /// <li>
1319 /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1320 /// <li>
1321 /// <p>RDS for MySQL - <code>3306</code></p></li>
1322 /// <li>
1323 /// <p>RDS for Oracle - <code>1521</code></p></li>
1324 /// <li>
1325 /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1326 /// </ul>
1327 /// <p>Constraints:</p>
1328 /// <ul>
1329 /// <li>
1330 /// <p>For RDS for Microsoft SQL Server, the value can't be <code>1234</code>, <code>1434</code>, <code>3260</code>, <code>3343</code>, <code>3389</code>, <code>47001</code>, or <code>49152-49156</code>.</p></li>
1331 /// </ul>
1332 pub fn db_port_number(mut self, input: i32) -> Self {
1333 self.inner = self.inner.db_port_number(input);
1334 self
1335 }
1336 /// <p>The port number on which the database accepts connections.</p>
1337 /// <p>The value of the <code>DBPortNumber</code> parameter must not match any of the port values specified for options in the option group for the DB instance.</p>
1338 /// <p>If you change the <code>DBPortNumber</code> value, your database restarts regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
1339 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1340 /// <p>Valid Values: <code>1150-65535</code></p>
1341 /// <p>Default:</p>
1342 /// <ul>
1343 /// <li>
1344 /// <p>Amazon Aurora - <code>3306</code></p></li>
1345 /// <li>
1346 /// <p>RDS for Db2 - <code>50000</code></p></li>
1347 /// <li>
1348 /// <p>RDS for MariaDB - <code>3306</code></p></li>
1349 /// <li>
1350 /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1351 /// <li>
1352 /// <p>RDS for MySQL - <code>3306</code></p></li>
1353 /// <li>
1354 /// <p>RDS for Oracle - <code>1521</code></p></li>
1355 /// <li>
1356 /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1357 /// </ul>
1358 /// <p>Constraints:</p>
1359 /// <ul>
1360 /// <li>
1361 /// <p>For RDS for Microsoft SQL Server, the value can't be <code>1234</code>, <code>1434</code>, <code>3260</code>, <code>3343</code>, <code>3389</code>, <code>47001</code>, or <code>49152-49156</code>.</p></li>
1362 /// </ul>
1363 pub fn set_db_port_number(mut self, input: ::std::option::Option<i32>) -> Self {
1364 self.inner = self.inner.set_db_port_number(input);
1365 self
1366 }
1367 /// <p>The port number on which the database accepts connections.</p>
1368 /// <p>The value of the <code>DBPortNumber</code> parameter must not match any of the port values specified for options in the option group for the DB instance.</p>
1369 /// <p>If you change the <code>DBPortNumber</code> value, your database restarts regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
1370 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1371 /// <p>Valid Values: <code>1150-65535</code></p>
1372 /// <p>Default:</p>
1373 /// <ul>
1374 /// <li>
1375 /// <p>Amazon Aurora - <code>3306</code></p></li>
1376 /// <li>
1377 /// <p>RDS for Db2 - <code>50000</code></p></li>
1378 /// <li>
1379 /// <p>RDS for MariaDB - <code>3306</code></p></li>
1380 /// <li>
1381 /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1382 /// <li>
1383 /// <p>RDS for MySQL - <code>3306</code></p></li>
1384 /// <li>
1385 /// <p>RDS for Oracle - <code>1521</code></p></li>
1386 /// <li>
1387 /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1388 /// </ul>
1389 /// <p>Constraints:</p>
1390 /// <ul>
1391 /// <li>
1392 /// <p>For RDS for Microsoft SQL Server, the value can't be <code>1234</code>, <code>1434</code>, <code>3260</code>, <code>3343</code>, <code>3389</code>, <code>47001</code>, or <code>49152-49156</code>.</p></li>
1393 /// </ul>
1394 pub fn get_db_port_number(&self) -> &::std::option::Option<i32> {
1395 self.inner.get_db_port_number()
1396 }
1397 /// <p>Specifies whether the DB instance is publicly accessible.</p>
1398 /// <p>When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB instance doesn't permit it.</p>
1399 /// <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>
1400 /// <p><code>PubliclyAccessible</code> only applies to DB instances in a VPC. The DB instance must be part of a public subnet and <code>PubliclyAccessible</code> must be enabled for it to be publicly accessible.</p>
1401 /// <p>Changes to the <code>PubliclyAccessible</code> parameter are applied immediately regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
1402 pub fn publicly_accessible(mut self, input: bool) -> Self {
1403 self.inner = self.inner.publicly_accessible(input);
1404 self
1405 }
1406 /// <p>Specifies whether the DB instance is publicly accessible.</p>
1407 /// <p>When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB instance doesn't permit it.</p>
1408 /// <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>
1409 /// <p><code>PubliclyAccessible</code> only applies to DB instances in a VPC. The DB instance must be part of a public subnet and <code>PubliclyAccessible</code> must be enabled for it to be publicly accessible.</p>
1410 /// <p>Changes to the <code>PubliclyAccessible</code> parameter are applied immediately regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
1411 pub fn set_publicly_accessible(mut self, input: ::std::option::Option<bool>) -> Self {
1412 self.inner = self.inner.set_publicly_accessible(input);
1413 self
1414 }
1415 /// <p>Specifies whether the DB instance is publicly accessible.</p>
1416 /// <p>When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB instance doesn't permit it.</p>
1417 /// <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>
1418 /// <p><code>PubliclyAccessible</code> only applies to DB instances in a VPC. The DB instance must be part of a public subnet and <code>PubliclyAccessible</code> must be enabled for it to be publicly accessible.</p>
1419 /// <p>Changes to the <code>PubliclyAccessible</code> parameter are applied immediately regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
1420 pub fn get_publicly_accessible(&self) -> &::std::option::Option<bool> {
1421 self.inner.get_publicly_accessible()
1422 }
1423 /// <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, see <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>
1424 /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1425 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1426 pub fn monitoring_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1427 self.inner = self.inner.monitoring_role_arn(input.into());
1428 self
1429 }
1430 /// <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, see <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>
1431 /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1432 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1433 pub fn set_monitoring_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1434 self.inner = self.inner.set_monitoring_role_arn(input);
1435 self
1436 }
1437 /// <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, see <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>
1438 /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1439 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1440 pub fn get_monitoring_role_arn(&self) -> &::std::option::Option<::std::string::String> {
1441 self.inner.get_monitoring_role_arn()
1442 }
1443 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
1444 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1445 pub fn domain_iam_role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1446 self.inner = self.inner.domain_iam_role_name(input.into());
1447 self
1448 }
1449 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
1450 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1451 pub fn set_domain_iam_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1452 self.inner = self.inner.set_domain_iam_role_name(input);
1453 self
1454 }
1455 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
1456 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1457 pub fn get_domain_iam_role_name(&self) -> &::std::option::Option<::std::string::String> {
1458 self.inner.get_domain_iam_role_name()
1459 }
1460 /// <p>The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance"> Fault Tolerance for an Aurora DB Cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
1461 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1462 /// <p>Default: <code>1</code></p>
1463 /// <p>Valid Values: <code>0 - 15</code></p>
1464 pub fn promotion_tier(mut self, input: i32) -> Self {
1465 self.inner = self.inner.promotion_tier(input);
1466 self
1467 }
1468 /// <p>The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance"> Fault Tolerance for an Aurora DB Cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
1469 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1470 /// <p>Default: <code>1</code></p>
1471 /// <p>Valid Values: <code>0 - 15</code></p>
1472 pub fn set_promotion_tier(mut self, input: ::std::option::Option<i32>) -> Self {
1473 self.inner = self.inner.set_promotion_tier(input);
1474 self
1475 }
1476 /// <p>The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance"> Fault Tolerance for an Aurora DB Cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
1477 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1478 /// <p>Default: <code>1</code></p>
1479 /// <p>Valid Values: <code>0 - 15</code></p>
1480 pub fn get_promotion_tier(&self) -> &::std::option::Option<i32> {
1481 self.inner.get_promotion_tier()
1482 }
1483 /// <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>
1484 /// <p>This setting doesn't apply to Amazon Aurora. Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.</p>
1485 /// <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>
1486 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1487 pub fn enable_iam_database_authentication(mut self, input: bool) -> Self {
1488 self.inner = self.inner.enable_iam_database_authentication(input);
1489 self
1490 }
1491 /// <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>
1492 /// <p>This setting doesn't apply to Amazon Aurora. Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.</p>
1493 /// <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>
1494 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1495 pub fn set_enable_iam_database_authentication(mut self, input: ::std::option::Option<bool>) -> Self {
1496 self.inner = self.inner.set_enable_iam_database_authentication(input);
1497 self
1498 }
1499 /// <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>
1500 /// <p>This setting doesn't apply to Amazon Aurora. Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.</p>
1501 /// <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>
1502 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1503 pub fn get_enable_iam_database_authentication(&self) -> &::std::option::Option<bool> {
1504 self.inner.get_enable_iam_database_authentication()
1505 }
1506 /// <p>Specifies the mode of Database Insights to enable for the DB instance.</p><note>
1507 /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
1508 /// </note>
1509 pub fn database_insights_mode(mut self, input: crate::types::DatabaseInsightsMode) -> Self {
1510 self.inner = self.inner.database_insights_mode(input);
1511 self
1512 }
1513 /// <p>Specifies the mode of Database Insights to enable for the DB instance.</p><note>
1514 /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
1515 /// </note>
1516 pub fn set_database_insights_mode(mut self, input: ::std::option::Option<crate::types::DatabaseInsightsMode>) -> Self {
1517 self.inner = self.inner.set_database_insights_mode(input);
1518 self
1519 }
1520 /// <p>Specifies the mode of Database Insights to enable for the DB instance.</p><note>
1521 /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
1522 /// </note>
1523 pub fn get_database_insights_mode(&self) -> &::std::option::Option<crate::types::DatabaseInsightsMode> {
1524 self.inner.get_database_insights_mode()
1525 }
1526 /// <p>Specifies whether to enable Performance Insights for the DB instance.</p>
1527 /// <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>
1528 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1529 pub fn enable_performance_insights(mut self, input: bool) -> Self {
1530 self.inner = self.inner.enable_performance_insights(input);
1531 self
1532 }
1533 /// <p>Specifies whether to enable Performance Insights for the DB instance.</p>
1534 /// <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>
1535 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1536 pub fn set_enable_performance_insights(mut self, input: ::std::option::Option<bool>) -> Self {
1537 self.inner = self.inner.set_enable_performance_insights(input);
1538 self
1539 }
1540 /// <p>Specifies whether to enable Performance Insights for the DB instance.</p>
1541 /// <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>
1542 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1543 pub fn get_enable_performance_insights(&self) -> &::std::option::Option<bool> {
1544 self.inner.get_enable_performance_insights()
1545 }
1546 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1547 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1548 /// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
1549 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1550 pub fn performance_insights_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1551 self.inner = self.inner.performance_insights_kms_key_id(input.into());
1552 self
1553 }
1554 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1555 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1556 /// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
1557 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1558 pub fn set_performance_insights_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1559 self.inner = self.inner.set_performance_insights_kms_key_id(input);
1560 self
1561 }
1562 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1563 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1564 /// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
1565 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1566 pub fn get_performance_insights_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
1567 self.inner.get_performance_insights_kms_key_id()
1568 }
1569 /// <p>The number of days to retain Performance Insights data.</p>
1570 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1571 /// <p>Valid Values:</p>
1572 /// <ul>
1573 /// <li>
1574 /// <p><code>7</code></p></li>
1575 /// <li>
1576 /// <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>
1577 /// <li>
1578 /// <p><code>731</code></p></li>
1579 /// </ul>
1580 /// <p>Default: <code>7</code> days</p>
1581 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
1582 pub fn performance_insights_retention_period(mut self, input: i32) -> Self {
1583 self.inner = self.inner.performance_insights_retention_period(input);
1584 self
1585 }
1586 /// <p>The number of days to retain Performance Insights data.</p>
1587 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1588 /// <p>Valid Values:</p>
1589 /// <ul>
1590 /// <li>
1591 /// <p><code>7</code></p></li>
1592 /// <li>
1593 /// <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>
1594 /// <li>
1595 /// <p><code>731</code></p></li>
1596 /// </ul>
1597 /// <p>Default: <code>7</code> days</p>
1598 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
1599 pub fn set_performance_insights_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
1600 self.inner = self.inner.set_performance_insights_retention_period(input);
1601 self
1602 }
1603 /// <p>The number of days to retain Performance Insights data.</p>
1604 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1605 /// <p>Valid Values:</p>
1606 /// <ul>
1607 /// <li>
1608 /// <p><code>7</code></p></li>
1609 /// <li>
1610 /// <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>
1611 /// <li>
1612 /// <p><code>731</code></p></li>
1613 /// </ul>
1614 /// <p>Default: <code>7</code> days</p>
1615 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
1616 pub fn get_performance_insights_retention_period(&self) -> &::std::option::Option<i32> {
1617 self.inner.get_performance_insights_retention_period()
1618 }
1619 /// <p>The log types to be enabled for export to CloudWatch Logs for a specific DB instance.</p>
1620 /// <p>A change to the <code>CloudwatchLogsExportConfiguration</code> parameter is always applied to the DB instance immediately. Therefore, the <code>ApplyImmediately</code> parameter has no effect.</p>
1621 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1622 /// <p>The following values are valid for each DB engine:</p>
1623 /// <ul>
1624 /// <li>
1625 /// <p>Aurora MySQL - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
1626 /// <li>
1627 /// <p>Aurora PostgreSQL - <code>postgresql | iam-db-auth-error</code></p></li>
1628 /// <li>
1629 /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
1630 /// <li>
1631 /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
1632 /// </ul>
1633 /// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch"> Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
1634 /// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
1635 pub fn cloudwatch_logs_export_configuration(mut self, input: crate::types::CloudwatchLogsExportConfiguration) -> Self {
1636 self.inner = self.inner.cloudwatch_logs_export_configuration(input);
1637 self
1638 }
1639 /// <p>The log types to be enabled for export to CloudWatch Logs for a specific DB instance.</p>
1640 /// <p>A change to the <code>CloudwatchLogsExportConfiguration</code> parameter is always applied to the DB instance immediately. Therefore, the <code>ApplyImmediately</code> parameter has no effect.</p>
1641 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1642 /// <p>The following values are valid for each DB engine:</p>
1643 /// <ul>
1644 /// <li>
1645 /// <p>Aurora MySQL - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
1646 /// <li>
1647 /// <p>Aurora PostgreSQL - <code>postgresql | iam-db-auth-error</code></p></li>
1648 /// <li>
1649 /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
1650 /// <li>
1651 /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
1652 /// </ul>
1653 /// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch"> Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
1654 /// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
1655 pub fn set_cloudwatch_logs_export_configuration(mut self, input: ::std::option::Option<crate::types::CloudwatchLogsExportConfiguration>) -> Self {
1656 self.inner = self.inner.set_cloudwatch_logs_export_configuration(input);
1657 self
1658 }
1659 /// <p>The log types to be enabled for export to CloudWatch Logs for a specific DB instance.</p>
1660 /// <p>A change to the <code>CloudwatchLogsExportConfiguration</code> parameter is always applied to the DB instance immediately. Therefore, the <code>ApplyImmediately</code> parameter has no effect.</p>
1661 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1662 /// <p>The following values are valid for each DB engine:</p>
1663 /// <ul>
1664 /// <li>
1665 /// <p>Aurora MySQL - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
1666 /// <li>
1667 /// <p>Aurora PostgreSQL - <code>postgresql | iam-db-auth-error</code></p></li>
1668 /// <li>
1669 /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
1670 /// <li>
1671 /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
1672 /// </ul>
1673 /// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch"> Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
1674 /// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
1675 pub fn get_cloudwatch_logs_export_configuration(&self) -> &::std::option::Option<crate::types::CloudwatchLogsExportConfiguration> {
1676 self.inner.get_cloudwatch_logs_export_configuration()
1677 }
1678 ///
1679 /// Appends an item to `ProcessorFeatures`.
1680 ///
1681 /// To override the contents of this collection use [`set_processor_features`](Self::set_processor_features).
1682 ///
1683 /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
1684 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1685 pub fn processor_features(mut self, input: crate::types::ProcessorFeature) -> Self {
1686 self.inner = self.inner.processor_features(input);
1687 self
1688 }
1689 /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
1690 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1691 pub fn set_processor_features(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProcessorFeature>>) -> Self {
1692 self.inner = self.inner.set_processor_features(input);
1693 self
1694 }
1695 /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
1696 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1697 pub fn get_processor_features(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProcessorFeature>> {
1698 self.inner.get_processor_features()
1699 }
1700 /// <p>Specifies whether the DB instance class of the DB instance uses its default processor features.</p>
1701 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1702 pub fn use_default_processor_features(mut self, input: bool) -> Self {
1703 self.inner = self.inner.use_default_processor_features(input);
1704 self
1705 }
1706 /// <p>Specifies whether the DB instance class of the DB instance uses its default processor features.</p>
1707 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1708 pub fn set_use_default_processor_features(mut self, input: ::std::option::Option<bool>) -> Self {
1709 self.inner = self.inner.set_use_default_processor_features(input);
1710 self
1711 }
1712 /// <p>Specifies whether the DB instance class of the DB instance uses its default processor features.</p>
1713 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1714 pub fn get_use_default_processor_features(&self) -> &::std::option::Option<bool> {
1715 self.inner.get_use_default_processor_features()
1716 }
1717 /// <p>Specifies whether the DB instance has deletion protection enabled. 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>
1718 /// <p>This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion protection for the DB cluster. For more information, see <code>ModifyDBCluster</code>. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.</p>
1719 pub fn deletion_protection(mut self, input: bool) -> Self {
1720 self.inner = self.inner.deletion_protection(input);
1721 self
1722 }
1723 /// <p>Specifies whether the DB instance has deletion protection enabled. 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>
1724 /// <p>This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion protection for the DB cluster. For more information, see <code>ModifyDBCluster</code>. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.</p>
1725 pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
1726 self.inner = self.inner.set_deletion_protection(input);
1727 self
1728 }
1729 /// <p>Specifies whether the DB instance has deletion protection enabled. 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>
1730 /// <p>This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion protection for the DB cluster. For more information, see <code>ModifyDBCluster</code>. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.</p>
1731 pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
1732 self.inner.get_deletion_protection()
1733 }
1734 /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
1735 /// <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>
1736 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1737 pub fn max_allocated_storage(mut self, input: i32) -> Self {
1738 self.inner = self.inner.max_allocated_storage(input);
1739 self
1740 }
1741 /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
1742 /// <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>
1743 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1744 pub fn set_max_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
1745 self.inner = self.inner.set_max_allocated_storage(input);
1746 self
1747 }
1748 /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
1749 /// <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>
1750 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1751 pub fn get_max_allocated_storage(&self) -> &::std::option::Option<i32> {
1752 self.inner.get_max_allocated_storage()
1753 }
1754 /// <p>Specifies whether the DB instance is restarted when you rotate your SSL/TLS certificate.</p>
1755 /// <p>By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted.</p><important>
1756 /// <p>Set this parameter only if you are <i>not</i> using SSL/TLS to connect to the DB instance.</p>
1757 /// </important>
1758 /// <p>If you are using SSL/TLS to connect to the DB instance, follow the appropriate instructions for your DB engine to rotate your SSL/TLS certificate:</p>
1759 /// <ul>
1760 /// <li>
1761 /// <p>For more information about rotating your SSL/TLS certificate for RDS DB engines, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html"> Rotating Your SSL/TLS Certificate.</a> in the <i>Amazon RDS User Guide.</i></p></li>
1762 /// <li>
1763 /// <p>For more information about rotating your SSL/TLS certificate for Aurora DB engines, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL-certificate-rotation.html"> Rotating Your SSL/TLS Certificate</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
1764 /// </ul>
1765 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1766 pub fn certificate_rotation_restart(mut self, input: bool) -> Self {
1767 self.inner = self.inner.certificate_rotation_restart(input);
1768 self
1769 }
1770 /// <p>Specifies whether the DB instance is restarted when you rotate your SSL/TLS certificate.</p>
1771 /// <p>By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted.</p><important>
1772 /// <p>Set this parameter only if you are <i>not</i> using SSL/TLS to connect to the DB instance.</p>
1773 /// </important>
1774 /// <p>If you are using SSL/TLS to connect to the DB instance, follow the appropriate instructions for your DB engine to rotate your SSL/TLS certificate:</p>
1775 /// <ul>
1776 /// <li>
1777 /// <p>For more information about rotating your SSL/TLS certificate for RDS DB engines, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html"> Rotating Your SSL/TLS Certificate.</a> in the <i>Amazon RDS User Guide.</i></p></li>
1778 /// <li>
1779 /// <p>For more information about rotating your SSL/TLS certificate for Aurora DB engines, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL-certificate-rotation.html"> Rotating Your SSL/TLS Certificate</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
1780 /// </ul>
1781 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1782 pub fn set_certificate_rotation_restart(mut self, input: ::std::option::Option<bool>) -> Self {
1783 self.inner = self.inner.set_certificate_rotation_restart(input);
1784 self
1785 }
1786 /// <p>Specifies whether the DB instance is restarted when you rotate your SSL/TLS certificate.</p>
1787 /// <p>By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted.</p><important>
1788 /// <p>Set this parameter only if you are <i>not</i> using SSL/TLS to connect to the DB instance.</p>
1789 /// </important>
1790 /// <p>If you are using SSL/TLS to connect to the DB instance, follow the appropriate instructions for your DB engine to rotate your SSL/TLS certificate:</p>
1791 /// <ul>
1792 /// <li>
1793 /// <p>For more information about rotating your SSL/TLS certificate for RDS DB engines, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html"> Rotating Your SSL/TLS Certificate.</a> in the <i>Amazon RDS User Guide.</i></p></li>
1794 /// <li>
1795 /// <p>For more information about rotating your SSL/TLS certificate for Aurora DB engines, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL-certificate-rotation.html"> Rotating Your SSL/TLS Certificate</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
1796 /// </ul>
1797 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1798 pub fn get_certificate_rotation_restart(&self) -> &::std::option::Option<bool> {
1799 self.inner.get_certificate_rotation_restart()
1800 }
1801 /// <p>The open mode of a replica database.</p>
1802 /// <p>This parameter is only supported for Db2 DB instances and Oracle DB instances.</p>
1803 /// <dl>
1804 /// <dt>
1805 /// Db2
1806 /// </dt>
1807 /// <dd>
1808 /// <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>
1809 /// <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>
1810 /// <p>To create standby DB replicas for RDS for Db2, set this parameter to <code>mounted</code>.</p>
1811 /// </dd>
1812 /// <dt>
1813 /// Oracle
1814 /// </dt>
1815 /// <dd>
1816 /// <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>
1817 /// <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>
1818 /// <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>
1819 /// </dd>
1820 /// </dl>
1821 pub fn replica_mode(mut self, input: crate::types::ReplicaMode) -> Self {
1822 self.inner = self.inner.replica_mode(input);
1823 self
1824 }
1825 /// <p>The open mode of a replica database.</p>
1826 /// <p>This parameter is only supported for Db2 DB instances and Oracle DB instances.</p>
1827 /// <dl>
1828 /// <dt>
1829 /// Db2
1830 /// </dt>
1831 /// <dd>
1832 /// <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>
1833 /// <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>
1834 /// <p>To create standby DB replicas for RDS for Db2, set this parameter to <code>mounted</code>.</p>
1835 /// </dd>
1836 /// <dt>
1837 /// Oracle
1838 /// </dt>
1839 /// <dd>
1840 /// <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>
1841 /// <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>
1842 /// <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>
1843 /// </dd>
1844 /// </dl>
1845 pub fn set_replica_mode(mut self, input: ::std::option::Option<crate::types::ReplicaMode>) -> Self {
1846 self.inner = self.inner.set_replica_mode(input);
1847 self
1848 }
1849 /// <p>The open mode of a replica database.</p>
1850 /// <p>This parameter is only supported for Db2 DB instances and Oracle DB instances.</p>
1851 /// <dl>
1852 /// <dt>
1853 /// Db2
1854 /// </dt>
1855 /// <dd>
1856 /// <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>
1857 /// <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>
1858 /// <p>To create standby DB replicas for RDS for Db2, set this parameter to <code>mounted</code>.</p>
1859 /// </dd>
1860 /// <dt>
1861 /// Oracle
1862 /// </dt>
1863 /// <dd>
1864 /// <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>
1865 /// <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>
1866 /// <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>
1867 /// </dd>
1868 /// </dl>
1869 pub fn get_replica_mode(&self) -> &::std::option::Option<crate::types::ReplicaMode> {
1870 self.inner.get_replica_mode()
1871 }
1872 /// <p>The automation mode of the RDS Custom DB instance. If <code>full</code>, the DB instance automates monitoring and instance recovery. If <code>all paused</code>, the instance pauses automation for the duration set by <code>ResumeFullAutomationModeMinutes</code>.</p>
1873 pub fn automation_mode(mut self, input: crate::types::AutomationMode) -> Self {
1874 self.inner = self.inner.automation_mode(input);
1875 self
1876 }
1877 /// <p>The automation mode of the RDS Custom DB instance. If <code>full</code>, the DB instance automates monitoring and instance recovery. If <code>all paused</code>, the instance pauses automation for the duration set by <code>ResumeFullAutomationModeMinutes</code>.</p>
1878 pub fn set_automation_mode(mut self, input: ::std::option::Option<crate::types::AutomationMode>) -> Self {
1879 self.inner = self.inner.set_automation_mode(input);
1880 self
1881 }
1882 /// <p>The automation mode of the RDS Custom DB instance. If <code>full</code>, the DB instance automates monitoring and instance recovery. If <code>all paused</code>, the instance pauses automation for the duration set by <code>ResumeFullAutomationModeMinutes</code>.</p>
1883 pub fn get_automation_mode(&self) -> &::std::option::Option<crate::types::AutomationMode> {
1884 self.inner.get_automation_mode()
1885 }
1886 /// <p>The number of minutes to pause the automation. When the time period ends, RDS Custom resumes full automation.</p>
1887 /// <p>Default: <code>60</code></p>
1888 /// <p>Constraints:</p>
1889 /// <ul>
1890 /// <li>
1891 /// <p>Must be at least 60.</p></li>
1892 /// <li>
1893 /// <p>Must be no more than 1,440.</p></li>
1894 /// </ul>
1895 pub fn resume_full_automation_mode_minutes(mut self, input: i32) -> Self {
1896 self.inner = self.inner.resume_full_automation_mode_minutes(input);
1897 self
1898 }
1899 /// <p>The number of minutes to pause the automation. When the time period ends, RDS Custom resumes full automation.</p>
1900 /// <p>Default: <code>60</code></p>
1901 /// <p>Constraints:</p>
1902 /// <ul>
1903 /// <li>
1904 /// <p>Must be at least 60.</p></li>
1905 /// <li>
1906 /// <p>Must be no more than 1,440.</p></li>
1907 /// </ul>
1908 pub fn set_resume_full_automation_mode_minutes(mut self, input: ::std::option::Option<i32>) -> Self {
1909 self.inner = self.inner.set_resume_full_automation_mode_minutes(input);
1910 self
1911 }
1912 /// <p>The number of minutes to pause the automation. When the time period ends, RDS Custom resumes full automation.</p>
1913 /// <p>Default: <code>60</code></p>
1914 /// <p>Constraints:</p>
1915 /// <ul>
1916 /// <li>
1917 /// <p>Must be at least 60.</p></li>
1918 /// <li>
1919 /// <p>Must be no more than 1,440.</p></li>
1920 /// </ul>
1921 pub fn get_resume_full_automation_mode_minutes(&self) -> &::std::option::Option<i32> {
1922 self.inner.get_resume_full_automation_mode_minutes()
1923 }
1924 /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
1925 /// <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 DB instance from outside of its virtual private cloud (VPC) on your local network.</p>
1926 /// <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>
1927 /// <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>
1928 pub fn enable_customer_owned_ip(mut self, input: bool) -> Self {
1929 self.inner = self.inner.enable_customer_owned_ip(input);
1930 self
1931 }
1932 /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
1933 /// <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 DB instance from outside of its virtual private cloud (VPC) on your local network.</p>
1934 /// <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>
1935 /// <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>
1936 pub fn set_enable_customer_owned_ip(mut self, input: ::std::option::Option<bool>) -> Self {
1937 self.inner = self.inner.set_enable_customer_owned_ip(input);
1938 self
1939 }
1940 /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
1941 /// <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 DB instance from outside of its virtual private cloud (VPC) on your local network.</p>
1942 /// <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>
1943 /// <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>
1944 pub fn get_enable_customer_owned_ip(&self) -> &::std::option::Option<bool> {
1945 self.inner.get_enable_customer_owned_ip()
1946 }
1947 /// <p>The network type of the DB instance.</p>
1948 /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB instance. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1949 /// <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>
1950 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1951 pub fn network_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1952 self.inner = self.inner.network_type(input.into());
1953 self
1954 }
1955 /// <p>The network type of the DB instance.</p>
1956 /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB instance. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1957 /// <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>
1958 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1959 pub fn set_network_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1960 self.inner = self.inner.set_network_type(input);
1961 self
1962 }
1963 /// <p>The network type of the DB instance.</p>
1964 /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB instance. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1965 /// <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>
1966 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1967 pub fn get_network_type(&self) -> &::std::option::Option<::std::string::String> {
1968 self.inner.get_network_type()
1969 }
1970 /// <p>The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.</p>
1971 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1972 pub fn aws_backup_recovery_point_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1973 self.inner = self.inner.aws_backup_recovery_point_arn(input.into());
1974 self
1975 }
1976 /// <p>The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.</p>
1977 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1978 pub fn set_aws_backup_recovery_point_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1979 self.inner = self.inner.set_aws_backup_recovery_point_arn(input);
1980 self
1981 }
1982 /// <p>The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.</p>
1983 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1984 pub fn get_aws_backup_recovery_point_arn(&self) -> &::std::option::Option<::std::string::String> {
1985 self.inner.get_aws_backup_recovery_point_arn()
1986 }
1987 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
1988 /// <p>If the DB instance doesn't manage the master user password with Amazon Web Services Secrets Manager, you can turn on this management. In this case, you can't specify <code>MasterUserPassword</code>.</p>
1989 /// <p>If the DB instance already manages the master user password with Amazon Web Services Secrets Manager, and you specify that the master user password is not managed with Amazon Web Services Secrets Manager, then you must specify <code>MasterUserPassword</code>. In this case, Amazon RDS deletes the secret and uses the new password for the master user specified by <code>MasterUserPassword</code>.</p>
1990 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide.</i></p>
1991 /// <p>Constraints:</p>
1992 /// <ul>
1993 /// <li>
1994 /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
1995 /// <li>
1996 /// <p>Can't specify for RDS for Oracle CDB instances in the multi-tenant configuration. Use <code>ModifyTenantDatabase</code> instead.</p></li>
1997 /// <li>
1998 /// <p>Can't specify the parameters <code>ManageMasterUserPassword</code> and <code>MultiTenant</code> in the same operation.</p></li>
1999 /// </ul>
2000 pub fn manage_master_user_password(mut self, input: bool) -> Self {
2001 self.inner = self.inner.manage_master_user_password(input);
2002 self
2003 }
2004 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
2005 /// <p>If the DB instance doesn't manage the master user password with Amazon Web Services Secrets Manager, you can turn on this management. In this case, you can't specify <code>MasterUserPassword</code>.</p>
2006 /// <p>If the DB instance already manages the master user password with Amazon Web Services Secrets Manager, and you specify that the master user password is not managed with Amazon Web Services Secrets Manager, then you must specify <code>MasterUserPassword</code>. In this case, Amazon RDS deletes the secret and uses the new password for the master user specified by <code>MasterUserPassword</code>.</p>
2007 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide.</i></p>
2008 /// <p>Constraints:</p>
2009 /// <ul>
2010 /// <li>
2011 /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
2012 /// <li>
2013 /// <p>Can't specify for RDS for Oracle CDB instances in the multi-tenant configuration. Use <code>ModifyTenantDatabase</code> instead.</p></li>
2014 /// <li>
2015 /// <p>Can't specify the parameters <code>ManageMasterUserPassword</code> and <code>MultiTenant</code> in the same operation.</p></li>
2016 /// </ul>
2017 pub fn set_manage_master_user_password(mut self, input: ::std::option::Option<bool>) -> Self {
2018 self.inner = self.inner.set_manage_master_user_password(input);
2019 self
2020 }
2021 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
2022 /// <p>If the DB instance doesn't manage the master user password with Amazon Web Services Secrets Manager, you can turn on this management. In this case, you can't specify <code>MasterUserPassword</code>.</p>
2023 /// <p>If the DB instance already manages the master user password with Amazon Web Services Secrets Manager, and you specify that the master user password is not managed with Amazon Web Services Secrets Manager, then you must specify <code>MasterUserPassword</code>. In this case, Amazon RDS deletes the secret and uses the new password for the master user specified by <code>MasterUserPassword</code>.</p>
2024 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide.</i></p>
2025 /// <p>Constraints:</p>
2026 /// <ul>
2027 /// <li>
2028 /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
2029 /// <li>
2030 /// <p>Can't specify for RDS for Oracle CDB instances in the multi-tenant configuration. Use <code>ModifyTenantDatabase</code> instead.</p></li>
2031 /// <li>
2032 /// <p>Can't specify the parameters <code>ManageMasterUserPassword</code> and <code>MultiTenant</code> in the same operation.</p></li>
2033 /// </ul>
2034 pub fn get_manage_master_user_password(&self) -> &::std::option::Option<bool> {
2035 self.inner.get_manage_master_user_password()
2036 }
2037 /// <p>Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password.</p>
2038 /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB instance. The secret value contains the updated password.</p>
2039 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide.</i></p>
2040 /// <p>Constraints:</p>
2041 /// <ul>
2042 /// <li>
2043 /// <p>You must apply the change immediately when rotating the master user password.</p></li>
2044 /// </ul>
2045 pub fn rotate_master_user_password(mut self, input: bool) -> Self {
2046 self.inner = self.inner.rotate_master_user_password(input);
2047 self
2048 }
2049 /// <p>Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password.</p>
2050 /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB instance. The secret value contains the updated password.</p>
2051 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide.</i></p>
2052 /// <p>Constraints:</p>
2053 /// <ul>
2054 /// <li>
2055 /// <p>You must apply the change immediately when rotating the master user password.</p></li>
2056 /// </ul>
2057 pub fn set_rotate_master_user_password(mut self, input: ::std::option::Option<bool>) -> Self {
2058 self.inner = self.inner.set_rotate_master_user_password(input);
2059 self
2060 }
2061 /// <p>Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password.</p>
2062 /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB instance. The secret value contains the updated password.</p>
2063 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide.</i></p>
2064 /// <p>Constraints:</p>
2065 /// <ul>
2066 /// <li>
2067 /// <p>You must apply the change immediately when rotating the master user password.</p></li>
2068 /// </ul>
2069 pub fn get_rotate_master_user_password(&self) -> &::std::option::Option<bool> {
2070 self.inner.get_rotate_master_user_password()
2071 }
2072 /// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
2073 /// <p>This setting is valid only if both of the following conditions are met:</p>
2074 /// <ul>
2075 /// <li>
2076 /// <p>The DB instance doesn't manage the master user password in Amazon Web Services Secrets Manager.</p>
2077 /// <p>If the DB instance already manages the master user password in Amazon Web Services Secrets Manager, you can't change the KMS key used to encrypt the secret.</p></li>
2078 /// <li>
2079 /// <p>You are turning on <code>ManageMasterUserPassword</code> to manage the master user password in Amazon Web Services Secrets Manager.</p>
2080 /// <p>If you are turning on <code>ManageMasterUserPassword</code> and don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p></li>
2081 /// </ul>
2082 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
2083 /// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
2084 pub fn master_user_secret_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2085 self.inner = self.inner.master_user_secret_kms_key_id(input.into());
2086 self
2087 }
2088 /// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
2089 /// <p>This setting is valid only if both of the following conditions are met:</p>
2090 /// <ul>
2091 /// <li>
2092 /// <p>The DB instance doesn't manage the master user password in Amazon Web Services Secrets Manager.</p>
2093 /// <p>If the DB instance already manages the master user password in Amazon Web Services Secrets Manager, you can't change the KMS key used to encrypt the secret.</p></li>
2094 /// <li>
2095 /// <p>You are turning on <code>ManageMasterUserPassword</code> to manage the master user password in Amazon Web Services Secrets Manager.</p>
2096 /// <p>If you are turning on <code>ManageMasterUserPassword</code> and don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p></li>
2097 /// </ul>
2098 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
2099 /// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
2100 pub fn set_master_user_secret_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2101 self.inner = self.inner.set_master_user_secret_kms_key_id(input);
2102 self
2103 }
2104 /// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
2105 /// <p>This setting is valid only if both of the following conditions are met:</p>
2106 /// <ul>
2107 /// <li>
2108 /// <p>The DB instance doesn't manage the master user password in Amazon Web Services Secrets Manager.</p>
2109 /// <p>If the DB instance already manages the master user password in Amazon Web Services Secrets Manager, you can't change the KMS key used to encrypt the secret.</p></li>
2110 /// <li>
2111 /// <p>You are turning on <code>ManageMasterUserPassword</code> to manage the master user password in Amazon Web Services Secrets Manager.</p>
2112 /// <p>If you are turning on <code>ManageMasterUserPassword</code> and don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p></li>
2113 /// </ul>
2114 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
2115 /// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
2116 pub fn get_master_user_secret_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
2117 self.inner.get_master_user_secret_kms_key_id()
2118 }
2119 /// <p>Specifies whether the to convert your DB instance from the single-tenant configuration to the multi-tenant configuration. This parameter is supported only for RDS for Oracle CDB instances.</p>
2120 /// <p>During the conversion, RDS creates an initial tenant database and associates the DB name, master user name, character set, and national character set metadata with this database. The tags associated with the instance also propagate to the initial tenant database. You can add more tenant databases to your DB instance by using the <code>CreateTenantDatabase</code> operation.</p><important>
2121 /// <p>The conversion to the multi-tenant configuration is permanent and irreversible, so you can't later convert back to the single-tenant configuration. When you specify this parameter, you must also specify <code>ApplyImmediately</code>.</p>
2122 /// </important>
2123 pub fn multi_tenant(mut self, input: bool) -> Self {
2124 self.inner = self.inner.multi_tenant(input);
2125 self
2126 }
2127 /// <p>Specifies whether the to convert your DB instance from the single-tenant configuration to the multi-tenant configuration. This parameter is supported only for RDS for Oracle CDB instances.</p>
2128 /// <p>During the conversion, RDS creates an initial tenant database and associates the DB name, master user name, character set, and national character set metadata with this database. The tags associated with the instance also propagate to the initial tenant database. You can add more tenant databases to your DB instance by using the <code>CreateTenantDatabase</code> operation.</p><important>
2129 /// <p>The conversion to the multi-tenant configuration is permanent and irreversible, so you can't later convert back to the single-tenant configuration. When you specify this parameter, you must also specify <code>ApplyImmediately</code>.</p>
2130 /// </important>
2131 pub fn set_multi_tenant(mut self, input: ::std::option::Option<bool>) -> Self {
2132 self.inner = self.inner.set_multi_tenant(input);
2133 self
2134 }
2135 /// <p>Specifies whether the to convert your DB instance from the single-tenant configuration to the multi-tenant configuration. This parameter is supported only for RDS for Oracle CDB instances.</p>
2136 /// <p>During the conversion, RDS creates an initial tenant database and associates the DB name, master user name, character set, and national character set metadata with this database. The tags associated with the instance also propagate to the initial tenant database. You can add more tenant databases to your DB instance by using the <code>CreateTenantDatabase</code> operation.</p><important>
2137 /// <p>The conversion to the multi-tenant configuration is permanent and irreversible, so you can't later convert back to the single-tenant configuration. When you specify this parameter, you must also specify <code>ApplyImmediately</code>.</p>
2138 /// </important>
2139 pub fn get_multi_tenant(&self) -> &::std::option::Option<bool> {
2140 self.inner.get_multi_tenant()
2141 }
2142 /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
2143 pub fn dedicated_log_volume(mut self, input: bool) -> Self {
2144 self.inner = self.inner.dedicated_log_volume(input);
2145 self
2146 }
2147 /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
2148 pub fn set_dedicated_log_volume(mut self, input: ::std::option::Option<bool>) -> Self {
2149 self.inner = self.inner.set_dedicated_log_volume(input);
2150 self
2151 }
2152 /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
2153 pub fn get_dedicated_log_volume(&self) -> &::std::option::Option<bool> {
2154 self.inner.get_dedicated_log_volume()
2155 }
2156 /// <p>The target Oracle DB engine when you convert a non-CDB to a CDB. This intermediate step is necessary to upgrade an Oracle Database 19c non-CDB to an Oracle Database 21c CDB.</p>
2157 /// <p>Note the following requirements:</p>
2158 /// <ul>
2159 /// <li>
2160 /// <p>Make sure that you specify <code>oracle-ee-cdb</code> or <code>oracle-se2-cdb</code>.</p></li>
2161 /// <li>
2162 /// <p>Make sure that your DB engine runs Oracle Database 19c with an April 2021 or later RU.</p></li>
2163 /// </ul>
2164 /// <p>Note the following limitations:</p>
2165 /// <ul>
2166 /// <li>
2167 /// <p>You can't convert a CDB to a non-CDB.</p></li>
2168 /// <li>
2169 /// <p>You can't convert a replica database.</p></li>
2170 /// <li>
2171 /// <p>You can't convert a non-CDB to a CDB and upgrade the engine version in the same command.</p></li>
2172 /// <li>
2173 /// <p>You can't convert the existing custom parameter or option group when it has options or parameters that are permanent or persistent. In this situation, the DB instance reverts to the default option and parameter group. To avoid reverting to the default, specify a new parameter group with <code>--db-parameter-group-name</code> and a new option group with <code>--option-group-name</code>.</p></li>
2174 /// </ul>
2175 pub fn engine(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2176 self.inner = self.inner.engine(input.into());
2177 self
2178 }
2179 /// <p>The target Oracle DB engine when you convert a non-CDB to a CDB. This intermediate step is necessary to upgrade an Oracle Database 19c non-CDB to an Oracle Database 21c CDB.</p>
2180 /// <p>Note the following requirements:</p>
2181 /// <ul>
2182 /// <li>
2183 /// <p>Make sure that you specify <code>oracle-ee-cdb</code> or <code>oracle-se2-cdb</code>.</p></li>
2184 /// <li>
2185 /// <p>Make sure that your DB engine runs Oracle Database 19c with an April 2021 or later RU.</p></li>
2186 /// </ul>
2187 /// <p>Note the following limitations:</p>
2188 /// <ul>
2189 /// <li>
2190 /// <p>You can't convert a CDB to a non-CDB.</p></li>
2191 /// <li>
2192 /// <p>You can't convert a replica database.</p></li>
2193 /// <li>
2194 /// <p>You can't convert a non-CDB to a CDB and upgrade the engine version in the same command.</p></li>
2195 /// <li>
2196 /// <p>You can't convert the existing custom parameter or option group when it has options or parameters that are permanent or persistent. In this situation, the DB instance reverts to the default option and parameter group. To avoid reverting to the default, specify a new parameter group with <code>--db-parameter-group-name</code> and a new option group with <code>--option-group-name</code>.</p></li>
2197 /// </ul>
2198 pub fn set_engine(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2199 self.inner = self.inner.set_engine(input);
2200 self
2201 }
2202 /// <p>The target Oracle DB engine when you convert a non-CDB to a CDB. This intermediate step is necessary to upgrade an Oracle Database 19c non-CDB to an Oracle Database 21c CDB.</p>
2203 /// <p>Note the following requirements:</p>
2204 /// <ul>
2205 /// <li>
2206 /// <p>Make sure that you specify <code>oracle-ee-cdb</code> or <code>oracle-se2-cdb</code>.</p></li>
2207 /// <li>
2208 /// <p>Make sure that your DB engine runs Oracle Database 19c with an April 2021 or later RU.</p></li>
2209 /// </ul>
2210 /// <p>Note the following limitations:</p>
2211 /// <ul>
2212 /// <li>
2213 /// <p>You can't convert a CDB to a non-CDB.</p></li>
2214 /// <li>
2215 /// <p>You can't convert a replica database.</p></li>
2216 /// <li>
2217 /// <p>You can't convert a non-CDB to a CDB and upgrade the engine version in the same command.</p></li>
2218 /// <li>
2219 /// <p>You can't convert the existing custom parameter or option group when it has options or parameters that are permanent or persistent. In this situation, the DB instance reverts to the default option and parameter group. To avoid reverting to the default, specify a new parameter group with <code>--db-parameter-group-name</code> and a new option group with <code>--option-group-name</code>.</p></li>
2220 /// </ul>
2221 pub fn get_engine(&self) -> &::std::option::Option<::std::string::String> {
2222 self.inner.get_engine()
2223 }
2224 /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can change the master DB user to use IAM database authentication.</p>
2225 /// <p>You can specify one of the following values:</p>
2226 /// <ul>
2227 /// <li>
2228 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
2229 /// <li>
2230 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
2231 /// </ul>
2232 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
2233 pub fn master_user_authentication_type(mut self, input: crate::types::MasterUserAuthenticationType) -> Self {
2234 self.inner = self.inner.master_user_authentication_type(input);
2235 self
2236 }
2237 /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can change the master DB user to use IAM database authentication.</p>
2238 /// <p>You can specify one of the following values:</p>
2239 /// <ul>
2240 /// <li>
2241 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
2242 /// <li>
2243 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
2244 /// </ul>
2245 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
2246 pub fn set_master_user_authentication_type(mut self, input: ::std::option::Option<crate::types::MasterUserAuthenticationType>) -> Self {
2247 self.inner = self.inner.set_master_user_authentication_type(input);
2248 self
2249 }
2250 /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can change the master DB user to use IAM database authentication.</p>
2251 /// <p>You can specify one of the following values:</p>
2252 /// <ul>
2253 /// <li>
2254 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
2255 /// <li>
2256 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
2257 /// </ul>
2258 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
2259 pub fn get_master_user_authentication_type(&self) -> &::std::option::Option<crate::types::MasterUserAuthenticationType> {
2260 self.inner.get_master_user_authentication_type()
2261 }
2262}