aws_sdk_rds/operation/create_db_instance/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_db_instance::_create_db_instance_output::CreateDbInstanceOutputBuilder;
3
4pub use crate::operation::create_db_instance::_create_db_instance_input::CreateDbInstanceInputBuilder;
5
6impl crate::operation::create_db_instance::builders::CreateDbInstanceInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::create_db_instance::CreateDbInstanceOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_db_instance::CreateDBInstanceError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_db_instance();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `CreateDBInstance`.
24///
25/// <p>Creates a new DB instance.</p>
26/// <p>The new DB instance can be an RDS DB instance, or it can be a DB instance in an Aurora DB cluster. For an Aurora DB cluster, you can call this operation multiple times to add more than one DB instance to the cluster.</p>
27/// <p>For more information about creating an RDS DB instance, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreateDBInstance.html"> Creating an Amazon RDS DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
28/// <p>For more information about creating a DB instance in an Aurora DB cluster, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.CreateInstance.html"> Creating an Amazon Aurora DB cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
29#[derive(::std::clone::Clone, ::std::fmt::Debug)]
30pub struct CreateDBInstanceFluentBuilder {
31 handle: ::std::sync::Arc<crate::client::Handle>,
32 inner: crate::operation::create_db_instance::builders::CreateDbInstanceInputBuilder,
33 config_override: ::std::option::Option<crate::config::Builder>,
34}
35impl
36 crate::client::customize::internal::CustomizableSend<
37 crate::operation::create_db_instance::CreateDbInstanceOutput,
38 crate::operation::create_db_instance::CreateDBInstanceError,
39 > for CreateDBInstanceFluentBuilder
40{
41 fn send(
42 self,
43 config_override: crate::config::Builder,
44 ) -> crate::client::customize::internal::BoxFuture<
45 crate::client::customize::internal::SendResult<
46 crate::operation::create_db_instance::CreateDbInstanceOutput,
47 crate::operation::create_db_instance::CreateDBInstanceError,
48 >,
49 > {
50 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
51 }
52}
53impl CreateDBInstanceFluentBuilder {
54 /// Creates a new `CreateDBInstanceFluentBuilder`.
55 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
56 Self {
57 handle,
58 inner: ::std::default::Default::default(),
59 config_override: ::std::option::Option::None,
60 }
61 }
62 /// Access the CreateDBInstance as a reference.
63 pub fn as_input(&self) -> &crate::operation::create_db_instance::builders::CreateDbInstanceInputBuilder {
64 &self.inner
65 }
66 /// Sends the request and returns the response.
67 ///
68 /// If an error occurs, an `SdkError` will be returned with additional details that
69 /// can be matched against.
70 ///
71 /// By default, any retryable failures will be retried twice. Retry behavior
72 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
73 /// set when configuring the client.
74 pub async fn send(
75 self,
76 ) -> ::std::result::Result<
77 crate::operation::create_db_instance::CreateDbInstanceOutput,
78 ::aws_smithy_runtime_api::client::result::SdkError<
79 crate::operation::create_db_instance::CreateDBInstanceError,
80 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
81 >,
82 > {
83 let input = self
84 .inner
85 .build()
86 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
87 let runtime_plugins = crate::operation::create_db_instance::CreateDBInstance::operation_runtime_plugins(
88 self.handle.runtime_plugins.clone(),
89 &self.handle.conf,
90 self.config_override,
91 );
92 crate::operation::create_db_instance::CreateDBInstance::orchestrate(&runtime_plugins, input).await
93 }
94
95 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
96 pub fn customize(
97 self,
98 ) -> crate::client::customize::CustomizableOperation<
99 crate::operation::create_db_instance::CreateDbInstanceOutput,
100 crate::operation::create_db_instance::CreateDBInstanceError,
101 Self,
102 > {
103 crate::client::customize::CustomizableOperation::new(self)
104 }
105 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
106 self.set_config_override(::std::option::Option::Some(config_override.into()));
107 self
108 }
109
110 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
111 self.config_override = config_override;
112 self
113 }
114 /// <p>The meaning of this parameter differs according to the database engine you use.</p>
115 /// <dl>
116 /// <dt>
117 /// Amazon Aurora MySQL
118 /// </dt>
119 /// <dd>
120 /// <p>The name of the database to create when the primary DB instance of the Aurora MySQL DB cluster is created. If this parameter isn't specified for an Aurora MySQL DB cluster, no database is created in the DB cluster.</p>
121 /// <p>Constraints:</p>
122 /// <ul>
123 /// <li>
124 /// <p>Must contain 1 to 64 alphanumeric characters.</p></li>
125 /// <li>
126 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
127 /// <li>
128 /// <p>Can't be a word reserved by the database engine.</p></li>
129 /// </ul>
130 /// </dd>
131 /// <dt>
132 /// Amazon Aurora PostgreSQL
133 /// </dt>
134 /// <dd>
135 /// <p>The name of the database to create when the primary DB instance of the Aurora PostgreSQL DB cluster is created. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
136 /// <p>Constraints:</p>
137 /// <ul>
138 /// <li>
139 /// <p>It must contain 1 to 63 alphanumeric characters.</p></li>
140 /// <li>
141 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0 to 9).</p></li>
142 /// <li>
143 /// <p>Can't be a word reserved by the database engine.</p></li>
144 /// </ul>
145 /// </dd>
146 /// <dt>
147 /// Amazon RDS Custom for Oracle
148 /// </dt>
149 /// <dd>
150 /// <p>The Oracle System ID (SID) of the created RDS Custom DB instance. If you don't specify a value, the default value is <code>ORCL</code> for non-CDBs and <code>RDSCDB</code> for CDBs.</p>
151 /// <p>Default: <code>ORCL</code></p>
152 /// <p>Constraints:</p>
153 /// <ul>
154 /// <li>
155 /// <p>Must contain 1 to 8 alphanumeric characters.</p></li>
156 /// <li>
157 /// <p>Must contain a letter.</p></li>
158 /// <li>
159 /// <p>Can't be a word reserved by the database engine.</p></li>
160 /// </ul>
161 /// </dd>
162 /// <dt>
163 /// Amazon RDS Custom for SQL Server
164 /// </dt>
165 /// <dd>
166 /// <p>Not applicable. Must be null.</p>
167 /// </dd>
168 /// <dt>
169 /// RDS for Db2
170 /// </dt>
171 /// <dd>
172 /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance. In some cases, we recommend that you don't add a database name. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-db-instance-prereqs.html#db2-prereqs-additional-considerations">Additional considerations</a> in the <i>Amazon RDS User Guide</i>.</p>
173 /// <p>Constraints:</p>
174 /// <ul>
175 /// <li>
176 /// <p>Must contain 1 to 64 letters or numbers.</p></li>
177 /// <li>
178 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
179 /// <li>
180 /// <p>Can't be a word reserved by the specified database engine.</p></li>
181 /// </ul>
182 /// </dd>
183 /// <dt>
184 /// RDS for MariaDB
185 /// </dt>
186 /// <dd>
187 /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.</p>
188 /// <p>Constraints:</p>
189 /// <ul>
190 /// <li>
191 /// <p>Must contain 1 to 64 letters or numbers.</p></li>
192 /// <li>
193 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
194 /// <li>
195 /// <p>Can't be a word reserved by the specified database engine.</p></li>
196 /// </ul>
197 /// </dd>
198 /// <dt>
199 /// RDS for MySQL
200 /// </dt>
201 /// <dd>
202 /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.</p>
203 /// <p>Constraints:</p>
204 /// <ul>
205 /// <li>
206 /// <p>Must contain 1 to 64 letters or numbers.</p></li>
207 /// <li>
208 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
209 /// <li>
210 /// <p>Can't be a word reserved by the specified database engine.</p></li>
211 /// </ul>
212 /// </dd>
213 /// <dt>
214 /// RDS for Oracle
215 /// </dt>
216 /// <dd>
217 /// <p>The Oracle System ID (SID) of the created DB instance. If you don't specify a value, the default value is <code>ORCL</code>. You can't specify the string <code>null</code>, or any other reserved word, for <code>DBName</code>.</p>
218 /// <p>Default: <code>ORCL</code></p>
219 /// <p>Constraints:</p>
220 /// <ul>
221 /// <li>
222 /// <p>Can't be longer than 8 characters.</p></li>
223 /// </ul>
224 /// </dd>
225 /// <dt>
226 /// RDS for PostgreSQL
227 /// </dt>
228 /// <dd>
229 /// <p>The name of the database to create when the DB instance is created. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
230 /// <p>Constraints:</p>
231 /// <ul>
232 /// <li>
233 /// <p>Must contain 1 to 63 letters, numbers, or underscores.</p></li>
234 /// <li>
235 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
236 /// <li>
237 /// <p>Can't be a word reserved by the specified database engine.</p></li>
238 /// </ul>
239 /// </dd>
240 /// <dt>
241 /// RDS for SQL Server
242 /// </dt>
243 /// <dd>
244 /// <p>Not applicable. Must be null.</p>
245 /// </dd>
246 /// </dl>
247 pub fn db_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
248 self.inner = self.inner.db_name(input.into());
249 self
250 }
251 /// <p>The meaning of this parameter differs according to the database engine you use.</p>
252 /// <dl>
253 /// <dt>
254 /// Amazon Aurora MySQL
255 /// </dt>
256 /// <dd>
257 /// <p>The name of the database to create when the primary DB instance of the Aurora MySQL DB cluster is created. If this parameter isn't specified for an Aurora MySQL DB cluster, no database is created in the DB cluster.</p>
258 /// <p>Constraints:</p>
259 /// <ul>
260 /// <li>
261 /// <p>Must contain 1 to 64 alphanumeric characters.</p></li>
262 /// <li>
263 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
264 /// <li>
265 /// <p>Can't be a word reserved by the database engine.</p></li>
266 /// </ul>
267 /// </dd>
268 /// <dt>
269 /// Amazon Aurora PostgreSQL
270 /// </dt>
271 /// <dd>
272 /// <p>The name of the database to create when the primary DB instance of the Aurora PostgreSQL DB cluster is created. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
273 /// <p>Constraints:</p>
274 /// <ul>
275 /// <li>
276 /// <p>It must contain 1 to 63 alphanumeric characters.</p></li>
277 /// <li>
278 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0 to 9).</p></li>
279 /// <li>
280 /// <p>Can't be a word reserved by the database engine.</p></li>
281 /// </ul>
282 /// </dd>
283 /// <dt>
284 /// Amazon RDS Custom for Oracle
285 /// </dt>
286 /// <dd>
287 /// <p>The Oracle System ID (SID) of the created RDS Custom DB instance. If you don't specify a value, the default value is <code>ORCL</code> for non-CDBs and <code>RDSCDB</code> for CDBs.</p>
288 /// <p>Default: <code>ORCL</code></p>
289 /// <p>Constraints:</p>
290 /// <ul>
291 /// <li>
292 /// <p>Must contain 1 to 8 alphanumeric characters.</p></li>
293 /// <li>
294 /// <p>Must contain a letter.</p></li>
295 /// <li>
296 /// <p>Can't be a word reserved by the database engine.</p></li>
297 /// </ul>
298 /// </dd>
299 /// <dt>
300 /// Amazon RDS Custom for SQL Server
301 /// </dt>
302 /// <dd>
303 /// <p>Not applicable. Must be null.</p>
304 /// </dd>
305 /// <dt>
306 /// RDS for Db2
307 /// </dt>
308 /// <dd>
309 /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance. In some cases, we recommend that you don't add a database name. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-db-instance-prereqs.html#db2-prereqs-additional-considerations">Additional considerations</a> in the <i>Amazon RDS User Guide</i>.</p>
310 /// <p>Constraints:</p>
311 /// <ul>
312 /// <li>
313 /// <p>Must contain 1 to 64 letters or numbers.</p></li>
314 /// <li>
315 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
316 /// <li>
317 /// <p>Can't be a word reserved by the specified database engine.</p></li>
318 /// </ul>
319 /// </dd>
320 /// <dt>
321 /// RDS for MariaDB
322 /// </dt>
323 /// <dd>
324 /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.</p>
325 /// <p>Constraints:</p>
326 /// <ul>
327 /// <li>
328 /// <p>Must contain 1 to 64 letters or numbers.</p></li>
329 /// <li>
330 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
331 /// <li>
332 /// <p>Can't be a word reserved by the specified database engine.</p></li>
333 /// </ul>
334 /// </dd>
335 /// <dt>
336 /// RDS for MySQL
337 /// </dt>
338 /// <dd>
339 /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.</p>
340 /// <p>Constraints:</p>
341 /// <ul>
342 /// <li>
343 /// <p>Must contain 1 to 64 letters or numbers.</p></li>
344 /// <li>
345 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
346 /// <li>
347 /// <p>Can't be a word reserved by the specified database engine.</p></li>
348 /// </ul>
349 /// </dd>
350 /// <dt>
351 /// RDS for Oracle
352 /// </dt>
353 /// <dd>
354 /// <p>The Oracle System ID (SID) of the created DB instance. If you don't specify a value, the default value is <code>ORCL</code>. You can't specify the string <code>null</code>, or any other reserved word, for <code>DBName</code>.</p>
355 /// <p>Default: <code>ORCL</code></p>
356 /// <p>Constraints:</p>
357 /// <ul>
358 /// <li>
359 /// <p>Can't be longer than 8 characters.</p></li>
360 /// </ul>
361 /// </dd>
362 /// <dt>
363 /// RDS for PostgreSQL
364 /// </dt>
365 /// <dd>
366 /// <p>The name of the database to create when the DB instance is created. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
367 /// <p>Constraints:</p>
368 /// <ul>
369 /// <li>
370 /// <p>Must contain 1 to 63 letters, numbers, or underscores.</p></li>
371 /// <li>
372 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
373 /// <li>
374 /// <p>Can't be a word reserved by the specified database engine.</p></li>
375 /// </ul>
376 /// </dd>
377 /// <dt>
378 /// RDS for SQL Server
379 /// </dt>
380 /// <dd>
381 /// <p>Not applicable. Must be null.</p>
382 /// </dd>
383 /// </dl>
384 pub fn set_db_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
385 self.inner = self.inner.set_db_name(input);
386 self
387 }
388 /// <p>The meaning of this parameter differs according to the database engine you use.</p>
389 /// <dl>
390 /// <dt>
391 /// Amazon Aurora MySQL
392 /// </dt>
393 /// <dd>
394 /// <p>The name of the database to create when the primary DB instance of the Aurora MySQL DB cluster is created. If this parameter isn't specified for an Aurora MySQL DB cluster, no database is created in the DB cluster.</p>
395 /// <p>Constraints:</p>
396 /// <ul>
397 /// <li>
398 /// <p>Must contain 1 to 64 alphanumeric characters.</p></li>
399 /// <li>
400 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
401 /// <li>
402 /// <p>Can't be a word reserved by the database engine.</p></li>
403 /// </ul>
404 /// </dd>
405 /// <dt>
406 /// Amazon Aurora PostgreSQL
407 /// </dt>
408 /// <dd>
409 /// <p>The name of the database to create when the primary DB instance of the Aurora PostgreSQL DB cluster is created. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
410 /// <p>Constraints:</p>
411 /// <ul>
412 /// <li>
413 /// <p>It must contain 1 to 63 alphanumeric characters.</p></li>
414 /// <li>
415 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0 to 9).</p></li>
416 /// <li>
417 /// <p>Can't be a word reserved by the database engine.</p></li>
418 /// </ul>
419 /// </dd>
420 /// <dt>
421 /// Amazon RDS Custom for Oracle
422 /// </dt>
423 /// <dd>
424 /// <p>The Oracle System ID (SID) of the created RDS Custom DB instance. If you don't specify a value, the default value is <code>ORCL</code> for non-CDBs and <code>RDSCDB</code> for CDBs.</p>
425 /// <p>Default: <code>ORCL</code></p>
426 /// <p>Constraints:</p>
427 /// <ul>
428 /// <li>
429 /// <p>Must contain 1 to 8 alphanumeric characters.</p></li>
430 /// <li>
431 /// <p>Must contain a letter.</p></li>
432 /// <li>
433 /// <p>Can't be a word reserved by the database engine.</p></li>
434 /// </ul>
435 /// </dd>
436 /// <dt>
437 /// Amazon RDS Custom for SQL Server
438 /// </dt>
439 /// <dd>
440 /// <p>Not applicable. Must be null.</p>
441 /// </dd>
442 /// <dt>
443 /// RDS for Db2
444 /// </dt>
445 /// <dd>
446 /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance. In some cases, we recommend that you don't add a database name. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-db-instance-prereqs.html#db2-prereqs-additional-considerations">Additional considerations</a> in the <i>Amazon RDS User Guide</i>.</p>
447 /// <p>Constraints:</p>
448 /// <ul>
449 /// <li>
450 /// <p>Must contain 1 to 64 letters or numbers.</p></li>
451 /// <li>
452 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
453 /// <li>
454 /// <p>Can't be a word reserved by the specified database engine.</p></li>
455 /// </ul>
456 /// </dd>
457 /// <dt>
458 /// RDS for MariaDB
459 /// </dt>
460 /// <dd>
461 /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.</p>
462 /// <p>Constraints:</p>
463 /// <ul>
464 /// <li>
465 /// <p>Must contain 1 to 64 letters or numbers.</p></li>
466 /// <li>
467 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
468 /// <li>
469 /// <p>Can't be a word reserved by the specified database engine.</p></li>
470 /// </ul>
471 /// </dd>
472 /// <dt>
473 /// RDS for MySQL
474 /// </dt>
475 /// <dd>
476 /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.</p>
477 /// <p>Constraints:</p>
478 /// <ul>
479 /// <li>
480 /// <p>Must contain 1 to 64 letters or numbers.</p></li>
481 /// <li>
482 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
483 /// <li>
484 /// <p>Can't be a word reserved by the specified database engine.</p></li>
485 /// </ul>
486 /// </dd>
487 /// <dt>
488 /// RDS for Oracle
489 /// </dt>
490 /// <dd>
491 /// <p>The Oracle System ID (SID) of the created DB instance. If you don't specify a value, the default value is <code>ORCL</code>. You can't specify the string <code>null</code>, or any other reserved word, for <code>DBName</code>.</p>
492 /// <p>Default: <code>ORCL</code></p>
493 /// <p>Constraints:</p>
494 /// <ul>
495 /// <li>
496 /// <p>Can't be longer than 8 characters.</p></li>
497 /// </ul>
498 /// </dd>
499 /// <dt>
500 /// RDS for PostgreSQL
501 /// </dt>
502 /// <dd>
503 /// <p>The name of the database to create when the DB instance is created. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
504 /// <p>Constraints:</p>
505 /// <ul>
506 /// <li>
507 /// <p>Must contain 1 to 63 letters, numbers, or underscores.</p></li>
508 /// <li>
509 /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
510 /// <li>
511 /// <p>Can't be a word reserved by the specified database engine.</p></li>
512 /// </ul>
513 /// </dd>
514 /// <dt>
515 /// RDS for SQL Server
516 /// </dt>
517 /// <dd>
518 /// <p>Not applicable. Must be null.</p>
519 /// </dd>
520 /// </dl>
521 pub fn get_db_name(&self) -> &::std::option::Option<::std::string::String> {
522 self.inner.get_db_name()
523 }
524 /// <p>The identifier for this DB instance. This parameter is stored as a lowercase string.</p>
525 /// <p>Constraints:</p>
526 /// <ul>
527 /// <li>
528 /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
529 /// <li>
530 /// <p>First character must be a letter.</p></li>
531 /// <li>
532 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
533 /// </ul>
534 /// <p>Example: <code>mydbinstance</code></p>
535 pub fn db_instance_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
536 self.inner = self.inner.db_instance_identifier(input.into());
537 self
538 }
539 /// <p>The identifier for this DB instance. This parameter is stored as a lowercase string.</p>
540 /// <p>Constraints:</p>
541 /// <ul>
542 /// <li>
543 /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
544 /// <li>
545 /// <p>First character must be a letter.</p></li>
546 /// <li>
547 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
548 /// </ul>
549 /// <p>Example: <code>mydbinstance</code></p>
550 pub fn set_db_instance_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
551 self.inner = self.inner.set_db_instance_identifier(input);
552 self
553 }
554 /// <p>The identifier for this DB instance. This parameter is stored as a lowercase string.</p>
555 /// <p>Constraints:</p>
556 /// <ul>
557 /// <li>
558 /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
559 /// <li>
560 /// <p>First character must be a letter.</p></li>
561 /// <li>
562 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
563 /// </ul>
564 /// <p>Example: <code>mydbinstance</code></p>
565 pub fn get_db_instance_identifier(&self) -> &::std::option::Option<::std::string::String> {
566 self.inner.get_db_instance_identifier()
567 }
568 /// <p>The amount of storage in gibibytes (GiB) to allocate for the DB instance.</p>
569 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume.</p>
570 /// <dl>
571 /// <dt>
572 /// Amazon RDS Custom
573 /// </dt>
574 /// <dd>
575 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
576 /// <ul>
577 /// <li>
578 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.</p></li>
579 /// <li>
580 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.</p></li>
581 /// </ul>
582 /// </dd>
583 /// <dt>
584 /// RDS for Db2
585 /// </dt>
586 /// <dd>
587 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
588 /// <ul>
589 /// <li>
590 /// <p>General Purpose (SSD) storage (gp3): Must be an integer from 20 to 65536.</p></li>
591 /// <li>
592 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
593 /// </ul>
594 /// </dd>
595 /// <dt>
596 /// RDS for MariaDB
597 /// </dt>
598 /// <dd>
599 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
600 /// <ul>
601 /// <li>
602 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
603 /// <li>
604 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
605 /// <li>
606 /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
607 /// </ul>
608 /// </dd>
609 /// <dt>
610 /// RDS for MySQL
611 /// </dt>
612 /// <dd>
613 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
614 /// <ul>
615 /// <li>
616 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
617 /// <li>
618 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
619 /// <li>
620 /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
621 /// </ul>
622 /// </dd>
623 /// <dt>
624 /// RDS for Oracle
625 /// </dt>
626 /// <dd>
627 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
628 /// <ul>
629 /// <li>
630 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
631 /// <li>
632 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
633 /// <li>
634 /// <p>Magnetic storage (standard): Must be an integer from 10 to 3072.</p></li>
635 /// </ul>
636 /// </dd>
637 /// <dt>
638 /// RDS for PostgreSQL
639 /// </dt>
640 /// <dd>
641 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
642 /// <ul>
643 /// <li>
644 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
645 /// <li>
646 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
647 /// <li>
648 /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
649 /// </ul>
650 /// </dd>
651 /// <dt>
652 /// RDS for SQL Server
653 /// </dt>
654 /// <dd>
655 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
656 /// <ul>
657 /// <li>
658 /// <p>General Purpose (SSD) storage (gp2, gp3):</p>
659 /// <ul>
660 /// <li>
661 /// <p>Enterprise and Standard editions: Must be an integer from 20 to 16384.</p></li>
662 /// <li>
663 /// <p>Web and Express editions: Must be an integer from 20 to 16384.</p></li>
664 /// </ul></li>
665 /// <li>
666 /// <p>Provisioned IOPS storage (io1, io2):</p>
667 /// <ul>
668 /// <li>
669 /// <p>Enterprise and Standard editions: Must be an integer from 100 to 16384.</p></li>
670 /// <li>
671 /// <p>Web and Express editions: Must be an integer from 100 to 16384.</p></li>
672 /// </ul></li>
673 /// <li>
674 /// <p>Magnetic storage (standard):</p>
675 /// <ul>
676 /// <li>
677 /// <p>Enterprise and Standard editions: Must be an integer from 20 to 1024.</p></li>
678 /// <li>
679 /// <p>Web and Express editions: Must be an integer from 20 to 1024.</p></li>
680 /// </ul></li>
681 /// </ul>
682 /// </dd>
683 /// </dl>
684 pub fn allocated_storage(mut self, input: i32) -> Self {
685 self.inner = self.inner.allocated_storage(input);
686 self
687 }
688 /// <p>The amount of storage in gibibytes (GiB) to allocate for the DB instance.</p>
689 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume.</p>
690 /// <dl>
691 /// <dt>
692 /// Amazon RDS Custom
693 /// </dt>
694 /// <dd>
695 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
696 /// <ul>
697 /// <li>
698 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.</p></li>
699 /// <li>
700 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.</p></li>
701 /// </ul>
702 /// </dd>
703 /// <dt>
704 /// RDS for Db2
705 /// </dt>
706 /// <dd>
707 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
708 /// <ul>
709 /// <li>
710 /// <p>General Purpose (SSD) storage (gp3): Must be an integer from 20 to 65536.</p></li>
711 /// <li>
712 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
713 /// </ul>
714 /// </dd>
715 /// <dt>
716 /// RDS for MariaDB
717 /// </dt>
718 /// <dd>
719 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
720 /// <ul>
721 /// <li>
722 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
723 /// <li>
724 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
725 /// <li>
726 /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
727 /// </ul>
728 /// </dd>
729 /// <dt>
730 /// RDS for MySQL
731 /// </dt>
732 /// <dd>
733 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
734 /// <ul>
735 /// <li>
736 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
737 /// <li>
738 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
739 /// <li>
740 /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
741 /// </ul>
742 /// </dd>
743 /// <dt>
744 /// RDS for Oracle
745 /// </dt>
746 /// <dd>
747 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
748 /// <ul>
749 /// <li>
750 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
751 /// <li>
752 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
753 /// <li>
754 /// <p>Magnetic storage (standard): Must be an integer from 10 to 3072.</p></li>
755 /// </ul>
756 /// </dd>
757 /// <dt>
758 /// RDS for PostgreSQL
759 /// </dt>
760 /// <dd>
761 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
762 /// <ul>
763 /// <li>
764 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
765 /// <li>
766 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
767 /// <li>
768 /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
769 /// </ul>
770 /// </dd>
771 /// <dt>
772 /// RDS for SQL Server
773 /// </dt>
774 /// <dd>
775 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
776 /// <ul>
777 /// <li>
778 /// <p>General Purpose (SSD) storage (gp2, gp3):</p>
779 /// <ul>
780 /// <li>
781 /// <p>Enterprise and Standard editions: Must be an integer from 20 to 16384.</p></li>
782 /// <li>
783 /// <p>Web and Express editions: Must be an integer from 20 to 16384.</p></li>
784 /// </ul></li>
785 /// <li>
786 /// <p>Provisioned IOPS storage (io1, io2):</p>
787 /// <ul>
788 /// <li>
789 /// <p>Enterprise and Standard editions: Must be an integer from 100 to 16384.</p></li>
790 /// <li>
791 /// <p>Web and Express editions: Must be an integer from 100 to 16384.</p></li>
792 /// </ul></li>
793 /// <li>
794 /// <p>Magnetic storage (standard):</p>
795 /// <ul>
796 /// <li>
797 /// <p>Enterprise and Standard editions: Must be an integer from 20 to 1024.</p></li>
798 /// <li>
799 /// <p>Web and Express editions: Must be an integer from 20 to 1024.</p></li>
800 /// </ul></li>
801 /// </ul>
802 /// </dd>
803 /// </dl>
804 pub fn set_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
805 self.inner = self.inner.set_allocated_storage(input);
806 self
807 }
808 /// <p>The amount of storage in gibibytes (GiB) to allocate for the DB instance.</p>
809 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume.</p>
810 /// <dl>
811 /// <dt>
812 /// Amazon RDS Custom
813 /// </dt>
814 /// <dd>
815 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
816 /// <ul>
817 /// <li>
818 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.</p></li>
819 /// <li>
820 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.</p></li>
821 /// </ul>
822 /// </dd>
823 /// <dt>
824 /// RDS for Db2
825 /// </dt>
826 /// <dd>
827 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
828 /// <ul>
829 /// <li>
830 /// <p>General Purpose (SSD) storage (gp3): Must be an integer from 20 to 65536.</p></li>
831 /// <li>
832 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
833 /// </ul>
834 /// </dd>
835 /// <dt>
836 /// RDS for MariaDB
837 /// </dt>
838 /// <dd>
839 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
840 /// <ul>
841 /// <li>
842 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
843 /// <li>
844 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
845 /// <li>
846 /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
847 /// </ul>
848 /// </dd>
849 /// <dt>
850 /// RDS for MySQL
851 /// </dt>
852 /// <dd>
853 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
854 /// <ul>
855 /// <li>
856 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
857 /// <li>
858 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
859 /// <li>
860 /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
861 /// </ul>
862 /// </dd>
863 /// <dt>
864 /// RDS for Oracle
865 /// </dt>
866 /// <dd>
867 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
868 /// <ul>
869 /// <li>
870 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
871 /// <li>
872 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
873 /// <li>
874 /// <p>Magnetic storage (standard): Must be an integer from 10 to 3072.</p></li>
875 /// </ul>
876 /// </dd>
877 /// <dt>
878 /// RDS for PostgreSQL
879 /// </dt>
880 /// <dd>
881 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
882 /// <ul>
883 /// <li>
884 /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
885 /// <li>
886 /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
887 /// <li>
888 /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
889 /// </ul>
890 /// </dd>
891 /// <dt>
892 /// RDS for SQL Server
893 /// </dt>
894 /// <dd>
895 /// <p>Constraints to the amount of storage for each storage type are the following:</p>
896 /// <ul>
897 /// <li>
898 /// <p>General Purpose (SSD) storage (gp2, gp3):</p>
899 /// <ul>
900 /// <li>
901 /// <p>Enterprise and Standard editions: Must be an integer from 20 to 16384.</p></li>
902 /// <li>
903 /// <p>Web and Express editions: Must be an integer from 20 to 16384.</p></li>
904 /// </ul></li>
905 /// <li>
906 /// <p>Provisioned IOPS storage (io1, io2):</p>
907 /// <ul>
908 /// <li>
909 /// <p>Enterprise and Standard editions: Must be an integer from 100 to 16384.</p></li>
910 /// <li>
911 /// <p>Web and Express editions: Must be an integer from 100 to 16384.</p></li>
912 /// </ul></li>
913 /// <li>
914 /// <p>Magnetic storage (standard):</p>
915 /// <ul>
916 /// <li>
917 /// <p>Enterprise and Standard editions: Must be an integer from 20 to 1024.</p></li>
918 /// <li>
919 /// <p>Web and Express editions: Must be an integer from 20 to 1024.</p></li>
920 /// </ul></li>
921 /// </ul>
922 /// </dd>
923 /// </dl>
924 pub fn get_allocated_storage(&self) -> &::std::option::Option<i32> {
925 self.inner.get_allocated_storage()
926 }
927 /// <p>The compute and memory capacity of the DB instance, for example <code>db.m5.large</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance classes</a> in the <i>Amazon RDS User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html">Aurora DB instance classes</a> in the <i>Amazon Aurora User Guide</i>.</p>
928 pub fn db_instance_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
929 self.inner = self.inner.db_instance_class(input.into());
930 self
931 }
932 /// <p>The compute and memory capacity of the DB instance, for example <code>db.m5.large</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance classes</a> in the <i>Amazon RDS User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html">Aurora DB instance classes</a> in the <i>Amazon Aurora User Guide</i>.</p>
933 pub fn set_db_instance_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
934 self.inner = self.inner.set_db_instance_class(input);
935 self
936 }
937 /// <p>The compute and memory capacity of the DB instance, for example <code>db.m5.large</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance classes</a> in the <i>Amazon RDS User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html">Aurora DB instance classes</a> in the <i>Amazon Aurora User Guide</i>.</p>
938 pub fn get_db_instance_class(&self) -> &::std::option::Option<::std::string::String> {
939 self.inner.get_db_instance_class()
940 }
941 /// <p>The database engine to use for this DB instance.</p>
942 /// <p>Not every database engine is available in every Amazon Web Services Region.</p>
943 /// <p>Valid Values:</p>
944 /// <ul>
945 /// <li>
946 /// <p><code>aurora-mysql</code> (for Aurora MySQL DB instances)</p></li>
947 /// <li>
948 /// <p><code>aurora-postgresql</code> (for Aurora PostgreSQL DB instances)</p></li>
949 /// <li>
950 /// <p><code>custom-oracle-ee</code> (for RDS Custom for Oracle DB instances)</p></li>
951 /// <li>
952 /// <p><code>custom-oracle-ee-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
953 /// <li>
954 /// <p><code>custom-oracle-se2</code> (for RDS Custom for Oracle DB instances)</p></li>
955 /// <li>
956 /// <p><code>custom-oracle-se2-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
957 /// <li>
958 /// <p><code>custom-sqlserver-ee</code> (for RDS Custom for SQL Server DB instances)</p></li>
959 /// <li>
960 /// <p><code>custom-sqlserver-se</code> (for RDS Custom for SQL Server DB instances)</p></li>
961 /// <li>
962 /// <p><code>custom-sqlserver-web</code> (for RDS Custom for SQL Server DB instances)</p></li>
963 /// <li>
964 /// <p><code>custom-sqlserver-dev</code> (for RDS Custom for SQL Server DB instances)</p></li>
965 /// <li>
966 /// <p><code>db2-ae</code></p></li>
967 /// <li>
968 /// <p><code>db2-se</code></p></li>
969 /// <li>
970 /// <p><code>mariadb</code></p></li>
971 /// <li>
972 /// <p><code>mysql</code></p></li>
973 /// <li>
974 /// <p><code>oracle-ee</code></p></li>
975 /// <li>
976 /// <p><code>oracle-ee-cdb</code></p></li>
977 /// <li>
978 /// <p><code>oracle-se2</code></p></li>
979 /// <li>
980 /// <p><code>oracle-se2-cdb</code></p></li>
981 /// <li>
982 /// <p><code>postgres</code></p></li>
983 /// <li>
984 /// <p><code>sqlserver-dev-ee</code></p></li>
985 /// <li>
986 /// <p><code>sqlserver-ee</code></p></li>
987 /// <li>
988 /// <p><code>sqlserver-se</code></p></li>
989 /// <li>
990 /// <p><code>sqlserver-ex</code></p></li>
991 /// <li>
992 /// <p><code>sqlserver-web</code></p></li>
993 /// </ul>
994 pub fn engine(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
995 self.inner = self.inner.engine(input.into());
996 self
997 }
998 /// <p>The database engine to use for this DB instance.</p>
999 /// <p>Not every database engine is available in every Amazon Web Services Region.</p>
1000 /// <p>Valid Values:</p>
1001 /// <ul>
1002 /// <li>
1003 /// <p><code>aurora-mysql</code> (for Aurora MySQL DB instances)</p></li>
1004 /// <li>
1005 /// <p><code>aurora-postgresql</code> (for Aurora PostgreSQL DB instances)</p></li>
1006 /// <li>
1007 /// <p><code>custom-oracle-ee</code> (for RDS Custom for Oracle DB instances)</p></li>
1008 /// <li>
1009 /// <p><code>custom-oracle-ee-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
1010 /// <li>
1011 /// <p><code>custom-oracle-se2</code> (for RDS Custom for Oracle DB instances)</p></li>
1012 /// <li>
1013 /// <p><code>custom-oracle-se2-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
1014 /// <li>
1015 /// <p><code>custom-sqlserver-ee</code> (for RDS Custom for SQL Server DB instances)</p></li>
1016 /// <li>
1017 /// <p><code>custom-sqlserver-se</code> (for RDS Custom for SQL Server DB instances)</p></li>
1018 /// <li>
1019 /// <p><code>custom-sqlserver-web</code> (for RDS Custom for SQL Server DB instances)</p></li>
1020 /// <li>
1021 /// <p><code>custom-sqlserver-dev</code> (for RDS Custom for SQL Server DB instances)</p></li>
1022 /// <li>
1023 /// <p><code>db2-ae</code></p></li>
1024 /// <li>
1025 /// <p><code>db2-se</code></p></li>
1026 /// <li>
1027 /// <p><code>mariadb</code></p></li>
1028 /// <li>
1029 /// <p><code>mysql</code></p></li>
1030 /// <li>
1031 /// <p><code>oracle-ee</code></p></li>
1032 /// <li>
1033 /// <p><code>oracle-ee-cdb</code></p></li>
1034 /// <li>
1035 /// <p><code>oracle-se2</code></p></li>
1036 /// <li>
1037 /// <p><code>oracle-se2-cdb</code></p></li>
1038 /// <li>
1039 /// <p><code>postgres</code></p></li>
1040 /// <li>
1041 /// <p><code>sqlserver-dev-ee</code></p></li>
1042 /// <li>
1043 /// <p><code>sqlserver-ee</code></p></li>
1044 /// <li>
1045 /// <p><code>sqlserver-se</code></p></li>
1046 /// <li>
1047 /// <p><code>sqlserver-ex</code></p></li>
1048 /// <li>
1049 /// <p><code>sqlserver-web</code></p></li>
1050 /// </ul>
1051 pub fn set_engine(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1052 self.inner = self.inner.set_engine(input);
1053 self
1054 }
1055 /// <p>The database engine to use for this DB instance.</p>
1056 /// <p>Not every database engine is available in every Amazon Web Services Region.</p>
1057 /// <p>Valid Values:</p>
1058 /// <ul>
1059 /// <li>
1060 /// <p><code>aurora-mysql</code> (for Aurora MySQL DB instances)</p></li>
1061 /// <li>
1062 /// <p><code>aurora-postgresql</code> (for Aurora PostgreSQL DB instances)</p></li>
1063 /// <li>
1064 /// <p><code>custom-oracle-ee</code> (for RDS Custom for Oracle DB instances)</p></li>
1065 /// <li>
1066 /// <p><code>custom-oracle-ee-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
1067 /// <li>
1068 /// <p><code>custom-oracle-se2</code> (for RDS Custom for Oracle DB instances)</p></li>
1069 /// <li>
1070 /// <p><code>custom-oracle-se2-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
1071 /// <li>
1072 /// <p><code>custom-sqlserver-ee</code> (for RDS Custom for SQL Server DB instances)</p></li>
1073 /// <li>
1074 /// <p><code>custom-sqlserver-se</code> (for RDS Custom for SQL Server DB instances)</p></li>
1075 /// <li>
1076 /// <p><code>custom-sqlserver-web</code> (for RDS Custom for SQL Server DB instances)</p></li>
1077 /// <li>
1078 /// <p><code>custom-sqlserver-dev</code> (for RDS Custom for SQL Server DB instances)</p></li>
1079 /// <li>
1080 /// <p><code>db2-ae</code></p></li>
1081 /// <li>
1082 /// <p><code>db2-se</code></p></li>
1083 /// <li>
1084 /// <p><code>mariadb</code></p></li>
1085 /// <li>
1086 /// <p><code>mysql</code></p></li>
1087 /// <li>
1088 /// <p><code>oracle-ee</code></p></li>
1089 /// <li>
1090 /// <p><code>oracle-ee-cdb</code></p></li>
1091 /// <li>
1092 /// <p><code>oracle-se2</code></p></li>
1093 /// <li>
1094 /// <p><code>oracle-se2-cdb</code></p></li>
1095 /// <li>
1096 /// <p><code>postgres</code></p></li>
1097 /// <li>
1098 /// <p><code>sqlserver-dev-ee</code></p></li>
1099 /// <li>
1100 /// <p><code>sqlserver-ee</code></p></li>
1101 /// <li>
1102 /// <p><code>sqlserver-se</code></p></li>
1103 /// <li>
1104 /// <p><code>sqlserver-ex</code></p></li>
1105 /// <li>
1106 /// <p><code>sqlserver-web</code></p></li>
1107 /// </ul>
1108 pub fn get_engine(&self) -> &::std::option::Option<::std::string::String> {
1109 self.inner.get_engine()
1110 }
1111 /// <p>The name for the master user.</p>
1112 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The name for the master user is managed by the DB cluster.</p>
1113 /// <p>This setting is required for RDS DB instances.</p>
1114 /// <p>Constraints:</p>
1115 /// <ul>
1116 /// <li>
1117 /// <p>Must be 1 to 16 letters, numbers, or underscores.</p></li>
1118 /// <li>
1119 /// <p>First character must be a letter.</p></li>
1120 /// <li>
1121 /// <p>Can't be a reserved word for the chosen database engine.</p></li>
1122 /// </ul>
1123 pub fn master_username(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1124 self.inner = self.inner.master_username(input.into());
1125 self
1126 }
1127 /// <p>The name for the master user.</p>
1128 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The name for the master user is managed by the DB cluster.</p>
1129 /// <p>This setting is required for RDS DB instances.</p>
1130 /// <p>Constraints:</p>
1131 /// <ul>
1132 /// <li>
1133 /// <p>Must be 1 to 16 letters, numbers, or underscores.</p></li>
1134 /// <li>
1135 /// <p>First character must be a letter.</p></li>
1136 /// <li>
1137 /// <p>Can't be a reserved word for the chosen database engine.</p></li>
1138 /// </ul>
1139 pub fn set_master_username(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1140 self.inner = self.inner.set_master_username(input);
1141 self
1142 }
1143 /// <p>The name for the master user.</p>
1144 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The name for the master user is managed by the DB cluster.</p>
1145 /// <p>This setting is required for RDS DB instances.</p>
1146 /// <p>Constraints:</p>
1147 /// <ul>
1148 /// <li>
1149 /// <p>Must be 1 to 16 letters, numbers, or underscores.</p></li>
1150 /// <li>
1151 /// <p>First character must be a letter.</p></li>
1152 /// <li>
1153 /// <p>Can't be a reserved word for the chosen database engine.</p></li>
1154 /// </ul>
1155 pub fn get_master_username(&self) -> &::std::option::Option<::std::string::String> {
1156 self.inner.get_master_username()
1157 }
1158 /// <p>The password for the master user.</p>
1159 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The password for the master user is managed by the DB cluster.</p>
1160 /// <p>Constraints:</p>
1161 /// <ul>
1162 /// <li>
1163 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
1164 /// <li>
1165 /// <p>Can include any printable ASCII character except "/", """, or "@". For RDS for Oracle, can't include the "&" (ampersand) or the "'" (single quotes) character.</p></li>
1166 /// </ul>
1167 /// <p>Length Constraints:</p>
1168 /// <ul>
1169 /// <li>
1170 /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
1171 /// <li>
1172 /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
1173 /// <li>
1174 /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
1175 /// <li>
1176 /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
1177 /// <li>
1178 /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
1179 /// <li>
1180 /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
1181 /// </ul>
1182 pub fn master_user_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1183 self.inner = self.inner.master_user_password(input.into());
1184 self
1185 }
1186 /// <p>The password for the master user.</p>
1187 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The password for the master user is managed by the DB cluster.</p>
1188 /// <p>Constraints:</p>
1189 /// <ul>
1190 /// <li>
1191 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
1192 /// <li>
1193 /// <p>Can include any printable ASCII character except "/", """, or "@". For RDS for Oracle, can't include the "&" (ampersand) or the "'" (single quotes) character.</p></li>
1194 /// </ul>
1195 /// <p>Length Constraints:</p>
1196 /// <ul>
1197 /// <li>
1198 /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
1199 /// <li>
1200 /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
1201 /// <li>
1202 /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
1203 /// <li>
1204 /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
1205 /// <li>
1206 /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
1207 /// <li>
1208 /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
1209 /// </ul>
1210 pub fn set_master_user_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1211 self.inner = self.inner.set_master_user_password(input);
1212 self
1213 }
1214 /// <p>The password for the master user.</p>
1215 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The password for the master user is managed by the DB cluster.</p>
1216 /// <p>Constraints:</p>
1217 /// <ul>
1218 /// <li>
1219 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
1220 /// <li>
1221 /// <p>Can include any printable ASCII character except "/", """, or "@". For RDS for Oracle, can't include the "&" (ampersand) or the "'" (single quotes) character.</p></li>
1222 /// </ul>
1223 /// <p>Length Constraints:</p>
1224 /// <ul>
1225 /// <li>
1226 /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
1227 /// <li>
1228 /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
1229 /// <li>
1230 /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
1231 /// <li>
1232 /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
1233 /// <li>
1234 /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
1235 /// <li>
1236 /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
1237 /// </ul>
1238 pub fn get_master_user_password(&self) -> &::std::option::Option<::std::string::String> {
1239 self.inner.get_master_user_password()
1240 }
1241 ///
1242 /// Appends an item to `DBSecurityGroups`.
1243 ///
1244 /// To override the contents of this collection use [`set_db_security_groups`](Self::set_db_security_groups).
1245 ///
1246 /// <p>A list of DB security groups to associate with this DB instance.</p>
1247 /// <p>This setting applies to the legacy EC2-Classic platform, which is no longer used to create new DB instances. Use the <code>VpcSecurityGroupIds</code> setting instead.</p>
1248 pub fn db_security_groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1249 self.inner = self.inner.db_security_groups(input.into());
1250 self
1251 }
1252 /// <p>A list of DB security groups to associate with this DB instance.</p>
1253 /// <p>This setting applies to the legacy EC2-Classic platform, which is no longer used to create new DB instances. Use the <code>VpcSecurityGroupIds</code> setting instead.</p>
1254 pub fn set_db_security_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1255 self.inner = self.inner.set_db_security_groups(input);
1256 self
1257 }
1258 /// <p>A list of DB security groups to associate with this DB instance.</p>
1259 /// <p>This setting applies to the legacy EC2-Classic platform, which is no longer used to create new DB instances. Use the <code>VpcSecurityGroupIds</code> setting instead.</p>
1260 pub fn get_db_security_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1261 self.inner.get_db_security_groups()
1262 }
1263 ///
1264 /// Appends an item to `VpcSecurityGroupIds`.
1265 ///
1266 /// To override the contents of this collection use [`set_vpc_security_group_ids`](Self::set_vpc_security_group_ids).
1267 ///
1268 /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance.</p>
1269 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The associated list of EC2 VPC security groups is managed by the DB cluster.</p>
1270 /// <p>Default: The default EC2 VPC security group for the DB subnet group's VPC.</p>
1271 pub fn vpc_security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1272 self.inner = self.inner.vpc_security_group_ids(input.into());
1273 self
1274 }
1275 /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance.</p>
1276 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The associated list of EC2 VPC security groups is managed by the DB cluster.</p>
1277 /// <p>Default: The default EC2 VPC security group for the DB subnet group's VPC.</p>
1278 pub fn set_vpc_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1279 self.inner = self.inner.set_vpc_security_group_ids(input);
1280 self
1281 }
1282 /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance.</p>
1283 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The associated list of EC2 VPC security groups is managed by the DB cluster.</p>
1284 /// <p>Default: The default EC2 VPC security group for the DB subnet group's VPC.</p>
1285 pub fn get_vpc_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1286 self.inner.get_vpc_security_group_ids()
1287 }
1288 /// <p>The Availability Zone (AZ) where the database will be created. For information on Amazon Web Services Regions and Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html">Regions and Availability Zones</a>.</p>
1289 /// <p>For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one.</p>
1290 /// <p>Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.</p>
1291 /// <p>Constraints:</p>
1292 /// <ul>
1293 /// <li>
1294 /// <p>The <code>AvailabilityZone</code> parameter can't be specified if the DB instance is a Multi-AZ deployment.</p></li>
1295 /// <li>
1296 /// <p>The specified Availability Zone must be in the same Amazon Web Services Region as the current endpoint.</p></li>
1297 /// </ul>
1298 /// <p>Example: <code>us-east-1d</code></p>
1299 pub fn availability_zone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1300 self.inner = self.inner.availability_zone(input.into());
1301 self
1302 }
1303 /// <p>The Availability Zone (AZ) where the database will be created. For information on Amazon Web Services Regions and Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html">Regions and Availability Zones</a>.</p>
1304 /// <p>For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one.</p>
1305 /// <p>Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.</p>
1306 /// <p>Constraints:</p>
1307 /// <ul>
1308 /// <li>
1309 /// <p>The <code>AvailabilityZone</code> parameter can't be specified if the DB instance is a Multi-AZ deployment.</p></li>
1310 /// <li>
1311 /// <p>The specified Availability Zone must be in the same Amazon Web Services Region as the current endpoint.</p></li>
1312 /// </ul>
1313 /// <p>Example: <code>us-east-1d</code></p>
1314 pub fn set_availability_zone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1315 self.inner = self.inner.set_availability_zone(input);
1316 self
1317 }
1318 /// <p>The Availability Zone (AZ) where the database will be created. For information on Amazon Web Services Regions and Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html">Regions and Availability Zones</a>.</p>
1319 /// <p>For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one.</p>
1320 /// <p>Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.</p>
1321 /// <p>Constraints:</p>
1322 /// <ul>
1323 /// <li>
1324 /// <p>The <code>AvailabilityZone</code> parameter can't be specified if the DB instance is a Multi-AZ deployment.</p></li>
1325 /// <li>
1326 /// <p>The specified Availability Zone must be in the same Amazon Web Services Region as the current endpoint.</p></li>
1327 /// </ul>
1328 /// <p>Example: <code>us-east-1d</code></p>
1329 pub fn get_availability_zone(&self) -> &::std::option::Option<::std::string::String> {
1330 self.inner.get_availability_zone()
1331 }
1332 /// <p>A DB subnet group to associate with this DB instance.</p>
1333 /// <p>Constraints:</p>
1334 /// <ul>
1335 /// <li>
1336 /// <p>Must match the name of an existing DB subnet group.</p></li>
1337 /// </ul>
1338 /// <p>Example: <code>mydbsubnetgroup</code></p>
1339 pub fn db_subnet_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1340 self.inner = self.inner.db_subnet_group_name(input.into());
1341 self
1342 }
1343 /// <p>A DB subnet group to associate with this DB instance.</p>
1344 /// <p>Constraints:</p>
1345 /// <ul>
1346 /// <li>
1347 /// <p>Must match the name of an existing DB subnet group.</p></li>
1348 /// </ul>
1349 /// <p>Example: <code>mydbsubnetgroup</code></p>
1350 pub fn set_db_subnet_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1351 self.inner = self.inner.set_db_subnet_group_name(input);
1352 self
1353 }
1354 /// <p>A DB subnet group to associate with this DB instance.</p>
1355 /// <p>Constraints:</p>
1356 /// <ul>
1357 /// <li>
1358 /// <p>Must match the name of an existing DB subnet group.</p></li>
1359 /// </ul>
1360 /// <p>Example: <code>mydbsubnetgroup</code></p>
1361 pub fn get_db_subnet_group_name(&self) -> &::std::option::Option<::std::string::String> {
1362 self.inner.get_db_subnet_group_name()
1363 }
1364 /// <p>The time range each week during which system maintenance can occur. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance">Amazon RDS Maintenance Window</a> in the <i>Amazon RDS User Guide.</i></p>
1365 /// <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.</p>
1366 /// <p>Constraints:</p>
1367 /// <ul>
1368 /// <li>
1369 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
1370 /// <li>
1371 /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
1372 /// <li>
1373 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1374 /// <li>
1375 /// <p>Must not conflict with the preferred backup window.</p></li>
1376 /// <li>
1377 /// <p>Must be at least 30 minutes.</p></li>
1378 /// </ul>
1379 pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1380 self.inner = self.inner.preferred_maintenance_window(input.into());
1381 self
1382 }
1383 /// <p>The time range each week during which system maintenance can occur. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance">Amazon RDS Maintenance Window</a> in the <i>Amazon RDS User Guide.</i></p>
1384 /// <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.</p>
1385 /// <p>Constraints:</p>
1386 /// <ul>
1387 /// <li>
1388 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
1389 /// <li>
1390 /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
1391 /// <li>
1392 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1393 /// <li>
1394 /// <p>Must not conflict with the preferred backup window.</p></li>
1395 /// <li>
1396 /// <p>Must be at least 30 minutes.</p></li>
1397 /// </ul>
1398 pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1399 self.inner = self.inner.set_preferred_maintenance_window(input);
1400 self
1401 }
1402 /// <p>The time range each week during which system maintenance can occur. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance">Amazon RDS Maintenance Window</a> in the <i>Amazon RDS User Guide.</i></p>
1403 /// <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.</p>
1404 /// <p>Constraints:</p>
1405 /// <ul>
1406 /// <li>
1407 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
1408 /// <li>
1409 /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
1410 /// <li>
1411 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1412 /// <li>
1413 /// <p>Must not conflict with the preferred backup window.</p></li>
1414 /// <li>
1415 /// <p>Must be at least 30 minutes.</p></li>
1416 /// </ul>
1417 pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
1418 self.inner.get_preferred_maintenance_window()
1419 }
1420 /// <p>The name of the DB parameter group to associate with this DB instance. If you don't specify a value, then Amazon RDS uses the default DB parameter group for the specified DB engine and version.</p>
1421 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1422 /// <p>Constraints:</p>
1423 /// <ul>
1424 /// <li>
1425 /// <p>Must be 1 to 255 letters, numbers, or hyphens.</p></li>
1426 /// <li>
1427 /// <p>The first character must be a letter.</p></li>
1428 /// <li>
1429 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
1430 /// </ul>
1431 pub fn db_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1432 self.inner = self.inner.db_parameter_group_name(input.into());
1433 self
1434 }
1435 /// <p>The name of the DB parameter group to associate with this DB instance. If you don't specify a value, then Amazon RDS uses the default DB parameter group for the specified DB engine and version.</p>
1436 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1437 /// <p>Constraints:</p>
1438 /// <ul>
1439 /// <li>
1440 /// <p>Must be 1 to 255 letters, numbers, or hyphens.</p></li>
1441 /// <li>
1442 /// <p>The first character must be a letter.</p></li>
1443 /// <li>
1444 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
1445 /// </ul>
1446 pub fn set_db_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1447 self.inner = self.inner.set_db_parameter_group_name(input);
1448 self
1449 }
1450 /// <p>The name of the DB parameter group to associate with this DB instance. If you don't specify a value, then Amazon RDS uses the default DB parameter group for the specified DB engine and version.</p>
1451 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1452 /// <p>Constraints:</p>
1453 /// <ul>
1454 /// <li>
1455 /// <p>Must be 1 to 255 letters, numbers, or hyphens.</p></li>
1456 /// <li>
1457 /// <p>The first character must be a letter.</p></li>
1458 /// <li>
1459 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
1460 /// </ul>
1461 pub fn get_db_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
1462 self.inner.get_db_parameter_group_name()
1463 }
1464 /// <p>The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to <code>0</code> disables automated backups.</p>
1465 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster.</p>
1466 /// <p>Default: <code>1</code></p>
1467 /// <p>Constraints:</p>
1468 /// <ul>
1469 /// <li>
1470 /// <p>Must be a value from 0 to 35.</p></li>
1471 /// <li>
1472 /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
1473 /// <li>
1474 /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
1475 /// </ul>
1476 pub fn backup_retention_period(mut self, input: i32) -> Self {
1477 self.inner = self.inner.backup_retention_period(input);
1478 self
1479 }
1480 /// <p>The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to <code>0</code> disables automated backups.</p>
1481 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster.</p>
1482 /// <p>Default: <code>1</code></p>
1483 /// <p>Constraints:</p>
1484 /// <ul>
1485 /// <li>
1486 /// <p>Must be a value from 0 to 35.</p></li>
1487 /// <li>
1488 /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
1489 /// <li>
1490 /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
1491 /// </ul>
1492 pub fn set_backup_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
1493 self.inner = self.inner.set_backup_retention_period(input);
1494 self
1495 }
1496 /// <p>The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to <code>0</code> disables automated backups.</p>
1497 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster.</p>
1498 /// <p>Default: <code>1</code></p>
1499 /// <p>Constraints:</p>
1500 /// <ul>
1501 /// <li>
1502 /// <p>Must be a value from 0 to 35.</p></li>
1503 /// <li>
1504 /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
1505 /// <li>
1506 /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
1507 /// </ul>
1508 pub fn get_backup_retention_period(&self) -> &::std::option::Option<i32> {
1509 self.inner.get_backup_retention_period()
1510 }
1511 /// <p>The daily time range during which automated backups are created if automated backups are enabled, using the <code>BackupRetentionPeriod</code> parameter. The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow">Backup window</a> in the <i>Amazon RDS User Guide</i>.</p>
1512 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The daily time range for creating automated backups is managed by the DB cluster.</p>
1513 /// <p>Constraints:</p>
1514 /// <ul>
1515 /// <li>
1516 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
1517 /// <li>
1518 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1519 /// <li>
1520 /// <p>Must not conflict with the preferred maintenance window.</p></li>
1521 /// <li>
1522 /// <p>Must be at least 30 minutes.</p></li>
1523 /// </ul>
1524 pub fn preferred_backup_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1525 self.inner = self.inner.preferred_backup_window(input.into());
1526 self
1527 }
1528 /// <p>The daily time range during which automated backups are created if automated backups are enabled, using the <code>BackupRetentionPeriod</code> parameter. The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow">Backup window</a> in the <i>Amazon RDS User Guide</i>.</p>
1529 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The daily time range for creating automated backups is managed by the DB cluster.</p>
1530 /// <p>Constraints:</p>
1531 /// <ul>
1532 /// <li>
1533 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
1534 /// <li>
1535 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1536 /// <li>
1537 /// <p>Must not conflict with the preferred maintenance window.</p></li>
1538 /// <li>
1539 /// <p>Must be at least 30 minutes.</p></li>
1540 /// </ul>
1541 pub fn set_preferred_backup_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1542 self.inner = self.inner.set_preferred_backup_window(input);
1543 self
1544 }
1545 /// <p>The daily time range during which automated backups are created if automated backups are enabled, using the <code>BackupRetentionPeriod</code> parameter. The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow">Backup window</a> in the <i>Amazon RDS User Guide</i>.</p>
1546 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The daily time range for creating automated backups is managed by the DB cluster.</p>
1547 /// <p>Constraints:</p>
1548 /// <ul>
1549 /// <li>
1550 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
1551 /// <li>
1552 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1553 /// <li>
1554 /// <p>Must not conflict with the preferred maintenance window.</p></li>
1555 /// <li>
1556 /// <p>Must be at least 30 minutes.</p></li>
1557 /// </ul>
1558 pub fn get_preferred_backup_window(&self) -> &::std::option::Option<::std::string::String> {
1559 self.inner.get_preferred_backup_window()
1560 }
1561 /// <p>The port number on which the database accepts connections.</p>
1562 /// <p>This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster.</p>
1563 /// <p>Valid Values: <code>1150-65535</code></p>
1564 /// <p>Default:</p>
1565 /// <ul>
1566 /// <li>
1567 /// <p>RDS for Db2 - <code>50000</code></p></li>
1568 /// <li>
1569 /// <p>RDS for MariaDB - <code>3306</code></p></li>
1570 /// <li>
1571 /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1572 /// <li>
1573 /// <p>RDS for MySQL - <code>3306</code></p></li>
1574 /// <li>
1575 /// <p>RDS for Oracle - <code>1521</code></p></li>
1576 /// <li>
1577 /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1578 /// </ul>
1579 /// <p>Constraints:</p>
1580 /// <ul>
1581 /// <li>
1582 /// <p>For RDS for Microsoft SQL Server, the value can't be <code>1234</code>, <code>1434</code>, <code>3260</code>, <code>3343</code>, <code>3389</code>, <code>47001</code>, or <code>49152-49156</code>.</p></li>
1583 /// </ul>
1584 pub fn port(mut self, input: i32) -> Self {
1585 self.inner = self.inner.port(input);
1586 self
1587 }
1588 /// <p>The port number on which the database accepts connections.</p>
1589 /// <p>This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster.</p>
1590 /// <p>Valid Values: <code>1150-65535</code></p>
1591 /// <p>Default:</p>
1592 /// <ul>
1593 /// <li>
1594 /// <p>RDS for Db2 - <code>50000</code></p></li>
1595 /// <li>
1596 /// <p>RDS for MariaDB - <code>3306</code></p></li>
1597 /// <li>
1598 /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1599 /// <li>
1600 /// <p>RDS for MySQL - <code>3306</code></p></li>
1601 /// <li>
1602 /// <p>RDS for Oracle - <code>1521</code></p></li>
1603 /// <li>
1604 /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1605 /// </ul>
1606 /// <p>Constraints:</p>
1607 /// <ul>
1608 /// <li>
1609 /// <p>For RDS for Microsoft SQL Server, the value can't be <code>1234</code>, <code>1434</code>, <code>3260</code>, <code>3343</code>, <code>3389</code>, <code>47001</code>, or <code>49152-49156</code>.</p></li>
1610 /// </ul>
1611 pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
1612 self.inner = self.inner.set_port(input);
1613 self
1614 }
1615 /// <p>The port number on which the database accepts connections.</p>
1616 /// <p>This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster.</p>
1617 /// <p>Valid Values: <code>1150-65535</code></p>
1618 /// <p>Default:</p>
1619 /// <ul>
1620 /// <li>
1621 /// <p>RDS for Db2 - <code>50000</code></p></li>
1622 /// <li>
1623 /// <p>RDS for MariaDB - <code>3306</code></p></li>
1624 /// <li>
1625 /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1626 /// <li>
1627 /// <p>RDS for MySQL - <code>3306</code></p></li>
1628 /// <li>
1629 /// <p>RDS for Oracle - <code>1521</code></p></li>
1630 /// <li>
1631 /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1632 /// </ul>
1633 /// <p>Constraints:</p>
1634 /// <ul>
1635 /// <li>
1636 /// <p>For RDS for Microsoft SQL Server, the value can't be <code>1234</code>, <code>1434</code>, <code>3260</code>, <code>3343</code>, <code>3389</code>, <code>47001</code>, or <code>49152-49156</code>.</p></li>
1637 /// </ul>
1638 pub fn get_port(&self) -> &::std::option::Option<i32> {
1639 self.inner.get_port()
1640 }
1641 /// <p>Specifies whether the DB instance is a Multi-AZ deployment. You can't set the <code>AvailabilityZone</code> parameter if the DB instance is a Multi-AZ deployment.</p>
1642 /// <p>This setting doesn't apply to Amazon Aurora because the DB instance Availability Zones (AZs) are managed by the DB cluster.</p>
1643 pub fn multi_az(mut self, input: bool) -> Self {
1644 self.inner = self.inner.multi_az(input);
1645 self
1646 }
1647 /// <p>Specifies whether the DB instance is a Multi-AZ deployment. You can't set the <code>AvailabilityZone</code> parameter if the DB instance is a Multi-AZ deployment.</p>
1648 /// <p>This setting doesn't apply to Amazon Aurora because the DB instance Availability Zones (AZs) are managed by the DB cluster.</p>
1649 pub fn set_multi_az(mut self, input: ::std::option::Option<bool>) -> Self {
1650 self.inner = self.inner.set_multi_az(input);
1651 self
1652 }
1653 /// <p>Specifies whether the DB instance is a Multi-AZ deployment. You can't set the <code>AvailabilityZone</code> parameter if the DB instance is a Multi-AZ deployment.</p>
1654 /// <p>This setting doesn't apply to Amazon Aurora because the DB instance Availability Zones (AZs) are managed by the DB cluster.</p>
1655 pub fn get_multi_az(&self) -> &::std::option::Option<bool> {
1656 self.inner.get_multi_az()
1657 }
1658 /// <p>The version number of the database engine to use.</p>
1659 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The version number of the database engine the DB instance uses is managed by the DB cluster.</p>
1660 /// <p>For a list of valid engine versions, use the <code>DescribeDBEngineVersions</code> operation.</p>
1661 /// <p>The following are the database engines and links to information about the major and minor versions that are available with Amazon RDS. Not every database engine is available for every Amazon Web Services Region.</p>
1662 /// <dl>
1663 /// <dt>
1664 /// Amazon RDS Custom for Oracle
1665 /// </dt>
1666 /// <dd>
1667 /// <p>A custom engine version (CEV) that you have previously created. This setting is required for RDS Custom for Oracle. The CEV name has the following format: 19.<i>customized_string</i>. A valid CEV name is <code>19.my_cev1</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-creating.html#custom-creating.create"> Creating an RDS Custom for Oracle DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1668 /// </dd>
1669 /// <dt>
1670 /// Amazon RDS Custom for SQL Server
1671 /// </dt>
1672 /// <dd>
1673 /// <p>See <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html">RDS Custom for SQL Server general requirements</a> in the <i>Amazon RDS User Guide</i>.</p>
1674 /// </dd>
1675 /// <dt>
1676 /// RDS for Db2
1677 /// </dt>
1678 /// <dd>
1679 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Db2.html#Db2.Concepts.VersionMgmt">Db2 on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1680 /// </dd>
1681 /// <dt>
1682 /// RDS for MariaDB
1683 /// </dt>
1684 /// <dd>
1685 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MariaDB.html#MariaDB.Concepts.VersionMgmt">MariaDB on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1686 /// </dd>
1687 /// <dt>
1688 /// RDS for Microsoft SQL Server
1689 /// </dt>
1690 /// <dd>
1691 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.VersionSupport">Microsoft SQL Server versions on Amazon RDS</a> in the <i>Amazon RDS User Guide</i>.</p>
1692 /// </dd>
1693 /// <dt>
1694 /// RDS for MySQL
1695 /// </dt>
1696 /// <dd>
1697 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">MySQL on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1698 /// </dd>
1699 /// <dt>
1700 /// RDS for Oracle
1701 /// </dt>
1702 /// <dd>
1703 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.PatchComposition.html">Oracle Database Engine release notes</a> in the <i>Amazon RDS User Guide</i>.</p>
1704 /// </dd>
1705 /// <dt>
1706 /// RDS for PostgreSQL
1707 /// </dt>
1708 /// <dd>
1709 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL versions and extensions</a> in the <i>Amazon RDS User Guide</i>.</p>
1710 /// </dd>
1711 /// </dl>
1712 pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1713 self.inner = self.inner.engine_version(input.into());
1714 self
1715 }
1716 /// <p>The version number of the database engine to use.</p>
1717 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The version number of the database engine the DB instance uses is managed by the DB cluster.</p>
1718 /// <p>For a list of valid engine versions, use the <code>DescribeDBEngineVersions</code> operation.</p>
1719 /// <p>The following are the database engines and links to information about the major and minor versions that are available with Amazon RDS. Not every database engine is available for every Amazon Web Services Region.</p>
1720 /// <dl>
1721 /// <dt>
1722 /// Amazon RDS Custom for Oracle
1723 /// </dt>
1724 /// <dd>
1725 /// <p>A custom engine version (CEV) that you have previously created. This setting is required for RDS Custom for Oracle. The CEV name has the following format: 19.<i>customized_string</i>. A valid CEV name is <code>19.my_cev1</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-creating.html#custom-creating.create"> Creating an RDS Custom for Oracle DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1726 /// </dd>
1727 /// <dt>
1728 /// Amazon RDS Custom for SQL Server
1729 /// </dt>
1730 /// <dd>
1731 /// <p>See <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html">RDS Custom for SQL Server general requirements</a> in the <i>Amazon RDS User Guide</i>.</p>
1732 /// </dd>
1733 /// <dt>
1734 /// RDS for Db2
1735 /// </dt>
1736 /// <dd>
1737 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Db2.html#Db2.Concepts.VersionMgmt">Db2 on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1738 /// </dd>
1739 /// <dt>
1740 /// RDS for MariaDB
1741 /// </dt>
1742 /// <dd>
1743 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MariaDB.html#MariaDB.Concepts.VersionMgmt">MariaDB on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1744 /// </dd>
1745 /// <dt>
1746 /// RDS for Microsoft SQL Server
1747 /// </dt>
1748 /// <dd>
1749 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.VersionSupport">Microsoft SQL Server versions on Amazon RDS</a> in the <i>Amazon RDS User Guide</i>.</p>
1750 /// </dd>
1751 /// <dt>
1752 /// RDS for MySQL
1753 /// </dt>
1754 /// <dd>
1755 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">MySQL on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1756 /// </dd>
1757 /// <dt>
1758 /// RDS for Oracle
1759 /// </dt>
1760 /// <dd>
1761 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.PatchComposition.html">Oracle Database Engine release notes</a> in the <i>Amazon RDS User Guide</i>.</p>
1762 /// </dd>
1763 /// <dt>
1764 /// RDS for PostgreSQL
1765 /// </dt>
1766 /// <dd>
1767 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL versions and extensions</a> in the <i>Amazon RDS User Guide</i>.</p>
1768 /// </dd>
1769 /// </dl>
1770 pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1771 self.inner = self.inner.set_engine_version(input);
1772 self
1773 }
1774 /// <p>The version number of the database engine to use.</p>
1775 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The version number of the database engine the DB instance uses is managed by the DB cluster.</p>
1776 /// <p>For a list of valid engine versions, use the <code>DescribeDBEngineVersions</code> operation.</p>
1777 /// <p>The following are the database engines and links to information about the major and minor versions that are available with Amazon RDS. Not every database engine is available for every Amazon Web Services Region.</p>
1778 /// <dl>
1779 /// <dt>
1780 /// Amazon RDS Custom for Oracle
1781 /// </dt>
1782 /// <dd>
1783 /// <p>A custom engine version (CEV) that you have previously created. This setting is required for RDS Custom for Oracle. The CEV name has the following format: 19.<i>customized_string</i>. A valid CEV name is <code>19.my_cev1</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-creating.html#custom-creating.create"> Creating an RDS Custom for Oracle DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1784 /// </dd>
1785 /// <dt>
1786 /// Amazon RDS Custom for SQL Server
1787 /// </dt>
1788 /// <dd>
1789 /// <p>See <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html">RDS Custom for SQL Server general requirements</a> in the <i>Amazon RDS User Guide</i>.</p>
1790 /// </dd>
1791 /// <dt>
1792 /// RDS for Db2
1793 /// </dt>
1794 /// <dd>
1795 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Db2.html#Db2.Concepts.VersionMgmt">Db2 on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1796 /// </dd>
1797 /// <dt>
1798 /// RDS for MariaDB
1799 /// </dt>
1800 /// <dd>
1801 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MariaDB.html#MariaDB.Concepts.VersionMgmt">MariaDB on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1802 /// </dd>
1803 /// <dt>
1804 /// RDS for Microsoft SQL Server
1805 /// </dt>
1806 /// <dd>
1807 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.VersionSupport">Microsoft SQL Server versions on Amazon RDS</a> in the <i>Amazon RDS User Guide</i>.</p>
1808 /// </dd>
1809 /// <dt>
1810 /// RDS for MySQL
1811 /// </dt>
1812 /// <dd>
1813 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">MySQL on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1814 /// </dd>
1815 /// <dt>
1816 /// RDS for Oracle
1817 /// </dt>
1818 /// <dd>
1819 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.PatchComposition.html">Oracle Database Engine release notes</a> in the <i>Amazon RDS User Guide</i>.</p>
1820 /// </dd>
1821 /// <dt>
1822 /// RDS for PostgreSQL
1823 /// </dt>
1824 /// <dd>
1825 /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL versions and extensions</a> in the <i>Amazon RDS User Guide</i>.</p>
1826 /// </dd>
1827 /// </dl>
1828 pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
1829 self.inner.get_engine_version()
1830 }
1831 /// <p>Specifies whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
1832 /// <p>If you create an RDS Custom DB instance, you must set <code>AutoMinorVersionUpgrade</code> to <code>false</code>.</p>
1833 /// <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>
1834 pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
1835 self.inner = self.inner.auto_minor_version_upgrade(input);
1836 self
1837 }
1838 /// <p>Specifies whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
1839 /// <p>If you create an RDS Custom DB instance, you must set <code>AutoMinorVersionUpgrade</code> to <code>false</code>.</p>
1840 /// <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>
1841 pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
1842 self.inner = self.inner.set_auto_minor_version_upgrade(input);
1843 self
1844 }
1845 /// <p>Specifies whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
1846 /// <p>If you create an RDS Custom DB instance, you must set <code>AutoMinorVersionUpgrade</code> to <code>false</code>.</p>
1847 /// <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>
1848 pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
1849 self.inner.get_auto_minor_version_upgrade()
1850 }
1851 /// <p>The license model information for this DB instance.</p><note>
1852 /// <p>License models for RDS for Db2 require additional configuration. The bring your own license (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html">Amazon RDS for Db2 licensing options</a> in the <i>Amazon RDS User Guide</i>.</p>
1853 /// <p>The default for RDS for Db2 is <code>bring-your-own-license</code>.</p>
1854 /// </note>
1855 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1856 /// <p>Valid Values:</p>
1857 /// <ul>
1858 /// <li>
1859 /// <p>RDS for Db2 - <code>bring-your-own-license | marketplace-license</code></p></li>
1860 /// <li>
1861 /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
1862 /// <li>
1863 /// <p>RDS for Microsoft SQL Server - <code>license-included</code></p></li>
1864 /// <li>
1865 /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
1866 /// <li>
1867 /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
1868 /// <li>
1869 /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
1870 /// </ul>
1871 pub fn license_model(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1872 self.inner = self.inner.license_model(input.into());
1873 self
1874 }
1875 /// <p>The license model information for this DB instance.</p><note>
1876 /// <p>License models for RDS for Db2 require additional configuration. The bring your own license (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html">Amazon RDS for Db2 licensing options</a> in the <i>Amazon RDS User Guide</i>.</p>
1877 /// <p>The default for RDS for Db2 is <code>bring-your-own-license</code>.</p>
1878 /// </note>
1879 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1880 /// <p>Valid Values:</p>
1881 /// <ul>
1882 /// <li>
1883 /// <p>RDS for Db2 - <code>bring-your-own-license | marketplace-license</code></p></li>
1884 /// <li>
1885 /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
1886 /// <li>
1887 /// <p>RDS for Microsoft SQL Server - <code>license-included</code></p></li>
1888 /// <li>
1889 /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
1890 /// <li>
1891 /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
1892 /// <li>
1893 /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
1894 /// </ul>
1895 pub fn set_license_model(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1896 self.inner = self.inner.set_license_model(input);
1897 self
1898 }
1899 /// <p>The license model information for this DB instance.</p><note>
1900 /// <p>License models for RDS for Db2 require additional configuration. The bring your own license (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html">Amazon RDS for Db2 licensing options</a> in the <i>Amazon RDS User Guide</i>.</p>
1901 /// <p>The default for RDS for Db2 is <code>bring-your-own-license</code>.</p>
1902 /// </note>
1903 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1904 /// <p>Valid Values:</p>
1905 /// <ul>
1906 /// <li>
1907 /// <p>RDS for Db2 - <code>bring-your-own-license | marketplace-license</code></p></li>
1908 /// <li>
1909 /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
1910 /// <li>
1911 /// <p>RDS for Microsoft SQL Server - <code>license-included</code></p></li>
1912 /// <li>
1913 /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
1914 /// <li>
1915 /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
1916 /// <li>
1917 /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
1918 /// </ul>
1919 pub fn get_license_model(&self) -> &::std::option::Option<::std::string::String> {
1920 self.inner.get_license_model()
1921 }
1922 /// <p>The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance. For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html">Amazon RDS DB instance storage</a> in the <i>Amazon RDS User Guide</i>.</p>
1923 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
1924 /// <p>Constraints:</p>
1925 /// <ul>
1926 /// <li>
1927 /// <p>For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a multiple between .5 and 50 of the storage amount for the DB instance.</p></li>
1928 /// <li>
1929 /// <p>For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.</p></li>
1930 /// </ul>
1931 pub fn iops(mut self, input: i32) -> Self {
1932 self.inner = self.inner.iops(input);
1933 self
1934 }
1935 /// <p>The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance. For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html">Amazon RDS DB instance storage</a> in the <i>Amazon RDS User Guide</i>.</p>
1936 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
1937 /// <p>Constraints:</p>
1938 /// <ul>
1939 /// <li>
1940 /// <p>For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a multiple between .5 and 50 of the storage amount for the DB instance.</p></li>
1941 /// <li>
1942 /// <p>For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.</p></li>
1943 /// </ul>
1944 pub fn set_iops(mut self, input: ::std::option::Option<i32>) -> Self {
1945 self.inner = self.inner.set_iops(input);
1946 self
1947 }
1948 /// <p>The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance. For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html">Amazon RDS DB instance storage</a> in the <i>Amazon RDS User Guide</i>.</p>
1949 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
1950 /// <p>Constraints:</p>
1951 /// <ul>
1952 /// <li>
1953 /// <p>For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a multiple between .5 and 50 of the storage amount for the DB instance.</p></li>
1954 /// <li>
1955 /// <p>For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.</p></li>
1956 /// </ul>
1957 pub fn get_iops(&self) -> &::std::option::Option<i32> {
1958 self.inner.get_iops()
1959 }
1960 /// <p>The storage throughput value, in mebibyte per second (MiBps), for the DB instance.</p>
1961 /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
1962 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1963 pub fn storage_throughput(mut self, input: i32) -> Self {
1964 self.inner = self.inner.storage_throughput(input);
1965 self
1966 }
1967 /// <p>The storage throughput value, in mebibyte per second (MiBps), for the DB instance.</p>
1968 /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
1969 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1970 pub fn set_storage_throughput(mut self, input: ::std::option::Option<i32>) -> Self {
1971 self.inner = self.inner.set_storage_throughput(input);
1972 self
1973 }
1974 /// <p>The storage throughput value, in mebibyte per second (MiBps), for the DB instance.</p>
1975 /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
1976 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1977 pub fn get_storage_throughput(&self) -> &::std::option::Option<i32> {
1978 self.inner.get_storage_throughput()
1979 }
1980 /// <p>The option group to associate the DB instance with.</p>
1981 /// <p>Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group. Also, that option group can't be removed from a DB instance after it is associated with a DB instance.</p>
1982 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1983 pub fn option_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1984 self.inner = self.inner.option_group_name(input.into());
1985 self
1986 }
1987 /// <p>The option group to associate the DB instance with.</p>
1988 /// <p>Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group. Also, that option group can't be removed from a DB instance after it is associated with a DB instance.</p>
1989 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1990 pub fn set_option_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1991 self.inner = self.inner.set_option_group_name(input);
1992 self
1993 }
1994 /// <p>The option group to associate the DB instance with.</p>
1995 /// <p>Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group. Also, that option group can't be removed from a DB instance after it is associated with a DB instance.</p>
1996 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1997 pub fn get_option_group_name(&self) -> &::std::option::Option<::std::string::String> {
1998 self.inner.get_option_group_name()
1999 }
2000 /// <p>For supported engines, the character set (<code>CharacterSet</code>) to associate the DB instance with.</p>
2001 /// <p>This setting doesn't apply to the following DB instances:</p>
2002 /// <ul>
2003 /// <li>
2004 /// <p>Amazon Aurora - The character set is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p></li>
2005 /// <li>
2006 /// <p>RDS Custom - However, if you need to change the character set, you can change it on the database itself.</p></li>
2007 /// </ul>
2008 pub fn character_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2009 self.inner = self.inner.character_set_name(input.into());
2010 self
2011 }
2012 /// <p>For supported engines, the character set (<code>CharacterSet</code>) to associate the DB instance with.</p>
2013 /// <p>This setting doesn't apply to the following DB instances:</p>
2014 /// <ul>
2015 /// <li>
2016 /// <p>Amazon Aurora - The character set is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p></li>
2017 /// <li>
2018 /// <p>RDS Custom - However, if you need to change the character set, you can change it on the database itself.</p></li>
2019 /// </ul>
2020 pub fn set_character_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2021 self.inner = self.inner.set_character_set_name(input);
2022 self
2023 }
2024 /// <p>For supported engines, the character set (<code>CharacterSet</code>) to associate the DB instance with.</p>
2025 /// <p>This setting doesn't apply to the following DB instances:</p>
2026 /// <ul>
2027 /// <li>
2028 /// <p>Amazon Aurora - The character set is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p></li>
2029 /// <li>
2030 /// <p>RDS Custom - However, if you need to change the character set, you can change it on the database itself.</p></li>
2031 /// </ul>
2032 pub fn get_character_set_name(&self) -> &::std::option::Option<::std::string::String> {
2033 self.inner.get_character_set_name()
2034 }
2035 /// <p>The name of the NCHAR character set for the Oracle DB instance.</p>
2036 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2037 pub fn nchar_character_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2038 self.inner = self.inner.nchar_character_set_name(input.into());
2039 self
2040 }
2041 /// <p>The name of the NCHAR character set for the Oracle DB instance.</p>
2042 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2043 pub fn set_nchar_character_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2044 self.inner = self.inner.set_nchar_character_set_name(input);
2045 self
2046 }
2047 /// <p>The name of the NCHAR character set for the Oracle DB instance.</p>
2048 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2049 pub fn get_nchar_character_set_name(&self) -> &::std::option::Option<::std::string::String> {
2050 self.inner.get_nchar_character_set_name()
2051 }
2052 /// <p>Specifies whether the DB instance is publicly accessible.</p>
2053 /// <p>When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its domain name system (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is controlled by its security group settings.</p>
2054 /// <p>When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.</p>
2055 /// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
2056 /// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>false</code> for Aurora instances and <code>true</code> for non-Aurora instances.</p>
2057 /// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
2058 /// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
2059 pub fn publicly_accessible(mut self, input: bool) -> Self {
2060 self.inner = self.inner.publicly_accessible(input);
2061 self
2062 }
2063 /// <p>Specifies whether the DB instance is publicly accessible.</p>
2064 /// <p>When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its domain name system (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is controlled by its security group settings.</p>
2065 /// <p>When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.</p>
2066 /// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
2067 /// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>false</code> for Aurora instances and <code>true</code> for non-Aurora instances.</p>
2068 /// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
2069 /// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
2070 pub fn set_publicly_accessible(mut self, input: ::std::option::Option<bool>) -> Self {
2071 self.inner = self.inner.set_publicly_accessible(input);
2072 self
2073 }
2074 /// <p>Specifies whether the DB instance is publicly accessible.</p>
2075 /// <p>When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its domain name system (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is controlled by its security group settings.</p>
2076 /// <p>When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.</p>
2077 /// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
2078 /// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>false</code> for Aurora instances and <code>true</code> for non-Aurora instances.</p>
2079 /// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
2080 /// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
2081 pub fn get_publicly_accessible(&self) -> &::std::option::Option<bool> {
2082 self.inner.get_publicly_accessible()
2083 }
2084 ///
2085 /// Appends an item to `Tags`.
2086 ///
2087 /// To override the contents of this collection use [`set_tags`](Self::set_tags).
2088 ///
2089 /// <p>Tags to assign to the DB instance.</p>
2090 pub fn tags(mut self, input: crate::types::Tag) -> Self {
2091 self.inner = self.inner.tags(input);
2092 self
2093 }
2094 /// <p>Tags to assign to the DB instance.</p>
2095 pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
2096 self.inner = self.inner.set_tags(input);
2097 self
2098 }
2099 /// <p>Tags to assign to the DB instance.</p>
2100 pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
2101 self.inner.get_tags()
2102 }
2103 /// <p>The identifier of the DB cluster that this DB instance will belong to.</p>
2104 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2105 pub fn db_cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2106 self.inner = self.inner.db_cluster_identifier(input.into());
2107 self
2108 }
2109 /// <p>The identifier of the DB cluster that this DB instance will belong to.</p>
2110 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2111 pub fn set_db_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2112 self.inner = self.inner.set_db_cluster_identifier(input);
2113 self
2114 }
2115 /// <p>The identifier of the DB cluster that this DB instance will belong to.</p>
2116 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2117 pub fn get_db_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
2118 self.inner.get_db_cluster_identifier()
2119 }
2120 /// <p>The storage type to associate with the DB instance.</p>
2121 /// <p>If you specify <code>io1</code>, <code>io2</code>, or <code>gp3</code>, you must also include a value for the <code>Iops</code> parameter.</p>
2122 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
2123 /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
2124 /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp3</code>.</p>
2125 pub fn storage_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2126 self.inner = self.inner.storage_type(input.into());
2127 self
2128 }
2129 /// <p>The storage type to associate with the DB instance.</p>
2130 /// <p>If you specify <code>io1</code>, <code>io2</code>, or <code>gp3</code>, you must also include a value for the <code>Iops</code> parameter.</p>
2131 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
2132 /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
2133 /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp3</code>.</p>
2134 pub fn set_storage_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2135 self.inner = self.inner.set_storage_type(input);
2136 self
2137 }
2138 /// <p>The storage type to associate with the DB instance.</p>
2139 /// <p>If you specify <code>io1</code>, <code>io2</code>, or <code>gp3</code>, you must also include a value for the <code>Iops</code> parameter.</p>
2140 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
2141 /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
2142 /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp3</code>.</p>
2143 pub fn get_storage_type(&self) -> &::std::option::Option<::std::string::String> {
2144 self.inner.get_storage_type()
2145 }
2146 /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
2147 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2148 pub fn tde_credential_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2149 self.inner = self.inner.tde_credential_arn(input.into());
2150 self
2151 }
2152 /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
2153 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2154 pub fn set_tde_credential_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2155 self.inner = self.inner.set_tde_credential_arn(input);
2156 self
2157 }
2158 /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
2159 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2160 pub fn get_tde_credential_arn(&self) -> &::std::option::Option<::std::string::String> {
2161 self.inner.get_tde_credential_arn()
2162 }
2163 /// <p>The password for the given ARN from the key store in order to access the device.</p>
2164 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2165 pub fn tde_credential_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2166 self.inner = self.inner.tde_credential_password(input.into());
2167 self
2168 }
2169 /// <p>The password for the given ARN from the key store in order to access the device.</p>
2170 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2171 pub fn set_tde_credential_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2172 self.inner = self.inner.set_tde_credential_password(input);
2173 self
2174 }
2175 /// <p>The password for the given ARN from the key store in order to access the device.</p>
2176 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2177 pub fn get_tde_credential_password(&self) -> &::std::option::Option<::std::string::String> {
2178 self.inner.get_tde_credential_password()
2179 }
2180 /// <p>Specifes whether the DB instance is encrypted. By default, it isn't encrypted.</p>
2181 /// <p>For RDS Custom DB instances, either enable this setting or leave it unset. Otherwise, Amazon RDS reports an error.</p>
2182 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The encryption for DB instances is managed by the DB cluster.</p>
2183 pub fn storage_encrypted(mut self, input: bool) -> Self {
2184 self.inner = self.inner.storage_encrypted(input);
2185 self
2186 }
2187 /// <p>Specifes whether the DB instance is encrypted. By default, it isn't encrypted.</p>
2188 /// <p>For RDS Custom DB instances, either enable this setting or leave it unset. Otherwise, Amazon RDS reports an error.</p>
2189 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The encryption for DB instances is managed by the DB cluster.</p>
2190 pub fn set_storage_encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
2191 self.inner = self.inner.set_storage_encrypted(input);
2192 self
2193 }
2194 /// <p>Specifes whether the DB instance is encrypted. By default, it isn't encrypted.</p>
2195 /// <p>For RDS Custom DB instances, either enable this setting or leave it unset. Otherwise, Amazon RDS reports an error.</p>
2196 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The encryption for DB instances is managed by the DB cluster.</p>
2197 pub fn get_storage_encrypted(&self) -> &::std::option::Option<bool> {
2198 self.inner.get_storage_encrypted()
2199 }
2200 /// <p>The Amazon Web Services KMS key identifier for an encrypted DB instance.</p>
2201 /// <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>
2202 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The Amazon Web Services KMS key identifier is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p>
2203 /// <p>If <code>StorageEncrypted</code> is enabled, and you do not specify a value for the <code>KmsKeyId</code> parameter, 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>
2204 /// <p>For Amazon RDS Custom, a KMS key is required for DB instances. For most RDS engines, if you leave this parameter empty while enabling <code>StorageEncrypted</code>, the engine uses the default KMS key. However, RDS Custom doesn't use the default key when this parameter is empty. You must explicitly specify a key.</p>
2205 pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2206 self.inner = self.inner.kms_key_id(input.into());
2207 self
2208 }
2209 /// <p>The Amazon Web Services KMS key identifier for an encrypted DB instance.</p>
2210 /// <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>
2211 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The Amazon Web Services KMS key identifier is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p>
2212 /// <p>If <code>StorageEncrypted</code> is enabled, and you do not specify a value for the <code>KmsKeyId</code> parameter, 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>
2213 /// <p>For Amazon RDS Custom, a KMS key is required for DB instances. For most RDS engines, if you leave this parameter empty while enabling <code>StorageEncrypted</code>, the engine uses the default KMS key. However, RDS Custom doesn't use the default key when this parameter is empty. You must explicitly specify a key.</p>
2214 pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2215 self.inner = self.inner.set_kms_key_id(input);
2216 self
2217 }
2218 /// <p>The Amazon Web Services KMS key identifier for an encrypted DB instance.</p>
2219 /// <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>
2220 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The Amazon Web Services KMS key identifier is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p>
2221 /// <p>If <code>StorageEncrypted</code> is enabled, and you do not specify a value for the <code>KmsKeyId</code> parameter, 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>
2222 /// <p>For Amazon RDS Custom, a KMS key is required for DB instances. For most RDS engines, if you leave this parameter empty while enabling <code>StorageEncrypted</code>, the engine uses the default KMS key. However, RDS Custom doesn't use the default key when this parameter is empty. You must explicitly specify a key.</p>
2223 pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
2224 self.inner.get_kms_key_id()
2225 }
2226 /// <p>The Active Directory directory ID to create the DB instance in. Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain.</p>
2227 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html"> Kerberos Authentication</a> in the <i>Amazon RDS User Guide</i>.</p>
2228 /// <p>This setting doesn't apply to the following DB instances:</p>
2229 /// <ul>
2230 /// <li>
2231 /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2232 /// <li>
2233 /// <p>RDS Custom</p></li>
2234 /// </ul>
2235 pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2236 self.inner = self.inner.domain(input.into());
2237 self
2238 }
2239 /// <p>The Active Directory directory ID to create the DB instance in. Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain.</p>
2240 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html"> Kerberos Authentication</a> in the <i>Amazon RDS User Guide</i>.</p>
2241 /// <p>This setting doesn't apply to the following DB instances:</p>
2242 /// <ul>
2243 /// <li>
2244 /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2245 /// <li>
2246 /// <p>RDS Custom</p></li>
2247 /// </ul>
2248 pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2249 self.inner = self.inner.set_domain(input);
2250 self
2251 }
2252 /// <p>The Active Directory directory ID to create the DB instance in. Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain.</p>
2253 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html"> Kerberos Authentication</a> in the <i>Amazon RDS User Guide</i>.</p>
2254 /// <p>This setting doesn't apply to the following DB instances:</p>
2255 /// <ul>
2256 /// <li>
2257 /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2258 /// <li>
2259 /// <p>RDS Custom</p></li>
2260 /// </ul>
2261 pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
2262 self.inner.get_domain()
2263 }
2264 /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
2265 /// <p>Constraints:</p>
2266 /// <ul>
2267 /// <li>
2268 /// <p>Can't be longer than 64 characters.</p></li>
2269 /// </ul>
2270 /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
2271 pub fn domain_fqdn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2272 self.inner = self.inner.domain_fqdn(input.into());
2273 self
2274 }
2275 /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
2276 /// <p>Constraints:</p>
2277 /// <ul>
2278 /// <li>
2279 /// <p>Can't be longer than 64 characters.</p></li>
2280 /// </ul>
2281 /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
2282 pub fn set_domain_fqdn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2283 self.inner = self.inner.set_domain_fqdn(input);
2284 self
2285 }
2286 /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
2287 /// <p>Constraints:</p>
2288 /// <ul>
2289 /// <li>
2290 /// <p>Can't be longer than 64 characters.</p></li>
2291 /// </ul>
2292 /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
2293 pub fn get_domain_fqdn(&self) -> &::std::option::Option<::std::string::String> {
2294 self.inner.get_domain_fqdn()
2295 }
2296 /// <p>The Active Directory organizational unit for your DB instance to join.</p>
2297 /// <p>Constraints:</p>
2298 /// <ul>
2299 /// <li>
2300 /// <p>Must be in the distinguished name format.</p></li>
2301 /// <li>
2302 /// <p>Can't be longer than 64 characters.</p></li>
2303 /// </ul>
2304 /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
2305 pub fn domain_ou(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2306 self.inner = self.inner.domain_ou(input.into());
2307 self
2308 }
2309 /// <p>The Active Directory organizational unit for your DB instance to join.</p>
2310 /// <p>Constraints:</p>
2311 /// <ul>
2312 /// <li>
2313 /// <p>Must be in the distinguished name format.</p></li>
2314 /// <li>
2315 /// <p>Can't be longer than 64 characters.</p></li>
2316 /// </ul>
2317 /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
2318 pub fn set_domain_ou(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2319 self.inner = self.inner.set_domain_ou(input);
2320 self
2321 }
2322 /// <p>The Active Directory organizational unit for your DB instance to join.</p>
2323 /// <p>Constraints:</p>
2324 /// <ul>
2325 /// <li>
2326 /// <p>Must be in the distinguished name format.</p></li>
2327 /// <li>
2328 /// <p>Can't be longer than 64 characters.</p></li>
2329 /// </ul>
2330 /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
2331 pub fn get_domain_ou(&self) -> &::std::option::Option<::std::string::String> {
2332 self.inner.get_domain_ou()
2333 }
2334 /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
2335 /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
2336 pub fn domain_auth_secret_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2337 self.inner = self.inner.domain_auth_secret_arn(input.into());
2338 self
2339 }
2340 /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
2341 /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
2342 pub fn set_domain_auth_secret_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2343 self.inner = self.inner.set_domain_auth_secret_arn(input);
2344 self
2345 }
2346 /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
2347 /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
2348 pub fn get_domain_auth_secret_arn(&self) -> &::std::option::Option<::std::string::String> {
2349 self.inner.get_domain_auth_secret_arn()
2350 }
2351 ///
2352 /// Appends an item to `DomainDnsIps`.
2353 ///
2354 /// To override the contents of this collection use [`set_domain_dns_ips`](Self::set_domain_dns_ips).
2355 ///
2356 /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
2357 /// <p>Constraints:</p>
2358 /// <ul>
2359 /// <li>
2360 /// <p>Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list.</p></li>
2361 /// </ul>
2362 /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
2363 pub fn domain_dns_ips(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2364 self.inner = self.inner.domain_dns_ips(input.into());
2365 self
2366 }
2367 /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
2368 /// <p>Constraints:</p>
2369 /// <ul>
2370 /// <li>
2371 /// <p>Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list.</p></li>
2372 /// </ul>
2373 /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
2374 pub fn set_domain_dns_ips(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
2375 self.inner = self.inner.set_domain_dns_ips(input);
2376 self
2377 }
2378 /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
2379 /// <p>Constraints:</p>
2380 /// <ul>
2381 /// <li>
2382 /// <p>Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list.</p></li>
2383 /// </ul>
2384 /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
2385 pub fn get_domain_dns_ips(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
2386 self.inner.get_domain_dns_ips()
2387 }
2388 /// <p>Specifies whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.</p>
2389 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting.</p>
2390 pub fn copy_tags_to_snapshot(mut self, input: bool) -> Self {
2391 self.inner = self.inner.copy_tags_to_snapshot(input);
2392 self
2393 }
2394 /// <p>Specifies whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.</p>
2395 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting.</p>
2396 pub fn set_copy_tags_to_snapshot(mut self, input: ::std::option::Option<bool>) -> Self {
2397 self.inner = self.inner.set_copy_tags_to_snapshot(input);
2398 self
2399 }
2400 /// <p>Specifies whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.</p>
2401 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting.</p>
2402 pub fn get_copy_tags_to_snapshot(&self) -> &::std::option::Option<bool> {
2403 self.inner.get_copy_tags_to_snapshot()
2404 }
2405 /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collection of Enhanced Monitoring metrics, specify <code>0</code>.</p>
2406 /// <p>If <code>MonitoringRoleArn</code> is specified, then you must set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
2407 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2408 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
2409 /// <p>Default: <code>0</code></p>
2410 pub fn monitoring_interval(mut self, input: i32) -> Self {
2411 self.inner = self.inner.monitoring_interval(input);
2412 self
2413 }
2414 /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collection of Enhanced Monitoring metrics, specify <code>0</code>.</p>
2415 /// <p>If <code>MonitoringRoleArn</code> is specified, then you must set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
2416 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2417 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
2418 /// <p>Default: <code>0</code></p>
2419 pub fn set_monitoring_interval(mut self, input: ::std::option::Option<i32>) -> Self {
2420 self.inner = self.inner.set_monitoring_interval(input);
2421 self
2422 }
2423 /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collection of Enhanced Monitoring metrics, specify <code>0</code>.</p>
2424 /// <p>If <code>MonitoringRoleArn</code> is specified, then you must set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
2425 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2426 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
2427 /// <p>Default: <code>0</code></p>
2428 pub fn get_monitoring_interval(&self) -> &::std::option::Option<i32> {
2429 self.inner.get_monitoring_interval()
2430 }
2431 /// <p>The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting Up and Enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
2432 /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, then you must supply a <code>MonitoringRoleArn</code> value.</p>
2433 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2434 pub fn monitoring_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2435 self.inner = self.inner.monitoring_role_arn(input.into());
2436 self
2437 }
2438 /// <p>The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting Up and Enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
2439 /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, then you must supply a <code>MonitoringRoleArn</code> value.</p>
2440 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2441 pub fn set_monitoring_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2442 self.inner = self.inner.set_monitoring_role_arn(input);
2443 self
2444 }
2445 /// <p>The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting Up and Enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
2446 /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, then you must supply a <code>MonitoringRoleArn</code> value.</p>
2447 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2448 pub fn get_monitoring_role_arn(&self) -> &::std::option::Option<::std::string::String> {
2449 self.inner.get_monitoring_role_arn()
2450 }
2451 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
2452 /// <p>This setting doesn't apply to the following DB instances:</p>
2453 /// <ul>
2454 /// <li>
2455 /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2456 /// <li>
2457 /// <p>RDS Custom</p></li>
2458 /// </ul>
2459 pub fn domain_iam_role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2460 self.inner = self.inner.domain_iam_role_name(input.into());
2461 self
2462 }
2463 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
2464 /// <p>This setting doesn't apply to the following DB instances:</p>
2465 /// <ul>
2466 /// <li>
2467 /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2468 /// <li>
2469 /// <p>RDS Custom</p></li>
2470 /// </ul>
2471 pub fn set_domain_iam_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2472 self.inner = self.inner.set_domain_iam_role_name(input);
2473 self
2474 }
2475 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
2476 /// <p>This setting doesn't apply to the following DB instances:</p>
2477 /// <ul>
2478 /// <li>
2479 /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2480 /// <li>
2481 /// <p>RDS Custom</p></li>
2482 /// </ul>
2483 pub fn get_domain_iam_role_name(&self) -> &::std::option::Option<::std::string::String> {
2484 self.inner.get_domain_iam_role_name()
2485 }
2486 /// <p>The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance"> Fault Tolerance for an Aurora DB Cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
2487 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2488 /// <p>Default: <code>1</code></p>
2489 /// <p>Valid Values: <code>0 - 15</code></p>
2490 pub fn promotion_tier(mut self, input: i32) -> Self {
2491 self.inner = self.inner.promotion_tier(input);
2492 self
2493 }
2494 /// <p>The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance"> Fault Tolerance for an Aurora DB Cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
2495 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2496 /// <p>Default: <code>1</code></p>
2497 /// <p>Valid Values: <code>0 - 15</code></p>
2498 pub fn set_promotion_tier(mut self, input: ::std::option::Option<i32>) -> Self {
2499 self.inner = self.inner.set_promotion_tier(input);
2500 self
2501 }
2502 /// <p>The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance"> Fault Tolerance for an Aurora DB Cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
2503 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2504 /// <p>Default: <code>1</code></p>
2505 /// <p>Valid Values: <code>0 - 15</code></p>
2506 pub fn get_promotion_tier(&self) -> &::std::option::Option<i32> {
2507 self.inner.get_promotion_tier()
2508 }
2509 /// <p>The time zone of the DB instance. The time zone parameter is currently supported only by <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-time-zone">RDS for Db2</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone">RDS for SQL Server</a>.</p>
2510 pub fn timezone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2511 self.inner = self.inner.timezone(input.into());
2512 self
2513 }
2514 /// <p>The time zone of the DB instance. The time zone parameter is currently supported only by <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-time-zone">RDS for Db2</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone">RDS for SQL Server</a>.</p>
2515 pub fn set_timezone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2516 self.inner = self.inner.set_timezone(input);
2517 self
2518 }
2519 /// <p>The time zone of the DB instance. The time zone parameter is currently supported only by <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-time-zone">RDS for Db2</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone">RDS for SQL Server</a>.</p>
2520 pub fn get_timezone(&self) -> &::std::option::Option<::std::string::String> {
2521 self.inner.get_timezone()
2522 }
2523 /// <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>
2524 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication for MySQL and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
2525 /// <p>This setting doesn't apply to the following DB instances:</p>
2526 /// <ul>
2527 /// <li>
2528 /// <p>Amazon Aurora (Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.)</p></li>
2529 /// <li>
2530 /// <p>RDS Custom</p></li>
2531 /// </ul>
2532 pub fn enable_iam_database_authentication(mut self, input: bool) -> Self {
2533 self.inner = self.inner.enable_iam_database_authentication(input);
2534 self
2535 }
2536 /// <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>
2537 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication for MySQL and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
2538 /// <p>This setting doesn't apply to the following DB instances:</p>
2539 /// <ul>
2540 /// <li>
2541 /// <p>Amazon Aurora (Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.)</p></li>
2542 /// <li>
2543 /// <p>RDS Custom</p></li>
2544 /// </ul>
2545 pub fn set_enable_iam_database_authentication(mut self, input: ::std::option::Option<bool>) -> Self {
2546 self.inner = self.inner.set_enable_iam_database_authentication(input);
2547 self
2548 }
2549 /// <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>
2550 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication for MySQL and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
2551 /// <p>This setting doesn't apply to the following DB instances:</p>
2552 /// <ul>
2553 /// <li>
2554 /// <p>Amazon Aurora (Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.)</p></li>
2555 /// <li>
2556 /// <p>RDS Custom</p></li>
2557 /// </ul>
2558 pub fn get_enable_iam_database_authentication(&self) -> &::std::option::Option<bool> {
2559 self.inner.get_enable_iam_database_authentication()
2560 }
2561 /// <p>The mode of Database Insights to enable for the DB instance.</p><note>
2562 /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
2563 /// </note>
2564 pub fn database_insights_mode(mut self, input: crate::types::DatabaseInsightsMode) -> Self {
2565 self.inner = self.inner.database_insights_mode(input);
2566 self
2567 }
2568 /// <p>The mode of Database Insights to enable for the DB instance.</p><note>
2569 /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
2570 /// </note>
2571 pub fn set_database_insights_mode(mut self, input: ::std::option::Option<crate::types::DatabaseInsightsMode>) -> Self {
2572 self.inner = self.inner.set_database_insights_mode(input);
2573 self
2574 }
2575 /// <p>The mode of Database Insights to enable for the DB instance.</p><note>
2576 /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
2577 /// </note>
2578 pub fn get_database_insights_mode(&self) -> &::std::option::Option<crate::types::DatabaseInsightsMode> {
2579 self.inner.get_database_insights_mode()
2580 }
2581 /// <p>Specifies whether to enable Performance Insights for the DB instance. 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>
2582 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2583 pub fn enable_performance_insights(mut self, input: bool) -> Self {
2584 self.inner = self.inner.enable_performance_insights(input);
2585 self
2586 }
2587 /// <p>Specifies whether to enable Performance Insights for the DB instance. 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>
2588 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2589 pub fn set_enable_performance_insights(mut self, input: ::std::option::Option<bool>) -> Self {
2590 self.inner = self.inner.set_enable_performance_insights(input);
2591 self
2592 }
2593 /// <p>Specifies whether to enable Performance Insights for the DB instance. 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>
2594 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2595 pub fn get_enable_performance_insights(&self) -> &::std::option::Option<bool> {
2596 self.inner.get_enable_performance_insights()
2597 }
2598 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
2599 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
2600 /// <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>
2601 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2602 pub fn performance_insights_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2603 self.inner = self.inner.performance_insights_kms_key_id(input.into());
2604 self
2605 }
2606 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
2607 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
2608 /// <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>
2609 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2610 pub fn set_performance_insights_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2611 self.inner = self.inner.set_performance_insights_kms_key_id(input);
2612 self
2613 }
2614 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
2615 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
2616 /// <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>
2617 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2618 pub fn get_performance_insights_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
2619 self.inner.get_performance_insights_kms_key_id()
2620 }
2621 /// <p>The number of days to retain Performance Insights data.</p>
2622 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2623 /// <p>Valid Values:</p>
2624 /// <ul>
2625 /// <li>
2626 /// <p><code>7</code></p></li>
2627 /// <li>
2628 /// <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>
2629 /// <li>
2630 /// <p><code>731</code></p></li>
2631 /// </ul>
2632 /// <p>Default: <code>7</code> days</p>
2633 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
2634 pub fn performance_insights_retention_period(mut self, input: i32) -> Self {
2635 self.inner = self.inner.performance_insights_retention_period(input);
2636 self
2637 }
2638 /// <p>The number of days to retain Performance Insights data.</p>
2639 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2640 /// <p>Valid Values:</p>
2641 /// <ul>
2642 /// <li>
2643 /// <p><code>7</code></p></li>
2644 /// <li>
2645 /// <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>
2646 /// <li>
2647 /// <p><code>731</code></p></li>
2648 /// </ul>
2649 /// <p>Default: <code>7</code> days</p>
2650 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
2651 pub fn set_performance_insights_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
2652 self.inner = self.inner.set_performance_insights_retention_period(input);
2653 self
2654 }
2655 /// <p>The number of days to retain Performance Insights data.</p>
2656 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2657 /// <p>Valid Values:</p>
2658 /// <ul>
2659 /// <li>
2660 /// <p><code>7</code></p></li>
2661 /// <li>
2662 /// <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>
2663 /// <li>
2664 /// <p><code>731</code></p></li>
2665 /// </ul>
2666 /// <p>Default: <code>7</code> days</p>
2667 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
2668 pub fn get_performance_insights_retention_period(&self) -> &::std::option::Option<i32> {
2669 self.inner.get_performance_insights_retention_period()
2670 }
2671 ///
2672 /// Appends an item to `EnableCloudwatchLogsExports`.
2673 ///
2674 /// To override the contents of this collection use [`set_enable_cloudwatch_logs_exports`](Self::set_enable_cloudwatch_logs_exports).
2675 ///
2676 /// <p>The list of log types to enable for exporting to CloudWatch Logs. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch"> Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
2677 /// <p>This setting doesn't apply to the following DB instances:</p>
2678 /// <ul>
2679 /// <li>
2680 /// <p>Amazon Aurora (CloudWatch Logs exports are managed by the DB cluster.)</p></li>
2681 /// <li>
2682 /// <p>RDS Custom</p></li>
2683 /// </ul>
2684 /// <p>The following values are valid for each DB engine:</p>
2685 /// <ul>
2686 /// <li>
2687 /// <p>RDS for Db2 - <code>diag.log | notify.log | iam-db-auth-error</code></p></li>
2688 /// <li>
2689 /// <p>RDS for MariaDB - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2690 /// <li>
2691 /// <p>RDS for Microsoft SQL Server - <code>agent | error</code></p></li>
2692 /// <li>
2693 /// <p>RDS for MySQL - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2694 /// <li>
2695 /// <p>RDS for Oracle - <code>alert | audit | listener | trace | oemagent</code></p></li>
2696 /// <li>
2697 /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
2698 /// </ul>
2699 pub fn enable_cloudwatch_logs_exports(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2700 self.inner = self.inner.enable_cloudwatch_logs_exports(input.into());
2701 self
2702 }
2703 /// <p>The list of log types to enable for exporting to CloudWatch Logs. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch"> Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
2704 /// <p>This setting doesn't apply to the following DB instances:</p>
2705 /// <ul>
2706 /// <li>
2707 /// <p>Amazon Aurora (CloudWatch Logs exports are managed by the DB cluster.)</p></li>
2708 /// <li>
2709 /// <p>RDS Custom</p></li>
2710 /// </ul>
2711 /// <p>The following values are valid for each DB engine:</p>
2712 /// <ul>
2713 /// <li>
2714 /// <p>RDS for Db2 - <code>diag.log | notify.log | iam-db-auth-error</code></p></li>
2715 /// <li>
2716 /// <p>RDS for MariaDB - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2717 /// <li>
2718 /// <p>RDS for Microsoft SQL Server - <code>agent | error</code></p></li>
2719 /// <li>
2720 /// <p>RDS for MySQL - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2721 /// <li>
2722 /// <p>RDS for Oracle - <code>alert | audit | listener | trace | oemagent</code></p></li>
2723 /// <li>
2724 /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
2725 /// </ul>
2726 pub fn set_enable_cloudwatch_logs_exports(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
2727 self.inner = self.inner.set_enable_cloudwatch_logs_exports(input);
2728 self
2729 }
2730 /// <p>The list of log types to enable for exporting to CloudWatch Logs. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch"> Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
2731 /// <p>This setting doesn't apply to the following DB instances:</p>
2732 /// <ul>
2733 /// <li>
2734 /// <p>Amazon Aurora (CloudWatch Logs exports are managed by the DB cluster.)</p></li>
2735 /// <li>
2736 /// <p>RDS Custom</p></li>
2737 /// </ul>
2738 /// <p>The following values are valid for each DB engine:</p>
2739 /// <ul>
2740 /// <li>
2741 /// <p>RDS for Db2 - <code>diag.log | notify.log | iam-db-auth-error</code></p></li>
2742 /// <li>
2743 /// <p>RDS for MariaDB - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2744 /// <li>
2745 /// <p>RDS for Microsoft SQL Server - <code>agent | error</code></p></li>
2746 /// <li>
2747 /// <p>RDS for MySQL - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2748 /// <li>
2749 /// <p>RDS for Oracle - <code>alert | audit | listener | trace | oemagent</code></p></li>
2750 /// <li>
2751 /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
2752 /// </ul>
2753 pub fn get_enable_cloudwatch_logs_exports(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
2754 self.inner.get_enable_cloudwatch_logs_exports()
2755 }
2756 ///
2757 /// Appends an item to `ProcessorFeatures`.
2758 ///
2759 /// To override the contents of this collection use [`set_processor_features`](Self::set_processor_features).
2760 ///
2761 /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
2762 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2763 pub fn processor_features(mut self, input: crate::types::ProcessorFeature) -> Self {
2764 self.inner = self.inner.processor_features(input);
2765 self
2766 }
2767 /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
2768 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2769 pub fn set_processor_features(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProcessorFeature>>) -> Self {
2770 self.inner = self.inner.set_processor_features(input);
2771 self
2772 }
2773 /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
2774 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2775 pub fn get_processor_features(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProcessorFeature>> {
2776 self.inner.get_processor_features()
2777 }
2778 /// <p>Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html"> Deleting a DB Instance</a>.</p>
2779 /// <p>This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion protection for the DB cluster. For more information, see <code>CreateDBCluster</code>. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.</p>
2780 pub fn deletion_protection(mut self, input: bool) -> Self {
2781 self.inner = self.inner.deletion_protection(input);
2782 self
2783 }
2784 /// <p>Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html"> Deleting a DB Instance</a>.</p>
2785 /// <p>This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion protection for the DB cluster. For more information, see <code>CreateDBCluster</code>. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.</p>
2786 pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
2787 self.inner = self.inner.set_deletion_protection(input);
2788 self
2789 }
2790 /// <p>Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html"> Deleting a DB Instance</a>.</p>
2791 /// <p>This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion protection for the DB cluster. For more information, see <code>CreateDBCluster</code>. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.</p>
2792 pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
2793 self.inner.get_deletion_protection()
2794 }
2795 /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
2796 /// <p>For more information about this setting, including limitations that apply to it, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling"> Managing capacity automatically with Amazon RDS storage autoscaling</a> in the <i>Amazon RDS User Guide</i>.</p>
2797 /// <p>This setting doesn't apply to the following DB instances:</p>
2798 /// <ul>
2799 /// <li>
2800 /// <p>Amazon Aurora (Storage is managed by the DB cluster.)</p></li>
2801 /// <li>
2802 /// <p>RDS Custom</p></li>
2803 /// </ul>
2804 pub fn max_allocated_storage(mut self, input: i32) -> Self {
2805 self.inner = self.inner.max_allocated_storage(input);
2806 self
2807 }
2808 /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
2809 /// <p>For more information about this setting, including limitations that apply to it, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling"> Managing capacity automatically with Amazon RDS storage autoscaling</a> in the <i>Amazon RDS User Guide</i>.</p>
2810 /// <p>This setting doesn't apply to the following DB instances:</p>
2811 /// <ul>
2812 /// <li>
2813 /// <p>Amazon Aurora (Storage is managed by the DB cluster.)</p></li>
2814 /// <li>
2815 /// <p>RDS Custom</p></li>
2816 /// </ul>
2817 pub fn set_max_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
2818 self.inner = self.inner.set_max_allocated_storage(input);
2819 self
2820 }
2821 /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
2822 /// <p>For more information about this setting, including limitations that apply to it, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling"> Managing capacity automatically with Amazon RDS storage autoscaling</a> in the <i>Amazon RDS User Guide</i>.</p>
2823 /// <p>This setting doesn't apply to the following DB instances:</p>
2824 /// <ul>
2825 /// <li>
2826 /// <p>Amazon Aurora (Storage is managed by the DB cluster.)</p></li>
2827 /// <li>
2828 /// <p>RDS Custom</p></li>
2829 /// </ul>
2830 pub fn get_max_allocated_storage(&self) -> &::std::option::Option<i32> {
2831 self.inner.get_max_allocated_storage()
2832 }
2833 /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
2834 /// <p>A <i>CoIP</i> provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the DB instance from outside of its virtual private cloud (VPC) on your local network.</p>
2835 /// <p>For more information about RDS on Outposts, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
2836 /// <p>For more information about CoIPs, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing">Customer-owned IP addresses</a> in the <i>Amazon Web Services Outposts User Guide</i>.</p>
2837 pub fn enable_customer_owned_ip(mut self, input: bool) -> Self {
2838 self.inner = self.inner.enable_customer_owned_ip(input);
2839 self
2840 }
2841 /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
2842 /// <p>A <i>CoIP</i> provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the DB instance from outside of its virtual private cloud (VPC) on your local network.</p>
2843 /// <p>For more information about RDS on Outposts, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
2844 /// <p>For more information about CoIPs, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing">Customer-owned IP addresses</a> in the <i>Amazon Web Services Outposts User Guide</i>.</p>
2845 pub fn set_enable_customer_owned_ip(mut self, input: ::std::option::Option<bool>) -> Self {
2846 self.inner = self.inner.set_enable_customer_owned_ip(input);
2847 self
2848 }
2849 /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
2850 /// <p>A <i>CoIP</i> provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the DB instance from outside of its virtual private cloud (VPC) on your local network.</p>
2851 /// <p>For more information about RDS on Outposts, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
2852 /// <p>For more information about CoIPs, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing">Customer-owned IP addresses</a> in the <i>Amazon Web Services Outposts User Guide</i>.</p>
2853 pub fn get_enable_customer_owned_ip(&self) -> &::std::option::Option<bool> {
2854 self.inner.get_enable_customer_owned_ip()
2855 }
2856 /// <p>The network type of the DB instance.</p>
2857 /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB instance. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
2858 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide.</i></p>
2859 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
2860 pub fn network_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2861 self.inner = self.inner.network_type(input.into());
2862 self
2863 }
2864 /// <p>The network type of the DB instance.</p>
2865 /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB instance. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
2866 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide.</i></p>
2867 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
2868 pub fn set_network_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2869 self.inner = self.inner.set_network_type(input);
2870 self
2871 }
2872 /// <p>The network type of the DB instance.</p>
2873 /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB instance. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
2874 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide.</i></p>
2875 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
2876 pub fn get_network_type(&self) -> &::std::option::Option<::std::string::String> {
2877 self.inner.get_network_type()
2878 }
2879 /// <p>The location for storing automated backups and manual snapshots.</p>
2880 /// <p>Valid Values:</p>
2881 /// <ul>
2882 /// <li>
2883 /// <p><code>local</code> (Dedicated Local Zone)</p></li>
2884 /// <li>
2885 /// <p><code>outposts</code> (Amazon Web Services Outposts)</p></li>
2886 /// <li>
2887 /// <p><code>region</code> (Amazon Web Services Region)</p></li>
2888 /// </ul>
2889 /// <p>Default: <code>region</code></p>
2890 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
2891 pub fn backup_target(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2892 self.inner = self.inner.backup_target(input.into());
2893 self
2894 }
2895 /// <p>The location for storing automated backups and manual snapshots.</p>
2896 /// <p>Valid Values:</p>
2897 /// <ul>
2898 /// <li>
2899 /// <p><code>local</code> (Dedicated Local Zone)</p></li>
2900 /// <li>
2901 /// <p><code>outposts</code> (Amazon Web Services Outposts)</p></li>
2902 /// <li>
2903 /// <p><code>region</code> (Amazon Web Services Region)</p></li>
2904 /// </ul>
2905 /// <p>Default: <code>region</code></p>
2906 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
2907 pub fn set_backup_target(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2908 self.inner = self.inner.set_backup_target(input);
2909 self
2910 }
2911 /// <p>The location for storing automated backups and manual snapshots.</p>
2912 /// <p>Valid Values:</p>
2913 /// <ul>
2914 /// <li>
2915 /// <p><code>local</code> (Dedicated Local Zone)</p></li>
2916 /// <li>
2917 /// <p><code>outposts</code> (Amazon Web Services Outposts)</p></li>
2918 /// <li>
2919 /// <p><code>region</code> (Amazon Web Services Region)</p></li>
2920 /// </ul>
2921 /// <p>Default: <code>region</code></p>
2922 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
2923 pub fn get_backup_target(&self) -> &::std::option::Option<::std::string::String> {
2924 self.inner.get_backup_target()
2925 }
2926 /// <p>The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.</p>
2927 /// <p>This setting is required for RDS Custom.</p>
2928 /// <p>Constraints:</p>
2929 /// <ul>
2930 /// <li>
2931 /// <p>The profile must exist in your account.</p></li>
2932 /// <li>
2933 /// <p>The profile must have an IAM role that Amazon EC2 has permissions to assume.</p></li>
2934 /// <li>
2935 /// <p>The instance profile name and the associated IAM role name must start with the prefix <code>AWSRDSCustom</code>.</p></li>
2936 /// </ul>
2937 /// <p>For the list of permissions required for the IAM role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc"> Configure IAM and your VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
2938 pub fn custom_iam_instance_profile(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2939 self.inner = self.inner.custom_iam_instance_profile(input.into());
2940 self
2941 }
2942 /// <p>The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.</p>
2943 /// <p>This setting is required for RDS Custom.</p>
2944 /// <p>Constraints:</p>
2945 /// <ul>
2946 /// <li>
2947 /// <p>The profile must exist in your account.</p></li>
2948 /// <li>
2949 /// <p>The profile must have an IAM role that Amazon EC2 has permissions to assume.</p></li>
2950 /// <li>
2951 /// <p>The instance profile name and the associated IAM role name must start with the prefix <code>AWSRDSCustom</code>.</p></li>
2952 /// </ul>
2953 /// <p>For the list of permissions required for the IAM role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc"> Configure IAM and your VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
2954 pub fn set_custom_iam_instance_profile(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2955 self.inner = self.inner.set_custom_iam_instance_profile(input);
2956 self
2957 }
2958 /// <p>The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.</p>
2959 /// <p>This setting is required for RDS Custom.</p>
2960 /// <p>Constraints:</p>
2961 /// <ul>
2962 /// <li>
2963 /// <p>The profile must exist in your account.</p></li>
2964 /// <li>
2965 /// <p>The profile must have an IAM role that Amazon EC2 has permissions to assume.</p></li>
2966 /// <li>
2967 /// <p>The instance profile name and the associated IAM role name must start with the prefix <code>AWSRDSCustom</code>.</p></li>
2968 /// </ul>
2969 /// <p>For the list of permissions required for the IAM role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc"> Configure IAM and your VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
2970 pub fn get_custom_iam_instance_profile(&self) -> &::std::option::Option<::std::string::String> {
2971 self.inner.get_custom_iam_instance_profile()
2972 }
2973 /// <p>The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. In this context, the term "Oracle database instance" refers exclusively to the system global area (SGA) and Oracle background processes. If you don't specify a SID, the value defaults to <code>RDSCDB</code>. The Oracle SID is also the name of your CDB.</p>
2974 pub fn db_system_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2975 self.inner = self.inner.db_system_id(input.into());
2976 self
2977 }
2978 /// <p>The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. In this context, the term "Oracle database instance" refers exclusively to the system global area (SGA) and Oracle background processes. If you don't specify a SID, the value defaults to <code>RDSCDB</code>. The Oracle SID is also the name of your CDB.</p>
2979 pub fn set_db_system_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2980 self.inner = self.inner.set_db_system_id(input);
2981 self
2982 }
2983 /// <p>The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. In this context, the term "Oracle database instance" refers exclusively to the system global area (SGA) and Oracle background processes. If you don't specify a SID, the value defaults to <code>RDSCDB</code>. The Oracle SID is also the name of your CDB.</p>
2984 pub fn get_db_system_id(&self) -> &::std::option::Option<::std::string::String> {
2985 self.inner.get_db_system_id()
2986 }
2987 /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
2988 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2989 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html"> Using SSL/TLS to encrypt a connection to a DB cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
2990 pub fn ca_certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2991 self.inner = self.inner.ca_certificate_identifier(input.into());
2992 self
2993 }
2994 /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
2995 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2996 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html"> Using SSL/TLS to encrypt a connection to a DB cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
2997 pub fn set_ca_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2998 self.inner = self.inner.set_ca_certificate_identifier(input);
2999 self
3000 }
3001 /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
3002 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
3003 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html"> Using SSL/TLS to encrypt a connection to a DB cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
3004 pub fn get_ca_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
3005 self.inner.get_ca_certificate_identifier()
3006 }
3007 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
3008 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide.</i></p>
3009 /// <p>Constraints:</p>
3010 /// <ul>
3011 /// <li>
3012 /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
3013 /// </ul>
3014 pub fn manage_master_user_password(mut self, input: bool) -> Self {
3015 self.inner = self.inner.manage_master_user_password(input);
3016 self
3017 }
3018 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
3019 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide.</i></p>
3020 /// <p>Constraints:</p>
3021 /// <ul>
3022 /// <li>
3023 /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
3024 /// </ul>
3025 pub fn set_manage_master_user_password(mut self, input: ::std::option::Option<bool>) -> Self {
3026 self.inner = self.inner.set_manage_master_user_password(input);
3027 self
3028 }
3029 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
3030 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide.</i></p>
3031 /// <p>Constraints:</p>
3032 /// <ul>
3033 /// <li>
3034 /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
3035 /// </ul>
3036 pub fn get_manage_master_user_password(&self) -> &::std::option::Option<bool> {
3037 self.inner.get_manage_master_user_password()
3038 }
3039 /// <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>
3040 /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB instance.</p>
3041 /// <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>
3042 /// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
3043 /// <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>
3044 pub fn master_user_secret_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
3045 self.inner = self.inner.master_user_secret_kms_key_id(input.into());
3046 self
3047 }
3048 /// <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>
3049 /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB instance.</p>
3050 /// <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>
3051 /// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
3052 /// <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>
3053 pub fn set_master_user_secret_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
3054 self.inner = self.inner.set_master_user_secret_kms_key_id(input);
3055 self
3056 }
3057 /// <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>
3058 /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB instance.</p>
3059 /// <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>
3060 /// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
3061 /// <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>
3062 pub fn get_master_user_secret_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
3063 self.inner.get_master_user_secret_kms_key_id()
3064 }
3065 /// <p>Specifies whether to use the multi-tenant configuration or the single-tenant configuration (default). This parameter only applies to RDS for Oracle container database (CDB) engines.</p>
3066 /// <p>Note the following restrictions:</p>
3067 /// <ul>
3068 /// <li>
3069 /// <p>The DB engine that you specify in the request must support the multi-tenant configuration. If you attempt to enable the multi-tenant configuration on a DB engine that doesn't support it, the request fails.</p></li>
3070 /// <li>
3071 /// <p>If you specify the multi-tenant configuration when you create your DB instance, you can't later modify this DB instance to use the single-tenant configuration.</p></li>
3072 /// </ul>
3073 pub fn multi_tenant(mut self, input: bool) -> Self {
3074 self.inner = self.inner.multi_tenant(input);
3075 self
3076 }
3077 /// <p>Specifies whether to use the multi-tenant configuration or the single-tenant configuration (default). This parameter only applies to RDS for Oracle container database (CDB) engines.</p>
3078 /// <p>Note the following restrictions:</p>
3079 /// <ul>
3080 /// <li>
3081 /// <p>The DB engine that you specify in the request must support the multi-tenant configuration. If you attempt to enable the multi-tenant configuration on a DB engine that doesn't support it, the request fails.</p></li>
3082 /// <li>
3083 /// <p>If you specify the multi-tenant configuration when you create your DB instance, you can't later modify this DB instance to use the single-tenant configuration.</p></li>
3084 /// </ul>
3085 pub fn set_multi_tenant(mut self, input: ::std::option::Option<bool>) -> Self {
3086 self.inner = self.inner.set_multi_tenant(input);
3087 self
3088 }
3089 /// <p>Specifies whether to use the multi-tenant configuration or the single-tenant configuration (default). This parameter only applies to RDS for Oracle container database (CDB) engines.</p>
3090 /// <p>Note the following restrictions:</p>
3091 /// <ul>
3092 /// <li>
3093 /// <p>The DB engine that you specify in the request must support the multi-tenant configuration. If you attempt to enable the multi-tenant configuration on a DB engine that doesn't support it, the request fails.</p></li>
3094 /// <li>
3095 /// <p>If you specify the multi-tenant configuration when you create your DB instance, you can't later modify this DB instance to use the single-tenant configuration.</p></li>
3096 /// </ul>
3097 pub fn get_multi_tenant(&self) -> &::std::option::Option<bool> {
3098 self.inner.get_multi_tenant()
3099 }
3100 /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
3101 pub fn dedicated_log_volume(mut self, input: bool) -> Self {
3102 self.inner = self.inner.dedicated_log_volume(input);
3103 self
3104 }
3105 /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
3106 pub fn set_dedicated_log_volume(mut self, input: ::std::option::Option<bool>) -> Self {
3107 self.inner = self.inner.set_dedicated_log_volume(input);
3108 self
3109 }
3110 /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
3111 pub fn get_dedicated_log_volume(&self) -> &::std::option::Option<bool> {
3112 self.inner.get_dedicated_log_volume()
3113 }
3114 /// <p>The life cycle type for this DB instance.</p><note>
3115 /// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB instance will fail if the DB major version is past its end of standard support date.</p>
3116 /// </note>
3117 /// <p>This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.</p>
3118 /// <p>You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i>.</p>
3119 /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
3120 /// <p>Default: <code>open-source-rds-extended-support</code></p>
3121 pub fn engine_lifecycle_support(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
3122 self.inner = self.inner.engine_lifecycle_support(input.into());
3123 self
3124 }
3125 /// <p>The life cycle type for this DB instance.</p><note>
3126 /// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB instance will fail if the DB major version is past its end of standard support date.</p>
3127 /// </note>
3128 /// <p>This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.</p>
3129 /// <p>You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i>.</p>
3130 /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
3131 /// <p>Default: <code>open-source-rds-extended-support</code></p>
3132 pub fn set_engine_lifecycle_support(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
3133 self.inner = self.inner.set_engine_lifecycle_support(input);
3134 self
3135 }
3136 /// <p>The life cycle type for this DB instance.</p><note>
3137 /// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB instance will fail if the DB major version is past its end of standard support date.</p>
3138 /// </note>
3139 /// <p>This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.</p>
3140 /// <p>You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i>.</p>
3141 /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
3142 /// <p>Default: <code>open-source-rds-extended-support</code></p>
3143 pub fn get_engine_lifecycle_support(&self) -> &::std::option::Option<::std::string::String> {
3144 self.inner.get_engine_lifecycle_support()
3145 }
3146 ///
3147 /// Appends an item to `TagSpecifications`.
3148 ///
3149 /// To override the contents of this collection use [`set_tag_specifications`](Self::set_tag_specifications).
3150 ///
3151 /// <p>Tags to assign to resources associated with the DB instance.</p>
3152 /// <p>Valid Values:</p>
3153 /// <ul>
3154 /// <li>
3155 /// <p><code>auto-backup</code> - The DB instance's automated backup.</p></li>
3156 /// </ul>
3157 pub fn tag_specifications(mut self, input: crate::types::TagSpecification) -> Self {
3158 self.inner = self.inner.tag_specifications(input);
3159 self
3160 }
3161 /// <p>Tags to assign to resources associated with the DB instance.</p>
3162 /// <p>Valid Values:</p>
3163 /// <ul>
3164 /// <li>
3165 /// <p><code>auto-backup</code> - The DB instance's automated backup.</p></li>
3166 /// </ul>
3167 pub fn set_tag_specifications(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>>) -> Self {
3168 self.inner = self.inner.set_tag_specifications(input);
3169 self
3170 }
3171 /// <p>Tags to assign to resources associated with the DB instance.</p>
3172 /// <p>Valid Values:</p>
3173 /// <ul>
3174 /// <li>
3175 /// <p><code>auto-backup</code> - The DB instance's automated backup.</p></li>
3176 /// </ul>
3177 pub fn get_tag_specifications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>> {
3178 self.inner.get_tag_specifications()
3179 }
3180 /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB instance.</p>
3181 /// <p>You can specify one of the following values:</p>
3182 /// <ul>
3183 /// <li>
3184 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
3185 /// <li>
3186 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
3187 /// </ul>
3188 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
3189 pub fn master_user_authentication_type(mut self, input: crate::types::MasterUserAuthenticationType) -> Self {
3190 self.inner = self.inner.master_user_authentication_type(input);
3191 self
3192 }
3193 /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB instance.</p>
3194 /// <p>You can specify one of the following values:</p>
3195 /// <ul>
3196 /// <li>
3197 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
3198 /// <li>
3199 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
3200 /// </ul>
3201 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
3202 pub fn set_master_user_authentication_type(mut self, input: ::std::option::Option<crate::types::MasterUserAuthenticationType>) -> Self {
3203 self.inner = self.inner.set_master_user_authentication_type(input);
3204 self
3205 }
3206 /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB instance.</p>
3207 /// <p>You can specify one of the following values:</p>
3208 /// <ul>
3209 /// <li>
3210 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
3211 /// <li>
3212 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
3213 /// </ul>
3214 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
3215 pub fn get_master_user_authentication_type(&self) -> &::std::option::Option<crate::types::MasterUserAuthenticationType> {
3216 self.inner.get_master_user_authentication_type()
3217 }
3218 ///
3219 /// Appends an item to `AdditionalStorageVolumes`.
3220 ///
3221 /// To override the contents of this collection use [`set_additional_storage_volumes`](Self::set_additional_storage_volumes).
3222 ///
3223 /// <p>A list of additional storage volumes to create for the DB instance. You can create up to three additional storage volumes using the names <code>rdsdbdata2</code>, <code>rdsdbdata3</code>, and <code>rdsdbdata4</code>. Additional storage volumes are supported for RDS for Oracle and RDS for SQL Server DB instances only.</p>
3224 pub fn additional_storage_volumes(mut self, input: crate::types::AdditionalStorageVolume) -> Self {
3225 self.inner = self.inner.additional_storage_volumes(input);
3226 self
3227 }
3228 /// <p>A list of additional storage volumes to create for the DB instance. You can create up to three additional storage volumes using the names <code>rdsdbdata2</code>, <code>rdsdbdata3</code>, and <code>rdsdbdata4</code>. Additional storage volumes are supported for RDS for Oracle and RDS for SQL Server DB instances only.</p>
3229 pub fn set_additional_storage_volumes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AdditionalStorageVolume>>) -> Self {
3230 self.inner = self.inner.set_additional_storage_volumes(input);
3231 self
3232 }
3233 /// <p>A list of additional storage volumes to create for the DB instance. You can create up to three additional storage volumes using the names <code>rdsdbdata2</code>, <code>rdsdbdata3</code>, and <code>rdsdbdata4</code>. Additional storage volumes are supported for RDS for Oracle and RDS for SQL Server DB instances only.</p>
3234 pub fn get_additional_storage_volumes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AdditionalStorageVolume>> {
3235 self.inner.get_additional_storage_volumes()
3236 }
3237}