aws_sdk_rds/operation/create_db_cluster/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_db_cluster::_create_db_cluster_output::CreateDbClusterOutputBuilder;
3
4pub use crate::operation::create_db_cluster::_create_db_cluster_input::CreateDbClusterInputBuilder;
5
6impl crate::operation::create_db_cluster::builders::CreateDbClusterInputBuilder {
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_cluster::CreateDbClusterOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_db_cluster::CreateDBClusterError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_db_cluster();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `CreateDBCluster`.
24///
25/// <p>Creates a new Amazon Aurora DB cluster or Multi-AZ DB cluster.</p>
26/// <p>If you create an Aurora DB cluster, the request creates an empty cluster. You must explicitly create the writer instance for your DB cluster using the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html">CreateDBInstance</a> operation. If you create a Multi-AZ DB cluster, the request creates a writer and two reader DB instances for you, each in a different Availability Zone.</p>
27/// <p>You can use the <code>ReplicationSourceIdentifier</code> parameter to create an Amazon Aurora DB cluster as a read replica of another DB cluster or Amazon RDS for MySQL or PostgreSQL DB instance. For more information about Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html">What is Amazon Aurora?</a> in the <i>Amazon Aurora User Guide</i>.</p>
28/// <p>You can also use the <code>ReplicationSourceIdentifier</code> parameter to create a Multi-AZ DB cluster read replica with an RDS for MySQL or PostgreSQL DB instance as the source. For more information about Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html">Multi-AZ DB cluster deployments</a> in the <i>Amazon RDS User Guide</i>.</p>
29#[derive(::std::clone::Clone, ::std::fmt::Debug)]
30pub struct CreateDBClusterFluentBuilder {
31 handle: ::std::sync::Arc<crate::client::Handle>,
32 inner: crate::operation::create_db_cluster::builders::CreateDbClusterInputBuilder,
33 config_override: ::std::option::Option<crate::config::Builder>,
34}
35impl
36 crate::client::customize::internal::CustomizableSend<
37 crate::operation::create_db_cluster::CreateDbClusterOutput,
38 crate::operation::create_db_cluster::CreateDBClusterError,
39 > for CreateDBClusterFluentBuilder
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_cluster::CreateDbClusterOutput,
47 crate::operation::create_db_cluster::CreateDBClusterError,
48 >,
49 > {
50 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
51 }
52}
53impl CreateDBClusterFluentBuilder {
54 /// Creates a new `CreateDBClusterFluentBuilder`.
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 CreateDBCluster as a reference.
63 pub fn as_input(&self) -> &crate::operation::create_db_cluster::builders::CreateDbClusterInputBuilder {
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_cluster::CreateDbClusterOutput,
78 ::aws_smithy_runtime_api::client::result::SdkError<
79 crate::operation::create_db_cluster::CreateDBClusterError,
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_cluster::CreateDBCluster::operation_runtime_plugins(
88 self.handle.runtime_plugins.clone(),
89 &self.handle.conf,
90 self.config_override,
91 );
92 crate::operation::create_db_cluster::CreateDBCluster::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_cluster::CreateDbClusterOutput,
100 crate::operation::create_db_cluster::CreateDBClusterError,
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 ///
115 /// Appends an item to `AvailabilityZones`.
116 ///
117 /// To override the contents of this collection use [`set_availability_zones`](Self::set_availability_zones).
118 ///
119 /// <p>A list of Availability Zones (AZs) where you specifically want to create DB instances in the DB cluster.</p>
120 /// <p>For the first three DB instances that you create, RDS distributes each DB instance to a different AZ that you specify. For additional DB instances that you create, RDS randomly distributes them to the AZs that you specified. For example, if you create a DB cluster with one writer instance and three reader instances, RDS might distribute the writer instance to AZ 1, the first reader instance to AZ 2, the second reader instance to AZ 3, and the third reader instance to either AZ 1, AZ 2, or AZ 3.</p>
121 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.AvailabilityZones">Availability Zones</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Concepts.AuroraHighAvailability.Instances">High availability for Aurora DB instances</a> in the <i>Amazon Aurora User Guide</i>.</p>
122 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
123 /// <p>Constraints:</p>
124 /// <ul>
125 /// <li>
126 /// <p>Can't specify more than three AZs.</p></li>
127 /// </ul>
128 pub fn availability_zones(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
129 self.inner = self.inner.availability_zones(input.into());
130 self
131 }
132 /// <p>A list of Availability Zones (AZs) where you specifically want to create DB instances in the DB cluster.</p>
133 /// <p>For the first three DB instances that you create, RDS distributes each DB instance to a different AZ that you specify. For additional DB instances that you create, RDS randomly distributes them to the AZs that you specified. For example, if you create a DB cluster with one writer instance and three reader instances, RDS might distribute the writer instance to AZ 1, the first reader instance to AZ 2, the second reader instance to AZ 3, and the third reader instance to either AZ 1, AZ 2, or AZ 3.</p>
134 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.AvailabilityZones">Availability Zones</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Concepts.AuroraHighAvailability.Instances">High availability for Aurora DB instances</a> in the <i>Amazon Aurora User Guide</i>.</p>
135 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
136 /// <p>Constraints:</p>
137 /// <ul>
138 /// <li>
139 /// <p>Can't specify more than three AZs.</p></li>
140 /// </ul>
141 pub fn set_availability_zones(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
142 self.inner = self.inner.set_availability_zones(input);
143 self
144 }
145 /// <p>A list of Availability Zones (AZs) where you specifically want to create DB instances in the DB cluster.</p>
146 /// <p>For the first three DB instances that you create, RDS distributes each DB instance to a different AZ that you specify. For additional DB instances that you create, RDS randomly distributes them to the AZs that you specified. For example, if you create a DB cluster with one writer instance and three reader instances, RDS might distribute the writer instance to AZ 1, the first reader instance to AZ 2, the second reader instance to AZ 3, and the third reader instance to either AZ 1, AZ 2, or AZ 3.</p>
147 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.AvailabilityZones">Availability Zones</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Concepts.AuroraHighAvailability.Instances">High availability for Aurora DB instances</a> in the <i>Amazon Aurora User Guide</i>.</p>
148 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
149 /// <p>Constraints:</p>
150 /// <ul>
151 /// <li>
152 /// <p>Can't specify more than three AZs.</p></li>
153 /// </ul>
154 pub fn get_availability_zones(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
155 self.inner.get_availability_zones()
156 }
157 /// <p>The number of days for which automated backups are retained.</p>
158 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
159 /// <p>Default: <code>1</code></p>
160 /// <p>Constraints:</p>
161 /// <ul>
162 /// <li>
163 /// <p>Must be a value from 1 to 35.</p></li>
164 /// </ul>
165 pub fn backup_retention_period(mut self, input: i32) -> Self {
166 self.inner = self.inner.backup_retention_period(input);
167 self
168 }
169 /// <p>The number of days for which automated backups are retained.</p>
170 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
171 /// <p>Default: <code>1</code></p>
172 /// <p>Constraints:</p>
173 /// <ul>
174 /// <li>
175 /// <p>Must be a value from 1 to 35.</p></li>
176 /// </ul>
177 pub fn set_backup_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
178 self.inner = self.inner.set_backup_retention_period(input);
179 self
180 }
181 /// <p>The number of days for which automated backups are retained.</p>
182 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
183 /// <p>Default: <code>1</code></p>
184 /// <p>Constraints:</p>
185 /// <ul>
186 /// <li>
187 /// <p>Must be a value from 1 to 35.</p></li>
188 /// </ul>
189 pub fn get_backup_retention_period(&self) -> &::std::option::Option<i32> {
190 self.inner.get_backup_retention_period()
191 }
192 /// <p>The name of the character set (<code>CharacterSet</code>) to associate the DB cluster with.</p>
193 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
194 pub fn character_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
195 self.inner = self.inner.character_set_name(input.into());
196 self
197 }
198 /// <p>The name of the character set (<code>CharacterSet</code>) to associate the DB cluster with.</p>
199 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
200 pub fn set_character_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
201 self.inner = self.inner.set_character_set_name(input);
202 self
203 }
204 /// <p>The name of the character set (<code>CharacterSet</code>) to associate the DB cluster with.</p>
205 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
206 pub fn get_character_set_name(&self) -> &::std::option::Option<::std::string::String> {
207 self.inner.get_character_set_name()
208 }
209 /// <p>The name for your database of up to 64 alphanumeric characters. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
210 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
211 pub fn database_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
212 self.inner = self.inner.database_name(input.into());
213 self
214 }
215 /// <p>The name for your database of up to 64 alphanumeric characters. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
216 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
217 pub fn set_database_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
218 self.inner = self.inner.set_database_name(input);
219 self
220 }
221 /// <p>The name for your database of up to 64 alphanumeric characters. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
222 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
223 pub fn get_database_name(&self) -> &::std::option::Option<::std::string::String> {
224 self.inner.get_database_name()
225 }
226 /// <p>The identifier for this DB cluster. This parameter is stored as a lowercase string.</p>
227 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
228 /// <p>Constraints:</p>
229 /// <ul>
230 /// <li>
231 /// <p>Must contain from 1 to 63 (for Aurora DB clusters) or 1 to 52 (for Multi-AZ DB clusters) letters, numbers, or hyphens.</p></li>
232 /// <li>
233 /// <p>First character must be a letter.</p></li>
234 /// <li>
235 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
236 /// </ul>
237 /// <p>Example: <code>my-cluster1</code></p>
238 pub fn db_cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
239 self.inner = self.inner.db_cluster_identifier(input.into());
240 self
241 }
242 /// <p>The identifier for this DB cluster. This parameter is stored as a lowercase string.</p>
243 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
244 /// <p>Constraints:</p>
245 /// <ul>
246 /// <li>
247 /// <p>Must contain from 1 to 63 (for Aurora DB clusters) or 1 to 52 (for Multi-AZ DB clusters) letters, numbers, or hyphens.</p></li>
248 /// <li>
249 /// <p>First character must be a letter.</p></li>
250 /// <li>
251 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
252 /// </ul>
253 /// <p>Example: <code>my-cluster1</code></p>
254 pub fn set_db_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
255 self.inner = self.inner.set_db_cluster_identifier(input);
256 self
257 }
258 /// <p>The identifier for this DB cluster. This parameter is stored as a lowercase string.</p>
259 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
260 /// <p>Constraints:</p>
261 /// <ul>
262 /// <li>
263 /// <p>Must contain from 1 to 63 (for Aurora DB clusters) or 1 to 52 (for Multi-AZ DB clusters) letters, numbers, or hyphens.</p></li>
264 /// <li>
265 /// <p>First character must be a letter.</p></li>
266 /// <li>
267 /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
268 /// </ul>
269 /// <p>Example: <code>my-cluster1</code></p>
270 pub fn get_db_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
271 self.inner.get_db_cluster_identifier()
272 }
273 /// <p>The name of the DB cluster parameter group to associate with this DB cluster. If you don't specify a value, then the default DB cluster parameter group for the specified DB engine and version is used.</p>
274 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
275 /// <p>Constraints:</p>
276 /// <ul>
277 /// <li>
278 /// <p>If supplied, must match the name of an existing DB cluster parameter group.</p></li>
279 /// </ul>
280 pub fn db_cluster_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
281 self.inner = self.inner.db_cluster_parameter_group_name(input.into());
282 self
283 }
284 /// <p>The name of the DB cluster parameter group to associate with this DB cluster. If you don't specify a value, then the default DB cluster parameter group for the specified DB engine and version is used.</p>
285 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
286 /// <p>Constraints:</p>
287 /// <ul>
288 /// <li>
289 /// <p>If supplied, must match the name of an existing DB cluster parameter group.</p></li>
290 /// </ul>
291 pub fn set_db_cluster_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
292 self.inner = self.inner.set_db_cluster_parameter_group_name(input);
293 self
294 }
295 /// <p>The name of the DB cluster parameter group to associate with this DB cluster. If you don't specify a value, then the default DB cluster parameter group for the specified DB engine and version is used.</p>
296 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
297 /// <p>Constraints:</p>
298 /// <ul>
299 /// <li>
300 /// <p>If supplied, must match the name of an existing DB cluster parameter group.</p></li>
301 /// </ul>
302 pub fn get_db_cluster_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
303 self.inner.get_db_cluster_parameter_group_name()
304 }
305 ///
306 /// Appends an item to `VpcSecurityGroupIds`.
307 ///
308 /// To override the contents of this collection use [`set_vpc_security_group_ids`](Self::set_vpc_security_group_ids).
309 ///
310 /// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
311 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
312 pub fn vpc_security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
313 self.inner = self.inner.vpc_security_group_ids(input.into());
314 self
315 }
316 /// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
317 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
318 pub fn set_vpc_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
319 self.inner = self.inner.set_vpc_security_group_ids(input);
320 self
321 }
322 /// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
323 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
324 pub fn get_vpc_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
325 self.inner.get_vpc_security_group_ids()
326 }
327 /// <p>A DB subnet group to associate with this DB cluster.</p>
328 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
329 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
330 /// <p>Constraints:</p>
331 /// <ul>
332 /// <li>
333 /// <p>Must match the name of an existing DB subnet group.</p></li>
334 /// </ul>
335 /// <p>Example: <code>mydbsubnetgroup</code></p>
336 pub fn db_subnet_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
337 self.inner = self.inner.db_subnet_group_name(input.into());
338 self
339 }
340 /// <p>A DB subnet group to associate with this DB cluster.</p>
341 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
342 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
343 /// <p>Constraints:</p>
344 /// <ul>
345 /// <li>
346 /// <p>Must match the name of an existing DB subnet group.</p></li>
347 /// </ul>
348 /// <p>Example: <code>mydbsubnetgroup</code></p>
349 pub fn set_db_subnet_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
350 self.inner = self.inner.set_db_subnet_group_name(input);
351 self
352 }
353 /// <p>A DB subnet group to associate with this DB cluster.</p>
354 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
355 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
356 /// <p>Constraints:</p>
357 /// <ul>
358 /// <li>
359 /// <p>Must match the name of an existing DB subnet group.</p></li>
360 /// </ul>
361 /// <p>Example: <code>mydbsubnetgroup</code></p>
362 pub fn get_db_subnet_group_name(&self) -> &::std::option::Option<::std::string::String> {
363 self.inner.get_db_subnet_group_name()
364 }
365 /// <p>The database engine to use for this DB cluster.</p>
366 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
367 /// <p>Valid Values:</p>
368 /// <ul>
369 /// <li>
370 /// <p><code>aurora-mysql</code></p></li>
371 /// <li>
372 /// <p><code>aurora-postgresql</code></p></li>
373 /// <li>
374 /// <p><code>mysql</code></p></li>
375 /// <li>
376 /// <p><code>postgres</code></p></li>
377 /// <li>
378 /// <p><code>neptune</code> - For information about using Amazon Neptune, see the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/intro.html"> <i>Amazon Neptune User Guide</i> </a>.</p></li>
379 /// </ul>
380 pub fn engine(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
381 self.inner = self.inner.engine(input.into());
382 self
383 }
384 /// <p>The database engine to use for this DB cluster.</p>
385 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
386 /// <p>Valid Values:</p>
387 /// <ul>
388 /// <li>
389 /// <p><code>aurora-mysql</code></p></li>
390 /// <li>
391 /// <p><code>aurora-postgresql</code></p></li>
392 /// <li>
393 /// <p><code>mysql</code></p></li>
394 /// <li>
395 /// <p><code>postgres</code></p></li>
396 /// <li>
397 /// <p><code>neptune</code> - For information about using Amazon Neptune, see the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/intro.html"> <i>Amazon Neptune User Guide</i> </a>.</p></li>
398 /// </ul>
399 pub fn set_engine(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
400 self.inner = self.inner.set_engine(input);
401 self
402 }
403 /// <p>The database engine to use for this DB cluster.</p>
404 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
405 /// <p>Valid Values:</p>
406 /// <ul>
407 /// <li>
408 /// <p><code>aurora-mysql</code></p></li>
409 /// <li>
410 /// <p><code>aurora-postgresql</code></p></li>
411 /// <li>
412 /// <p><code>mysql</code></p></li>
413 /// <li>
414 /// <p><code>postgres</code></p></li>
415 /// <li>
416 /// <p><code>neptune</code> - For information about using Amazon Neptune, see the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/intro.html"> <i>Amazon Neptune User Guide</i> </a>.</p></li>
417 /// </ul>
418 pub fn get_engine(&self) -> &::std::option::Option<::std::string::String> {
419 self.inner.get_engine()
420 }
421 /// <p>The version number of the database engine to use.</p>
422 /// <p>To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the following command:</p>
423 /// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
424 /// <p>You can supply either <code>5.7</code> or <code>8.0</code> to use the default engine version for Aurora MySQL version 2 or version 3, respectively.</p>
425 /// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
426 /// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
427 /// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
428 /// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
429 /// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
430 /// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
431 /// <p>For information about a specific engine, see the following topics:</p>
432 /// <ul>
433 /// <li>
434 /// <p>Aurora MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html">Database engine updates for Amazon Aurora MySQL</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
435 /// <li>
436 /// <p>Aurora PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html">Amazon Aurora PostgreSQL releases and engine versions</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
437 /// <li>
438 /// <p>RDS for MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">Amazon RDS for MySQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
439 /// <li>
440 /// <p>RDS for PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
441 /// </ul>
442 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
443 pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
444 self.inner = self.inner.engine_version(input.into());
445 self
446 }
447 /// <p>The version number of the database engine to use.</p>
448 /// <p>To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the following command:</p>
449 /// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
450 /// <p>You can supply either <code>5.7</code> or <code>8.0</code> to use the default engine version for Aurora MySQL version 2 or version 3, respectively.</p>
451 /// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
452 /// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
453 /// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
454 /// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
455 /// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
456 /// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
457 /// <p>For information about a specific engine, see the following topics:</p>
458 /// <ul>
459 /// <li>
460 /// <p>Aurora MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html">Database engine updates for Amazon Aurora MySQL</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
461 /// <li>
462 /// <p>Aurora PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html">Amazon Aurora PostgreSQL releases and engine versions</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
463 /// <li>
464 /// <p>RDS for MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">Amazon RDS for MySQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
465 /// <li>
466 /// <p>RDS for PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
467 /// </ul>
468 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
469 pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
470 self.inner = self.inner.set_engine_version(input);
471 self
472 }
473 /// <p>The version number of the database engine to use.</p>
474 /// <p>To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the following command:</p>
475 /// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
476 /// <p>You can supply either <code>5.7</code> or <code>8.0</code> to use the default engine version for Aurora MySQL version 2 or version 3, respectively.</p>
477 /// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
478 /// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
479 /// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
480 /// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
481 /// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
482 /// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
483 /// <p>For information about a specific engine, see the following topics:</p>
484 /// <ul>
485 /// <li>
486 /// <p>Aurora MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html">Database engine updates for Amazon Aurora MySQL</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
487 /// <li>
488 /// <p>Aurora PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html">Amazon Aurora PostgreSQL releases and engine versions</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
489 /// <li>
490 /// <p>RDS for MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">Amazon RDS for MySQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
491 /// <li>
492 /// <p>RDS for PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
493 /// </ul>
494 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
495 pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
496 self.inner.get_engine_version()
497 }
498 /// <p>The port number on which the instances in the DB cluster accept connections.</p>
499 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
500 /// <p>Valid Values: <code>1150-65535</code></p>
501 /// <p>Default:</p>
502 /// <ul>
503 /// <li>
504 /// <p>RDS for MySQL and Aurora MySQL - <code>3306</code></p></li>
505 /// <li>
506 /// <p>RDS for PostgreSQL and Aurora PostgreSQL - <code>5432</code></p></li>
507 /// </ul>
508 pub fn port(mut self, input: i32) -> Self {
509 self.inner = self.inner.port(input);
510 self
511 }
512 /// <p>The port number on which the instances in the DB cluster accept connections.</p>
513 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
514 /// <p>Valid Values: <code>1150-65535</code></p>
515 /// <p>Default:</p>
516 /// <ul>
517 /// <li>
518 /// <p>RDS for MySQL and Aurora MySQL - <code>3306</code></p></li>
519 /// <li>
520 /// <p>RDS for PostgreSQL and Aurora PostgreSQL - <code>5432</code></p></li>
521 /// </ul>
522 pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
523 self.inner = self.inner.set_port(input);
524 self
525 }
526 /// <p>The port number on which the instances in the DB cluster accept connections.</p>
527 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
528 /// <p>Valid Values: <code>1150-65535</code></p>
529 /// <p>Default:</p>
530 /// <ul>
531 /// <li>
532 /// <p>RDS for MySQL and Aurora MySQL - <code>3306</code></p></li>
533 /// <li>
534 /// <p>RDS for PostgreSQL and Aurora PostgreSQL - <code>5432</code></p></li>
535 /// </ul>
536 pub fn get_port(&self) -> &::std::option::Option<i32> {
537 self.inner.get_port()
538 }
539 /// <p>The name of the master user for the DB cluster.</p>
540 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
541 /// <p>Constraints:</p>
542 /// <ul>
543 /// <li>
544 /// <p>Must be 1 to 16 letters or numbers.</p></li>
545 /// <li>
546 /// <p>First character must be a letter.</p></li>
547 /// <li>
548 /// <p>Can't be a reserved word for the chosen database engine.</p></li>
549 /// </ul>
550 pub fn master_username(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
551 self.inner = self.inner.master_username(input.into());
552 self
553 }
554 /// <p>The name of the master user for the DB cluster.</p>
555 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
556 /// <p>Constraints:</p>
557 /// <ul>
558 /// <li>
559 /// <p>Must be 1 to 16 letters or numbers.</p></li>
560 /// <li>
561 /// <p>First character must be a letter.</p></li>
562 /// <li>
563 /// <p>Can't be a reserved word for the chosen database engine.</p></li>
564 /// </ul>
565 pub fn set_master_username(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
566 self.inner = self.inner.set_master_username(input);
567 self
568 }
569 /// <p>The name of the master user for the DB cluster.</p>
570 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
571 /// <p>Constraints:</p>
572 /// <ul>
573 /// <li>
574 /// <p>Must be 1 to 16 letters or numbers.</p></li>
575 /// <li>
576 /// <p>First character must be a letter.</p></li>
577 /// <li>
578 /// <p>Can't be a reserved word for the chosen database engine.</p></li>
579 /// </ul>
580 pub fn get_master_username(&self) -> &::std::option::Option<::std::string::String> {
581 self.inner.get_master_username()
582 }
583 /// <p>The password for the master database user.</p>
584 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
585 /// <p>Constraints:</p>
586 /// <ul>
587 /// <li>
588 /// <p>Must contain from 8 to 41 characters.</p></li>
589 /// <li>
590 /// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
591 /// <li>
592 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
593 /// </ul>
594 pub fn master_user_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
595 self.inner = self.inner.master_user_password(input.into());
596 self
597 }
598 /// <p>The password for the master database user.</p>
599 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
600 /// <p>Constraints:</p>
601 /// <ul>
602 /// <li>
603 /// <p>Must contain from 8 to 41 characters.</p></li>
604 /// <li>
605 /// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
606 /// <li>
607 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
608 /// </ul>
609 pub fn set_master_user_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
610 self.inner = self.inner.set_master_user_password(input);
611 self
612 }
613 /// <p>The password for the master database user.</p>
614 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
615 /// <p>Constraints:</p>
616 /// <ul>
617 /// <li>
618 /// <p>Must contain from 8 to 41 characters.</p></li>
619 /// <li>
620 /// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
621 /// <li>
622 /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
623 /// </ul>
624 pub fn get_master_user_password(&self) -> &::std::option::Option<::std::string::String> {
625 self.inner.get_master_user_password()
626 }
627 /// <p>The option group to associate the DB cluster with.</p>
628 /// <p>DB clusters are associated with a default option group that can't be modified.</p>
629 pub fn option_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
630 self.inner = self.inner.option_group_name(input.into());
631 self
632 }
633 /// <p>The option group to associate the DB cluster with.</p>
634 /// <p>DB clusters are associated with a default option group that can't be modified.</p>
635 pub fn set_option_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
636 self.inner = self.inner.set_option_group_name(input);
637 self
638 }
639 /// <p>The option group to associate the DB cluster with.</p>
640 /// <p>DB clusters are associated with a default option group that can't be modified.</p>
641 pub fn get_option_group_name(&self) -> &::std::option::Option<::std::string::String> {
642 self.inner.get_option_group_name()
643 }
644 /// <p>The daily time range during which automated backups are created if automated backups are enabled using the <code>BackupRetentionPeriod</code> parameter.</p>
645 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
646 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
647 /// <p>Constraints:</p>
648 /// <ul>
649 /// <li>
650 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
651 /// <li>
652 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
653 /// <li>
654 /// <p>Must not conflict with the preferred maintenance window.</p></li>
655 /// <li>
656 /// <p>Must be at least 30 minutes.</p></li>
657 /// </ul>
658 pub fn preferred_backup_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
659 self.inner = self.inner.preferred_backup_window(input.into());
660 self
661 }
662 /// <p>The daily time range during which automated backups are created if automated backups are enabled using the <code>BackupRetentionPeriod</code> parameter.</p>
663 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
664 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
665 /// <p>Constraints:</p>
666 /// <ul>
667 /// <li>
668 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
669 /// <li>
670 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
671 /// <li>
672 /// <p>Must not conflict with the preferred maintenance window.</p></li>
673 /// <li>
674 /// <p>Must be at least 30 minutes.</p></li>
675 /// </ul>
676 pub fn set_preferred_backup_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
677 self.inner = self.inner.set_preferred_backup_window(input);
678 self
679 }
680 /// <p>The daily time range during which automated backups are created if automated backups are enabled using the <code>BackupRetentionPeriod</code> parameter.</p>
681 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
682 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
683 /// <p>Constraints:</p>
684 /// <ul>
685 /// <li>
686 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
687 /// <li>
688 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
689 /// <li>
690 /// <p>Must not conflict with the preferred maintenance window.</p></li>
691 /// <li>
692 /// <p>Must be at least 30 minutes.</p></li>
693 /// </ul>
694 pub fn get_preferred_backup_window(&self) -> &::std::option::Option<::std::string::String> {
695 self.inner.get_preferred_backup_window()
696 }
697 /// <p>The weekly time range during which system maintenance can occur.</p>
698 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
699 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
700 /// <p>Constraints:</p>
701 /// <ul>
702 /// <li>
703 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
704 /// <li>
705 /// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
706 /// <li>
707 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
708 /// <li>
709 /// <p>Must be at least 30 minutes.</p></li>
710 /// </ul>
711 pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
712 self.inner = self.inner.preferred_maintenance_window(input.into());
713 self
714 }
715 /// <p>The weekly time range during which system maintenance can occur.</p>
716 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
717 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
718 /// <p>Constraints:</p>
719 /// <ul>
720 /// <li>
721 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
722 /// <li>
723 /// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
724 /// <li>
725 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
726 /// <li>
727 /// <p>Must be at least 30 minutes.</p></li>
728 /// </ul>
729 pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
730 self.inner = self.inner.set_preferred_maintenance_window(input);
731 self
732 }
733 /// <p>The weekly time range during which system maintenance can occur.</p>
734 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
735 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
736 /// <p>Constraints:</p>
737 /// <ul>
738 /// <li>
739 /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
740 /// <li>
741 /// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
742 /// <li>
743 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
744 /// <li>
745 /// <p>Must be at least 30 minutes.</p></li>
746 /// </ul>
747 pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
748 self.inner.get_preferred_maintenance_window()
749 }
750 /// <p>The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.</p>
751 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
752 pub fn replication_source_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
753 self.inner = self.inner.replication_source_identifier(input.into());
754 self
755 }
756 /// <p>The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.</p>
757 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
758 pub fn set_replication_source_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
759 self.inner = self.inner.set_replication_source_identifier(input);
760 self
761 }
762 /// <p>The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.</p>
763 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
764 pub fn get_replication_source_identifier(&self) -> &::std::option::Option<::std::string::String> {
765 self.inner.get_replication_source_identifier()
766 }
767 ///
768 /// Appends an item to `Tags`.
769 ///
770 /// To override the contents of this collection use [`set_tags`](Self::set_tags).
771 ///
772 /// <p>Tags to assign to the DB cluster.</p>
773 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
774 pub fn tags(mut self, input: crate::types::Tag) -> Self {
775 self.inner = self.inner.tags(input);
776 self
777 }
778 /// <p>Tags to assign to the DB cluster.</p>
779 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
780 pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
781 self.inner = self.inner.set_tags(input);
782 self
783 }
784 /// <p>Tags to assign to the DB cluster.</p>
785 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
786 pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
787 self.inner.get_tags()
788 }
789 /// <p>Specifies whether the DB cluster is encrypted.</p>
790 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
791 pub fn storage_encrypted(mut self, input: bool) -> Self {
792 self.inner = self.inner.storage_encrypted(input);
793 self
794 }
795 /// <p>Specifies whether the DB cluster is encrypted.</p>
796 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
797 pub fn set_storage_encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
798 self.inner = self.inner.set_storage_encrypted(input);
799 self
800 }
801 /// <p>Specifies whether the DB cluster is encrypted.</p>
802 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
803 pub fn get_storage_encrypted(&self) -> &::std::option::Option<bool> {
804 self.inner.get_storage_encrypted()
805 }
806 /// <p>The Amazon Web Services KMS key identifier for an encrypted DB cluster.</p>
807 /// <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>
808 /// <p>When a KMS key isn't specified in <code>KmsKeyId</code>:</p>
809 /// <ul>
810 /// <li>
811 /// <p>If <code>ReplicationSourceIdentifier</code> identifies an encrypted source, then Amazon RDS uses the KMS key used to encrypt the source. Otherwise, Amazon RDS uses your default KMS key.</p></li>
812 /// <li>
813 /// <p>If the <code>StorageEncrypted</code> parameter is enabled and <code>ReplicationSourceIdentifier</code> isn't specified, then Amazon RDS uses your default KMS key.</p></li>
814 /// </ul>
815 /// <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>
816 /// <p>If you create a read replica of an encrypted DB cluster in another Amazon Web Services Region, make sure to set <code>KmsKeyId</code> to a KMS key identifier that is valid in the destination Amazon Web Services Region. This KMS key is used to encrypt the read replica in that Amazon Web Services Region.</p>
817 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
818 pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
819 self.inner = self.inner.kms_key_id(input.into());
820 self
821 }
822 /// <p>The Amazon Web Services KMS key identifier for an encrypted DB cluster.</p>
823 /// <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>
824 /// <p>When a KMS key isn't specified in <code>KmsKeyId</code>:</p>
825 /// <ul>
826 /// <li>
827 /// <p>If <code>ReplicationSourceIdentifier</code> identifies an encrypted source, then Amazon RDS uses the KMS key used to encrypt the source. Otherwise, Amazon RDS uses your default KMS key.</p></li>
828 /// <li>
829 /// <p>If the <code>StorageEncrypted</code> parameter is enabled and <code>ReplicationSourceIdentifier</code> isn't specified, then Amazon RDS uses your default KMS key.</p></li>
830 /// </ul>
831 /// <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>
832 /// <p>If you create a read replica of an encrypted DB cluster in another Amazon Web Services Region, make sure to set <code>KmsKeyId</code> to a KMS key identifier that is valid in the destination Amazon Web Services Region. This KMS key is used to encrypt the read replica in that Amazon Web Services Region.</p>
833 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
834 pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
835 self.inner = self.inner.set_kms_key_id(input);
836 self
837 }
838 /// <p>The Amazon Web Services KMS key identifier for an encrypted DB cluster.</p>
839 /// <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>
840 /// <p>When a KMS key isn't specified in <code>KmsKeyId</code>:</p>
841 /// <ul>
842 /// <li>
843 /// <p>If <code>ReplicationSourceIdentifier</code> identifies an encrypted source, then Amazon RDS uses the KMS key used to encrypt the source. Otherwise, Amazon RDS uses your default KMS key.</p></li>
844 /// <li>
845 /// <p>If the <code>StorageEncrypted</code> parameter is enabled and <code>ReplicationSourceIdentifier</code> isn't specified, then Amazon RDS uses your default KMS key.</p></li>
846 /// </ul>
847 /// <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>
848 /// <p>If you create a read replica of an encrypted DB cluster in another Amazon Web Services Region, make sure to set <code>KmsKeyId</code> to a KMS key identifier that is valid in the destination Amazon Web Services Region. This KMS key is used to encrypt the read replica in that Amazon Web Services Region.</p>
849 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
850 pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
851 self.inner.get_kms_key_id()
852 }
853 /// <p>When you are replicating a DB cluster from one Amazon Web Services GovCloud (US) Region to another, an URL that contains a Signature Version 4 signed request for the <code>CreateDBCluster</code> operation to be called in the source Amazon Web Services Region where the DB cluster is replicated from. Specify <code>PreSignedUrl</code> only when you are performing cross-Region replication from an encrypted DB cluster.</p>
854 /// <p>The presigned URL must be a valid request for the <code>CreateDBCluster</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster to copy.</p>
855 /// <p>The presigned URL request must contain the following parameter values:</p>
856 /// <ul>
857 /// <li>
858 /// <p><code>KmsKeyId</code> - The KMS key identifier for the KMS key to use to encrypt the copy of the DB cluster in the destination Amazon Web Services Region. This should refer to the same KMS key for both the <code>CreateDBCluster</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
859 /// <li>
860 /// <p><code>DestinationRegion</code> - The name of the Amazon Web Services Region that Aurora read replica will be created in.</p></li>
861 /// <li>
862 /// <p><code>ReplicationSourceIdentifier</code> - The DB cluster identifier for the encrypted DB cluster to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB cluster from the us-west-2 Amazon Web Services Region, then your <code>ReplicationSourceIdentifier</code> would look like Example: <code>arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1</code>.</p></li>
863 /// </ul>
864 /// <p>To learn how to generate a Signature Version 4 signed request, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html"> Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4)</a> and <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html"> Signature Version 4 Signing Process</a>.</p><note>
865 /// <p>If you are using an Amazon Web Services SDK tool or the CLI, you can specify <code>SourceRegion</code> (or <code>--source-region</code> for the CLI) instead of specifying <code>PreSignedUrl</code> manually. Specifying <code>SourceRegion</code> autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.</p>
866 /// </note>
867 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
868 pub fn pre_signed_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
869 self.inner = self.inner.pre_signed_url(input.into());
870 self
871 }
872 /// <p>When you are replicating a DB cluster from one Amazon Web Services GovCloud (US) Region to another, an URL that contains a Signature Version 4 signed request for the <code>CreateDBCluster</code> operation to be called in the source Amazon Web Services Region where the DB cluster is replicated from. Specify <code>PreSignedUrl</code> only when you are performing cross-Region replication from an encrypted DB cluster.</p>
873 /// <p>The presigned URL must be a valid request for the <code>CreateDBCluster</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster to copy.</p>
874 /// <p>The presigned URL request must contain the following parameter values:</p>
875 /// <ul>
876 /// <li>
877 /// <p><code>KmsKeyId</code> - The KMS key identifier for the KMS key to use to encrypt the copy of the DB cluster in the destination Amazon Web Services Region. This should refer to the same KMS key for both the <code>CreateDBCluster</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
878 /// <li>
879 /// <p><code>DestinationRegion</code> - The name of the Amazon Web Services Region that Aurora read replica will be created in.</p></li>
880 /// <li>
881 /// <p><code>ReplicationSourceIdentifier</code> - The DB cluster identifier for the encrypted DB cluster to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB cluster from the us-west-2 Amazon Web Services Region, then your <code>ReplicationSourceIdentifier</code> would look like Example: <code>arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1</code>.</p></li>
882 /// </ul>
883 /// <p>To learn how to generate a Signature Version 4 signed request, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html"> Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4)</a> and <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html"> Signature Version 4 Signing Process</a>.</p><note>
884 /// <p>If you are using an Amazon Web Services SDK tool or the CLI, you can specify <code>SourceRegion</code> (or <code>--source-region</code> for the CLI) instead of specifying <code>PreSignedUrl</code> manually. Specifying <code>SourceRegion</code> autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.</p>
885 /// </note>
886 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
887 pub fn set_pre_signed_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
888 self.inner = self.inner.set_pre_signed_url(input);
889 self
890 }
891 /// <p>When you are replicating a DB cluster from one Amazon Web Services GovCloud (US) Region to another, an URL that contains a Signature Version 4 signed request for the <code>CreateDBCluster</code> operation to be called in the source Amazon Web Services Region where the DB cluster is replicated from. Specify <code>PreSignedUrl</code> only when you are performing cross-Region replication from an encrypted DB cluster.</p>
892 /// <p>The presigned URL must be a valid request for the <code>CreateDBCluster</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster to copy.</p>
893 /// <p>The presigned URL request must contain the following parameter values:</p>
894 /// <ul>
895 /// <li>
896 /// <p><code>KmsKeyId</code> - The KMS key identifier for the KMS key to use to encrypt the copy of the DB cluster in the destination Amazon Web Services Region. This should refer to the same KMS key for both the <code>CreateDBCluster</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
897 /// <li>
898 /// <p><code>DestinationRegion</code> - The name of the Amazon Web Services Region that Aurora read replica will be created in.</p></li>
899 /// <li>
900 /// <p><code>ReplicationSourceIdentifier</code> - The DB cluster identifier for the encrypted DB cluster to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB cluster from the us-west-2 Amazon Web Services Region, then your <code>ReplicationSourceIdentifier</code> would look like Example: <code>arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1</code>.</p></li>
901 /// </ul>
902 /// <p>To learn how to generate a Signature Version 4 signed request, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html"> Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4)</a> and <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html"> Signature Version 4 Signing Process</a>.</p><note>
903 /// <p>If you are using an Amazon Web Services SDK tool or the CLI, you can specify <code>SourceRegion</code> (or <code>--source-region</code> for the CLI) instead of specifying <code>PreSignedUrl</code> manually. Specifying <code>SourceRegion</code> autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.</p>
904 /// </note>
905 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
906 pub fn get_pre_signed_url(&self) -> &::std::option::Option<::std::string::String> {
907 self.inner.get_pre_signed_url()
908 }
909 /// <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>
910 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
911 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
912 pub fn enable_iam_database_authentication(mut self, input: bool) -> Self {
913 self.inner = self.inner.enable_iam_database_authentication(input);
914 self
915 }
916 /// <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>
917 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
918 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
919 pub fn set_enable_iam_database_authentication(mut self, input: ::std::option::Option<bool>) -> Self {
920 self.inner = self.inner.set_enable_iam_database_authentication(input);
921 self
922 }
923 /// <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>
924 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
925 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
926 pub fn get_enable_iam_database_authentication(&self) -> &::std::option::Option<bool> {
927 self.inner.get_enable_iam_database_authentication()
928 }
929 /// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
930 /// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
931 /// <p>Default: <code>0</code></p>
932 /// <p>Constraints:</p>
933 /// <ul>
934 /// <li>
935 /// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
936 /// </ul>
937 pub fn backtrack_window(mut self, input: i64) -> Self {
938 self.inner = self.inner.backtrack_window(input);
939 self
940 }
941 /// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
942 /// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
943 /// <p>Default: <code>0</code></p>
944 /// <p>Constraints:</p>
945 /// <ul>
946 /// <li>
947 /// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
948 /// </ul>
949 pub fn set_backtrack_window(mut self, input: ::std::option::Option<i64>) -> Self {
950 self.inner = self.inner.set_backtrack_window(input);
951 self
952 }
953 /// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
954 /// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
955 /// <p>Default: <code>0</code></p>
956 /// <p>Constraints:</p>
957 /// <ul>
958 /// <li>
959 /// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
960 /// </ul>
961 pub fn get_backtrack_window(&self) -> &::std::option::Option<i64> {
962 self.inner.get_backtrack_window()
963 }
964 ///
965 /// Appends an item to `EnableCloudwatchLogsExports`.
966 ///
967 /// To override the contents of this collection use [`set_enable_cloudwatch_logs_exports`](Self::set_enable_cloudwatch_logs_exports).
968 ///
969 /// <p>The list of log types that need to be enabled for exporting to CloudWatch Logs.</p>
970 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
971 /// <p>The following values are valid for each DB engine:</p>
972 /// <ul>
973 /// <li>
974 /// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
975 /// <li>
976 /// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
977 /// <li>
978 /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
979 /// <li>
980 /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
981 /// </ul>
982 /// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
983 /// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
984 pub fn enable_cloudwatch_logs_exports(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
985 self.inner = self.inner.enable_cloudwatch_logs_exports(input.into());
986 self
987 }
988 /// <p>The list of log types that need to be enabled for exporting to CloudWatch Logs.</p>
989 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
990 /// <p>The following values are valid for each DB engine:</p>
991 /// <ul>
992 /// <li>
993 /// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
994 /// <li>
995 /// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
996 /// <li>
997 /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
998 /// <li>
999 /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
1000 /// </ul>
1001 /// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
1002 /// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
1003 pub fn set_enable_cloudwatch_logs_exports(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1004 self.inner = self.inner.set_enable_cloudwatch_logs_exports(input);
1005 self
1006 }
1007 /// <p>The list of log types that need to be enabled for exporting to CloudWatch Logs.</p>
1008 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1009 /// <p>The following values are valid for each DB engine:</p>
1010 /// <ul>
1011 /// <li>
1012 /// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
1013 /// <li>
1014 /// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
1015 /// <li>
1016 /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
1017 /// <li>
1018 /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
1019 /// </ul>
1020 /// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
1021 /// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
1022 pub fn get_enable_cloudwatch_logs_exports(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1023 self.inner.get_enable_cloudwatch_logs_exports()
1024 }
1025 /// <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p>
1026 /// <p>The <code>serverless</code> engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the <code>provisioned</code> engine mode.</p>
1027 /// <p>For information about limitations and requirements for Serverless DB clusters, see the following sections in the <i>Amazon Aurora User Guide</i>:</p>
1028 /// <ul>
1029 /// <li>
1030 /// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations">Limitations of Aurora Serverless v1</a></p></li>
1031 /// <li>
1032 /// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html">Requirements for Aurora Serverless v2</a></p></li>
1033 /// </ul>
1034 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1035 pub fn engine_mode(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1036 self.inner = self.inner.engine_mode(input.into());
1037 self
1038 }
1039 /// <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p>
1040 /// <p>The <code>serverless</code> engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the <code>provisioned</code> engine mode.</p>
1041 /// <p>For information about limitations and requirements for Serverless DB clusters, see the following sections in the <i>Amazon Aurora User Guide</i>:</p>
1042 /// <ul>
1043 /// <li>
1044 /// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations">Limitations of Aurora Serverless v1</a></p></li>
1045 /// <li>
1046 /// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html">Requirements for Aurora Serverless v2</a></p></li>
1047 /// </ul>
1048 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1049 pub fn set_engine_mode(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1050 self.inner = self.inner.set_engine_mode(input);
1051 self
1052 }
1053 /// <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p>
1054 /// <p>The <code>serverless</code> engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the <code>provisioned</code> engine mode.</p>
1055 /// <p>For information about limitations and requirements for Serverless DB clusters, see the following sections in the <i>Amazon Aurora User Guide</i>:</p>
1056 /// <ul>
1057 /// <li>
1058 /// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations">Limitations of Aurora Serverless v1</a></p></li>
1059 /// <li>
1060 /// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html">Requirements for Aurora Serverless v2</a></p></li>
1061 /// </ul>
1062 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1063 pub fn get_engine_mode(&self) -> &::std::option::Option<::std::string::String> {
1064 self.inner.get_engine_mode()
1065 }
1066 /// <p>For DB clusters in <code>serverless</code> DB engine mode, the scaling properties of the DB cluster.</p>
1067 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1068 pub fn scaling_configuration(mut self, input: crate::types::ScalingConfiguration) -> Self {
1069 self.inner = self.inner.scaling_configuration(input);
1070 self
1071 }
1072 /// <p>For DB clusters in <code>serverless</code> DB engine mode, the scaling properties of the DB cluster.</p>
1073 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1074 pub fn set_scaling_configuration(mut self, input: ::std::option::Option<crate::types::ScalingConfiguration>) -> Self {
1075 self.inner = self.inner.set_scaling_configuration(input);
1076 self
1077 }
1078 /// <p>For DB clusters in <code>serverless</code> DB engine mode, the scaling properties of the DB cluster.</p>
1079 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1080 pub fn get_scaling_configuration(&self) -> &::std::option::Option<crate::types::ScalingConfiguration> {
1081 self.inner.get_scaling_configuration()
1082 }
1083 /// <p>Reserved for future use.</p>
1084 pub fn rds_custom_cluster_configuration(mut self, input: crate::types::RdsCustomClusterConfiguration) -> Self {
1085 self.inner = self.inner.rds_custom_cluster_configuration(input);
1086 self
1087 }
1088 /// <p>Reserved for future use.</p>
1089 pub fn set_rds_custom_cluster_configuration(mut self, input: ::std::option::Option<crate::types::RdsCustomClusterConfiguration>) -> Self {
1090 self.inner = self.inner.set_rds_custom_cluster_configuration(input);
1091 self
1092 }
1093 /// <p>Reserved for future use.</p>
1094 pub fn get_rds_custom_cluster_configuration(&self) -> &::std::option::Option<crate::types::RdsCustomClusterConfiguration> {
1095 self.inner.get_rds_custom_cluster_configuration()
1096 }
1097 /// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
1098 /// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance class</a> in the <i>Amazon RDS User Guide</i>.</p>
1099 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1100 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1101 pub fn db_cluster_instance_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1102 self.inner = self.inner.db_cluster_instance_class(input.into());
1103 self
1104 }
1105 /// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
1106 /// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance class</a> in the <i>Amazon RDS User Guide</i>.</p>
1107 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1108 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1109 pub fn set_db_cluster_instance_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1110 self.inner = self.inner.set_db_cluster_instance_class(input);
1111 self
1112 }
1113 /// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
1114 /// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance class</a> in the <i>Amazon RDS User Guide</i>.</p>
1115 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1116 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1117 pub fn get_db_cluster_instance_class(&self) -> &::std::option::Option<::std::string::String> {
1118 self.inner.get_db_cluster_instance_class()
1119 }
1120 /// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
1121 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1122 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1123 pub fn allocated_storage(mut self, input: i32) -> Self {
1124 self.inner = self.inner.allocated_storage(input);
1125 self
1126 }
1127 /// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
1128 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1129 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1130 pub fn set_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
1131 self.inner = self.inner.set_allocated_storage(input);
1132 self
1133 }
1134 /// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
1135 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1136 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1137 pub fn get_allocated_storage(&self) -> &::std::option::Option<i32> {
1138 self.inner.get_allocated_storage()
1139 }
1140 /// <p>The storage type to associate with the DB cluster.</p>
1141 /// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
1142 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1143 /// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
1144 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1145 /// <p>Valid Values:</p>
1146 /// <ul>
1147 /// <li>
1148 /// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
1149 /// <li>
1150 /// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
1151 /// </ul>
1152 /// <p>Default:</p>
1153 /// <ul>
1154 /// <li>
1155 /// <p>Aurora DB clusters - <code>aurora</code></p></li>
1156 /// <li>
1157 /// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
1158 /// </ul><note>
1159 /// <p>When you create an Aurora DB cluster with the storage type set to <code>aurora-iopt1</code>, the storage type is returned in the response. The storage type isn't returned when you set it to <code>aurora</code>.</p>
1160 /// </note>
1161 pub fn storage_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1162 self.inner = self.inner.storage_type(input.into());
1163 self
1164 }
1165 /// <p>The storage type to associate with the DB cluster.</p>
1166 /// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
1167 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1168 /// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
1169 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1170 /// <p>Valid Values:</p>
1171 /// <ul>
1172 /// <li>
1173 /// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
1174 /// <li>
1175 /// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
1176 /// </ul>
1177 /// <p>Default:</p>
1178 /// <ul>
1179 /// <li>
1180 /// <p>Aurora DB clusters - <code>aurora</code></p></li>
1181 /// <li>
1182 /// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
1183 /// </ul><note>
1184 /// <p>When you create an Aurora DB cluster with the storage type set to <code>aurora-iopt1</code>, the storage type is returned in the response. The storage type isn't returned when you set it to <code>aurora</code>.</p>
1185 /// </note>
1186 pub fn set_storage_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1187 self.inner = self.inner.set_storage_type(input);
1188 self
1189 }
1190 /// <p>The storage type to associate with the DB cluster.</p>
1191 /// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
1192 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1193 /// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
1194 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1195 /// <p>Valid Values:</p>
1196 /// <ul>
1197 /// <li>
1198 /// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
1199 /// <li>
1200 /// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
1201 /// </ul>
1202 /// <p>Default:</p>
1203 /// <ul>
1204 /// <li>
1205 /// <p>Aurora DB clusters - <code>aurora</code></p></li>
1206 /// <li>
1207 /// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
1208 /// </ul><note>
1209 /// <p>When you create an Aurora DB cluster with the storage type set to <code>aurora-iopt1</code>, the storage type is returned in the response. The storage type isn't returned when you set it to <code>aurora</code>.</p>
1210 /// </note>
1211 pub fn get_storage_type(&self) -> &::std::option::Option<::std::string::String> {
1212 self.inner.get_storage_type()
1213 }
1214 /// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
1215 /// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
1216 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1217 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1218 /// <p>Constraints:</p>
1219 /// <ul>
1220 /// <li>
1221 /// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
1222 /// </ul>
1223 pub fn iops(mut self, input: i32) -> Self {
1224 self.inner = self.inner.iops(input);
1225 self
1226 }
1227 /// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
1228 /// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
1229 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1230 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1231 /// <p>Constraints:</p>
1232 /// <ul>
1233 /// <li>
1234 /// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
1235 /// </ul>
1236 pub fn set_iops(mut self, input: ::std::option::Option<i32>) -> Self {
1237 self.inner = self.inner.set_iops(input);
1238 self
1239 }
1240 /// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
1241 /// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
1242 /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1243 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1244 /// <p>Constraints:</p>
1245 /// <ul>
1246 /// <li>
1247 /// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
1248 /// </ul>
1249 pub fn get_iops(&self) -> &::std::option::Option<i32> {
1250 self.inner.get_iops()
1251 }
1252 /// <p>Specifies whether the DB cluster is publicly accessible.</p>
1253 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1254 /// <p>When the DB cluster is publicly accessible and you connect from outside of the DB cluster'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 cluster, the endpoint resolves to the private IP address. Access to the DB cluster is controlled by its security group settings.</p>
1255 /// <p>When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.</p>
1256 /// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
1257 /// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
1258 /// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
1259 /// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
1260 pub fn publicly_accessible(mut self, input: bool) -> Self {
1261 self.inner = self.inner.publicly_accessible(input);
1262 self
1263 }
1264 /// <p>Specifies whether the DB cluster is publicly accessible.</p>
1265 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1266 /// <p>When the DB cluster is publicly accessible and you connect from outside of the DB cluster'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 cluster, the endpoint resolves to the private IP address. Access to the DB cluster is controlled by its security group settings.</p>
1267 /// <p>When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.</p>
1268 /// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
1269 /// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
1270 /// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
1271 /// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
1272 pub fn set_publicly_accessible(mut self, input: ::std::option::Option<bool>) -> Self {
1273 self.inner = self.inner.set_publicly_accessible(input);
1274 self
1275 }
1276 /// <p>Specifies whether the DB cluster is publicly accessible.</p>
1277 /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1278 /// <p>When the DB cluster is publicly accessible and you connect from outside of the DB cluster'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 cluster, the endpoint resolves to the private IP address. Access to the DB cluster is controlled by its security group settings.</p>
1279 /// <p>When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.</p>
1280 /// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
1281 /// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
1282 /// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
1283 /// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
1284 pub fn get_publicly_accessible(&self) -> &::std::option::Option<bool> {
1285 self.inner.get_publicly_accessible()
1286 }
1287 /// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
1288 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB cluster.</p>
1289 /// <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>
1290 pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
1291 self.inner = self.inner.auto_minor_version_upgrade(input);
1292 self
1293 }
1294 /// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
1295 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB cluster.</p>
1296 /// <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>
1297 pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
1298 self.inner = self.inner.set_auto_minor_version_upgrade(input);
1299 self
1300 }
1301 /// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
1302 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB cluster.</p>
1303 /// <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>
1304 pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
1305 self.inner.get_auto_minor_version_upgrade()
1306 }
1307 /// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
1308 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1309 pub fn deletion_protection(mut self, input: bool) -> Self {
1310 self.inner = self.inner.deletion_protection(input);
1311 self
1312 }
1313 /// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
1314 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1315 pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
1316 self.inner = self.inner.set_deletion_protection(input);
1317 self
1318 }
1319 /// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
1320 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1321 pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
1322 self.inner.get_deletion_protection()
1323 }
1324 /// <p>The global cluster ID of an Aurora cluster that becomes the primary cluster in the new global database cluster.</p>
1325 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1326 pub fn global_cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1327 self.inner = self.inner.global_cluster_identifier(input.into());
1328 self
1329 }
1330 /// <p>The global cluster ID of an Aurora cluster that becomes the primary cluster in the new global database cluster.</p>
1331 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1332 pub fn set_global_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1333 self.inner = self.inner.set_global_cluster_identifier(input);
1334 self
1335 }
1336 /// <p>The global cluster ID of an Aurora cluster that becomes the primary cluster in the new global database cluster.</p>
1337 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1338 pub fn get_global_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
1339 self.inner.get_global_cluster_identifier()
1340 }
1341 /// <p>Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled.</p>
1342 /// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
1343 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
1344 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1345 pub fn enable_http_endpoint(mut self, input: bool) -> Self {
1346 self.inner = self.inner.enable_http_endpoint(input);
1347 self
1348 }
1349 /// <p>Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled.</p>
1350 /// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
1351 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
1352 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1353 pub fn set_enable_http_endpoint(mut self, input: ::std::option::Option<bool>) -> Self {
1354 self.inner = self.inner.set_enable_http_endpoint(input);
1355 self
1356 }
1357 /// <p>Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled.</p>
1358 /// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
1359 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
1360 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1361 pub fn get_enable_http_endpoint(&self) -> &::std::option::Option<bool> {
1362 self.inner.get_enable_http_endpoint()
1363 }
1364 /// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
1365 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1366 pub fn copy_tags_to_snapshot(mut self, input: bool) -> Self {
1367 self.inner = self.inner.copy_tags_to_snapshot(input);
1368 self
1369 }
1370 /// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
1371 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1372 pub fn set_copy_tags_to_snapshot(mut self, input: ::std::option::Option<bool>) -> Self {
1373 self.inner = self.inner.set_copy_tags_to_snapshot(input);
1374 self
1375 }
1376 /// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
1377 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1378 pub fn get_copy_tags_to_snapshot(&self) -> &::std::option::Option<bool> {
1379 self.inner.get_copy_tags_to_snapshot()
1380 }
1381 /// <p>The Active Directory directory ID to create the DB cluster in.</p>
1382 /// <p>For Amazon Aurora DB clusters, Amazon RDS can use Kerberos authentication to authenticate users that connect to the DB cluster.</p>
1383 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
1384 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1385 pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1386 self.inner = self.inner.domain(input.into());
1387 self
1388 }
1389 /// <p>The Active Directory directory ID to create the DB cluster in.</p>
1390 /// <p>For Amazon Aurora DB clusters, Amazon RDS can use Kerberos authentication to authenticate users that connect to the DB cluster.</p>
1391 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
1392 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1393 pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1394 self.inner = self.inner.set_domain(input);
1395 self
1396 }
1397 /// <p>The Active Directory directory ID to create the DB cluster in.</p>
1398 /// <p>For Amazon Aurora DB clusters, Amazon RDS can use Kerberos authentication to authenticate users that connect to the DB cluster.</p>
1399 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
1400 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1401 pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
1402 self.inner.get_domain()
1403 }
1404 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
1405 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1406 pub fn domain_iam_role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1407 self.inner = self.inner.domain_iam_role_name(input.into());
1408 self
1409 }
1410 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
1411 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1412 pub fn set_domain_iam_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1413 self.inner = self.inner.set_domain_iam_role_name(input);
1414 self
1415 }
1416 /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
1417 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1418 pub fn get_domain_iam_role_name(&self) -> &::std::option::Option<::std::string::String> {
1419 self.inner.get_domain_iam_role_name()
1420 }
1421 /// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
1422 /// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
1423 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1424 pub fn enable_global_write_forwarding(mut self, input: bool) -> Self {
1425 self.inner = self.inner.enable_global_write_forwarding(input);
1426 self
1427 }
1428 /// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
1429 /// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
1430 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1431 pub fn set_enable_global_write_forwarding(mut self, input: ::std::option::Option<bool>) -> Self {
1432 self.inner = self.inner.set_enable_global_write_forwarding(input);
1433 self
1434 }
1435 /// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
1436 /// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
1437 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1438 pub fn get_enable_global_write_forwarding(&self) -> &::std::option::Option<bool> {
1439 self.inner.get_enable_global_write_forwarding()
1440 }
1441 /// <p>The network type of the DB cluster.</p>
1442 /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1443 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
1444 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1445 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1446 pub fn network_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1447 self.inner = self.inner.network_type(input.into());
1448 self
1449 }
1450 /// <p>The network type of the DB cluster.</p>
1451 /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1452 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
1453 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1454 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1455 pub fn set_network_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1456 self.inner = self.inner.set_network_type(input);
1457 self
1458 }
1459 /// <p>The network type of the DB cluster.</p>
1460 /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1461 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
1462 /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1463 /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1464 pub fn get_network_type(&self) -> &::std::option::Option<::std::string::String> {
1465 self.inner.get_network_type()
1466 }
1467 /// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
1468 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
1469 pub fn serverless_v2_scaling_configuration(mut self, input: crate::types::ServerlessV2ScalingConfiguration) -> Self {
1470 self.inner = self.inner.serverless_v2_scaling_configuration(input);
1471 self
1472 }
1473 /// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
1474 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
1475 pub fn set_serverless_v2_scaling_configuration(mut self, input: ::std::option::Option<crate::types::ServerlessV2ScalingConfiguration>) -> Self {
1476 self.inner = self.inner.set_serverless_v2_scaling_configuration(input);
1477 self
1478 }
1479 /// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
1480 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
1481 pub fn get_serverless_v2_scaling_configuration(&self) -> &::std::option::Option<crate::types::ServerlessV2ScalingConfiguration> {
1482 self.inner.get_serverless_v2_scaling_configuration()
1483 }
1484 /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
1485 /// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1486 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1487 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1488 /// <p>Default: <code>0</code></p>
1489 pub fn monitoring_interval(mut self, input: i32) -> Self {
1490 self.inner = self.inner.monitoring_interval(input);
1491 self
1492 }
1493 /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
1494 /// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1495 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1496 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1497 /// <p>Default: <code>0</code></p>
1498 pub fn set_monitoring_interval(mut self, input: ::std::option::Option<i32>) -> Self {
1499 self.inner = self.inner.set_monitoring_interval(input);
1500 self
1501 }
1502 /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
1503 /// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1504 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1505 /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1506 /// <p>Default: <code>0</code></p>
1507 pub fn get_monitoring_interval(&self) -> &::std::option::Option<i32> {
1508 self.inner.get_monitoring_interval()
1509 }
1510 /// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting up and enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
1511 /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1512 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1513 pub fn monitoring_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1514 self.inner = self.inner.monitoring_role_arn(input.into());
1515 self
1516 }
1517 /// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting up and enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
1518 /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1519 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1520 pub fn set_monitoring_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1521 self.inner = self.inner.set_monitoring_role_arn(input);
1522 self
1523 }
1524 /// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting up and enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
1525 /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1526 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1527 pub fn get_monitoring_role_arn(&self) -> &::std::option::Option<::std::string::String> {
1528 self.inner.get_monitoring_role_arn()
1529 }
1530 /// <p>The mode of Database Insights to enable for the DB cluster.</p>
1531 /// <p>If you set this value to <code>advanced</code>, you must also set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
1532 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1533 pub fn database_insights_mode(mut self, input: crate::types::DatabaseInsightsMode) -> Self {
1534 self.inner = self.inner.database_insights_mode(input);
1535 self
1536 }
1537 /// <p>The mode of Database Insights to enable for the DB cluster.</p>
1538 /// <p>If you set this value to <code>advanced</code>, you must also set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
1539 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1540 pub fn set_database_insights_mode(mut self, input: ::std::option::Option<crate::types::DatabaseInsightsMode>) -> Self {
1541 self.inner = self.inner.set_database_insights_mode(input);
1542 self
1543 }
1544 /// <p>The mode of Database Insights to enable for the DB cluster.</p>
1545 /// <p>If you set this value to <code>advanced</code>, you must also set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
1546 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1547 pub fn get_database_insights_mode(&self) -> &::std::option::Option<crate::types::DatabaseInsightsMode> {
1548 self.inner.get_database_insights_mode()
1549 }
1550 /// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
1551 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
1552 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1553 pub fn enable_performance_insights(mut self, input: bool) -> Self {
1554 self.inner = self.inner.enable_performance_insights(input);
1555 self
1556 }
1557 /// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
1558 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
1559 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1560 pub fn set_enable_performance_insights(mut self, input: ::std::option::Option<bool>) -> Self {
1561 self.inner = self.inner.set_enable_performance_insights(input);
1562 self
1563 }
1564 /// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
1565 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
1566 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1567 pub fn get_enable_performance_insights(&self) -> &::std::option::Option<bool> {
1568 self.inner.get_enable_performance_insights()
1569 }
1570 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1571 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1572 /// <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>
1573 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1574 pub fn performance_insights_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1575 self.inner = self.inner.performance_insights_kms_key_id(input.into());
1576 self
1577 }
1578 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1579 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1580 /// <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>
1581 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1582 pub fn set_performance_insights_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1583 self.inner = self.inner.set_performance_insights_kms_key_id(input);
1584 self
1585 }
1586 /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1587 /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1588 /// <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>
1589 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1590 pub fn get_performance_insights_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
1591 self.inner.get_performance_insights_kms_key_id()
1592 }
1593 /// <p>The number of days to retain Performance Insights data.</p>
1594 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1595 /// <p>Valid Values:</p>
1596 /// <ul>
1597 /// <li>
1598 /// <p><code>7</code></p></li>
1599 /// <li>
1600 /// <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>
1601 /// <li>
1602 /// <p><code>731</code></p></li>
1603 /// </ul>
1604 /// <p>Default: <code>7</code> days</p>
1605 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
1606 pub fn performance_insights_retention_period(mut self, input: i32) -> Self {
1607 self.inner = self.inner.performance_insights_retention_period(input);
1608 self
1609 }
1610 /// <p>The number of days to retain Performance Insights data.</p>
1611 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1612 /// <p>Valid Values:</p>
1613 /// <ul>
1614 /// <li>
1615 /// <p><code>7</code></p></li>
1616 /// <li>
1617 /// <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>
1618 /// <li>
1619 /// <p><code>731</code></p></li>
1620 /// </ul>
1621 /// <p>Default: <code>7</code> days</p>
1622 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
1623 pub fn set_performance_insights_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
1624 self.inner = self.inner.set_performance_insights_retention_period(input);
1625 self
1626 }
1627 /// <p>The number of days to retain Performance Insights data.</p>
1628 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1629 /// <p>Valid Values:</p>
1630 /// <ul>
1631 /// <li>
1632 /// <p><code>7</code></p></li>
1633 /// <li>
1634 /// <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>
1635 /// <li>
1636 /// <p><code>731</code></p></li>
1637 /// </ul>
1638 /// <p>Default: <code>7</code> days</p>
1639 /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
1640 pub fn get_performance_insights_retention_period(&self) -> &::std::option::Option<i32> {
1641 self.inner.get_performance_insights_retention_period()
1642 }
1643 /// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
1644 /// <p>Valid for: Aurora DB clusters only</p><note>
1645 /// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting.</p>
1646 /// </note>
1647 pub fn enable_limitless_database(mut self, input: bool) -> Self {
1648 self.inner = self.inner.enable_limitless_database(input);
1649 self
1650 }
1651 /// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
1652 /// <p>Valid for: Aurora DB clusters only</p><note>
1653 /// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting.</p>
1654 /// </note>
1655 pub fn set_enable_limitless_database(mut self, input: ::std::option::Option<bool>) -> Self {
1656 self.inner = self.inner.set_enable_limitless_database(input);
1657 self
1658 }
1659 /// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
1660 /// <p>Valid for: Aurora DB clusters only</p><note>
1661 /// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting.</p>
1662 /// </note>
1663 pub fn get_enable_limitless_database(&self) -> &::std::option::Option<bool> {
1664 self.inner.get_enable_limitless_database()
1665 }
1666 /// <p>Specifies the scalability mode of the Aurora DB cluster. When set to <code>limitless</code>, the cluster operates as an Aurora Limitless Database. When set to <code>standard</code> (the default), the cluster uses normal DB instance creation.</p>
1667 /// <p>Valid for: Aurora DB clusters only</p><note>
1668 /// <p>You can't modify this setting after you create the DB cluster.</p>
1669 /// </note>
1670 pub fn cluster_scalability_type(mut self, input: crate::types::ClusterScalabilityType) -> Self {
1671 self.inner = self.inner.cluster_scalability_type(input);
1672 self
1673 }
1674 /// <p>Specifies the scalability mode of the Aurora DB cluster. When set to <code>limitless</code>, the cluster operates as an Aurora Limitless Database. When set to <code>standard</code> (the default), the cluster uses normal DB instance creation.</p>
1675 /// <p>Valid for: Aurora DB clusters only</p><note>
1676 /// <p>You can't modify this setting after you create the DB cluster.</p>
1677 /// </note>
1678 pub fn set_cluster_scalability_type(mut self, input: ::std::option::Option<crate::types::ClusterScalabilityType>) -> Self {
1679 self.inner = self.inner.set_cluster_scalability_type(input);
1680 self
1681 }
1682 /// <p>Specifies the scalability mode of the Aurora DB cluster. When set to <code>limitless</code>, the cluster operates as an Aurora Limitless Database. When set to <code>standard</code> (the default), the cluster uses normal DB instance creation.</p>
1683 /// <p>Valid for: Aurora DB clusters only</p><note>
1684 /// <p>You can't modify this setting after you create the DB cluster.</p>
1685 /// </note>
1686 pub fn get_cluster_scalability_type(&self) -> &::std::option::Option<crate::types::ClusterScalabilityType> {
1687 self.inner.get_cluster_scalability_type()
1688 }
1689 /// <p>Reserved for future use.</p>
1690 pub fn db_system_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1691 self.inner = self.inner.db_system_id(input.into());
1692 self
1693 }
1694 /// <p>Reserved for future use.</p>
1695 pub fn set_db_system_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1696 self.inner = self.inner.set_db_system_id(input);
1697 self
1698 }
1699 /// <p>Reserved for future use.</p>
1700 pub fn get_db_system_id(&self) -> &::std::option::Option<::std::string::String> {
1701 self.inner.get_db_system_id()
1702 }
1703 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
1704 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
1705 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1706 /// <p>Constraints:</p>
1707 /// <ul>
1708 /// <li>
1709 /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
1710 /// </ul>
1711 pub fn manage_master_user_password(mut self, input: bool) -> Self {
1712 self.inner = self.inner.manage_master_user_password(input);
1713 self
1714 }
1715 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
1716 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
1717 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1718 /// <p>Constraints:</p>
1719 /// <ul>
1720 /// <li>
1721 /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
1722 /// </ul>
1723 pub fn set_manage_master_user_password(mut self, input: ::std::option::Option<bool>) -> Self {
1724 self.inner = self.inner.set_manage_master_user_password(input);
1725 self
1726 }
1727 /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
1728 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
1729 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1730 /// <p>Constraints:</p>
1731 /// <ul>
1732 /// <li>
1733 /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
1734 /// </ul>
1735 pub fn get_manage_master_user_password(&self) -> &::std::option::Option<bool> {
1736 self.inner.get_manage_master_user_password()
1737 }
1738 /// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
1739 /// <p>Valid for: Aurora DB clusters only</p>
1740 pub fn enable_local_write_forwarding(mut self, input: bool) -> Self {
1741 self.inner = self.inner.enable_local_write_forwarding(input);
1742 self
1743 }
1744 /// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
1745 /// <p>Valid for: Aurora DB clusters only</p>
1746 pub fn set_enable_local_write_forwarding(mut self, input: ::std::option::Option<bool>) -> Self {
1747 self.inner = self.inner.set_enable_local_write_forwarding(input);
1748 self
1749 }
1750 /// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
1751 /// <p>Valid for: Aurora DB clusters only</p>
1752 pub fn get_enable_local_write_forwarding(&self) -> &::std::option::Option<bool> {
1753 self.inner.get_enable_local_write_forwarding()
1754 }
1755 /// <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>
1756 /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster.</p>
1757 /// <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>
1758 /// <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>
1759 /// <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>
1760 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1761 pub fn master_user_secret_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1762 self.inner = self.inner.master_user_secret_kms_key_id(input.into());
1763 self
1764 }
1765 /// <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>
1766 /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster.</p>
1767 /// <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>
1768 /// <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>
1769 /// <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>
1770 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1771 pub fn set_master_user_secret_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1772 self.inner = self.inner.set_master_user_secret_kms_key_id(input);
1773 self
1774 }
1775 /// <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>
1776 /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster.</p>
1777 /// <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>
1778 /// <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>
1779 /// <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>
1780 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1781 pub fn get_master_user_secret_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
1782 self.inner.get_master_user_secret_kms_key_id()
1783 }
1784 /// <p>The CA certificate identifier to use for the DB cluster's server certificate.</p>
1785 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1786 /// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
1787 pub fn ca_certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1788 self.inner = self.inner.ca_certificate_identifier(input.into());
1789 self
1790 }
1791 /// <p>The CA certificate identifier to use for the DB cluster's server certificate.</p>
1792 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1793 /// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
1794 pub fn set_ca_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1795 self.inner = self.inner.set_ca_certificate_identifier(input);
1796 self
1797 }
1798 /// <p>The CA certificate identifier to use for the DB cluster's server certificate.</p>
1799 /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1800 /// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
1801 pub fn get_ca_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
1802 self.inner.get_ca_certificate_identifier()
1803 }
1804 /// <p>The life cycle type for this DB cluster.</p><note>
1805 /// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB cluster 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 cluster will fail if the DB major version is past its end of standard support date.</p>
1806 /// </note>
1807 /// <p>You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:</p>
1808 /// <ul>
1809 /// <li>
1810 /// <p>Amazon Aurora - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html">Amazon RDS Extended Support with Amazon Aurora</a> in the <i>Amazon Aurora User Guide</i></p></li>
1811 /// <li>
1812 /// <p>Amazon RDS - <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></li>
1813 /// </ul>
1814 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1815 /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
1816 /// <p>Default: <code>open-source-rds-extended-support</code></p>
1817 pub fn engine_lifecycle_support(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1818 self.inner = self.inner.engine_lifecycle_support(input.into());
1819 self
1820 }
1821 /// <p>The life cycle type for this DB cluster.</p><note>
1822 /// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB cluster 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 cluster will fail if the DB major version is past its end of standard support date.</p>
1823 /// </note>
1824 /// <p>You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:</p>
1825 /// <ul>
1826 /// <li>
1827 /// <p>Amazon Aurora - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html">Amazon RDS Extended Support with Amazon Aurora</a> in the <i>Amazon Aurora User Guide</i></p></li>
1828 /// <li>
1829 /// <p>Amazon RDS - <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></li>
1830 /// </ul>
1831 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1832 /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
1833 /// <p>Default: <code>open-source-rds-extended-support</code></p>
1834 pub fn set_engine_lifecycle_support(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1835 self.inner = self.inner.set_engine_lifecycle_support(input);
1836 self
1837 }
1838 /// <p>The life cycle type for this DB cluster.</p><note>
1839 /// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB cluster 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 cluster will fail if the DB major version is past its end of standard support date.</p>
1840 /// </note>
1841 /// <p>You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:</p>
1842 /// <ul>
1843 /// <li>
1844 /// <p>Amazon Aurora - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html">Amazon RDS Extended Support with Amazon Aurora</a> in the <i>Amazon Aurora User Guide</i></p></li>
1845 /// <li>
1846 /// <p>Amazon RDS - <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></li>
1847 /// </ul>
1848 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1849 /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
1850 /// <p>Default: <code>open-source-rds-extended-support</code></p>
1851 pub fn get_engine_lifecycle_support(&self) -> &::std::option::Option<::std::string::String> {
1852 self.inner.get_engine_lifecycle_support()
1853 }
1854 /// <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 cluster.</p>
1855 /// <p>You can specify one of the following values:</p>
1856 /// <ul>
1857 /// <li>
1858 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
1859 /// <li>
1860 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
1861 /// </ul>
1862 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1863 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
1864 pub fn master_user_authentication_type(mut self, input: crate::types::MasterUserAuthenticationType) -> Self {
1865 self.inner = self.inner.master_user_authentication_type(input);
1866 self
1867 }
1868 /// <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 cluster.</p>
1869 /// <p>You can specify one of the following values:</p>
1870 /// <ul>
1871 /// <li>
1872 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
1873 /// <li>
1874 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
1875 /// </ul>
1876 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1877 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
1878 pub fn set_master_user_authentication_type(mut self, input: ::std::option::Option<crate::types::MasterUserAuthenticationType>) -> Self {
1879 self.inner = self.inner.set_master_user_authentication_type(input);
1880 self
1881 }
1882 /// <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 cluster.</p>
1883 /// <p>You can specify one of the following values:</p>
1884 /// <ul>
1885 /// <li>
1886 /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
1887 /// <li>
1888 /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
1889 /// </ul>
1890 /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1891 /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
1892 pub fn get_master_user_authentication_type(&self) -> &::std::option::Option<crate::types::MasterUserAuthenticationType> {
1893 self.inner.get_master_user_authentication_type()
1894 }
1895}