aws_sdk_rds/operation/modify_db_cluster/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::modify_db_cluster::_modify_db_cluster_output::ModifyDbClusterOutputBuilder;
3
4pub use crate::operation::modify_db_cluster::_modify_db_cluster_input::ModifyDbClusterInputBuilder;
5
6impl crate::operation::modify_db_cluster::builders::ModifyDbClusterInputBuilder {
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_cluster::ModifyDbClusterOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::modify_db_cluster::ModifyDBClusterError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.modify_db_cluster();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `ModifyDBCluster`.
24///
25/// <p>Modifies the settings of an Amazon Aurora DB cluster or a Multi-AZ DB cluster. You can change one or more settings by specifying these parameters and the new values in the request.</p>
26/// <p>For more information on Amazon Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html"> What is Amazon Aurora?</a> in the <i>Amazon Aurora User Guide</i>.</p>
27/// <p>For more information on Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html"> Multi-AZ DB cluster deployments</a> in the <i>Amazon RDS User Guide</i>.</p>
28#[derive(::std::clone::Clone, ::std::fmt::Debug)]
29pub struct ModifyDBClusterFluentBuilder {
30 handle: ::std::sync::Arc<crate::client::Handle>,
31 inner: crate::operation::modify_db_cluster::builders::ModifyDbClusterInputBuilder,
32 config_override: ::std::option::Option<crate::config::Builder>,
33}
34impl
35 crate::client::customize::internal::CustomizableSend<
36 crate::operation::modify_db_cluster::ModifyDbClusterOutput,
37 crate::operation::modify_db_cluster::ModifyDBClusterError,
38 > for ModifyDBClusterFluentBuilder
39{
40 fn send(
41 self,
42 config_override: crate::config::Builder,
43 ) -> crate::client::customize::internal::BoxFuture<
44 crate::client::customize::internal::SendResult<
45 crate::operation::modify_db_cluster::ModifyDbClusterOutput,
46 crate::operation::modify_db_cluster::ModifyDBClusterError,
47 >,
48 > {
49 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
50 }
51}
52impl ModifyDBClusterFluentBuilder {
53 /// Creates a new `ModifyDBClusterFluentBuilder`.
54 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
55 Self {
56 handle,
57 inner: ::std::default::Default::default(),
58 config_override: ::std::option::Option::None,
59 }
60 }
61 /// Access the ModifyDBCluster as a reference.
62 pub fn as_input(&self) -> &crate::operation::modify_db_cluster::builders::ModifyDbClusterInputBuilder {
63 &self.inner
64 }
65 /// Sends the request and returns the response.
66 ///
67 /// If an error occurs, an `SdkError` will be returned with additional details that
68 /// can be matched against.
69 ///
70 /// By default, any retryable failures will be retried twice. Retry behavior
71 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
72 /// set when configuring the client.
73 pub async fn send(
74 self,
75 ) -> ::std::result::Result<
76 crate::operation::modify_db_cluster::ModifyDbClusterOutput,
77 ::aws_smithy_runtime_api::client::result::SdkError<
78 crate::operation::modify_db_cluster::ModifyDBClusterError,
79 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
80 >,
81 > {
82 let input = self
83 .inner
84 .build()
85 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
86 let runtime_plugins = crate::operation::modify_db_cluster::ModifyDBCluster::operation_runtime_plugins(
87 self.handle.runtime_plugins.clone(),
88 &self.handle.conf,
89 self.config_override,
90 );
91 crate::operation::modify_db_cluster::ModifyDBCluster::orchestrate(&runtime_plugins, input).await
92 }
93
94 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
95 pub fn customize(
96 self,
97 ) -> crate::client::customize::CustomizableOperation<
98 crate::operation::modify_db_cluster::ModifyDbClusterOutput,
99 crate::operation::modify_db_cluster::ModifyDBClusterError,
100 Self,
101 > {
102 crate::client::customize::CustomizableOperation::new(self)
103 }
104 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
105 self.set_config_override(::std::option::Option::Some(config_override.into()));
106 self
107 }
108
109 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
110 self.config_override = config_override;
111 self
112 }
113 /// <p>The DB cluster identifier for the cluster being modified. This parameter isn't case-sensitive.</p>
114 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
115 /// <p>Constraints:</p>
116 /// <ul>
117 /// <li>
118 /// <p>Must match the identifier of an existing DB cluster.</p></li>
119 /// </ul>
120 pub fn db_cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
121 self.inner = self.inner.db_cluster_identifier(input.into());
122 self
123 }
124 /// <p>The DB cluster identifier for the cluster being modified. This parameter isn't case-sensitive.</p>
125 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
126 /// <p>Constraints:</p>
127 /// <ul>
128 /// <li>
129 /// <p>Must match the identifier of an existing DB cluster.</p></li>
130 /// </ul>
131 pub fn set_db_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
132 self.inner = self.inner.set_db_cluster_identifier(input);
133 self
134 }
135 /// <p>The DB cluster identifier for the cluster being modified. This parameter isn't case-sensitive.</p>
136 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
137 /// <p>Constraints:</p>
138 /// <ul>
139 /// <li>
140 /// <p>Must match the identifier of an existing DB cluster.</p></li>
141 /// </ul>
142 pub fn get_db_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
143 self.inner.get_db_cluster_identifier()
144 }
145 /// <p>The new DB cluster identifier for the DB cluster when renaming a DB cluster. This value is stored as a lowercase string.</p>
146 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
147 /// <p>Constraints:</p>
148 /// <ul>
149 /// <li>
150 /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
151 /// <li>
152 /// <p>The first character must be a letter.</p></li>
153 /// <li>
154 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
155 /// </ul>
156 /// <p>Example: <code>my-cluster2</code></p>
157 pub fn new_db_cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
158 self.inner = self.inner.new_db_cluster_identifier(input.into());
159 self
160 }
161 /// <p>The new DB cluster identifier for the DB cluster when renaming a DB cluster. This value is stored as a lowercase string.</p>
162 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
163 /// <p>Constraints:</p>
164 /// <ul>
165 /// <li>
166 /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
167 /// <li>
168 /// <p>The first character must be a letter.</p></li>
169 /// <li>
170 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
171 /// </ul>
172 /// <p>Example: <code>my-cluster2</code></p>
173 pub fn set_new_db_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
174 self.inner = self.inner.set_new_db_cluster_identifier(input);
175 self
176 }
177 /// <p>The new DB cluster identifier for the DB cluster when renaming a DB cluster. This value is stored as a lowercase string.</p>
178 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
179 /// <p>Constraints:</p>
180 /// <ul>
181 /// <li>
182 /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
183 /// <li>
184 /// <p>The first character must be a letter.</p></li>
185 /// <li>
186 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
187 /// </ul>
188 /// <p>Example: <code>my-cluster2</code></p>
189 pub fn get_new_db_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
190 self.inner.get_new_db_cluster_identifier()
191 }
192 /// <p>Specifies whether the modifications in this request are asynchronously applied as soon as possible, regardless of the <code>PreferredMaintenanceWindow</code> setting for the DB cluster. If this parameter is disabled, changes to the DB cluster are applied during the next maintenance window.</p>
193 /// <p>Most modifications can be applied immediately or during the next scheduled maintenance window. Some modifications, such as turning on deletion protection and changing the master password, are applied immediately—regardless of when you choose to apply them.</p>
194 /// <p>By default, this parameter is disabled.</p>
195 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
196 pub fn apply_immediately(mut self, input: bool) -> Self {
197 self.inner = self.inner.apply_immediately(input);
198 self
199 }
200 /// <p>Specifies whether the modifications in this request are asynchronously applied as soon as possible, regardless of the <code>PreferredMaintenanceWindow</code> setting for the DB cluster. If this parameter is disabled, changes to the DB cluster are applied during the next maintenance window.</p>
201 /// <p>Most modifications can be applied immediately or during the next scheduled maintenance window. Some modifications, such as turning on deletion protection and changing the master password, are applied immediately—regardless of when you choose to apply them.</p>
202 /// <p>By default, this parameter is disabled.</p>
203 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
204 pub fn set_apply_immediately(mut self, input: ::std::option::Option<bool>) -> Self {
205 self.inner = self.inner.set_apply_immediately(input);
206 self
207 }
208 /// <p>Specifies whether the modifications in this request are asynchronously applied as soon as possible, regardless of the <code>PreferredMaintenanceWindow</code> setting for the DB cluster. If this parameter is disabled, changes to the DB cluster are applied during the next maintenance window.</p>
209 /// <p>Most modifications can be applied immediately or during the next scheduled maintenance window. Some modifications, such as turning on deletion protection and changing the master password, are applied immediately—regardless of when you choose to apply them.</p>
210 /// <p>By default, this parameter is disabled.</p>
211 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
212 pub fn get_apply_immediately(&self) -> &::std::option::Option<bool> {
213 self.inner.get_apply_immediately()
214 }
215 /// <p>The number of days for which automated backups are retained. Specify a minimum value of <code>1</code>.</p>
216 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
217 /// <p>Default: <code>1</code></p>
218 /// <p>Constraints:</p>
219 /// <ul>
220 /// <li>
221 /// <p>Must be a value from 1 to 35.</p></li>
222 /// </ul>
223 pub fn backup_retention_period(mut self, input: i32) -> Self {
224 self.inner = self.inner.backup_retention_period(input);
225 self
226 }
227 /// <p>The number of days for which automated backups are retained. Specify a minimum value of <code>1</code>.</p>
228 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
229 /// <p>Default: <code>1</code></p>
230 /// <p>Constraints:</p>
231 /// <ul>
232 /// <li>
233 /// <p>Must be a value from 1 to 35.</p></li>
234 /// </ul>
235 pub fn set_backup_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
236 self.inner = self.inner.set_backup_retention_period(input);
237 self
238 }
239 /// <p>The number of days for which automated backups are retained. Specify a minimum value of <code>1</code>.</p>
240 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
241 /// <p>Default: <code>1</code></p>
242 /// <p>Constraints:</p>
243 /// <ul>
244 /// <li>
245 /// <p>Must be a value from 1 to 35.</p></li>
246 /// </ul>
247 pub fn get_backup_retention_period(&self) -> &::std::option::Option<i32> {
248 self.inner.get_backup_retention_period()
249 }
250 /// <p>The name of the DB cluster parameter group to use for the DB cluster.</p>
251 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
252 pub fn db_cluster_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
253 self.inner = self.inner.db_cluster_parameter_group_name(input.into());
254 self
255 }
256 /// <p>The name of the DB cluster parameter group to use for the DB cluster.</p>
257 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
258 pub fn set_db_cluster_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
259 self.inner = self.inner.set_db_cluster_parameter_group_name(input);
260 self
261 }
262 /// <p>The name of the DB cluster parameter group to use for the DB cluster.</p>
263 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
264 pub fn get_db_cluster_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
265 self.inner.get_db_cluster_parameter_group_name()
266 }
267 ///
268 /// Appends an item to `VpcSecurityGroupIds`.
269 ///
270 /// To override the contents of this collection use [`set_vpc_security_group_ids`](Self::set_vpc_security_group_ids).
271 ///
272 /// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
273 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
274 pub fn vpc_security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
275 self.inner = self.inner.vpc_security_group_ids(input.into());
276 self
277 }
278 /// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
279 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
280 pub fn set_vpc_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
281 self.inner = self.inner.set_vpc_security_group_ids(input);
282 self
283 }
284 /// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
285 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
286 pub fn get_vpc_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
287 self.inner.get_vpc_security_group_ids()
288 }
289 /// <p>The port number on which the DB cluster accepts connections.</p>
290 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
291 /// <p>Valid Values: <code>1150-65535</code></p>
292 /// <p>Default: The same port as the original DB cluster.</p>
293 pub fn port(mut self, input: i32) -> Self {
294 self.inner = self.inner.port(input);
295 self
296 }
297 /// <p>The port number on which the DB cluster accepts connections.</p>
298 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
299 /// <p>Valid Values: <code>1150-65535</code></p>
300 /// <p>Default: The same port as the original DB cluster.</p>
301 pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
302 self.inner = self.inner.set_port(input);
303 self
304 }
305 /// <p>The port number on which the DB cluster accepts connections.</p>
306 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
307 /// <p>Valid Values: <code>1150-65535</code></p>
308 /// <p>Default: The same port as the original DB cluster.</p>
309 pub fn get_port(&self) -> &::std::option::Option<i32> {
310 self.inner.get_port()
311 }
312 /// <p>The new password for the master database user.</p>
313 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
314 /// <p>Constraints:</p>
315 /// <ul>
316 /// <li>
317 /// <p>Must contain from 8 to 41 characters.</p></li>
318 /// <li>
319 /// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
320 /// <li>
321 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
322 /// </ul>
323 pub fn master_user_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
324 self.inner = self.inner.master_user_password(input.into());
325 self
326 }
327 /// <p>The new password for the master database user.</p>
328 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
329 /// <p>Constraints:</p>
330 /// <ul>
331 /// <li>
332 /// <p>Must contain from 8 to 41 characters.</p></li>
333 /// <li>
334 /// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
335 /// <li>
336 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
337 /// </ul>
338 pub fn set_master_user_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
339 self.inner = self.inner.set_master_user_password(input);
340 self
341 }
342 /// <p>The new password for the master database user.</p>
343 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
344 /// <p>Constraints:</p>
345 /// <ul>
346 /// <li>
347 /// <p>Must contain from 8 to 41 characters.</p></li>
348 /// <li>
349 /// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
350 /// <li>
351 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
352 /// </ul>
353 pub fn get_master_user_password(&self) -> &::std::option::Option<::std::string::String> {
354 self.inner.get_master_user_password()
355 }
356 /// <p>The option group to associate the DB cluster with.</p>
357 /// <p>DB clusters are associated with a default option group that can't be modified.</p>
358 pub fn option_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
359 self.inner = self.inner.option_group_name(input.into());
360 self
361 }
362 /// <p>The option group to associate the DB cluster with.</p>
363 /// <p>DB clusters are associated with a default option group that can't be modified.</p>
364 pub fn set_option_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
365 self.inner = self.inner.set_option_group_name(input);
366 self
367 }
368 /// <p>The option group to associate the DB cluster with.</p>
369 /// <p>DB clusters are associated with a default option group that can't be modified.</p>
370 pub fn get_option_group_name(&self) -> &::std::option::Option<::std::string::String> {
371 self.inner.get_option_group_name()
372 }
373 /// <p>The daily time range during which automated backups are created if automated backups are enabled, using the <code>BackupRetentionPeriod</code> parameter.</p>
374 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
375 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
376 /// <p>Constraints:</p>
377 /// <ul>
378 /// <li>
379 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
380 /// <li>
381 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
382 /// <li>
383 /// <p>Must not conflict with the preferred maintenance window.</p></li>
384 /// <li>
385 /// <p>Must be at least 30 minutes.</p></li>
386 /// </ul>
387 pub fn preferred_backup_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
388 self.inner = self.inner.preferred_backup_window(input.into());
389 self
390 }
391 /// <p>The daily time range during which automated backups are created if automated backups are enabled, using the <code>BackupRetentionPeriod</code> parameter.</p>
392 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
393 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
394 /// <p>Constraints:</p>
395 /// <ul>
396 /// <li>
397 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
398 /// <li>
399 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
400 /// <li>
401 /// <p>Must not conflict with the preferred maintenance window.</p></li>
402 /// <li>
403 /// <p>Must be at least 30 minutes.</p></li>
404 /// </ul>
405 pub fn set_preferred_backup_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
406 self.inner = self.inner.set_preferred_backup_window(input);
407 self
408 }
409 /// <p>The daily time range during which automated backups are created if automated backups are enabled, using the <code>BackupRetentionPeriod</code> parameter.</p>
410 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
411 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
412 /// <p>Constraints:</p>
413 /// <ul>
414 /// <li>
415 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
416 /// <li>
417 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
418 /// <li>
419 /// <p>Must not conflict with the preferred maintenance window.</p></li>
420 /// <li>
421 /// <p>Must be at least 30 minutes.</p></li>
422 /// </ul>
423 pub fn get_preferred_backup_window(&self) -> &::std::option::Option<::std::string::String> {
424 self.inner.get_preferred_backup_window()
425 }
426 /// <p>The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).</p>
427 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
428 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
429 /// <p>Constraints:</p>
430 /// <ul>
431 /// <li>
432 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
433 /// <li>
434 /// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
435 /// <li>
436 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
437 /// <li>
438 /// <p>Must be at least 30 minutes.</p></li>
439 /// </ul>
440 pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
441 self.inner = self.inner.preferred_maintenance_window(input.into());
442 self
443 }
444 /// <p>The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).</p>
445 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
446 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
447 /// <p>Constraints:</p>
448 /// <ul>
449 /// <li>
450 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
451 /// <li>
452 /// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
453 /// <li>
454 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
455 /// <li>
456 /// <p>Must be at least 30 minutes.</p></li>
457 /// </ul>
458 pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
459 self.inner = self.inner.set_preferred_maintenance_window(input);
460 self
461 }
462 /// <p>The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).</p>
463 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
464 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
465 /// <p>Constraints:</p>
466 /// <ul>
467 /// <li>
468 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
469 /// <li>
470 /// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
471 /// <li>
472 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
473 /// <li>
474 /// <p>Must be at least 30 minutes.</p></li>
475 /// </ul>
476 pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
477 self.inner.get_preferred_maintenance_window()
478 }
479 /// <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>
480 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
481 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
482 pub fn enable_iam_database_authentication(mut self, input: bool) -> Self {
483 self.inner = self.inner.enable_iam_database_authentication(input);
484 self
485 }
486 /// <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>
487 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
488 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
489 pub fn set_enable_iam_database_authentication(mut self, input: ::std::option::Option<bool>) -> Self {
490 self.inner = self.inner.set_enable_iam_database_authentication(input);
491 self
492 }
493 /// <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>
494 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
495 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
496 pub fn get_enable_iam_database_authentication(&self) -> &::std::option::Option<bool> {
497 self.inner.get_enable_iam_database_authentication()
498 }
499 /// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
500 /// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
501 /// <p>Default: <code>0</code></p>
502 /// <p>Constraints:</p>
503 /// <ul>
504 /// <li>
505 /// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
506 /// </ul>
507 pub fn backtrack_window(mut self, input: i64) -> Self {
508 self.inner = self.inner.backtrack_window(input);
509 self
510 }
511 /// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
512 /// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
513 /// <p>Default: <code>0</code></p>
514 /// <p>Constraints:</p>
515 /// <ul>
516 /// <li>
517 /// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
518 /// </ul>
519 pub fn set_backtrack_window(mut self, input: ::std::option::Option<i64>) -> Self {
520 self.inner = self.inner.set_backtrack_window(input);
521 self
522 }
523 /// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
524 /// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
525 /// <p>Default: <code>0</code></p>
526 /// <p>Constraints:</p>
527 /// <ul>
528 /// <li>
529 /// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
530 /// </ul>
531 pub fn get_backtrack_window(&self) -> &::std::option::Option<i64> {
532 self.inner.get_backtrack_window()
533 }
534 /// <p>The configuration setting for the log types to be enabled for export to CloudWatch Logs for a specific DB cluster.</p>
535 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
536 /// <p>The following values are valid for each DB engine:</p>
537 /// <ul>
538 /// <li>
539 /// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
540 /// <li>
541 /// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
542 /// <li>
543 /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
544 /// <li>
545 /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
546 /// </ul>
547 /// <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>
548 /// <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>
549 pub fn cloudwatch_logs_export_configuration(mut self, input: crate::types::CloudwatchLogsExportConfiguration) -> Self {
550 self.inner = self.inner.cloudwatch_logs_export_configuration(input);
551 self
552 }
553 /// <p>The configuration setting for the log types to be enabled for export to CloudWatch Logs for a specific DB cluster.</p>
554 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
555 /// <p>The following values are valid for each DB engine:</p>
556 /// <ul>
557 /// <li>
558 /// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
559 /// <li>
560 /// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
561 /// <li>
562 /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
563 /// <li>
564 /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
565 /// </ul>
566 /// <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>
567 /// <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>
568 pub fn set_cloudwatch_logs_export_configuration(mut self, input: ::std::option::Option<crate::types::CloudwatchLogsExportConfiguration>) -> Self {
569 self.inner = self.inner.set_cloudwatch_logs_export_configuration(input);
570 self
571 }
572 /// <p>The configuration setting for the log types to be enabled for export to CloudWatch Logs for a specific DB cluster.</p>
573 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
574 /// <p>The following values are valid for each DB engine:</p>
575 /// <ul>
576 /// <li>
577 /// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
578 /// <li>
579 /// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
580 /// <li>
581 /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
582 /// <li>
583 /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
584 /// </ul>
585 /// <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>
586 /// <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>
587 pub fn get_cloudwatch_logs_export_configuration(&self) -> &::std::option::Option<crate::types::CloudwatchLogsExportConfiguration> {
588 self.inner.get_cloudwatch_logs_export_configuration()
589 }
590 /// <p>The version number of the database engine to which you want to upgrade. Changing this parameter results in an outage. The change is applied during the next maintenance window unless <code>ApplyImmediately</code> is enabled.</p>
591 /// <p>If the cluster that you're modifying has one or more read replicas, all replicas must be running an engine version that's the same or later than the version you specify.</p>
592 /// <p>To list all of the available engine versions for Aurora MySQL, use the following command:</p>
593 /// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
594 /// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
595 /// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
596 /// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
597 /// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
598 /// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
599 /// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
600 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
601 pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
602 self.inner = self.inner.engine_version(input.into());
603 self
604 }
605 /// <p>The version number of the database engine to which you want to upgrade. Changing this parameter results in an outage. The change is applied during the next maintenance window unless <code>ApplyImmediately</code> is enabled.</p>
606 /// <p>If the cluster that you're modifying has one or more read replicas, all replicas must be running an engine version that's the same or later than the version you specify.</p>
607 /// <p>To list all of the available engine versions for Aurora MySQL, use the following command:</p>
608 /// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
609 /// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
610 /// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
611 /// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
612 /// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
613 /// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
614 /// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
615 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
616 pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
617 self.inner = self.inner.set_engine_version(input);
618 self
619 }
620 /// <p>The version number of the database engine to which you want to upgrade. Changing this parameter results in an outage. The change is applied during the next maintenance window unless <code>ApplyImmediately</code> is enabled.</p>
621 /// <p>If the cluster that you're modifying has one or more read replicas, all replicas must be running an engine version that's the same or later than the version you specify.</p>
622 /// <p>To list all of the available engine versions for Aurora MySQL, use the following command:</p>
623 /// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
624 /// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
625 /// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
626 /// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
627 /// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
628 /// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
629 /// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
630 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
631 pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
632 self.inner.get_engine_version()
633 }
634 /// <p>Specifies whether major version upgrades are allowed.</p>
635 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
636 /// <p>Constraints:</p>
637 /// <ul>
638 /// <li>
639 /// <p>You must allow major version upgrades when specifying a value for the <code>EngineVersion</code> parameter that is a different major version than the DB cluster's current version.</p></li>
640 /// </ul>
641 pub fn allow_major_version_upgrade(mut self, input: bool) -> Self {
642 self.inner = self.inner.allow_major_version_upgrade(input);
643 self
644 }
645 /// <p>Specifies whether major version upgrades are allowed.</p>
646 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
647 /// <p>Constraints:</p>
648 /// <ul>
649 /// <li>
650 /// <p>You must allow major version upgrades when specifying a value for the <code>EngineVersion</code> parameter that is a different major version than the DB cluster's current version.</p></li>
651 /// </ul>
652 pub fn set_allow_major_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
653 self.inner = self.inner.set_allow_major_version_upgrade(input);
654 self
655 }
656 /// <p>Specifies whether major version upgrades are allowed.</p>
657 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
658 /// <p>Constraints:</p>
659 /// <ul>
660 /// <li>
661 /// <p>You must allow major version upgrades when specifying a value for the <code>EngineVersion</code> parameter that is a different major version than the DB cluster's current version.</p></li>
662 /// </ul>
663 pub fn get_allow_major_version_upgrade(&self) -> &::std::option::Option<bool> {
664 self.inner.get_allow_major_version_upgrade()
665 }
666 /// <p>The name of the DB parameter group to apply to all instances of the DB cluster.</p><note>
667 /// <p>When you apply a parameter group using the <code>DBInstanceParameterGroupName</code> parameter, the DB cluster isn't rebooted automatically. Also, parameter changes are applied immediately rather than during the next maintenance window.</p>
668 /// </note>
669 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
670 /// <p>Default: The existing name setting</p>
671 /// <p>Constraints:</p>
672 /// <ul>
673 /// <li>
674 /// <p>The DB parameter group must be in the same DB parameter group family as this DB cluster.</p></li>
675 /// <li>
676 /// <p>The <code>DBInstanceParameterGroupName</code> parameter is valid in combination with the <code>AllowMajorVersionUpgrade</code> parameter for a major version upgrade only.</p></li>
677 /// </ul>
678 pub fn db_instance_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
679 self.inner = self.inner.db_instance_parameter_group_name(input.into());
680 self
681 }
682 /// <p>The name of the DB parameter group to apply to all instances of the DB cluster.</p><note>
683 /// <p>When you apply a parameter group using the <code>DBInstanceParameterGroupName</code> parameter, the DB cluster isn't rebooted automatically. Also, parameter changes are applied immediately rather than during the next maintenance window.</p>
684 /// </note>
685 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
686 /// <p>Default: The existing name setting</p>
687 /// <p>Constraints:</p>
688 /// <ul>
689 /// <li>
690 /// <p>The DB parameter group must be in the same DB parameter group family as this DB cluster.</p></li>
691 /// <li>
692 /// <p>The <code>DBInstanceParameterGroupName</code> parameter is valid in combination with the <code>AllowMajorVersionUpgrade</code> parameter for a major version upgrade only.</p></li>
693 /// </ul>
694 pub fn set_db_instance_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
695 self.inner = self.inner.set_db_instance_parameter_group_name(input);
696 self
697 }
698 /// <p>The name of the DB parameter group to apply to all instances of the DB cluster.</p><note>
699 /// <p>When you apply a parameter group using the <code>DBInstanceParameterGroupName</code> parameter, the DB cluster isn't rebooted automatically. Also, parameter changes are applied immediately rather than during the next maintenance window.</p>
700 /// </note>
701 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
702 /// <p>Default: The existing name setting</p>
703 /// <p>Constraints:</p>
704 /// <ul>
705 /// <li>
706 /// <p>The DB parameter group must be in the same DB parameter group family as this DB cluster.</p></li>
707 /// <li>
708 /// <p>The <code>DBInstanceParameterGroupName</code> parameter is valid in combination with the <code>AllowMajorVersionUpgrade</code> parameter for a major version upgrade only.</p></li>
709 /// </ul>
710 pub fn get_db_instance_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
711 self.inner.get_db_instance_parameter_group_name()
712 }
713 /// <p>The Active Directory directory ID to move the DB cluster to. Specify <code>none</code> to remove the cluster from its current domain. The domain must be created prior to this operation.</p>
714 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos Authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
715 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
716 pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
717 self.inner = self.inner.domain(input.into());
718 self
719 }
720 /// <p>The Active Directory directory ID to move the DB cluster to. Specify <code>none</code> to remove the cluster from its current domain. The domain must be created prior to this operation.</p>
721 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos Authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
722 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
723 pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
724 self.inner = self.inner.set_domain(input);
725 self
726 }
727 /// <p>The Active Directory directory ID to move the DB cluster to. Specify <code>none</code> to remove the cluster from its current domain. The domain must be created prior to this operation.</p>
728 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos Authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
729 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
730 pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
731 self.inner.get_domain()
732 }
733 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
734 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
735 pub fn domain_iam_role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
736 self.inner = self.inner.domain_iam_role_name(input.into());
737 self
738 }
739 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
740 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
741 pub fn set_domain_iam_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
742 self.inner = self.inner.set_domain_iam_role_name(input);
743 self
744 }
745 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
746 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
747 pub fn get_domain_iam_role_name(&self) -> &::std::option::Option<::std::string::String> {
748 self.inner.get_domain_iam_role_name()
749 }
750 /// <p>The scaling properties of the DB cluster. You can only modify scaling properties for DB clusters in <code>serverless</code> DB engine mode.</p>
751 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
752 pub fn scaling_configuration(mut self, input: crate::types::ScalingConfiguration) -> Self {
753 self.inner = self.inner.scaling_configuration(input);
754 self
755 }
756 /// <p>The scaling properties of the DB cluster. You can only modify scaling properties for DB clusters in <code>serverless</code> DB engine mode.</p>
757 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
758 pub fn set_scaling_configuration(mut self, input: ::std::option::Option<crate::types::ScalingConfiguration>) -> Self {
759 self.inner = self.inner.set_scaling_configuration(input);
760 self
761 }
762 /// <p>The scaling properties of the DB cluster. You can only modify scaling properties for DB clusters in <code>serverless</code> DB engine mode.</p>
763 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
764 pub fn get_scaling_configuration(&self) -> &::std::option::Option<crate::types::ScalingConfiguration> {
765 self.inner.get_scaling_configuration()
766 }
767 /// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
768 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
769 pub fn deletion_protection(mut self, input: bool) -> Self {
770 self.inner = self.inner.deletion_protection(input);
771 self
772 }
773 /// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
774 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
775 pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
776 self.inner = self.inner.set_deletion_protection(input);
777 self
778 }
779 /// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
780 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
781 pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
782 self.inner.get_deletion_protection()
783 }
784 /// <p>Specifies whether to enable the HTTP endpoint for an Aurora Serverless v1 DB cluster. By default, the HTTP endpoint isn't enabled.</p>
785 /// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the Aurora Serverless v1 DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
786 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p><note>
787 /// <p>This parameter applies only to Aurora Serverless v1 DB clusters. To enable or disable the HTTP endpoint for an Aurora Serverless v2 or provisioned DB cluster, use the <code>EnableHttpEndpoint</code> and <code>DisableHttpEndpoint</code> operations.</p>
788 /// </note>
789 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
790 pub fn enable_http_endpoint(mut self, input: bool) -> Self {
791 self.inner = self.inner.enable_http_endpoint(input);
792 self
793 }
794 /// <p>Specifies whether to enable the HTTP endpoint for an Aurora Serverless v1 DB cluster. By default, the HTTP endpoint isn't enabled.</p>
795 /// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the Aurora Serverless v1 DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
796 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p><note>
797 /// <p>This parameter applies only to Aurora Serverless v1 DB clusters. To enable or disable the HTTP endpoint for an Aurora Serverless v2 or provisioned DB cluster, use the <code>EnableHttpEndpoint</code> and <code>DisableHttpEndpoint</code> operations.</p>
798 /// </note>
799 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
800 pub fn set_enable_http_endpoint(mut self, input: ::std::option::Option<bool>) -> Self {
801 self.inner = self.inner.set_enable_http_endpoint(input);
802 self
803 }
804 /// <p>Specifies whether to enable the HTTP endpoint for an Aurora Serverless v1 DB cluster. By default, the HTTP endpoint isn't enabled.</p>
805 /// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the Aurora Serverless v1 DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
806 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p><note>
807 /// <p>This parameter applies only to Aurora Serverless v1 DB clusters. To enable or disable the HTTP endpoint for an Aurora Serverless v2 or provisioned DB cluster, use the <code>EnableHttpEndpoint</code> and <code>DisableHttpEndpoint</code> operations.</p>
808 /// </note>
809 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
810 pub fn get_enable_http_endpoint(&self) -> &::std::option::Option<bool> {
811 self.inner.get_enable_http_endpoint()
812 }
813 /// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
814 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
815 pub fn copy_tags_to_snapshot(mut self, input: bool) -> Self {
816 self.inner = self.inner.copy_tags_to_snapshot(input);
817 self
818 }
819 /// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
820 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
821 pub fn set_copy_tags_to_snapshot(mut self, input: ::std::option::Option<bool>) -> Self {
822 self.inner = self.inner.set_copy_tags_to_snapshot(input);
823 self
824 }
825 /// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
826 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
827 pub fn get_copy_tags_to_snapshot(&self) -> &::std::option::Option<bool> {
828 self.inner.get_copy_tags_to_snapshot()
829 }
830 /// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
831 /// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
832 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
833 pub fn enable_global_write_forwarding(mut self, input: bool) -> Self {
834 self.inner = self.inner.enable_global_write_forwarding(input);
835 self
836 }
837 /// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
838 /// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
839 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
840 pub fn set_enable_global_write_forwarding(mut self, input: ::std::option::Option<bool>) -> Self {
841 self.inner = self.inner.set_enable_global_write_forwarding(input);
842 self
843 }
844 /// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
845 /// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
846 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
847 pub fn get_enable_global_write_forwarding(&self) -> &::std::option::Option<bool> {
848 self.inner.get_enable_global_write_forwarding()
849 }
850 /// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
851 /// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html"> DB Instance Class</a> in the <i>Amazon RDS User Guide</i>.</p>
852 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
853 pub fn db_cluster_instance_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
854 self.inner = self.inner.db_cluster_instance_class(input.into());
855 self
856 }
857 /// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
858 /// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html"> DB Instance Class</a> in the <i>Amazon RDS User Guide</i>.</p>
859 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
860 pub fn set_db_cluster_instance_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
861 self.inner = self.inner.set_db_cluster_instance_class(input);
862 self
863 }
864 /// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
865 /// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html"> DB Instance Class</a> in the <i>Amazon RDS User Guide</i>.</p>
866 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
867 pub fn get_db_cluster_instance_class(&self) -> &::std::option::Option<::std::string::String> {
868 self.inner.get_db_cluster_instance_class()
869 }
870 /// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
871 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
872 pub fn allocated_storage(mut self, input: i32) -> Self {
873 self.inner = self.inner.allocated_storage(input);
874 self
875 }
876 /// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
877 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
878 pub fn set_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
879 self.inner = self.inner.set_allocated_storage(input);
880 self
881 }
882 /// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
883 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
884 pub fn get_allocated_storage(&self) -> &::std::option::Option<i32> {
885 self.inner.get_allocated_storage()
886 }
887 /// <p>The storage type to associate with the DB cluster.</p>
888 /// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
889 /// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
890 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
891 /// <p>Valid Values:</p>
892 /// <ul>
893 /// <li>
894 /// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
895 /// <li>
896 /// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
897 /// </ul>
898 /// <p>Default:</p>
899 /// <ul>
900 /// <li>
901 /// <p>Aurora DB clusters - <code>aurora</code></p></li>
902 /// <li>
903 /// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
904 /// </ul>
905 pub fn storage_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
906 self.inner = self.inner.storage_type(input.into());
907 self
908 }
909 /// <p>The storage type to associate with the DB cluster.</p>
910 /// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
911 /// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
912 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
913 /// <p>Valid Values:</p>
914 /// <ul>
915 /// <li>
916 /// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
917 /// <li>
918 /// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
919 /// </ul>
920 /// <p>Default:</p>
921 /// <ul>
922 /// <li>
923 /// <p>Aurora DB clusters - <code>aurora</code></p></li>
924 /// <li>
925 /// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
926 /// </ul>
927 pub fn set_storage_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
928 self.inner = self.inner.set_storage_type(input);
929 self
930 }
931 /// <p>The storage type to associate with the DB cluster.</p>
932 /// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
933 /// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
934 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
935 /// <p>Valid Values:</p>
936 /// <ul>
937 /// <li>
938 /// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
939 /// <li>
940 /// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
941 /// </ul>
942 /// <p>Default:</p>
943 /// <ul>
944 /// <li>
945 /// <p>Aurora DB clusters - <code>aurora</code></p></li>
946 /// <li>
947 /// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
948 /// </ul>
949 pub fn get_storage_type(&self) -> &::std::option::Option<::std::string::String> {
950 self.inner.get_storage_type()
951 }
952 /// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
953 /// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Amazon RDS Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
954 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
955 /// <p>Constraints:</p>
956 /// <ul>
957 /// <li>
958 /// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
959 /// </ul>
960 pub fn iops(mut self, input: i32) -> Self {
961 self.inner = self.inner.iops(input);
962 self
963 }
964 /// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
965 /// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Amazon RDS Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
966 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
967 /// <p>Constraints:</p>
968 /// <ul>
969 /// <li>
970 /// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
971 /// </ul>
972 pub fn set_iops(mut self, input: ::std::option::Option<i32>) -> Self {
973 self.inner = self.inner.set_iops(input);
974 self
975 }
976 /// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
977 /// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Amazon RDS Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
978 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
979 /// <p>Constraints:</p>
980 /// <ul>
981 /// <li>
982 /// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
983 /// </ul>
984 pub fn get_iops(&self) -> &::std::option::Option<i32> {
985 self.inner.get_iops()
986 }
987 /// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
988 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters.</p>
989 /// <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>
990 pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
991 self.inner = self.inner.auto_minor_version_upgrade(input);
992 self
993 }
994 /// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
995 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters.</p>
996 /// <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>
997 pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
998 self.inner = self.inner.set_auto_minor_version_upgrade(input);
999 self
1000 }
1001 /// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
1002 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters.</p>
1003 /// <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>
1004 pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
1005 self.inner.get_auto_minor_version_upgrade()
1006 }
1007 /// <p>The network type of the DB cluster.</p>
1008 /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1009 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
1010 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1011 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1012 pub fn network_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1013 self.inner = self.inner.network_type(input.into());
1014 self
1015 }
1016 /// <p>The network type of the DB cluster.</p>
1017 /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1018 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
1019 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1020 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1021 pub fn set_network_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1022 self.inner = self.inner.set_network_type(input);
1023 self
1024 }
1025 /// <p>The network type of the DB cluster.</p>
1026 /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1027 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
1028 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1029 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1030 pub fn get_network_type(&self) -> &::std::option::Option<::std::string::String> {
1031 self.inner.get_network_type()
1032 }
1033 /// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
1034 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
1035 pub fn serverless_v2_scaling_configuration(mut self, input: crate::types::ServerlessV2ScalingConfiguration) -> Self {
1036 self.inner = self.inner.serverless_v2_scaling_configuration(input);
1037 self
1038 }
1039 /// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
1040 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
1041 pub fn set_serverless_v2_scaling_configuration(mut self, input: ::std::option::Option<crate::types::ServerlessV2ScalingConfiguration>) -> Self {
1042 self.inner = self.inner.set_serverless_v2_scaling_configuration(input);
1043 self
1044 }
1045 /// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
1046 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
1047 pub fn get_serverless_v2_scaling_configuration(&self) -> &::std::option::Option<crate::types::ServerlessV2ScalingConfiguration> {
1048 self.inner.get_serverless_v2_scaling_configuration()
1049 }
1050 /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
1051 /// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1052 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1053 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1054 /// <p>Default: <code>0</code></p>
1055 pub fn monitoring_interval(mut self, input: i32) -> Self {
1056 self.inner = self.inner.monitoring_interval(input);
1057 self
1058 }
1059 /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
1060 /// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1061 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1062 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1063 /// <p>Default: <code>0</code></p>
1064 pub fn set_monitoring_interval(mut self, input: ::std::option::Option<i32>) -> Self {
1065 self.inner = self.inner.set_monitoring_interval(input);
1066 self
1067 }
1068 /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
1069 /// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1070 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1071 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1072 /// <p>Default: <code>0</code></p>
1073 pub fn get_monitoring_interval(&self) -> &::std::option::Option<i32> {
1074 self.inner.get_monitoring_interval()
1075 }
1076 /// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.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>
1077 /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1078 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1079 pub fn monitoring_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1080 self.inner = self.inner.monitoring_role_arn(input.into());
1081 self
1082 }
1083 /// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.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>
1084 /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1085 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1086 pub fn set_monitoring_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1087 self.inner = self.inner.set_monitoring_role_arn(input);
1088 self
1089 }
1090 /// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.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>
1091 /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1092 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1093 pub fn get_monitoring_role_arn(&self) -> &::std::option::Option<::std::string::String> {
1094 self.inner.get_monitoring_role_arn()
1095 }
1096 /// <p>Specifies the mode of Database Insights to enable for the DB cluster.</p>
1097 /// <p>If you change the value from <code>standard</code> to <code>advanced</code>, you must set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
1098 /// <p>If you change the value from <code>advanced</code> to <code>standard</code>, you can set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> to collect detailed database counter and per-query metrics.</p>
1099 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1100 pub fn database_insights_mode(mut self, input: crate::types::DatabaseInsightsMode) -> Self {
1101 self.inner = self.inner.database_insights_mode(input);
1102 self
1103 }
1104 /// <p>Specifies the mode of Database Insights to enable for the DB cluster.</p>
1105 /// <p>If you change the value from <code>standard</code> to <code>advanced</code>, you must set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
1106 /// <p>If you change the value from <code>advanced</code> to <code>standard</code>, you can set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> to collect detailed database counter and per-query metrics.</p>
1107 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1108 pub fn set_database_insights_mode(mut self, input: ::std::option::Option<crate::types::DatabaseInsightsMode>) -> Self {
1109 self.inner = self.inner.set_database_insights_mode(input);
1110 self
1111 }
1112 /// <p>Specifies the mode of Database Insights to enable for the DB cluster.</p>
1113 /// <p>If you change the value from <code>standard</code> to <code>advanced</code>, you must set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
1114 /// <p>If you change the value from <code>advanced</code> to <code>standard</code>, you can set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> to collect detailed database counter and per-query metrics.</p>
1115 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1116 pub fn get_database_insights_mode(&self) -> &::std::option::Option<crate::types::DatabaseInsightsMode> {
1117 self.inner.get_database_insights_mode()
1118 }
1119 /// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
1120 /// <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>
1121 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1122 pub fn enable_performance_insights(mut self, input: bool) -> Self {
1123 self.inner = self.inner.enable_performance_insights(input);
1124 self
1125 }
1126 /// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
1127 /// <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>
1128 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1129 pub fn set_enable_performance_insights(mut self, input: ::std::option::Option<bool>) -> Self {
1130 self.inner = self.inner.set_enable_performance_insights(input);
1131 self
1132 }
1133 /// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
1134 /// <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>
1135 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1136 pub fn get_enable_performance_insights(&self) -> &::std::option::Option<bool> {
1137 self.inner.get_enable_performance_insights()
1138 }
1139 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1140 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1141 /// <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>
1142 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1143 pub fn performance_insights_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1144 self.inner = self.inner.performance_insights_kms_key_id(input.into());
1145 self
1146 }
1147 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1148 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1149 /// <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>
1150 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1151 pub fn set_performance_insights_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1152 self.inner = self.inner.set_performance_insights_kms_key_id(input);
1153 self
1154 }
1155 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1156 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1157 /// <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>
1158 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1159 pub fn get_performance_insights_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
1160 self.inner.get_performance_insights_kms_key_id()
1161 }
1162 /// <p>The number of days to retain Performance Insights data.</p>
1163 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1164 /// <p>Valid Values:</p>
1165 /// <ul>
1166 /// <li>
1167 /// <p><code>7</code></p></li>
1168 /// <li>
1169 /// <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>
1170 /// <li>
1171 /// <p><code>731</code></p></li>
1172 /// </ul>
1173 /// <p>Default: <code>7</code> days</p>
1174 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
1175 pub fn performance_insights_retention_period(mut self, input: i32) -> Self {
1176 self.inner = self.inner.performance_insights_retention_period(input);
1177 self
1178 }
1179 /// <p>The number of days to retain Performance Insights data.</p>
1180 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1181 /// <p>Valid Values:</p>
1182 /// <ul>
1183 /// <li>
1184 /// <p><code>7</code></p></li>
1185 /// <li>
1186 /// <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>
1187 /// <li>
1188 /// <p><code>731</code></p></li>
1189 /// </ul>
1190 /// <p>Default: <code>7</code> days</p>
1191 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
1192 pub fn set_performance_insights_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
1193 self.inner = self.inner.set_performance_insights_retention_period(input);
1194 self
1195 }
1196 /// <p>The number of days to retain Performance Insights data.</p>
1197 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1198 /// <p>Valid Values:</p>
1199 /// <ul>
1200 /// <li>
1201 /// <p><code>7</code></p></li>
1202 /// <li>
1203 /// <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>
1204 /// <li>
1205 /// <p><code>731</code></p></li>
1206 /// </ul>
1207 /// <p>Default: <code>7</code> days</p>
1208 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
1209 pub fn get_performance_insights_retention_period(&self) -> &::std::option::Option<i32> {
1210 self.inner.get_performance_insights_retention_period()
1211 }
1212 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
1213 /// <p>If the DB cluster 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>
1214 /// <p>If the DB cluster 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, RDS deletes the secret and uses the new password for the master user specified by <code>MasterUserPassword</code>.</p>
1215 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
1216 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1217 pub fn manage_master_user_password(mut self, input: bool) -> Self {
1218 self.inner = self.inner.manage_master_user_password(input);
1219 self
1220 }
1221 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
1222 /// <p>If the DB cluster 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>
1223 /// <p>If the DB cluster 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, RDS deletes the secret and uses the new password for the master user specified by <code>MasterUserPassword</code>.</p>
1224 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
1225 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1226 pub fn set_manage_master_user_password(mut self, input: ::std::option::Option<bool>) -> Self {
1227 self.inner = self.inner.set_manage_master_user_password(input);
1228 self
1229 }
1230 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
1231 /// <p>If the DB cluster 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>
1232 /// <p>If the DB cluster 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, RDS deletes the secret and uses the new password for the master user specified by <code>MasterUserPassword</code>.</p>
1233 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
1234 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1235 pub fn get_manage_master_user_password(&self) -> &::std::option::Option<bool> {
1236 self.inner.get_manage_master_user_password()
1237 }
1238 /// <p>Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password.</p>
1239 /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster. The secret value contains the updated password.</p>
1240 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
1241 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1242 /// <p>Constraints:</p>
1243 /// <ul>
1244 /// <li>
1245 /// <p>You must apply the change immediately when rotating the master user password.</p></li>
1246 /// </ul>
1247 pub fn rotate_master_user_password(mut self, input: bool) -> Self {
1248 self.inner = self.inner.rotate_master_user_password(input);
1249 self
1250 }
1251 /// <p>Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password.</p>
1252 /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster. The secret value contains the updated password.</p>
1253 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
1254 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1255 /// <p>Constraints:</p>
1256 /// <ul>
1257 /// <li>
1258 /// <p>You must apply the change immediately when rotating the master user password.</p></li>
1259 /// </ul>
1260 pub fn set_rotate_master_user_password(mut self, input: ::std::option::Option<bool>) -> Self {
1261 self.inner = self.inner.set_rotate_master_user_password(input);
1262 self
1263 }
1264 /// <p>Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password.</p>
1265 /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster. The secret value contains the updated password.</p>
1266 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
1267 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1268 /// <p>Constraints:</p>
1269 /// <ul>
1270 /// <li>
1271 /// <p>You must apply the change immediately when rotating the master user password.</p></li>
1272 /// </ul>
1273 pub fn get_rotate_master_user_password(&self) -> &::std::option::Option<bool> {
1274 self.inner.get_rotate_master_user_password()
1275 }
1276 /// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
1277 /// <p>Valid for: Aurora DB clusters only</p>
1278 pub fn enable_local_write_forwarding(mut self, input: bool) -> Self {
1279 self.inner = self.inner.enable_local_write_forwarding(input);
1280 self
1281 }
1282 /// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
1283 /// <p>Valid for: Aurora DB clusters only</p>
1284 pub fn set_enable_local_write_forwarding(mut self, input: ::std::option::Option<bool>) -> Self {
1285 self.inner = self.inner.set_enable_local_write_forwarding(input);
1286 self
1287 }
1288 /// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
1289 /// <p>Valid for: Aurora DB clusters only</p>
1290 pub fn get_enable_local_write_forwarding(&self) -> &::std::option::Option<bool> {
1291 self.inner.get_enable_local_write_forwarding()
1292 }
1293 /// <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>
1294 /// <p>This setting is valid only if both of the following conditions are met:</p>
1295 /// <ul>
1296 /// <li>
1297 /// <p>The DB cluster doesn't manage the master user password in Amazon Web Services Secrets Manager.</p>
1298 /// <p>If the DB cluster already manages the master user password in Amazon Web Services Secrets Manager, you can't change the KMS key that is used to encrypt the secret.</p></li>
1299 /// <li>
1300 /// <p>You are turning on <code>ManageMasterUserPassword</code> to manage the master user password in Amazon Web Services Secrets Manager.</p>
1301 /// <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>
1302 /// </ul>
1303 /// <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>
1304 /// <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>
1305 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1306 pub fn master_user_secret_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1307 self.inner = self.inner.master_user_secret_kms_key_id(input.into());
1308 self
1309 }
1310 /// <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>
1311 /// <p>This setting is valid only if both of the following conditions are met:</p>
1312 /// <ul>
1313 /// <li>
1314 /// <p>The DB cluster doesn't manage the master user password in Amazon Web Services Secrets Manager.</p>
1315 /// <p>If the DB cluster already manages the master user password in Amazon Web Services Secrets Manager, you can't change the KMS key that is used to encrypt the secret.</p></li>
1316 /// <li>
1317 /// <p>You are turning on <code>ManageMasterUserPassword</code> to manage the master user password in Amazon Web Services Secrets Manager.</p>
1318 /// <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>
1319 /// </ul>
1320 /// <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>
1321 /// <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>
1322 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1323 pub fn set_master_user_secret_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1324 self.inner = self.inner.set_master_user_secret_kms_key_id(input);
1325 self
1326 }
1327 /// <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>
1328 /// <p>This setting is valid only if both of the following conditions are met:</p>
1329 /// <ul>
1330 /// <li>
1331 /// <p>The DB cluster doesn't manage the master user password in Amazon Web Services Secrets Manager.</p>
1332 /// <p>If the DB cluster already manages the master user password in Amazon Web Services Secrets Manager, you can't change the KMS key that is used to encrypt the secret.</p></li>
1333 /// <li>
1334 /// <p>You are turning on <code>ManageMasterUserPassword</code> to manage the master user password in Amazon Web Services Secrets Manager.</p>
1335 /// <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>
1336 /// </ul>
1337 /// <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>
1338 /// <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>
1339 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1340 pub fn get_master_user_secret_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
1341 self.inner.get_master_user_secret_kms_key_id()
1342 }
1343 /// <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p><note>
1344 /// <p>The DB engine mode can be modified only from <code>serverless</code> to <code>provisioned</code>.</p>
1345 /// </note>
1346 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBCluster.html"> CreateDBCluster</a>.</p>
1347 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1348 pub fn engine_mode(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1349 self.inner = self.inner.engine_mode(input.into());
1350 self
1351 }
1352 /// <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p><note>
1353 /// <p>The DB engine mode can be modified only from <code>serverless</code> to <code>provisioned</code>.</p>
1354 /// </note>
1355 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBCluster.html"> CreateDBCluster</a>.</p>
1356 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1357 pub fn set_engine_mode(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1358 self.inner = self.inner.set_engine_mode(input);
1359 self
1360 }
1361 /// <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p><note>
1362 /// <p>The DB engine mode can be modified only from <code>serverless</code> to <code>provisioned</code>.</p>
1363 /// </note>
1364 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBCluster.html"> CreateDBCluster</a>.</p>
1365 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1366 pub fn get_engine_mode(&self) -> &::std::option::Option<::std::string::String> {
1367 self.inner.get_engine_mode()
1368 }
1369 /// <p>Specifies whether engine mode changes from <code>serverless</code> to <code>provisioned</code> are allowed.</p>
1370 /// <p>Valid for Cluster Type: Aurora Serverless v1 DB clusters only</p>
1371 /// <p>Constraints:</p>
1372 /// <ul>
1373 /// <li>
1374 /// <p>You must allow engine mode changes when specifying a different value for the <code>EngineMode</code> parameter from the DB cluster's current engine mode.</p></li>
1375 /// </ul>
1376 pub fn allow_engine_mode_change(mut self, input: bool) -> Self {
1377 self.inner = self.inner.allow_engine_mode_change(input);
1378 self
1379 }
1380 /// <p>Specifies whether engine mode changes from <code>serverless</code> to <code>provisioned</code> are allowed.</p>
1381 /// <p>Valid for Cluster Type: Aurora Serverless v1 DB clusters only</p>
1382 /// <p>Constraints:</p>
1383 /// <ul>
1384 /// <li>
1385 /// <p>You must allow engine mode changes when specifying a different value for the <code>EngineMode</code> parameter from the DB cluster's current engine mode.</p></li>
1386 /// </ul>
1387 pub fn set_allow_engine_mode_change(mut self, input: ::std::option::Option<bool>) -> Self {
1388 self.inner = self.inner.set_allow_engine_mode_change(input);
1389 self
1390 }
1391 /// <p>Specifies whether engine mode changes from <code>serverless</code> to <code>provisioned</code> are allowed.</p>
1392 /// <p>Valid for Cluster Type: Aurora Serverless v1 DB clusters only</p>
1393 /// <p>Constraints:</p>
1394 /// <ul>
1395 /// <li>
1396 /// <p>You must allow engine mode changes when specifying a different value for the <code>EngineMode</code> parameter from the DB cluster's current engine mode.</p></li>
1397 /// </ul>
1398 pub fn get_allow_engine_mode_change(&self) -> &::std::option::Option<bool> {
1399 self.inner.get_allow_engine_mode_change()
1400 }
1401 /// <p>The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.</p>
1402 pub fn aws_backup_recovery_point_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1403 self.inner = self.inner.aws_backup_recovery_point_arn(input.into());
1404 self
1405 }
1406 /// <p>The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.</p>
1407 pub fn set_aws_backup_recovery_point_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1408 self.inner = self.inner.set_aws_backup_recovery_point_arn(input);
1409 self
1410 }
1411 /// <p>The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.</p>
1412 pub fn get_aws_backup_recovery_point_arn(&self) -> &::std::option::Option<::std::string::String> {
1413 self.inner.get_aws_backup_recovery_point_arn()
1414 }
1415 /// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
1416 /// <p>Valid for: Aurora DB clusters only</p><note>
1417 /// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting when you create your Aurora Limitless Database DB cluster.</p>
1418 /// </note>
1419 pub fn enable_limitless_database(mut self, input: bool) -> Self {
1420 self.inner = self.inner.enable_limitless_database(input);
1421 self
1422 }
1423 /// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
1424 /// <p>Valid for: Aurora DB clusters only</p><note>
1425 /// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting when you create your Aurora Limitless Database DB cluster.</p>
1426 /// </note>
1427 pub fn set_enable_limitless_database(mut self, input: ::std::option::Option<bool>) -> Self {
1428 self.inner = self.inner.set_enable_limitless_database(input);
1429 self
1430 }
1431 /// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
1432 /// <p>Valid for: Aurora DB clusters only</p><note>
1433 /// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting when you create your Aurora Limitless Database DB cluster.</p>
1434 /// </note>
1435 pub fn get_enable_limitless_database(&self) -> &::std::option::Option<bool> {
1436 self.inner.get_enable_limitless_database()
1437 }
1438 /// <p>The CA certificate identifier to use for the DB cluster's server certificate.</p>
1439 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1440 /// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
1441 pub fn ca_certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1442 self.inner = self.inner.ca_certificate_identifier(input.into());
1443 self
1444 }
1445 /// <p>The CA certificate identifier to use for the DB cluster's server certificate.</p>
1446 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1447 /// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
1448 pub fn set_ca_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1449 self.inner = self.inner.set_ca_certificate_identifier(input);
1450 self
1451 }
1452 /// <p>The CA certificate identifier to use for the DB cluster's server certificate.</p>
1453 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1454 /// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
1455 pub fn get_ca_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
1456 self.inner.get_ca_certificate_identifier()
1457 }
1458 /// <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>
1459 /// <p>You can specify one of the following values:</p>
1460 /// <ul>
1461 /// <li>
1462 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
1463 /// <li>
1464 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
1465 /// </ul>
1466 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1467 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
1468 pub fn master_user_authentication_type(mut self, input: crate::types::MasterUserAuthenticationType) -> Self {
1469 self.inner = self.inner.master_user_authentication_type(input);
1470 self
1471 }
1472 /// <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>
1473 /// <p>You can specify one of the following values:</p>
1474 /// <ul>
1475 /// <li>
1476 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
1477 /// <li>
1478 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
1479 /// </ul>
1480 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1481 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
1482 pub fn set_master_user_authentication_type(mut self, input: ::std::option::Option<crate::types::MasterUserAuthenticationType>) -> Self {
1483 self.inner = self.inner.set_master_user_authentication_type(input);
1484 self
1485 }
1486 /// <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>
1487 /// <p>You can specify one of the following values:</p>
1488 /// <ul>
1489 /// <li>
1490 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
1491 /// <li>
1492 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
1493 /// </ul>
1494 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1495 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
1496 pub fn get_master_user_authentication_type(&self) -> &::std::option::Option<crate::types::MasterUserAuthenticationType> {
1497 self.inner.get_master_user_authentication_type()
1498 }
1499}