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-ee</code></p></li>
985 /// <li>
986 /// <p><code>sqlserver-se</code></p></li>
987 /// <li>
988 /// <p><code>sqlserver-ex</code></p></li>
989 /// <li>
990 /// <p><code>sqlserver-web</code></p></li>
991 /// </ul>
992 pub fn engine(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
993 self.inner = self.inner.engine(input.into());
994 self
995 }
996 /// <p>The database engine to use for this DB instance.</p>
997 /// <p>Not every database engine is available in every Amazon Web Services Region.</p>
998 /// <p>Valid Values:</p>
999 /// <ul>
1000 /// <li>
1001 /// <p><code>aurora-mysql</code> (for Aurora MySQL DB instances)</p></li>
1002 /// <li>
1003 /// <p><code>aurora-postgresql</code> (for Aurora PostgreSQL DB instances)</p></li>
1004 /// <li>
1005 /// <p><code>custom-oracle-ee</code> (for RDS Custom for Oracle DB instances)</p></li>
1006 /// <li>
1007 /// <p><code>custom-oracle-ee-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
1008 /// <li>
1009 /// <p><code>custom-oracle-se2</code> (for RDS Custom for Oracle DB instances)</p></li>
1010 /// <li>
1011 /// <p><code>custom-oracle-se2-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
1012 /// <li>
1013 /// <p><code>custom-sqlserver-ee</code> (for RDS Custom for SQL Server DB instances)</p></li>
1014 /// <li>
1015 /// <p><code>custom-sqlserver-se</code> (for RDS Custom for SQL Server DB instances)</p></li>
1016 /// <li>
1017 /// <p><code>custom-sqlserver-web</code> (for RDS Custom for SQL Server DB instances)</p></li>
1018 /// <li>
1019 /// <p><code>custom-sqlserver-dev</code> (for RDS Custom for SQL Server DB instances)</p></li>
1020 /// <li>
1021 /// <p><code>db2-ae</code></p></li>
1022 /// <li>
1023 /// <p><code>db2-se</code></p></li>
1024 /// <li>
1025 /// <p><code>mariadb</code></p></li>
1026 /// <li>
1027 /// <p><code>mysql</code></p></li>
1028 /// <li>
1029 /// <p><code>oracle-ee</code></p></li>
1030 /// <li>
1031 /// <p><code>oracle-ee-cdb</code></p></li>
1032 /// <li>
1033 /// <p><code>oracle-se2</code></p></li>
1034 /// <li>
1035 /// <p><code>oracle-se2-cdb</code></p></li>
1036 /// <li>
1037 /// <p><code>postgres</code></p></li>
1038 /// <li>
1039 /// <p><code>sqlserver-ee</code></p></li>
1040 /// <li>
1041 /// <p><code>sqlserver-se</code></p></li>
1042 /// <li>
1043 /// <p><code>sqlserver-ex</code></p></li>
1044 /// <li>
1045 /// <p><code>sqlserver-web</code></p></li>
1046 /// </ul>
1047 pub fn set_engine(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1048 self.inner = self.inner.set_engine(input);
1049 self
1050 }
1051 /// <p>The database engine to use for this DB instance.</p>
1052 /// <p>Not every database engine is available in every Amazon Web Services Region.</p>
1053 /// <p>Valid Values:</p>
1054 /// <ul>
1055 /// <li>
1056 /// <p><code>aurora-mysql</code> (for Aurora MySQL DB instances)</p></li>
1057 /// <li>
1058 /// <p><code>aurora-postgresql</code> (for Aurora PostgreSQL DB instances)</p></li>
1059 /// <li>
1060 /// <p><code>custom-oracle-ee</code> (for RDS Custom for Oracle DB instances)</p></li>
1061 /// <li>
1062 /// <p><code>custom-oracle-ee-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
1063 /// <li>
1064 /// <p><code>custom-oracle-se2</code> (for RDS Custom for Oracle DB instances)</p></li>
1065 /// <li>
1066 /// <p><code>custom-oracle-se2-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
1067 /// <li>
1068 /// <p><code>custom-sqlserver-ee</code> (for RDS Custom for SQL Server DB instances)</p></li>
1069 /// <li>
1070 /// <p><code>custom-sqlserver-se</code> (for RDS Custom for SQL Server DB instances)</p></li>
1071 /// <li>
1072 /// <p><code>custom-sqlserver-web</code> (for RDS Custom for SQL Server DB instances)</p></li>
1073 /// <li>
1074 /// <p><code>custom-sqlserver-dev</code> (for RDS Custom for SQL Server DB instances)</p></li>
1075 /// <li>
1076 /// <p><code>db2-ae</code></p></li>
1077 /// <li>
1078 /// <p><code>db2-se</code></p></li>
1079 /// <li>
1080 /// <p><code>mariadb</code></p></li>
1081 /// <li>
1082 /// <p><code>mysql</code></p></li>
1083 /// <li>
1084 /// <p><code>oracle-ee</code></p></li>
1085 /// <li>
1086 /// <p><code>oracle-ee-cdb</code></p></li>
1087 /// <li>
1088 /// <p><code>oracle-se2</code></p></li>
1089 /// <li>
1090 /// <p><code>oracle-se2-cdb</code></p></li>
1091 /// <li>
1092 /// <p><code>postgres</code></p></li>
1093 /// <li>
1094 /// <p><code>sqlserver-ee</code></p></li>
1095 /// <li>
1096 /// <p><code>sqlserver-se</code></p></li>
1097 /// <li>
1098 /// <p><code>sqlserver-ex</code></p></li>
1099 /// <li>
1100 /// <p><code>sqlserver-web</code></p></li>
1101 /// </ul>
1102 pub fn get_engine(&self) -> &::std::option::Option<::std::string::String> {
1103 self.inner.get_engine()
1104 }
1105 /// <p>The name for the master user.</p>
1106 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The name for the master user is managed by the DB cluster.</p>
1107 /// <p>This setting is required for RDS DB instances.</p>
1108 /// <p>Constraints:</p>
1109 /// <ul>
1110 /// <li>
1111 /// <p>Must be 1 to 16 letters, numbers, or underscores.</p></li>
1112 /// <li>
1113 /// <p>First character must be a letter.</p></li>
1114 /// <li>
1115 /// <p>Can't be a reserved word for the chosen database engine.</p></li>
1116 /// </ul>
1117 pub fn master_username(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1118 self.inner = self.inner.master_username(input.into());
1119 self
1120 }
1121 /// <p>The name for the master user.</p>
1122 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The name for the master user is managed by the DB cluster.</p>
1123 /// <p>This setting is required for RDS DB instances.</p>
1124 /// <p>Constraints:</p>
1125 /// <ul>
1126 /// <li>
1127 /// <p>Must be 1 to 16 letters, numbers, or underscores.</p></li>
1128 /// <li>
1129 /// <p>First character must be a letter.</p></li>
1130 /// <li>
1131 /// <p>Can't be a reserved word for the chosen database engine.</p></li>
1132 /// </ul>
1133 pub fn set_master_username(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1134 self.inner = self.inner.set_master_username(input);
1135 self
1136 }
1137 /// <p>The name for the master user.</p>
1138 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The name for the master user is managed by the DB cluster.</p>
1139 /// <p>This setting is required for RDS DB instances.</p>
1140 /// <p>Constraints:</p>
1141 /// <ul>
1142 /// <li>
1143 /// <p>Must be 1 to 16 letters, numbers, or underscores.</p></li>
1144 /// <li>
1145 /// <p>First character must be a letter.</p></li>
1146 /// <li>
1147 /// <p>Can't be a reserved word for the chosen database engine.</p></li>
1148 /// </ul>
1149 pub fn get_master_username(&self) -> &::std::option::Option<::std::string::String> {
1150 self.inner.get_master_username()
1151 }
1152 /// <p>The password for the master user.</p>
1153 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The password for the master user is managed by the DB cluster.</p>
1154 /// <p>Constraints:</p>
1155 /// <ul>
1156 /// <li>
1157 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
1158 /// <li>
1159 /// <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>
1160 /// </ul>
1161 /// <p>Length Constraints:</p>
1162 /// <ul>
1163 /// <li>
1164 /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
1165 /// <li>
1166 /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
1167 /// <li>
1168 /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
1169 /// <li>
1170 /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
1171 /// <li>
1172 /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
1173 /// <li>
1174 /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
1175 /// </ul>
1176 pub fn master_user_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1177 self.inner = self.inner.master_user_password(input.into());
1178 self
1179 }
1180 /// <p>The password for the master user.</p>
1181 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The password for the master user is managed by the DB cluster.</p>
1182 /// <p>Constraints:</p>
1183 /// <ul>
1184 /// <li>
1185 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
1186 /// <li>
1187 /// <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>
1188 /// </ul>
1189 /// <p>Length Constraints:</p>
1190 /// <ul>
1191 /// <li>
1192 /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
1193 /// <li>
1194 /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
1195 /// <li>
1196 /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
1197 /// <li>
1198 /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
1199 /// <li>
1200 /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
1201 /// <li>
1202 /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
1203 /// </ul>
1204 pub fn set_master_user_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1205 self.inner = self.inner.set_master_user_password(input);
1206 self
1207 }
1208 /// <p>The password for the master user.</p>
1209 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The password for the master user is managed by the DB cluster.</p>
1210 /// <p>Constraints:</p>
1211 /// <ul>
1212 /// <li>
1213 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
1214 /// <li>
1215 /// <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>
1216 /// </ul>
1217 /// <p>Length Constraints:</p>
1218 /// <ul>
1219 /// <li>
1220 /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
1221 /// <li>
1222 /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
1223 /// <li>
1224 /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
1225 /// <li>
1226 /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
1227 /// <li>
1228 /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
1229 /// <li>
1230 /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
1231 /// </ul>
1232 pub fn get_master_user_password(&self) -> &::std::option::Option<::std::string::String> {
1233 self.inner.get_master_user_password()
1234 }
1235 ///
1236 /// Appends an item to `DBSecurityGroups`.
1237 ///
1238 /// To override the contents of this collection use [`set_db_security_groups`](Self::set_db_security_groups).
1239 ///
1240 /// <p>A list of DB security groups to associate with this DB instance.</p>
1241 /// <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>
1242 pub fn db_security_groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1243 self.inner = self.inner.db_security_groups(input.into());
1244 self
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 set_db_security_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1249 self.inner = self.inner.set_db_security_groups(input);
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 get_db_security_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1255 self.inner.get_db_security_groups()
1256 }
1257 ///
1258 /// Appends an item to `VpcSecurityGroupIds`.
1259 ///
1260 /// To override the contents of this collection use [`set_vpc_security_group_ids`](Self::set_vpc_security_group_ids).
1261 ///
1262 /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance.</p>
1263 /// <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>
1264 /// <p>Default: The default EC2 VPC security group for the DB subnet group's VPC.</p>
1265 pub fn vpc_security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1266 self.inner = self.inner.vpc_security_group_ids(input.into());
1267 self
1268 }
1269 /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance.</p>
1270 /// <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>
1271 /// <p>Default: The default EC2 VPC security group for the DB subnet group's VPC.</p>
1272 pub fn set_vpc_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1273 self.inner = self.inner.set_vpc_security_group_ids(input);
1274 self
1275 }
1276 /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance.</p>
1277 /// <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>
1278 /// <p>Default: The default EC2 VPC security group for the DB subnet group's VPC.</p>
1279 pub fn get_vpc_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1280 self.inner.get_vpc_security_group_ids()
1281 }
1282 /// <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>
1283 /// <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>
1284 /// <p>Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.</p>
1285 /// <p>Constraints:</p>
1286 /// <ul>
1287 /// <li>
1288 /// <p>The <code>AvailabilityZone</code> parameter can't be specified if the DB instance is a Multi-AZ deployment.</p></li>
1289 /// <li>
1290 /// <p>The specified Availability Zone must be in the same Amazon Web Services Region as the current endpoint.</p></li>
1291 /// </ul>
1292 /// <p>Example: <code>us-east-1d</code></p>
1293 pub fn availability_zone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1294 self.inner = self.inner.availability_zone(input.into());
1295 self
1296 }
1297 /// <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>
1298 /// <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>
1299 /// <p>Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.</p>
1300 /// <p>Constraints:</p>
1301 /// <ul>
1302 /// <li>
1303 /// <p>The <code>AvailabilityZone</code> parameter can't be specified if the DB instance is a Multi-AZ deployment.</p></li>
1304 /// <li>
1305 /// <p>The specified Availability Zone must be in the same Amazon Web Services Region as the current endpoint.</p></li>
1306 /// </ul>
1307 /// <p>Example: <code>us-east-1d</code></p>
1308 pub fn set_availability_zone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1309 self.inner = self.inner.set_availability_zone(input);
1310 self
1311 }
1312 /// <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>
1313 /// <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>
1314 /// <p>Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.</p>
1315 /// <p>Constraints:</p>
1316 /// <ul>
1317 /// <li>
1318 /// <p>The <code>AvailabilityZone</code> parameter can't be specified if the DB instance is a Multi-AZ deployment.</p></li>
1319 /// <li>
1320 /// <p>The specified Availability Zone must be in the same Amazon Web Services Region as the current endpoint.</p></li>
1321 /// </ul>
1322 /// <p>Example: <code>us-east-1d</code></p>
1323 pub fn get_availability_zone(&self) -> &::std::option::Option<::std::string::String> {
1324 self.inner.get_availability_zone()
1325 }
1326 /// <p>A DB subnet group to associate with this DB instance.</p>
1327 /// <p>Constraints:</p>
1328 /// <ul>
1329 /// <li>
1330 /// <p>Must match the name of an existing DB subnet group.</p></li>
1331 /// </ul>
1332 /// <p>Example: <code>mydbsubnetgroup</code></p>
1333 pub fn db_subnet_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1334 self.inner = self.inner.db_subnet_group_name(input.into());
1335 self
1336 }
1337 /// <p>A DB subnet group to associate with this DB instance.</p>
1338 /// <p>Constraints:</p>
1339 /// <ul>
1340 /// <li>
1341 /// <p>Must match the name of an existing DB subnet group.</p></li>
1342 /// </ul>
1343 /// <p>Example: <code>mydbsubnetgroup</code></p>
1344 pub fn set_db_subnet_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1345 self.inner = self.inner.set_db_subnet_group_name(input);
1346 self
1347 }
1348 /// <p>A DB subnet group to associate with this DB instance.</p>
1349 /// <p>Constraints:</p>
1350 /// <ul>
1351 /// <li>
1352 /// <p>Must match the name of an existing DB subnet group.</p></li>
1353 /// </ul>
1354 /// <p>Example: <code>mydbsubnetgroup</code></p>
1355 pub fn get_db_subnet_group_name(&self) -> &::std::option::Option<::std::string::String> {
1356 self.inner.get_db_subnet_group_name()
1357 }
1358 /// <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>
1359 /// <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>
1360 /// <p>Constraints:</p>
1361 /// <ul>
1362 /// <li>
1363 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
1364 /// <li>
1365 /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
1366 /// <li>
1367 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1368 /// <li>
1369 /// <p>Must not conflict with the preferred backup window.</p></li>
1370 /// <li>
1371 /// <p>Must be at least 30 minutes.</p></li>
1372 /// </ul>
1373 pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1374 self.inner = self.inner.preferred_maintenance_window(input.into());
1375 self
1376 }
1377 /// <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>
1378 /// <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>
1379 /// <p>Constraints:</p>
1380 /// <ul>
1381 /// <li>
1382 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
1383 /// <li>
1384 /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
1385 /// <li>
1386 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1387 /// <li>
1388 /// <p>Must not conflict with the preferred backup window.</p></li>
1389 /// <li>
1390 /// <p>Must be at least 30 minutes.</p></li>
1391 /// </ul>
1392 pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1393 self.inner = self.inner.set_preferred_maintenance_window(input);
1394 self
1395 }
1396 /// <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>
1397 /// <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>
1398 /// <p>Constraints:</p>
1399 /// <ul>
1400 /// <li>
1401 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
1402 /// <li>
1403 /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
1404 /// <li>
1405 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1406 /// <li>
1407 /// <p>Must not conflict with the preferred backup window.</p></li>
1408 /// <li>
1409 /// <p>Must be at least 30 minutes.</p></li>
1410 /// </ul>
1411 pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
1412 self.inner.get_preferred_maintenance_window()
1413 }
1414 /// <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>
1415 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1416 /// <p>Constraints:</p>
1417 /// <ul>
1418 /// <li>
1419 /// <p>Must be 1 to 255 letters, numbers, or hyphens.</p></li>
1420 /// <li>
1421 /// <p>The first character must be a letter.</p></li>
1422 /// <li>
1423 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
1424 /// </ul>
1425 pub fn db_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1426 self.inner = self.inner.db_parameter_group_name(input.into());
1427 self
1428 }
1429 /// <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>
1430 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1431 /// <p>Constraints:</p>
1432 /// <ul>
1433 /// <li>
1434 /// <p>Must be 1 to 255 letters, numbers, or hyphens.</p></li>
1435 /// <li>
1436 /// <p>The first character must be a letter.</p></li>
1437 /// <li>
1438 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
1439 /// </ul>
1440 pub fn set_db_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1441 self.inner = self.inner.set_db_parameter_group_name(input);
1442 self
1443 }
1444 /// <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>
1445 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1446 /// <p>Constraints:</p>
1447 /// <ul>
1448 /// <li>
1449 /// <p>Must be 1 to 255 letters, numbers, or hyphens.</p></li>
1450 /// <li>
1451 /// <p>The first character must be a letter.</p></li>
1452 /// <li>
1453 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
1454 /// </ul>
1455 pub fn get_db_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
1456 self.inner.get_db_parameter_group_name()
1457 }
1458 /// <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>
1459 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster.</p>
1460 /// <p>Default: <code>1</code></p>
1461 /// <p>Constraints:</p>
1462 /// <ul>
1463 /// <li>
1464 /// <p>Must be a value from 0 to 35.</p></li>
1465 /// <li>
1466 /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
1467 /// <li>
1468 /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
1469 /// </ul>
1470 pub fn backup_retention_period(mut self, input: i32) -> Self {
1471 self.inner = self.inner.backup_retention_period(input);
1472 self
1473 }
1474 /// <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>
1475 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster.</p>
1476 /// <p>Default: <code>1</code></p>
1477 /// <p>Constraints:</p>
1478 /// <ul>
1479 /// <li>
1480 /// <p>Must be a value from 0 to 35.</p></li>
1481 /// <li>
1482 /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
1483 /// <li>
1484 /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
1485 /// </ul>
1486 pub fn set_backup_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
1487 self.inner = self.inner.set_backup_retention_period(input);
1488 self
1489 }
1490 /// <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>
1491 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster.</p>
1492 /// <p>Default: <code>1</code></p>
1493 /// <p>Constraints:</p>
1494 /// <ul>
1495 /// <li>
1496 /// <p>Must be a value from 0 to 35.</p></li>
1497 /// <li>
1498 /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
1499 /// <li>
1500 /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
1501 /// </ul>
1502 pub fn get_backup_retention_period(&self) -> &::std::option::Option<i32> {
1503 self.inner.get_backup_retention_period()
1504 }
1505 /// <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>
1506 /// <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>
1507 /// <p>Constraints:</p>
1508 /// <ul>
1509 /// <li>
1510 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
1511 /// <li>
1512 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1513 /// <li>
1514 /// <p>Must not conflict with the preferred maintenance window.</p></li>
1515 /// <li>
1516 /// <p>Must be at least 30 minutes.</p></li>
1517 /// </ul>
1518 pub fn preferred_backup_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1519 self.inner = self.inner.preferred_backup_window(input.into());
1520 self
1521 }
1522 /// <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>
1523 /// <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>
1524 /// <p>Constraints:</p>
1525 /// <ul>
1526 /// <li>
1527 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
1528 /// <li>
1529 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1530 /// <li>
1531 /// <p>Must not conflict with the preferred maintenance window.</p></li>
1532 /// <li>
1533 /// <p>Must be at least 30 minutes.</p></li>
1534 /// </ul>
1535 pub fn set_preferred_backup_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1536 self.inner = self.inner.set_preferred_backup_window(input);
1537 self
1538 }
1539 /// <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>
1540 /// <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>
1541 /// <p>Constraints:</p>
1542 /// <ul>
1543 /// <li>
1544 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
1545 /// <li>
1546 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1547 /// <li>
1548 /// <p>Must not conflict with the preferred maintenance window.</p></li>
1549 /// <li>
1550 /// <p>Must be at least 30 minutes.</p></li>
1551 /// </ul>
1552 pub fn get_preferred_backup_window(&self) -> &::std::option::Option<::std::string::String> {
1553 self.inner.get_preferred_backup_window()
1554 }
1555 /// <p>The port number on which the database accepts connections.</p>
1556 /// <p>This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster.</p>
1557 /// <p>Valid Values: <code>1150-65535</code></p>
1558 /// <p>Default:</p>
1559 /// <ul>
1560 /// <li>
1561 /// <p>RDS for Db2 - <code>50000</code></p></li>
1562 /// <li>
1563 /// <p>RDS for MariaDB - <code>3306</code></p></li>
1564 /// <li>
1565 /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1566 /// <li>
1567 /// <p>RDS for MySQL - <code>3306</code></p></li>
1568 /// <li>
1569 /// <p>RDS for Oracle - <code>1521</code></p></li>
1570 /// <li>
1571 /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1572 /// </ul>
1573 /// <p>Constraints:</p>
1574 /// <ul>
1575 /// <li>
1576 /// <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>
1577 /// </ul>
1578 pub fn port(mut self, input: i32) -> Self {
1579 self.inner = self.inner.port(input);
1580 self
1581 }
1582 /// <p>The port number on which the database accepts connections.</p>
1583 /// <p>This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster.</p>
1584 /// <p>Valid Values: <code>1150-65535</code></p>
1585 /// <p>Default:</p>
1586 /// <ul>
1587 /// <li>
1588 /// <p>RDS for Db2 - <code>50000</code></p></li>
1589 /// <li>
1590 /// <p>RDS for MariaDB - <code>3306</code></p></li>
1591 /// <li>
1592 /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1593 /// <li>
1594 /// <p>RDS for MySQL - <code>3306</code></p></li>
1595 /// <li>
1596 /// <p>RDS for Oracle - <code>1521</code></p></li>
1597 /// <li>
1598 /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1599 /// </ul>
1600 /// <p>Constraints:</p>
1601 /// <ul>
1602 /// <li>
1603 /// <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>
1604 /// </ul>
1605 pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
1606 self.inner = self.inner.set_port(input);
1607 self
1608 }
1609 /// <p>The port number on which the database accepts connections.</p>
1610 /// <p>This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster.</p>
1611 /// <p>Valid Values: <code>1150-65535</code></p>
1612 /// <p>Default:</p>
1613 /// <ul>
1614 /// <li>
1615 /// <p>RDS for Db2 - <code>50000</code></p></li>
1616 /// <li>
1617 /// <p>RDS for MariaDB - <code>3306</code></p></li>
1618 /// <li>
1619 /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1620 /// <li>
1621 /// <p>RDS for MySQL - <code>3306</code></p></li>
1622 /// <li>
1623 /// <p>RDS for Oracle - <code>1521</code></p></li>
1624 /// <li>
1625 /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1626 /// </ul>
1627 /// <p>Constraints:</p>
1628 /// <ul>
1629 /// <li>
1630 /// <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>
1631 /// </ul>
1632 pub fn get_port(&self) -> &::std::option::Option<i32> {
1633 self.inner.get_port()
1634 }
1635 /// <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>
1636 /// <p>This setting doesn't apply to Amazon Aurora because the DB instance Availability Zones (AZs) are managed by the DB cluster.</p>
1637 pub fn multi_az(mut self, input: bool) -> Self {
1638 self.inner = self.inner.multi_az(input);
1639 self
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 set_multi_az(mut self, input: ::std::option::Option<bool>) -> Self {
1644 self.inner = self.inner.set_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 get_multi_az(&self) -> &::std::option::Option<bool> {
1650 self.inner.get_multi_az()
1651 }
1652 /// <p>The version number of the database engine to use.</p>
1653 /// <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>
1654 /// <p>For a list of valid engine versions, use the <code>DescribeDBEngineVersions</code> operation.</p>
1655 /// <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>
1656 /// <dl>
1657 /// <dt>
1658 /// Amazon RDS Custom for Oracle
1659 /// </dt>
1660 /// <dd>
1661 /// <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>
1662 /// </dd>
1663 /// <dt>
1664 /// Amazon RDS Custom for SQL Server
1665 /// </dt>
1666 /// <dd>
1667 /// <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>
1668 /// </dd>
1669 /// <dt>
1670 /// RDS for Db2
1671 /// </dt>
1672 /// <dd>
1673 /// <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>
1674 /// </dd>
1675 /// <dt>
1676 /// RDS for MariaDB
1677 /// </dt>
1678 /// <dd>
1679 /// <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>
1680 /// </dd>
1681 /// <dt>
1682 /// RDS for Microsoft SQL Server
1683 /// </dt>
1684 /// <dd>
1685 /// <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>
1686 /// </dd>
1687 /// <dt>
1688 /// RDS for MySQL
1689 /// </dt>
1690 /// <dd>
1691 /// <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>
1692 /// </dd>
1693 /// <dt>
1694 /// RDS for Oracle
1695 /// </dt>
1696 /// <dd>
1697 /// <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>
1698 /// </dd>
1699 /// <dt>
1700 /// RDS for PostgreSQL
1701 /// </dt>
1702 /// <dd>
1703 /// <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>
1704 /// </dd>
1705 /// </dl>
1706 pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1707 self.inner = self.inner.engine_version(input.into());
1708 self
1709 }
1710 /// <p>The version number of the database engine to use.</p>
1711 /// <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>
1712 /// <p>For a list of valid engine versions, use the <code>DescribeDBEngineVersions</code> operation.</p>
1713 /// <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>
1714 /// <dl>
1715 /// <dt>
1716 /// Amazon RDS Custom for Oracle
1717 /// </dt>
1718 /// <dd>
1719 /// <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>
1720 /// </dd>
1721 /// <dt>
1722 /// Amazon RDS Custom for SQL Server
1723 /// </dt>
1724 /// <dd>
1725 /// <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>
1726 /// </dd>
1727 /// <dt>
1728 /// RDS for Db2
1729 /// </dt>
1730 /// <dd>
1731 /// <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>
1732 /// </dd>
1733 /// <dt>
1734 /// RDS for MariaDB
1735 /// </dt>
1736 /// <dd>
1737 /// <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>
1738 /// </dd>
1739 /// <dt>
1740 /// RDS for Microsoft SQL Server
1741 /// </dt>
1742 /// <dd>
1743 /// <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>
1744 /// </dd>
1745 /// <dt>
1746 /// RDS for MySQL
1747 /// </dt>
1748 /// <dd>
1749 /// <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>
1750 /// </dd>
1751 /// <dt>
1752 /// RDS for Oracle
1753 /// </dt>
1754 /// <dd>
1755 /// <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>
1756 /// </dd>
1757 /// <dt>
1758 /// RDS for PostgreSQL
1759 /// </dt>
1760 /// <dd>
1761 /// <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>
1762 /// </dd>
1763 /// </dl>
1764 pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1765 self.inner = self.inner.set_engine_version(input);
1766 self
1767 }
1768 /// <p>The version number of the database engine to use.</p>
1769 /// <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>
1770 /// <p>For a list of valid engine versions, use the <code>DescribeDBEngineVersions</code> operation.</p>
1771 /// <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>
1772 /// <dl>
1773 /// <dt>
1774 /// Amazon RDS Custom for Oracle
1775 /// </dt>
1776 /// <dd>
1777 /// <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>
1778 /// </dd>
1779 /// <dt>
1780 /// Amazon RDS Custom for SQL Server
1781 /// </dt>
1782 /// <dd>
1783 /// <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>
1784 /// </dd>
1785 /// <dt>
1786 /// RDS for Db2
1787 /// </dt>
1788 /// <dd>
1789 /// <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>
1790 /// </dd>
1791 /// <dt>
1792 /// RDS for MariaDB
1793 /// </dt>
1794 /// <dd>
1795 /// <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>
1796 /// </dd>
1797 /// <dt>
1798 /// RDS for Microsoft SQL Server
1799 /// </dt>
1800 /// <dd>
1801 /// <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>
1802 /// </dd>
1803 /// <dt>
1804 /// RDS for MySQL
1805 /// </dt>
1806 /// <dd>
1807 /// <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>
1808 /// </dd>
1809 /// <dt>
1810 /// RDS for Oracle
1811 /// </dt>
1812 /// <dd>
1813 /// <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>
1814 /// </dd>
1815 /// <dt>
1816 /// RDS for PostgreSQL
1817 /// </dt>
1818 /// <dd>
1819 /// <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>
1820 /// </dd>
1821 /// </dl>
1822 pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
1823 self.inner.get_engine_version()
1824 }
1825 /// <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>
1826 /// <p>If you create an RDS Custom DB instance, you must set <code>AutoMinorVersionUpgrade</code> to <code>false</code>.</p>
1827 /// <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>
1828 pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
1829 self.inner = self.inner.auto_minor_version_upgrade(input);
1830 self
1831 }
1832 /// <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>
1833 /// <p>If you create an RDS Custom DB instance, you must set <code>AutoMinorVersionUpgrade</code> to <code>false</code>.</p>
1834 /// <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>
1835 pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
1836 self.inner = self.inner.set_auto_minor_version_upgrade(input);
1837 self
1838 }
1839 /// <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>
1840 /// <p>If you create an RDS Custom DB instance, you must set <code>AutoMinorVersionUpgrade</code> to <code>false</code>.</p>
1841 /// <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>
1842 pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
1843 self.inner.get_auto_minor_version_upgrade()
1844 }
1845 /// <p>The license model information for this DB instance.</p><note>
1846 /// <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>
1847 /// <p>The default for RDS for Db2 is <code>bring-your-own-license</code>.</p>
1848 /// </note>
1849 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1850 /// <p>Valid Values:</p>
1851 /// <ul>
1852 /// <li>
1853 /// <p>RDS for Db2 - <code>bring-your-own-license | marketplace-license</code></p></li>
1854 /// <li>
1855 /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
1856 /// <li>
1857 /// <p>RDS for Microsoft SQL Server - <code>license-included</code></p></li>
1858 /// <li>
1859 /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
1860 /// <li>
1861 /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
1862 /// <li>
1863 /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
1864 /// </ul>
1865 pub fn license_model(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1866 self.inner = self.inner.license_model(input.into());
1867 self
1868 }
1869 /// <p>The license model information for this DB instance.</p><note>
1870 /// <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>
1871 /// <p>The default for RDS for Db2 is <code>bring-your-own-license</code>.</p>
1872 /// </note>
1873 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1874 /// <p>Valid Values:</p>
1875 /// <ul>
1876 /// <li>
1877 /// <p>RDS for Db2 - <code>bring-your-own-license | marketplace-license</code></p></li>
1878 /// <li>
1879 /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
1880 /// <li>
1881 /// <p>RDS for Microsoft SQL Server - <code>license-included</code></p></li>
1882 /// <li>
1883 /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
1884 /// <li>
1885 /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
1886 /// <li>
1887 /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
1888 /// </ul>
1889 pub fn set_license_model(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1890 self.inner = self.inner.set_license_model(input);
1891 self
1892 }
1893 /// <p>The license model information for this DB instance.</p><note>
1894 /// <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>
1895 /// <p>The default for RDS for Db2 is <code>bring-your-own-license</code>.</p>
1896 /// </note>
1897 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1898 /// <p>Valid Values:</p>
1899 /// <ul>
1900 /// <li>
1901 /// <p>RDS for Db2 - <code>bring-your-own-license | marketplace-license</code></p></li>
1902 /// <li>
1903 /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
1904 /// <li>
1905 /// <p>RDS for Microsoft SQL Server - <code>license-included</code></p></li>
1906 /// <li>
1907 /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
1908 /// <li>
1909 /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
1910 /// <li>
1911 /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
1912 /// </ul>
1913 pub fn get_license_model(&self) -> &::std::option::Option<::std::string::String> {
1914 self.inner.get_license_model()
1915 }
1916 /// <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>
1917 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
1918 /// <p>Constraints:</p>
1919 /// <ul>
1920 /// <li>
1921 /// <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>
1922 /// <li>
1923 /// <p>For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.</p></li>
1924 /// </ul>
1925 pub fn iops(mut self, input: i32) -> Self {
1926 self.inner = self.inner.iops(input);
1927 self
1928 }
1929 /// <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>
1930 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
1931 /// <p>Constraints:</p>
1932 /// <ul>
1933 /// <li>
1934 /// <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>
1935 /// <li>
1936 /// <p>For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.</p></li>
1937 /// </ul>
1938 pub fn set_iops(mut self, input: ::std::option::Option<i32>) -> Self {
1939 self.inner = self.inner.set_iops(input);
1940 self
1941 }
1942 /// <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>
1943 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
1944 /// <p>Constraints:</p>
1945 /// <ul>
1946 /// <li>
1947 /// <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>
1948 /// <li>
1949 /// <p>For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.</p></li>
1950 /// </ul>
1951 pub fn get_iops(&self) -> &::std::option::Option<i32> {
1952 self.inner.get_iops()
1953 }
1954 /// <p>The storage throughput value, in mebibyte per second (MiBps), for the DB instance.</p>
1955 /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
1956 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1957 pub fn storage_throughput(mut self, input: i32) -> Self {
1958 self.inner = self.inner.storage_throughput(input);
1959 self
1960 }
1961 /// <p>The storage throughput value, in mebibyte per second (MiBps), for the DB instance.</p>
1962 /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
1963 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1964 pub fn set_storage_throughput(mut self, input: ::std::option::Option<i32>) -> Self {
1965 self.inner = self.inner.set_storage_throughput(input);
1966 self
1967 }
1968 /// <p>The storage throughput value, in mebibyte per second (MiBps), for the DB instance.</p>
1969 /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
1970 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1971 pub fn get_storage_throughput(&self) -> &::std::option::Option<i32> {
1972 self.inner.get_storage_throughput()
1973 }
1974 /// <p>The option group to associate the DB instance with.</p>
1975 /// <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>
1976 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1977 pub fn option_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1978 self.inner = self.inner.option_group_name(input.into());
1979 self
1980 }
1981 /// <p>The option group to associate the DB instance with.</p>
1982 /// <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>
1983 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1984 pub fn set_option_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1985 self.inner = self.inner.set_option_group_name(input);
1986 self
1987 }
1988 /// <p>The option group to associate the DB instance with.</p>
1989 /// <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>
1990 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1991 pub fn get_option_group_name(&self) -> &::std::option::Option<::std::string::String> {
1992 self.inner.get_option_group_name()
1993 }
1994 /// <p>For supported engines, the character set (<code>CharacterSet</code>) to associate the DB instance with.</p>
1995 /// <p>This setting doesn't apply to the following DB instances:</p>
1996 /// <ul>
1997 /// <li>
1998 /// <p>Amazon Aurora - The character set is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p></li>
1999 /// <li>
2000 /// <p>RDS Custom - However, if you need to change the character set, you can change it on the database itself.</p></li>
2001 /// </ul>
2002 pub fn character_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2003 self.inner = self.inner.character_set_name(input.into());
2004 self
2005 }
2006 /// <p>For supported engines, the character set (<code>CharacterSet</code>) to associate the DB instance with.</p>
2007 /// <p>This setting doesn't apply to the following DB instances:</p>
2008 /// <ul>
2009 /// <li>
2010 /// <p>Amazon Aurora - The character set is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p></li>
2011 /// <li>
2012 /// <p>RDS Custom - However, if you need to change the character set, you can change it on the database itself.</p></li>
2013 /// </ul>
2014 pub fn set_character_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2015 self.inner = self.inner.set_character_set_name(input);
2016 self
2017 }
2018 /// <p>For supported engines, the character set (<code>CharacterSet</code>) to associate the DB instance with.</p>
2019 /// <p>This setting doesn't apply to the following DB instances:</p>
2020 /// <ul>
2021 /// <li>
2022 /// <p>Amazon Aurora - The character set is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p></li>
2023 /// <li>
2024 /// <p>RDS Custom - However, if you need to change the character set, you can change it on the database itself.</p></li>
2025 /// </ul>
2026 pub fn get_character_set_name(&self) -> &::std::option::Option<::std::string::String> {
2027 self.inner.get_character_set_name()
2028 }
2029 /// <p>The name of the NCHAR character set for the Oracle DB instance.</p>
2030 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2031 pub fn nchar_character_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2032 self.inner = self.inner.nchar_character_set_name(input.into());
2033 self
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 set_nchar_character_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2038 self.inner = self.inner.set_nchar_character_set_name(input);
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 get_nchar_character_set_name(&self) -> &::std::option::Option<::std::string::String> {
2044 self.inner.get_nchar_character_set_name()
2045 }
2046 /// <p>Specifies whether the DB instance is publicly accessible.</p>
2047 /// <p>When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is ultimately controlled by the security group it uses. That public access is not permitted if the security group assigned to the DB instance doesn't permit it.</p>
2048 /// <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>
2049 /// <p>Default: The default behavior varies depending on whether <code>DBSubnetGroupName</code> is specified.</p>
2050 /// <p>If <code>DBSubnetGroupName</code> isn't specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p>
2051 /// <ul>
2052 /// <li>
2053 /// <p>If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB instance is private.</p></li>
2054 /// <li>
2055 /// <p>If the default VPC in the target Region has an internet gateway attached to it, the DB instance is public.</p></li>
2056 /// </ul>
2057 /// <p>If <code>DBSubnetGroupName</code> is specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p>
2058 /// <ul>
2059 /// <li>
2060 /// <p>If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB instance is private.</p></li>
2061 /// <li>
2062 /// <p>If the subnets are part of a VPC that has an internet gateway attached to it, the DB instance is public.</p></li>
2063 /// </ul>
2064 pub fn publicly_accessible(mut self, input: bool) -> Self {
2065 self.inner = self.inner.publicly_accessible(input);
2066 self
2067 }
2068 /// <p>Specifies whether the DB instance is publicly accessible.</p>
2069 /// <p>When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is ultimately controlled by the security group it uses. That public access is not permitted if the security group assigned to the DB instance doesn't permit it.</p>
2070 /// <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>
2071 /// <p>Default: The default behavior varies depending on whether <code>DBSubnetGroupName</code> is specified.</p>
2072 /// <p>If <code>DBSubnetGroupName</code> isn't specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p>
2073 /// <ul>
2074 /// <li>
2075 /// <p>If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB instance is private.</p></li>
2076 /// <li>
2077 /// <p>If the default VPC in the target Region has an internet gateway attached to it, the DB instance is public.</p></li>
2078 /// </ul>
2079 /// <p>If <code>DBSubnetGroupName</code> is specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p>
2080 /// <ul>
2081 /// <li>
2082 /// <p>If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB instance is private.</p></li>
2083 /// <li>
2084 /// <p>If the subnets are part of a VPC that has an internet gateway attached to it, the DB instance is public.</p></li>
2085 /// </ul>
2086 pub fn set_publicly_accessible(mut self, input: ::std::option::Option<bool>) -> Self {
2087 self.inner = self.inner.set_publicly_accessible(input);
2088 self
2089 }
2090 /// <p>Specifies whether the DB instance is publicly accessible.</p>
2091 /// <p>When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is ultimately controlled by the security group it uses. That public access is not permitted if the security group assigned to the DB instance doesn't permit it.</p>
2092 /// <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>
2093 /// <p>Default: The default behavior varies depending on whether <code>DBSubnetGroupName</code> is specified.</p>
2094 /// <p>If <code>DBSubnetGroupName</code> isn't specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p>
2095 /// <ul>
2096 /// <li>
2097 /// <p>If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB instance is private.</p></li>
2098 /// <li>
2099 /// <p>If the default VPC in the target Region has an internet gateway attached to it, the DB instance is public.</p></li>
2100 /// </ul>
2101 /// <p>If <code>DBSubnetGroupName</code> is specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p>
2102 /// <ul>
2103 /// <li>
2104 /// <p>If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB instance is private.</p></li>
2105 /// <li>
2106 /// <p>If the subnets are part of a VPC that has an internet gateway attached to it, the DB instance is public.</p></li>
2107 /// </ul>
2108 pub fn get_publicly_accessible(&self) -> &::std::option::Option<bool> {
2109 self.inner.get_publicly_accessible()
2110 }
2111 ///
2112 /// Appends an item to `Tags`.
2113 ///
2114 /// To override the contents of this collection use [`set_tags`](Self::set_tags).
2115 ///
2116 /// <p>Tags to assign to the DB instance.</p>
2117 pub fn tags(mut self, input: crate::types::Tag) -> Self {
2118 self.inner = self.inner.tags(input);
2119 self
2120 }
2121 /// <p>Tags to assign to the DB instance.</p>
2122 pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
2123 self.inner = self.inner.set_tags(input);
2124 self
2125 }
2126 /// <p>Tags to assign to the DB instance.</p>
2127 pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
2128 self.inner.get_tags()
2129 }
2130 /// <p>The identifier of the DB cluster that this DB instance will belong to.</p>
2131 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2132 pub fn db_cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2133 self.inner = self.inner.db_cluster_identifier(input.into());
2134 self
2135 }
2136 /// <p>The identifier of the DB cluster that this DB instance will belong to.</p>
2137 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2138 pub fn set_db_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2139 self.inner = self.inner.set_db_cluster_identifier(input);
2140 self
2141 }
2142 /// <p>The identifier of the DB cluster that this DB instance will belong to.</p>
2143 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2144 pub fn get_db_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
2145 self.inner.get_db_cluster_identifier()
2146 }
2147 /// <p>The storage type to associate with the DB instance.</p>
2148 /// <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>
2149 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
2150 /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
2151 /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp3</code>.</p>
2152 pub fn storage_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2153 self.inner = self.inner.storage_type(input.into());
2154 self
2155 }
2156 /// <p>The storage type to associate with the DB instance.</p>
2157 /// <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>
2158 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
2159 /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
2160 /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp3</code>.</p>
2161 pub fn set_storage_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2162 self.inner = self.inner.set_storage_type(input);
2163 self
2164 }
2165 /// <p>The storage type to associate with the DB instance.</p>
2166 /// <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>
2167 /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
2168 /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
2169 /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp3</code>.</p>
2170 pub fn get_storage_type(&self) -> &::std::option::Option<::std::string::String> {
2171 self.inner.get_storage_type()
2172 }
2173 /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
2174 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2175 pub fn tde_credential_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2176 self.inner = self.inner.tde_credential_arn(input.into());
2177 self
2178 }
2179 /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
2180 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2181 pub fn set_tde_credential_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2182 self.inner = self.inner.set_tde_credential_arn(input);
2183 self
2184 }
2185 /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
2186 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2187 pub fn get_tde_credential_arn(&self) -> &::std::option::Option<::std::string::String> {
2188 self.inner.get_tde_credential_arn()
2189 }
2190 /// <p>The password for the given ARN from the key store in order to access the device.</p>
2191 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2192 pub fn tde_credential_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2193 self.inner = self.inner.tde_credential_password(input.into());
2194 self
2195 }
2196 /// <p>The password for the given ARN from the key store in order to access the device.</p>
2197 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2198 pub fn set_tde_credential_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2199 self.inner = self.inner.set_tde_credential_password(input);
2200 self
2201 }
2202 /// <p>The password for the given ARN from the key store in order to access the device.</p>
2203 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2204 pub fn get_tde_credential_password(&self) -> &::std::option::Option<::std::string::String> {
2205 self.inner.get_tde_credential_password()
2206 }
2207 /// <p>Specifes whether the DB instance is encrypted. By default, it isn't encrypted.</p>
2208 /// <p>For RDS Custom DB instances, either enable this setting or leave it unset. Otherwise, Amazon RDS reports an error.</p>
2209 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The encryption for DB instances is managed by the DB cluster.</p>
2210 pub fn storage_encrypted(mut self, input: bool) -> Self {
2211 self.inner = self.inner.storage_encrypted(input);
2212 self
2213 }
2214 /// <p>Specifes whether the DB instance is encrypted. By default, it isn't encrypted.</p>
2215 /// <p>For RDS Custom DB instances, either enable this setting or leave it unset. Otherwise, Amazon RDS reports an error.</p>
2216 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The encryption for DB instances is managed by the DB cluster.</p>
2217 pub fn set_storage_encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
2218 self.inner = self.inner.set_storage_encrypted(input);
2219 self
2220 }
2221 /// <p>Specifes whether the DB instance is encrypted. By default, it isn't encrypted.</p>
2222 /// <p>For RDS Custom DB instances, either enable this setting or leave it unset. Otherwise, Amazon RDS reports an error.</p>
2223 /// <p>This setting doesn't apply to Amazon Aurora DB instances. The encryption for DB instances is managed by the DB cluster.</p>
2224 pub fn get_storage_encrypted(&self) -> &::std::option::Option<bool> {
2225 self.inner.get_storage_encrypted()
2226 }
2227 /// <p>The Amazon Web Services KMS key identifier for an encrypted DB instance.</p>
2228 /// <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>
2229 /// <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>
2230 /// <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>
2231 /// <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>
2232 pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2233 self.inner = self.inner.kms_key_id(input.into());
2234 self
2235 }
2236 /// <p>The Amazon Web Services KMS key identifier for an encrypted DB instance.</p>
2237 /// <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>
2238 /// <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>
2239 /// <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>
2240 /// <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>
2241 pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2242 self.inner = self.inner.set_kms_key_id(input);
2243 self
2244 }
2245 /// <p>The Amazon Web Services KMS key identifier for an encrypted DB instance.</p>
2246 /// <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>
2247 /// <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>
2248 /// <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>
2249 /// <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>
2250 pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
2251 self.inner.get_kms_key_id()
2252 }
2253 /// <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>
2254 /// <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>
2255 /// <p>This setting doesn't apply to the following DB instances:</p>
2256 /// <ul>
2257 /// <li>
2258 /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2259 /// <li>
2260 /// <p>RDS Custom</p></li>
2261 /// </ul>
2262 pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2263 self.inner = self.inner.domain(input.into());
2264 self
2265 }
2266 /// <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>
2267 /// <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>
2268 /// <p>This setting doesn't apply to the following DB instances:</p>
2269 /// <ul>
2270 /// <li>
2271 /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2272 /// <li>
2273 /// <p>RDS Custom</p></li>
2274 /// </ul>
2275 pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2276 self.inner = self.inner.set_domain(input);
2277 self
2278 }
2279 /// <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>
2280 /// <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>
2281 /// <p>This setting doesn't apply to the following DB instances:</p>
2282 /// <ul>
2283 /// <li>
2284 /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2285 /// <li>
2286 /// <p>RDS Custom</p></li>
2287 /// </ul>
2288 pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
2289 self.inner.get_domain()
2290 }
2291 /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
2292 /// <p>Constraints:</p>
2293 /// <ul>
2294 /// <li>
2295 /// <p>Can't be longer than 64 characters.</p></li>
2296 /// </ul>
2297 /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
2298 pub fn domain_fqdn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2299 self.inner = self.inner.domain_fqdn(input.into());
2300 self
2301 }
2302 /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
2303 /// <p>Constraints:</p>
2304 /// <ul>
2305 /// <li>
2306 /// <p>Can't be longer than 64 characters.</p></li>
2307 /// </ul>
2308 /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
2309 pub fn set_domain_fqdn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2310 self.inner = self.inner.set_domain_fqdn(input);
2311 self
2312 }
2313 /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
2314 /// <p>Constraints:</p>
2315 /// <ul>
2316 /// <li>
2317 /// <p>Can't be longer than 64 characters.</p></li>
2318 /// </ul>
2319 /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
2320 pub fn get_domain_fqdn(&self) -> &::std::option::Option<::std::string::String> {
2321 self.inner.get_domain_fqdn()
2322 }
2323 /// <p>The Active Directory organizational unit for your DB instance to join.</p>
2324 /// <p>Constraints:</p>
2325 /// <ul>
2326 /// <li>
2327 /// <p>Must be in the distinguished name format.</p></li>
2328 /// <li>
2329 /// <p>Can't be longer than 64 characters.</p></li>
2330 /// </ul>
2331 /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
2332 pub fn domain_ou(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2333 self.inner = self.inner.domain_ou(input.into());
2334 self
2335 }
2336 /// <p>The Active Directory organizational unit for your DB instance to join.</p>
2337 /// <p>Constraints:</p>
2338 /// <ul>
2339 /// <li>
2340 /// <p>Must be in the distinguished name format.</p></li>
2341 /// <li>
2342 /// <p>Can't be longer than 64 characters.</p></li>
2343 /// </ul>
2344 /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
2345 pub fn set_domain_ou(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2346 self.inner = self.inner.set_domain_ou(input);
2347 self
2348 }
2349 /// <p>The Active Directory organizational unit for your DB instance to join.</p>
2350 /// <p>Constraints:</p>
2351 /// <ul>
2352 /// <li>
2353 /// <p>Must be in the distinguished name format.</p></li>
2354 /// <li>
2355 /// <p>Can't be longer than 64 characters.</p></li>
2356 /// </ul>
2357 /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
2358 pub fn get_domain_ou(&self) -> &::std::option::Option<::std::string::String> {
2359 self.inner.get_domain_ou()
2360 }
2361 /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
2362 /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
2363 pub fn domain_auth_secret_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2364 self.inner = self.inner.domain_auth_secret_arn(input.into());
2365 self
2366 }
2367 /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
2368 /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
2369 pub fn set_domain_auth_secret_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2370 self.inner = self.inner.set_domain_auth_secret_arn(input);
2371 self
2372 }
2373 /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
2374 /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
2375 pub fn get_domain_auth_secret_arn(&self) -> &::std::option::Option<::std::string::String> {
2376 self.inner.get_domain_auth_secret_arn()
2377 }
2378 ///
2379 /// Appends an item to `DomainDnsIps`.
2380 ///
2381 /// To override the contents of this collection use [`set_domain_dns_ips`](Self::set_domain_dns_ips).
2382 ///
2383 /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
2384 /// <p>Constraints:</p>
2385 /// <ul>
2386 /// <li>
2387 /// <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>
2388 /// </ul>
2389 /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
2390 pub fn domain_dns_ips(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2391 self.inner = self.inner.domain_dns_ips(input.into());
2392 self
2393 }
2394 /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
2395 /// <p>Constraints:</p>
2396 /// <ul>
2397 /// <li>
2398 /// <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>
2399 /// </ul>
2400 /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
2401 pub fn set_domain_dns_ips(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
2402 self.inner = self.inner.set_domain_dns_ips(input);
2403 self
2404 }
2405 /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
2406 /// <p>Constraints:</p>
2407 /// <ul>
2408 /// <li>
2409 /// <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>
2410 /// </ul>
2411 /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
2412 pub fn get_domain_dns_ips(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
2413 self.inner.get_domain_dns_ips()
2414 }
2415 /// <p>Specifies whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.</p>
2416 /// <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>
2417 pub fn copy_tags_to_snapshot(mut self, input: bool) -> Self {
2418 self.inner = self.inner.copy_tags_to_snapshot(input);
2419 self
2420 }
2421 /// <p>Specifies whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.</p>
2422 /// <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>
2423 pub fn set_copy_tags_to_snapshot(mut self, input: ::std::option::Option<bool>) -> Self {
2424 self.inner = self.inner.set_copy_tags_to_snapshot(input);
2425 self
2426 }
2427 /// <p>Specifies whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.</p>
2428 /// <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>
2429 pub fn get_copy_tags_to_snapshot(&self) -> &::std::option::Option<bool> {
2430 self.inner.get_copy_tags_to_snapshot()
2431 }
2432 /// <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>
2433 /// <p>If <code>MonitoringRoleArn</code> is specified, then you must set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
2434 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2435 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
2436 /// <p>Default: <code>0</code></p>
2437 pub fn monitoring_interval(mut self, input: i32) -> Self {
2438 self.inner = self.inner.monitoring_interval(input);
2439 self
2440 }
2441 /// <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>
2442 /// <p>If <code>MonitoringRoleArn</code> is specified, then you must set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
2443 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2444 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
2445 /// <p>Default: <code>0</code></p>
2446 pub fn set_monitoring_interval(mut self, input: ::std::option::Option<i32>) -> Self {
2447 self.inner = self.inner.set_monitoring_interval(input);
2448 self
2449 }
2450 /// <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>
2451 /// <p>If <code>MonitoringRoleArn</code> is specified, then you must set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
2452 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2453 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
2454 /// <p>Default: <code>0</code></p>
2455 pub fn get_monitoring_interval(&self) -> &::std::option::Option<i32> {
2456 self.inner.get_monitoring_interval()
2457 }
2458 /// <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>
2459 /// <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>
2460 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2461 pub fn monitoring_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2462 self.inner = self.inner.monitoring_role_arn(input.into());
2463 self
2464 }
2465 /// <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>
2466 /// <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>
2467 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2468 pub fn set_monitoring_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2469 self.inner = self.inner.set_monitoring_role_arn(input);
2470 self
2471 }
2472 /// <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>
2473 /// <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>
2474 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2475 pub fn get_monitoring_role_arn(&self) -> &::std::option::Option<::std::string::String> {
2476 self.inner.get_monitoring_role_arn()
2477 }
2478 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
2479 /// <p>This setting doesn't apply to the following DB instances:</p>
2480 /// <ul>
2481 /// <li>
2482 /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2483 /// <li>
2484 /// <p>RDS Custom</p></li>
2485 /// </ul>
2486 pub fn domain_iam_role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2487 self.inner = self.inner.domain_iam_role_name(input.into());
2488 self
2489 }
2490 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
2491 /// <p>This setting doesn't apply to the following DB instances:</p>
2492 /// <ul>
2493 /// <li>
2494 /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2495 /// <li>
2496 /// <p>RDS Custom</p></li>
2497 /// </ul>
2498 pub fn set_domain_iam_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2499 self.inner = self.inner.set_domain_iam_role_name(input);
2500 self
2501 }
2502 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
2503 /// <p>This setting doesn't apply to the following DB instances:</p>
2504 /// <ul>
2505 /// <li>
2506 /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2507 /// <li>
2508 /// <p>RDS Custom</p></li>
2509 /// </ul>
2510 pub fn get_domain_iam_role_name(&self) -> &::std::option::Option<::std::string::String> {
2511 self.inner.get_domain_iam_role_name()
2512 }
2513 /// <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>
2514 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2515 /// <p>Default: <code>1</code></p>
2516 /// <p>Valid Values: <code>0 - 15</code></p>
2517 pub fn promotion_tier(mut self, input: i32) -> Self {
2518 self.inner = self.inner.promotion_tier(input);
2519 self
2520 }
2521 /// <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>
2522 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2523 /// <p>Default: <code>1</code></p>
2524 /// <p>Valid Values: <code>0 - 15</code></p>
2525 pub fn set_promotion_tier(mut self, input: ::std::option::Option<i32>) -> Self {
2526 self.inner = self.inner.set_promotion_tier(input);
2527 self
2528 }
2529 /// <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>
2530 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2531 /// <p>Default: <code>1</code></p>
2532 /// <p>Valid Values: <code>0 - 15</code></p>
2533 pub fn get_promotion_tier(&self) -> &::std::option::Option<i32> {
2534 self.inner.get_promotion_tier()
2535 }
2536 /// <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>
2537 pub fn timezone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2538 self.inner = self.inner.timezone(input.into());
2539 self
2540 }
2541 /// <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>
2542 pub fn set_timezone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2543 self.inner = self.inner.set_timezone(input);
2544 self
2545 }
2546 /// <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>
2547 pub fn get_timezone(&self) -> &::std::option::Option<::std::string::String> {
2548 self.inner.get_timezone()
2549 }
2550 /// <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>
2551 /// <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>
2552 /// <p>This setting doesn't apply to the following DB instances:</p>
2553 /// <ul>
2554 /// <li>
2555 /// <p>Amazon Aurora (Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.)</p></li>
2556 /// <li>
2557 /// <p>RDS Custom</p></li>
2558 /// </ul>
2559 pub fn enable_iam_database_authentication(mut self, input: bool) -> Self {
2560 self.inner = self.inner.enable_iam_database_authentication(input);
2561 self
2562 }
2563 /// <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>
2564 /// <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>
2565 /// <p>This setting doesn't apply to the following DB instances:</p>
2566 /// <ul>
2567 /// <li>
2568 /// <p>Amazon Aurora (Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.)</p></li>
2569 /// <li>
2570 /// <p>RDS Custom</p></li>
2571 /// </ul>
2572 pub fn set_enable_iam_database_authentication(mut self, input: ::std::option::Option<bool>) -> Self {
2573 self.inner = self.inner.set_enable_iam_database_authentication(input);
2574 self
2575 }
2576 /// <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>
2577 /// <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>
2578 /// <p>This setting doesn't apply to the following DB instances:</p>
2579 /// <ul>
2580 /// <li>
2581 /// <p>Amazon Aurora (Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.)</p></li>
2582 /// <li>
2583 /// <p>RDS Custom</p></li>
2584 /// </ul>
2585 pub fn get_enable_iam_database_authentication(&self) -> &::std::option::Option<bool> {
2586 self.inner.get_enable_iam_database_authentication()
2587 }
2588 /// <p>The mode of Database Insights to enable for the DB instance.</p><note>
2589 /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
2590 /// </note>
2591 pub fn database_insights_mode(mut self, input: crate::types::DatabaseInsightsMode) -> Self {
2592 self.inner = self.inner.database_insights_mode(input);
2593 self
2594 }
2595 /// <p>The mode of Database Insights to enable for the DB instance.</p><note>
2596 /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
2597 /// </note>
2598 pub fn set_database_insights_mode(mut self, input: ::std::option::Option<crate::types::DatabaseInsightsMode>) -> Self {
2599 self.inner = self.inner.set_database_insights_mode(input);
2600 self
2601 }
2602 /// <p>The mode of Database Insights to enable for the DB instance.</p><note>
2603 /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
2604 /// </note>
2605 pub fn get_database_insights_mode(&self) -> &::std::option::Option<crate::types::DatabaseInsightsMode> {
2606 self.inner.get_database_insights_mode()
2607 }
2608 /// <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>
2609 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2610 pub fn enable_performance_insights(mut self, input: bool) -> Self {
2611 self.inner = self.inner.enable_performance_insights(input);
2612 self
2613 }
2614 /// <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>
2615 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2616 pub fn set_enable_performance_insights(mut self, input: ::std::option::Option<bool>) -> Self {
2617 self.inner = self.inner.set_enable_performance_insights(input);
2618 self
2619 }
2620 /// <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>
2621 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2622 pub fn get_enable_performance_insights(&self) -> &::std::option::Option<bool> {
2623 self.inner.get_enable_performance_insights()
2624 }
2625 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
2626 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
2627 /// <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>
2628 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2629 pub fn performance_insights_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2630 self.inner = self.inner.performance_insights_kms_key_id(input.into());
2631 self
2632 }
2633 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
2634 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
2635 /// <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>
2636 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2637 pub fn set_performance_insights_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2638 self.inner = self.inner.set_performance_insights_kms_key_id(input);
2639 self
2640 }
2641 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
2642 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
2643 /// <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>
2644 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2645 pub fn get_performance_insights_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
2646 self.inner.get_performance_insights_kms_key_id()
2647 }
2648 /// <p>The number of days to retain Performance Insights data.</p>
2649 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2650 /// <p>Valid Values:</p>
2651 /// <ul>
2652 /// <li>
2653 /// <p><code>7</code></p></li>
2654 /// <li>
2655 /// <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>
2656 /// <li>
2657 /// <p><code>731</code></p></li>
2658 /// </ul>
2659 /// <p>Default: <code>7</code> days</p>
2660 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
2661 pub fn performance_insights_retention_period(mut self, input: i32) -> Self {
2662 self.inner = self.inner.performance_insights_retention_period(input);
2663 self
2664 }
2665 /// <p>The number of days to retain Performance Insights data.</p>
2666 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2667 /// <p>Valid Values:</p>
2668 /// <ul>
2669 /// <li>
2670 /// <p><code>7</code></p></li>
2671 /// <li>
2672 /// <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>
2673 /// <li>
2674 /// <p><code>731</code></p></li>
2675 /// </ul>
2676 /// <p>Default: <code>7</code> days</p>
2677 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
2678 pub fn set_performance_insights_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
2679 self.inner = self.inner.set_performance_insights_retention_period(input);
2680 self
2681 }
2682 /// <p>The number of days to retain Performance Insights data.</p>
2683 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2684 /// <p>Valid Values:</p>
2685 /// <ul>
2686 /// <li>
2687 /// <p><code>7</code></p></li>
2688 /// <li>
2689 /// <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>
2690 /// <li>
2691 /// <p><code>731</code></p></li>
2692 /// </ul>
2693 /// <p>Default: <code>7</code> days</p>
2694 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
2695 pub fn get_performance_insights_retention_period(&self) -> &::std::option::Option<i32> {
2696 self.inner.get_performance_insights_retention_period()
2697 }
2698 ///
2699 /// Appends an item to `EnableCloudwatchLogsExports`.
2700 ///
2701 /// To override the contents of this collection use [`set_enable_cloudwatch_logs_exports`](Self::set_enable_cloudwatch_logs_exports).
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 enable_cloudwatch_logs_exports(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2727 self.inner = self.inner.enable_cloudwatch_logs_exports(input.into());
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 set_enable_cloudwatch_logs_exports(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
2754 self.inner = self.inner.set_enable_cloudwatch_logs_exports(input);
2755 self
2756 }
2757 /// <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>
2758 /// <p>This setting doesn't apply to the following DB instances:</p>
2759 /// <ul>
2760 /// <li>
2761 /// <p>Amazon Aurora (CloudWatch Logs exports are managed by the DB cluster.)</p></li>
2762 /// <li>
2763 /// <p>RDS Custom</p></li>
2764 /// </ul>
2765 /// <p>The following values are valid for each DB engine:</p>
2766 /// <ul>
2767 /// <li>
2768 /// <p>RDS for Db2 - <code>diag.log | notify.log | iam-db-auth-error</code></p></li>
2769 /// <li>
2770 /// <p>RDS for MariaDB - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2771 /// <li>
2772 /// <p>RDS for Microsoft SQL Server - <code>agent | error</code></p></li>
2773 /// <li>
2774 /// <p>RDS for MySQL - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2775 /// <li>
2776 /// <p>RDS for Oracle - <code>alert | audit | listener | trace | oemagent</code></p></li>
2777 /// <li>
2778 /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
2779 /// </ul>
2780 pub fn get_enable_cloudwatch_logs_exports(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
2781 self.inner.get_enable_cloudwatch_logs_exports()
2782 }
2783 ///
2784 /// Appends an item to `ProcessorFeatures`.
2785 ///
2786 /// To override the contents of this collection use [`set_processor_features`](Self::set_processor_features).
2787 ///
2788 /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
2789 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2790 pub fn processor_features(mut self, input: crate::types::ProcessorFeature) -> Self {
2791 self.inner = self.inner.processor_features(input);
2792 self
2793 }
2794 /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
2795 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2796 pub fn set_processor_features(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProcessorFeature>>) -> Self {
2797 self.inner = self.inner.set_processor_features(input);
2798 self
2799 }
2800 /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
2801 /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2802 pub fn get_processor_features(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProcessorFeature>> {
2803 self.inner.get_processor_features()
2804 }
2805 /// <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>
2806 /// <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>
2807 pub fn deletion_protection(mut self, input: bool) -> Self {
2808 self.inner = self.inner.deletion_protection(input);
2809 self
2810 }
2811 /// <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>
2812 /// <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>
2813 pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
2814 self.inner = self.inner.set_deletion_protection(input);
2815 self
2816 }
2817 /// <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>
2818 /// <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>
2819 pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
2820 self.inner.get_deletion_protection()
2821 }
2822 /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
2823 /// <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>
2824 /// <p>This setting doesn't apply to the following DB instances:</p>
2825 /// <ul>
2826 /// <li>
2827 /// <p>Amazon Aurora (Storage is managed by the DB cluster.)</p></li>
2828 /// <li>
2829 /// <p>RDS Custom</p></li>
2830 /// </ul>
2831 pub fn max_allocated_storage(mut self, input: i32) -> Self {
2832 self.inner = self.inner.max_allocated_storage(input);
2833 self
2834 }
2835 /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
2836 /// <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>
2837 /// <p>This setting doesn't apply to the following DB instances:</p>
2838 /// <ul>
2839 /// <li>
2840 /// <p>Amazon Aurora (Storage is managed by the DB cluster.)</p></li>
2841 /// <li>
2842 /// <p>RDS Custom</p></li>
2843 /// </ul>
2844 pub fn set_max_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
2845 self.inner = self.inner.set_max_allocated_storage(input);
2846 self
2847 }
2848 /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
2849 /// <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>
2850 /// <p>This setting doesn't apply to the following DB instances:</p>
2851 /// <ul>
2852 /// <li>
2853 /// <p>Amazon Aurora (Storage is managed by the DB cluster.)</p></li>
2854 /// <li>
2855 /// <p>RDS Custom</p></li>
2856 /// </ul>
2857 pub fn get_max_allocated_storage(&self) -> &::std::option::Option<i32> {
2858 self.inner.get_max_allocated_storage()
2859 }
2860 /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
2861 /// <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>
2862 /// <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>
2863 /// <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>
2864 pub fn enable_customer_owned_ip(mut self, input: bool) -> Self {
2865 self.inner = self.inner.enable_customer_owned_ip(input);
2866 self
2867 }
2868 /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
2869 /// <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>
2870 /// <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>
2871 /// <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>
2872 pub fn set_enable_customer_owned_ip(mut self, input: ::std::option::Option<bool>) -> Self {
2873 self.inner = self.inner.set_enable_customer_owned_ip(input);
2874 self
2875 }
2876 /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
2877 /// <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>
2878 /// <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>
2879 /// <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>
2880 pub fn get_enable_customer_owned_ip(&self) -> &::std::option::Option<bool> {
2881 self.inner.get_enable_customer_owned_ip()
2882 }
2883 /// <p>The network type of the DB instance.</p>
2884 /// <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>
2885 /// <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>
2886 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
2887 pub fn network_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2888 self.inner = self.inner.network_type(input.into());
2889 self
2890 }
2891 /// <p>The network type of the DB instance.</p>
2892 /// <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>
2893 /// <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>
2894 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
2895 pub fn set_network_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2896 self.inner = self.inner.set_network_type(input);
2897 self
2898 }
2899 /// <p>The network type of the DB instance.</p>
2900 /// <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>
2901 /// <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>
2902 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
2903 pub fn get_network_type(&self) -> &::std::option::Option<::std::string::String> {
2904 self.inner.get_network_type()
2905 }
2906 /// <p>The location for storing automated backups and manual snapshots.</p>
2907 /// <p>Valid Values:</p>
2908 /// <ul>
2909 /// <li>
2910 /// <p><code>local</code> (Dedicated Local Zone)</p></li>
2911 /// <li>
2912 /// <p><code>outposts</code> (Amazon Web Services Outposts)</p></li>
2913 /// <li>
2914 /// <p><code>region</code> (Amazon Web Services Region)</p></li>
2915 /// </ul>
2916 /// <p>Default: <code>region</code></p>
2917 /// <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>
2918 pub fn backup_target(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2919 self.inner = self.inner.backup_target(input.into());
2920 self
2921 }
2922 /// <p>The location for storing automated backups and manual snapshots.</p>
2923 /// <p>Valid Values:</p>
2924 /// <ul>
2925 /// <li>
2926 /// <p><code>local</code> (Dedicated Local Zone)</p></li>
2927 /// <li>
2928 /// <p><code>outposts</code> (Amazon Web Services Outposts)</p></li>
2929 /// <li>
2930 /// <p><code>region</code> (Amazon Web Services Region)</p></li>
2931 /// </ul>
2932 /// <p>Default: <code>region</code></p>
2933 /// <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>
2934 pub fn set_backup_target(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2935 self.inner = self.inner.set_backup_target(input);
2936 self
2937 }
2938 /// <p>The location for storing automated backups and manual snapshots.</p>
2939 /// <p>Valid Values:</p>
2940 /// <ul>
2941 /// <li>
2942 /// <p><code>local</code> (Dedicated Local Zone)</p></li>
2943 /// <li>
2944 /// <p><code>outposts</code> (Amazon Web Services Outposts)</p></li>
2945 /// <li>
2946 /// <p><code>region</code> (Amazon Web Services Region)</p></li>
2947 /// </ul>
2948 /// <p>Default: <code>region</code></p>
2949 /// <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>
2950 pub fn get_backup_target(&self) -> &::std::option::Option<::std::string::String> {
2951 self.inner.get_backup_target()
2952 }
2953 /// <p>The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.</p>
2954 /// <p>This setting is required for RDS Custom.</p>
2955 /// <p>Constraints:</p>
2956 /// <ul>
2957 /// <li>
2958 /// <p>The profile must exist in your account.</p></li>
2959 /// <li>
2960 /// <p>The profile must have an IAM role that Amazon EC2 has permissions to assume.</p></li>
2961 /// <li>
2962 /// <p>The instance profile name and the associated IAM role name must start with the prefix <code>AWSRDSCustom</code>.</p></li>
2963 /// </ul>
2964 /// <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>
2965 pub fn custom_iam_instance_profile(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2966 self.inner = self.inner.custom_iam_instance_profile(input.into());
2967 self
2968 }
2969 /// <p>The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.</p>
2970 /// <p>This setting is required for RDS Custom.</p>
2971 /// <p>Constraints:</p>
2972 /// <ul>
2973 /// <li>
2974 /// <p>The profile must exist in your account.</p></li>
2975 /// <li>
2976 /// <p>The profile must have an IAM role that Amazon EC2 has permissions to assume.</p></li>
2977 /// <li>
2978 /// <p>The instance profile name and the associated IAM role name must start with the prefix <code>AWSRDSCustom</code>.</p></li>
2979 /// </ul>
2980 /// <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>
2981 pub fn set_custom_iam_instance_profile(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2982 self.inner = self.inner.set_custom_iam_instance_profile(input);
2983 self
2984 }
2985 /// <p>The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.</p>
2986 /// <p>This setting is required for RDS Custom.</p>
2987 /// <p>Constraints:</p>
2988 /// <ul>
2989 /// <li>
2990 /// <p>The profile must exist in your account.</p></li>
2991 /// <li>
2992 /// <p>The profile must have an IAM role that Amazon EC2 has permissions to assume.</p></li>
2993 /// <li>
2994 /// <p>The instance profile name and the associated IAM role name must start with the prefix <code>AWSRDSCustom</code>.</p></li>
2995 /// </ul>
2996 /// <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>
2997 pub fn get_custom_iam_instance_profile(&self) -> &::std::option::Option<::std::string::String> {
2998 self.inner.get_custom_iam_instance_profile()
2999 }
3000 /// <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>
3001 pub fn db_system_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
3002 self.inner = self.inner.db_system_id(input.into());
3003 self
3004 }
3005 /// <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>
3006 pub fn set_db_system_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
3007 self.inner = self.inner.set_db_system_id(input);
3008 self
3009 }
3010 /// <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>
3011 pub fn get_db_system_id(&self) -> &::std::option::Option<::std::string::String> {
3012 self.inner.get_db_system_id()
3013 }
3014 /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
3015 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
3016 /// <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>
3017 pub fn ca_certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
3018 self.inner = self.inner.ca_certificate_identifier(input.into());
3019 self
3020 }
3021 /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
3022 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
3023 /// <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>
3024 pub fn set_ca_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
3025 self.inner = self.inner.set_ca_certificate_identifier(input);
3026 self
3027 }
3028 /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
3029 /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
3030 /// <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>
3031 pub fn get_ca_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
3032 self.inner.get_ca_certificate_identifier()
3033 }
3034 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
3035 /// <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>
3036 /// <p>Constraints:</p>
3037 /// <ul>
3038 /// <li>
3039 /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
3040 /// </ul>
3041 pub fn manage_master_user_password(mut self, input: bool) -> Self {
3042 self.inner = self.inner.manage_master_user_password(input);
3043 self
3044 }
3045 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
3046 /// <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>
3047 /// <p>Constraints:</p>
3048 /// <ul>
3049 /// <li>
3050 /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
3051 /// </ul>
3052 pub fn set_manage_master_user_password(mut self, input: ::std::option::Option<bool>) -> Self {
3053 self.inner = self.inner.set_manage_master_user_password(input);
3054 self
3055 }
3056 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
3057 /// <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>
3058 /// <p>Constraints:</p>
3059 /// <ul>
3060 /// <li>
3061 /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
3062 /// </ul>
3063 pub fn get_manage_master_user_password(&self) -> &::std::option::Option<bool> {
3064 self.inner.get_manage_master_user_password()
3065 }
3066 /// <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>
3067 /// <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>
3068 /// <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>
3069 /// <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>
3070 /// <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>
3071 pub fn master_user_secret_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
3072 self.inner = self.inner.master_user_secret_kms_key_id(input.into());
3073 self
3074 }
3075 /// <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>
3076 /// <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>
3077 /// <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>
3078 /// <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>
3079 /// <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>
3080 pub fn set_master_user_secret_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
3081 self.inner = self.inner.set_master_user_secret_kms_key_id(input);
3082 self
3083 }
3084 /// <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>
3085 /// <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>
3086 /// <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>
3087 /// <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>
3088 /// <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>
3089 pub fn get_master_user_secret_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
3090 self.inner.get_master_user_secret_kms_key_id()
3091 }
3092 /// <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>
3093 /// <p>Note the following restrictions:</p>
3094 /// <ul>
3095 /// <li>
3096 /// <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>
3097 /// <li>
3098 /// <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>
3099 /// </ul>
3100 pub fn multi_tenant(mut self, input: bool) -> Self {
3101 self.inner = self.inner.multi_tenant(input);
3102 self
3103 }
3104 /// <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>
3105 /// <p>Note the following restrictions:</p>
3106 /// <ul>
3107 /// <li>
3108 /// <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>
3109 /// <li>
3110 /// <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>
3111 /// </ul>
3112 pub fn set_multi_tenant(mut self, input: ::std::option::Option<bool>) -> Self {
3113 self.inner = self.inner.set_multi_tenant(input);
3114 self
3115 }
3116 /// <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>
3117 /// <p>Note the following restrictions:</p>
3118 /// <ul>
3119 /// <li>
3120 /// <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>
3121 /// <li>
3122 /// <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>
3123 /// </ul>
3124 pub fn get_multi_tenant(&self) -> &::std::option::Option<bool> {
3125 self.inner.get_multi_tenant()
3126 }
3127 /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
3128 pub fn dedicated_log_volume(mut self, input: bool) -> Self {
3129 self.inner = self.inner.dedicated_log_volume(input);
3130 self
3131 }
3132 /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
3133 pub fn set_dedicated_log_volume(mut self, input: ::std::option::Option<bool>) -> Self {
3134 self.inner = self.inner.set_dedicated_log_volume(input);
3135 self
3136 }
3137 /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
3138 pub fn get_dedicated_log_volume(&self) -> &::std::option::Option<bool> {
3139 self.inner.get_dedicated_log_volume()
3140 }
3141 /// <p>The life cycle type for this DB instance.</p><note>
3142 /// <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>
3143 /// </note>
3144 /// <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>
3145 /// <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>
3146 /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
3147 /// <p>Default: <code>open-source-rds-extended-support</code></p>
3148 pub fn engine_lifecycle_support(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
3149 self.inner = self.inner.engine_lifecycle_support(input.into());
3150 self
3151 }
3152 /// <p>The life cycle type for this DB instance.</p><note>
3153 /// <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>
3154 /// </note>
3155 /// <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>
3156 /// <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>
3157 /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
3158 /// <p>Default: <code>open-source-rds-extended-support</code></p>
3159 pub fn set_engine_lifecycle_support(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
3160 self.inner = self.inner.set_engine_lifecycle_support(input);
3161 self
3162 }
3163 /// <p>The life cycle type for this DB instance.</p><note>
3164 /// <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>
3165 /// </note>
3166 /// <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>
3167 /// <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>
3168 /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
3169 /// <p>Default: <code>open-source-rds-extended-support</code></p>
3170 pub fn get_engine_lifecycle_support(&self) -> &::std::option::Option<::std::string::String> {
3171 self.inner.get_engine_lifecycle_support()
3172 }
3173 /// <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>
3174 /// <p>You can specify one of the following values:</p>
3175 /// <ul>
3176 /// <li>
3177 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
3178 /// <li>
3179 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
3180 /// </ul>
3181 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
3182 pub fn master_user_authentication_type(mut self, input: crate::types::MasterUserAuthenticationType) -> Self {
3183 self.inner = self.inner.master_user_authentication_type(input);
3184 self
3185 }
3186 /// <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>
3187 /// <p>You can specify one of the following values:</p>
3188 /// <ul>
3189 /// <li>
3190 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
3191 /// <li>
3192 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
3193 /// </ul>
3194 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
3195 pub fn set_master_user_authentication_type(mut self, input: ::std::option::Option<crate::types::MasterUserAuthenticationType>) -> Self {
3196 self.inner = self.inner.set_master_user_authentication_type(input);
3197 self
3198 }
3199 /// <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>
3200 /// <p>You can specify one of the following values:</p>
3201 /// <ul>
3202 /// <li>
3203 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
3204 /// <li>
3205 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
3206 /// </ul>
3207 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
3208 pub fn get_master_user_authentication_type(&self) -> &::std::option::Option<crate::types::MasterUserAuthenticationType> {
3209 self.inner.get_master_user_authentication_type()
3210 }
3211}