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