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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Information about an Amazon RDS DB cluster.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AwsRdsDbClusterDetails {
/// <p>For all database engines except Aurora, specifies the allocated storage size in gibibytes (GiB).</p>
#[doc(hidden)]
pub allocated_storage: i32,
/// <p>A list of Availability Zones (AZs) where instances in the DB cluster can be created.</p>
#[doc(hidden)]
pub availability_zones: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The number of days for which automated backups are retained.</p>
#[doc(hidden)]
pub backup_retention_period: i32,
/// <p>The name of the database.</p>
#[doc(hidden)]
pub database_name: ::std::option::Option<::std::string::String>,
/// <p>The current status of this DB cluster.</p>
#[doc(hidden)]
pub status: ::std::option::Option<::std::string::String>,
/// <p>The connection endpoint for the primary instance of the DB cluster.</p>
#[doc(hidden)]
pub endpoint: ::std::option::Option<::std::string::String>,
/// <p>The reader endpoint for the DB cluster.</p>
#[doc(hidden)]
pub reader_endpoint: ::std::option::Option<::std::string::String>,
/// <p>A list of custom endpoints for the DB cluster.</p>
#[doc(hidden)]
pub custom_endpoints: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>Whether the DB cluster has instances in multiple Availability Zones.</p>
#[doc(hidden)]
pub multi_az: bool,
/// <p>The name of the database engine to use for this DB cluster. Valid values are as follows:</p>
/// <ul>
/// <li> <p> <code>aurora</code> </p> </li>
/// <li> <p> <code>aurora-mysql</code> </p> </li>
/// <li> <p> <code>aurora-postgresql</code> </p> </li>
/// </ul>
#[doc(hidden)]
pub engine: ::std::option::Option<::std::string::String>,
/// <p>The version number of the database engine to use.</p>
#[doc(hidden)]
pub engine_version: ::std::option::Option<::std::string::String>,
/// <p>The port number on which the DB instances in the DB cluster accept connections.</p>
#[doc(hidden)]
pub port: i32,
/// <p>The name of the master user for the DB cluster.</p>
#[doc(hidden)]
pub master_username: ::std::option::Option<::std::string::String>,
/// <p>The range of time each day when automated backups are created, if automated backups are enabled.</p>
/// <p>Uses the format <code>HH:MM-HH:MM</code>. For example, <code>04:52-05:22</code>.</p>
#[doc(hidden)]
pub preferred_backup_window: ::std::option::Option<::std::string::String>,
/// <p>The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).</p>
/// <p>Uses the format <code>
/// <day>
/// :HH:MM-
/// <day>
/// :HH:MM
/// </day>
/// </day></code>.</p>
/// <p>For the day values, use <code>mon</code>|<code>tue</code>|<code>wed</code>|<code>thu</code>|<code>fri</code>|<code>sat</code>|<code>sun</code>.</p>
/// <p>For example, <code>sun:09:32-sun:10:02</code>.</p>
#[doc(hidden)]
pub preferred_maintenance_window: ::std::option::Option<::std::string::String>,
/// <p>The identifiers of the read replicas that are associated with this DB cluster.</p>
#[doc(hidden)]
pub read_replica_identifiers: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>A list of VPC security groups that the DB cluster belongs to.</p>
#[doc(hidden)]
pub vpc_security_groups:
::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbInstanceVpcSecurityGroup>>,
/// <p>Specifies the identifier that Amazon Route 53 assigns when you create a hosted zone.</p>
#[doc(hidden)]
pub hosted_zone_id: ::std::option::Option<::std::string::String>,
/// <p>Whether the DB cluster is encrypted.</p>
#[doc(hidden)]
pub storage_encrypted: bool,
/// <p>The ARN of the KMS master key that is used to encrypt the database instances in the DB cluster.</p>
#[doc(hidden)]
pub kms_key_id: ::std::option::Option<::std::string::String>,
/// <p>The identifier of the DB cluster. The identifier must be unique within each Amazon Web Services Region and is immutable.</p>
#[doc(hidden)]
pub db_cluster_resource_id: ::std::option::Option<::std::string::String>,
/// <p>A list of the IAM roles that are associated with the DB cluster.</p>
#[doc(hidden)]
pub associated_roles:
::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbClusterAssociatedRole>>,
/// <p>Indicates when the DB cluster was created, in Universal Coordinated Time (UTC).</p>
/// <p>Uses the <code>date-time</code> format specified in <a href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6, Internet Date/Time Format</a>. The value cannot contain spaces, and date and time should be separated by <code>T</code>. For example, <code>2020-03-22T13:22:13.933Z</code>.</p>
#[doc(hidden)]
pub cluster_create_time: ::std::option::Option<::std::string::String>,
/// <p>A list of log types that this DB cluster is configured to export to CloudWatch Logs.</p>
#[doc(hidden)]
pub enabled_cloud_watch_logs_exports:
::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The database engine mode of the DB cluster.Valid values are as follows:</p>
/// <ul>
/// <li> <p> <code>global</code> </p> </li>
/// <li> <p> <code>multimaster</code> </p> </li>
/// <li> <p> <code>parallelquery</code> </p> </li>
/// <li> <p> <code>provisioned</code> </p> </li>
/// <li> <p> <code>serverless</code> </p> </li>
/// </ul>
#[doc(hidden)]
pub engine_mode: ::std::option::Option<::std::string::String>,
/// <p>Whether the DB cluster has deletion protection enabled.</p>
#[doc(hidden)]
pub deletion_protection: bool,
/// <p>Whether the HTTP endpoint for an Aurora Serverless DB cluster is enabled.</p>
#[doc(hidden)]
pub http_endpoint_enabled: bool,
/// <p>The status of the database activity stream. Valid values are as follows:</p>
/// <ul>
/// <li> <p> <code>started</code> </p> </li>
/// <li> <p> <code>starting</code> </p> </li>
/// <li> <p> <code>stopped</code> </p> </li>
/// <li> <p> <code>stopping</code> </p> </li>
/// </ul>
#[doc(hidden)]
pub activity_stream_status: ::std::option::Option<::std::string::String>,
/// <p>Whether tags are copied from the DB cluster to snapshots of the DB cluster.</p>
#[doc(hidden)]
pub copy_tags_to_snapshot: bool,
/// <p>Whether the DB cluster is a clone of a DB cluster owned by a different Amazon Web Services account.</p>
#[doc(hidden)]
pub cross_account_clone: bool,
/// <p>The Active Directory domain membership records that are associated with the DB cluster.</p>
#[doc(hidden)]
pub domain_memberships:
::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbDomainMembership>>,
/// <p>The name of the DB cluster parameter group for the DB cluster.</p>
#[doc(hidden)]
pub db_cluster_parameter_group: ::std::option::Option<::std::string::String>,
/// <p>The subnet group that is associated with the DB cluster, including the name, description, and subnets in the subnet group.</p>
#[doc(hidden)]
pub db_subnet_group: ::std::option::Option<::std::string::String>,
/// <p>The list of option group memberships for this DB cluster.</p>
#[doc(hidden)]
pub db_cluster_option_group_memberships:
::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbClusterOptionGroupMembership>>,
/// <p>The DB cluster identifier that the user assigned to the cluster. This identifier is the unique key that identifies a DB cluster.</p>
#[doc(hidden)]
pub db_cluster_identifier: ::std::option::Option<::std::string::String>,
/// <p>The list of instances that make up the DB cluster.</p>
#[doc(hidden)]
pub db_cluster_members:
::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbClusterMember>>,
/// <p>Whether the mapping of IAM accounts to database accounts is enabled.</p>
#[doc(hidden)]
pub iam_database_authentication_enabled: bool,
}
impl AwsRdsDbClusterDetails {
/// <p>For all database engines except Aurora, specifies the allocated storage size in gibibytes (GiB).</p>
pub fn allocated_storage(&self) -> i32 {
self.allocated_storage
}
/// <p>A list of Availability Zones (AZs) where instances in the DB cluster can be created.</p>
pub fn availability_zones(&self) -> ::std::option::Option<&[::std::string::String]> {
self.availability_zones.as_deref()
}
/// <p>The number of days for which automated backups are retained.</p>
pub fn backup_retention_period(&self) -> i32 {
self.backup_retention_period
}
/// <p>The name of the database.</p>
pub fn database_name(&self) -> ::std::option::Option<&str> {
self.database_name.as_deref()
}
/// <p>The current status of this DB cluster.</p>
pub fn status(&self) -> ::std::option::Option<&str> {
self.status.as_deref()
}
/// <p>The connection endpoint for the primary instance of the DB cluster.</p>
pub fn endpoint(&self) -> ::std::option::Option<&str> {
self.endpoint.as_deref()
}
/// <p>The reader endpoint for the DB cluster.</p>
pub fn reader_endpoint(&self) -> ::std::option::Option<&str> {
self.reader_endpoint.as_deref()
}
/// <p>A list of custom endpoints for the DB cluster.</p>
pub fn custom_endpoints(&self) -> ::std::option::Option<&[::std::string::String]> {
self.custom_endpoints.as_deref()
}
/// <p>Whether the DB cluster has instances in multiple Availability Zones.</p>
pub fn multi_az(&self) -> bool {
self.multi_az
}
/// <p>The name of the database engine to use for this DB cluster. Valid values are as follows:</p>
/// <ul>
/// <li> <p> <code>aurora</code> </p> </li>
/// <li> <p> <code>aurora-mysql</code> </p> </li>
/// <li> <p> <code>aurora-postgresql</code> </p> </li>
/// </ul>
pub fn engine(&self) -> ::std::option::Option<&str> {
self.engine.as_deref()
}
/// <p>The version number of the database engine to use.</p>
pub fn engine_version(&self) -> ::std::option::Option<&str> {
self.engine_version.as_deref()
}
/// <p>The port number on which the DB instances in the DB cluster accept connections.</p>
pub fn port(&self) -> i32 {
self.port
}
/// <p>The name of the master user for the DB cluster.</p>
pub fn master_username(&self) -> ::std::option::Option<&str> {
self.master_username.as_deref()
}
/// <p>The range of time each day when automated backups are created, if automated backups are enabled.</p>
/// <p>Uses the format <code>HH:MM-HH:MM</code>. For example, <code>04:52-05:22</code>.</p>
pub fn preferred_backup_window(&self) -> ::std::option::Option<&str> {
self.preferred_backup_window.as_deref()
}
/// <p>The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).</p>
/// <p>Uses the format <code>
/// <day>
/// :HH:MM-
/// <day>
/// :HH:MM
/// </day>
/// </day></code>.</p>
/// <p>For the day values, use <code>mon</code>|<code>tue</code>|<code>wed</code>|<code>thu</code>|<code>fri</code>|<code>sat</code>|<code>sun</code>.</p>
/// <p>For example, <code>sun:09:32-sun:10:02</code>.</p>
pub fn preferred_maintenance_window(&self) -> ::std::option::Option<&str> {
self.preferred_maintenance_window.as_deref()
}
/// <p>The identifiers of the read replicas that are associated with this DB cluster.</p>
pub fn read_replica_identifiers(&self) -> ::std::option::Option<&[::std::string::String]> {
self.read_replica_identifiers.as_deref()
}
/// <p>A list of VPC security groups that the DB cluster belongs to.</p>
pub fn vpc_security_groups(
&self,
) -> ::std::option::Option<&[crate::types::AwsRdsDbInstanceVpcSecurityGroup]> {
self.vpc_security_groups.as_deref()
}
/// <p>Specifies the identifier that Amazon Route 53 assigns when you create a hosted zone.</p>
pub fn hosted_zone_id(&self) -> ::std::option::Option<&str> {
self.hosted_zone_id.as_deref()
}
/// <p>Whether the DB cluster is encrypted.</p>
pub fn storage_encrypted(&self) -> bool {
self.storage_encrypted
}
/// <p>The ARN of the KMS master key that is used to encrypt the database instances in the DB cluster.</p>
pub fn kms_key_id(&self) -> ::std::option::Option<&str> {
self.kms_key_id.as_deref()
}
/// <p>The identifier of the DB cluster. The identifier must be unique within each Amazon Web Services Region and is immutable.</p>
pub fn db_cluster_resource_id(&self) -> ::std::option::Option<&str> {
self.db_cluster_resource_id.as_deref()
}
/// <p>A list of the IAM roles that are associated with the DB cluster.</p>
pub fn associated_roles(
&self,
) -> ::std::option::Option<&[crate::types::AwsRdsDbClusterAssociatedRole]> {
self.associated_roles.as_deref()
}
/// <p>Indicates when the DB cluster was created, in Universal Coordinated Time (UTC).</p>
/// <p>Uses the <code>date-time</code> format specified in <a href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6, Internet Date/Time Format</a>. The value cannot contain spaces, and date and time should be separated by <code>T</code>. For example, <code>2020-03-22T13:22:13.933Z</code>.</p>
pub fn cluster_create_time(&self) -> ::std::option::Option<&str> {
self.cluster_create_time.as_deref()
}
/// <p>A list of log types that this DB cluster is configured to export to CloudWatch Logs.</p>
pub fn enabled_cloud_watch_logs_exports(
&self,
) -> ::std::option::Option<&[::std::string::String]> {
self.enabled_cloud_watch_logs_exports.as_deref()
}
/// <p>The database engine mode of the DB cluster.Valid values are as follows:</p>
/// <ul>
/// <li> <p> <code>global</code> </p> </li>
/// <li> <p> <code>multimaster</code> </p> </li>
/// <li> <p> <code>parallelquery</code> </p> </li>
/// <li> <p> <code>provisioned</code> </p> </li>
/// <li> <p> <code>serverless</code> </p> </li>
/// </ul>
pub fn engine_mode(&self) -> ::std::option::Option<&str> {
self.engine_mode.as_deref()
}
/// <p>Whether the DB cluster has deletion protection enabled.</p>
pub fn deletion_protection(&self) -> bool {
self.deletion_protection
}
/// <p>Whether the HTTP endpoint for an Aurora Serverless DB cluster is enabled.</p>
pub fn http_endpoint_enabled(&self) -> bool {
self.http_endpoint_enabled
}
/// <p>The status of the database activity stream. Valid values are as follows:</p>
/// <ul>
/// <li> <p> <code>started</code> </p> </li>
/// <li> <p> <code>starting</code> </p> </li>
/// <li> <p> <code>stopped</code> </p> </li>
/// <li> <p> <code>stopping</code> </p> </li>
/// </ul>
pub fn activity_stream_status(&self) -> ::std::option::Option<&str> {
self.activity_stream_status.as_deref()
}
/// <p>Whether tags are copied from the DB cluster to snapshots of the DB cluster.</p>
pub fn copy_tags_to_snapshot(&self) -> bool {
self.copy_tags_to_snapshot
}
/// <p>Whether the DB cluster is a clone of a DB cluster owned by a different Amazon Web Services account.</p>
pub fn cross_account_clone(&self) -> bool {
self.cross_account_clone
}
/// <p>The Active Directory domain membership records that are associated with the DB cluster.</p>
pub fn domain_memberships(
&self,
) -> ::std::option::Option<&[crate::types::AwsRdsDbDomainMembership]> {
self.domain_memberships.as_deref()
}
/// <p>The name of the DB cluster parameter group for the DB cluster.</p>
pub fn db_cluster_parameter_group(&self) -> ::std::option::Option<&str> {
self.db_cluster_parameter_group.as_deref()
}
/// <p>The subnet group that is associated with the DB cluster, including the name, description, and subnets in the subnet group.</p>
pub fn db_subnet_group(&self) -> ::std::option::Option<&str> {
self.db_subnet_group.as_deref()
}
/// <p>The list of option group memberships for this DB cluster.</p>
pub fn db_cluster_option_group_memberships(
&self,
) -> ::std::option::Option<&[crate::types::AwsRdsDbClusterOptionGroupMembership]> {
self.db_cluster_option_group_memberships.as_deref()
}
/// <p>The DB cluster identifier that the user assigned to the cluster. This identifier is the unique key that identifies a DB cluster.</p>
pub fn db_cluster_identifier(&self) -> ::std::option::Option<&str> {
self.db_cluster_identifier.as_deref()
}
/// <p>The list of instances that make up the DB cluster.</p>
pub fn db_cluster_members(
&self,
) -> ::std::option::Option<&[crate::types::AwsRdsDbClusterMember]> {
self.db_cluster_members.as_deref()
}
/// <p>Whether the mapping of IAM accounts to database accounts is enabled.</p>
pub fn iam_database_authentication_enabled(&self) -> bool {
self.iam_database_authentication_enabled
}
}
impl AwsRdsDbClusterDetails {
/// Creates a new builder-style object to manufacture [`AwsRdsDbClusterDetails`](crate::types::AwsRdsDbClusterDetails).
pub fn builder() -> crate::types::builders::AwsRdsDbClusterDetailsBuilder {
crate::types::builders::AwsRdsDbClusterDetailsBuilder::default()
}
}
/// A builder for [`AwsRdsDbClusterDetails`](crate::types::AwsRdsDbClusterDetails).
#[non_exhaustive]
#[derive(
::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
)]
pub struct AwsRdsDbClusterDetailsBuilder {
pub(crate) allocated_storage: ::std::option::Option<i32>,
pub(crate) availability_zones: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) backup_retention_period: ::std::option::Option<i32>,
pub(crate) database_name: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<::std::string::String>,
pub(crate) endpoint: ::std::option::Option<::std::string::String>,
pub(crate) reader_endpoint: ::std::option::Option<::std::string::String>,
pub(crate) custom_endpoints: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) multi_az: ::std::option::Option<bool>,
pub(crate) engine: ::std::option::Option<::std::string::String>,
pub(crate) engine_version: ::std::option::Option<::std::string::String>,
pub(crate) port: ::std::option::Option<i32>,
pub(crate) master_username: ::std::option::Option<::std::string::String>,
pub(crate) preferred_backup_window: ::std::option::Option<::std::string::String>,
pub(crate) preferred_maintenance_window: ::std::option::Option<::std::string::String>,
pub(crate) read_replica_identifiers:
::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) vpc_security_groups:
::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbInstanceVpcSecurityGroup>>,
pub(crate) hosted_zone_id: ::std::option::Option<::std::string::String>,
pub(crate) storage_encrypted: ::std::option::Option<bool>,
pub(crate) kms_key_id: ::std::option::Option<::std::string::String>,
pub(crate) db_cluster_resource_id: ::std::option::Option<::std::string::String>,
pub(crate) associated_roles:
::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbClusterAssociatedRole>>,
pub(crate) cluster_create_time: ::std::option::Option<::std::string::String>,
pub(crate) enabled_cloud_watch_logs_exports:
::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) engine_mode: ::std::option::Option<::std::string::String>,
pub(crate) deletion_protection: ::std::option::Option<bool>,
pub(crate) http_endpoint_enabled: ::std::option::Option<bool>,
pub(crate) activity_stream_status: ::std::option::Option<::std::string::String>,
pub(crate) copy_tags_to_snapshot: ::std::option::Option<bool>,
pub(crate) cross_account_clone: ::std::option::Option<bool>,
pub(crate) domain_memberships:
::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbDomainMembership>>,
pub(crate) db_cluster_parameter_group: ::std::option::Option<::std::string::String>,
pub(crate) db_subnet_group: ::std::option::Option<::std::string::String>,
pub(crate) db_cluster_option_group_memberships:
::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbClusterOptionGroupMembership>>,
pub(crate) db_cluster_identifier: ::std::option::Option<::std::string::String>,
pub(crate) db_cluster_members:
::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbClusterMember>>,
pub(crate) iam_database_authentication_enabled: ::std::option::Option<bool>,
}
impl AwsRdsDbClusterDetailsBuilder {
/// <p>For all database engines except Aurora, specifies the allocated storage size in gibibytes (GiB).</p>
pub fn allocated_storage(mut self, input: i32) -> Self {
self.allocated_storage = ::std::option::Option::Some(input);
self
}
/// <p>For all database engines except Aurora, specifies the allocated storage size in gibibytes (GiB).</p>
pub fn set_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
self.allocated_storage = input;
self
}
/// Appends an item to `availability_zones`.
///
/// To override the contents of this collection use [`set_availability_zones`](Self::set_availability_zones).
///
/// <p>A list of Availability Zones (AZs) where instances in the DB cluster can be created.</p>
pub fn availability_zones(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
let mut v = self.availability_zones.unwrap_or_default();
v.push(input.into());
self.availability_zones = ::std::option::Option::Some(v);
self
}
/// <p>A list of Availability Zones (AZs) where instances in the DB cluster can be created.</p>
pub fn set_availability_zones(
mut self,
input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
) -> Self {
self.availability_zones = input;
self
}
/// <p>The number of days for which automated backups are retained.</p>
pub fn backup_retention_period(mut self, input: i32) -> Self {
self.backup_retention_period = ::std::option::Option::Some(input);
self
}
/// <p>The number of days for which automated backups are retained.</p>
pub fn set_backup_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
self.backup_retention_period = input;
self
}
/// <p>The name of the database.</p>
pub fn database_name(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.database_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the database.</p>
pub fn set_database_name(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.database_name = input;
self
}
/// <p>The current status of this DB cluster.</p>
pub fn status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.status = ::std::option::Option::Some(input.into());
self
}
/// <p>The current status of this DB cluster.</p>
pub fn set_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.status = input;
self
}
/// <p>The connection endpoint for the primary instance of the DB cluster.</p>
pub fn endpoint(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.endpoint = ::std::option::Option::Some(input.into());
self
}
/// <p>The connection endpoint for the primary instance of the DB cluster.</p>
pub fn set_endpoint(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.endpoint = input;
self
}
/// <p>The reader endpoint for the DB cluster.</p>
pub fn reader_endpoint(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.reader_endpoint = ::std::option::Option::Some(input.into());
self
}
/// <p>The reader endpoint for the DB cluster.</p>
pub fn set_reader_endpoint(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.reader_endpoint = input;
self
}
/// Appends an item to `custom_endpoints`.
///
/// To override the contents of this collection use [`set_custom_endpoints`](Self::set_custom_endpoints).
///
/// <p>A list of custom endpoints for the DB cluster.</p>
pub fn custom_endpoints(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
let mut v = self.custom_endpoints.unwrap_or_default();
v.push(input.into());
self.custom_endpoints = ::std::option::Option::Some(v);
self
}
/// <p>A list of custom endpoints for the DB cluster.</p>
pub fn set_custom_endpoints(
mut self,
input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
) -> Self {
self.custom_endpoints = input;
self
}
/// <p>Whether the DB cluster has instances in multiple Availability Zones.</p>
pub fn multi_az(mut self, input: bool) -> Self {
self.multi_az = ::std::option::Option::Some(input);
self
}
/// <p>Whether the DB cluster has instances in multiple Availability Zones.</p>
pub fn set_multi_az(mut self, input: ::std::option::Option<bool>) -> Self {
self.multi_az = input;
self
}
/// <p>The name of the database engine to use for this DB cluster. Valid values are as follows:</p>
/// <ul>
/// <li> <p> <code>aurora</code> </p> </li>
/// <li> <p> <code>aurora-mysql</code> </p> </li>
/// <li> <p> <code>aurora-postgresql</code> </p> </li>
/// </ul>
pub fn engine(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.engine = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the database engine to use for this DB cluster. Valid values are as follows:</p>
/// <ul>
/// <li> <p> <code>aurora</code> </p> </li>
/// <li> <p> <code>aurora-mysql</code> </p> </li>
/// <li> <p> <code>aurora-postgresql</code> </p> </li>
/// </ul>
pub fn set_engine(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.engine = input;
self
}
/// <p>The version number of the database engine to use.</p>
pub fn engine_version(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.engine_version = ::std::option::Option::Some(input.into());
self
}
/// <p>The version number of the database engine to use.</p>
pub fn set_engine_version(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.engine_version = input;
self
}
/// <p>The port number on which the DB instances in the DB cluster accept connections.</p>
pub fn port(mut self, input: i32) -> Self {
self.port = ::std::option::Option::Some(input);
self
}
/// <p>The port number on which the DB instances in the DB cluster accept connections.</p>
pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
self.port = input;
self
}
/// <p>The name of the master user for the DB cluster.</p>
pub fn master_username(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.master_username = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the master user for the DB cluster.</p>
pub fn set_master_username(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.master_username = input;
self
}
/// <p>The range of time each day when automated backups are created, if automated backups are enabled.</p>
/// <p>Uses the format <code>HH:MM-HH:MM</code>. For example, <code>04:52-05:22</code>.</p>
pub fn preferred_backup_window(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.preferred_backup_window = ::std::option::Option::Some(input.into());
self
}
/// <p>The range of time each day when automated backups are created, if automated backups are enabled.</p>
/// <p>Uses the format <code>HH:MM-HH:MM</code>. For example, <code>04:52-05:22</code>.</p>
pub fn set_preferred_backup_window(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.preferred_backup_window = input;
self
}
/// <p>The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).</p>
/// <p>Uses the format <code>
/// <day>
/// :HH:MM-
/// <day>
/// :HH:MM
/// </day>
/// </day></code>.</p>
/// <p>For the day values, use <code>mon</code>|<code>tue</code>|<code>wed</code>|<code>thu</code>|<code>fri</code>|<code>sat</code>|<code>sun</code>.</p>
/// <p>For example, <code>sun:09:32-sun:10:02</code>.</p>
pub fn preferred_maintenance_window(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.preferred_maintenance_window = ::std::option::Option::Some(input.into());
self
}
/// <p>The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).</p>
/// <p>Uses the format <code>
/// <day>
/// :HH:MM-
/// <day>
/// :HH:MM
/// </day>
/// </day></code>.</p>
/// <p>For the day values, use <code>mon</code>|<code>tue</code>|<code>wed</code>|<code>thu</code>|<code>fri</code>|<code>sat</code>|<code>sun</code>.</p>
/// <p>For example, <code>sun:09:32-sun:10:02</code>.</p>
pub fn set_preferred_maintenance_window(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.preferred_maintenance_window = input;
self
}
/// Appends an item to `read_replica_identifiers`.
///
/// To override the contents of this collection use [`set_read_replica_identifiers`](Self::set_read_replica_identifiers).
///
/// <p>The identifiers of the read replicas that are associated with this DB cluster.</p>
pub fn read_replica_identifiers(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
let mut v = self.read_replica_identifiers.unwrap_or_default();
v.push(input.into());
self.read_replica_identifiers = ::std::option::Option::Some(v);
self
}
/// <p>The identifiers of the read replicas that are associated with this DB cluster.</p>
pub fn set_read_replica_identifiers(
mut self,
input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
) -> Self {
self.read_replica_identifiers = input;
self
}
/// Appends an item to `vpc_security_groups`.
///
/// To override the contents of this collection use [`set_vpc_security_groups`](Self::set_vpc_security_groups).
///
/// <p>A list of VPC security groups that the DB cluster belongs to.</p>
pub fn vpc_security_groups(
mut self,
input: crate::types::AwsRdsDbInstanceVpcSecurityGroup,
) -> Self {
let mut v = self.vpc_security_groups.unwrap_or_default();
v.push(input);
self.vpc_security_groups = ::std::option::Option::Some(v);
self
}
/// <p>A list of VPC security groups that the DB cluster belongs to.</p>
pub fn set_vpc_security_groups(
mut self,
input: ::std::option::Option<
::std::vec::Vec<crate::types::AwsRdsDbInstanceVpcSecurityGroup>,
>,
) -> Self {
self.vpc_security_groups = input;
self
}
/// <p>Specifies the identifier that Amazon Route 53 assigns when you create a hosted zone.</p>
pub fn hosted_zone_id(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.hosted_zone_id = ::std::option::Option::Some(input.into());
self
}
/// <p>Specifies the identifier that Amazon Route 53 assigns when you create a hosted zone.</p>
pub fn set_hosted_zone_id(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.hosted_zone_id = input;
self
}
/// <p>Whether the DB cluster is encrypted.</p>
pub fn storage_encrypted(mut self, input: bool) -> Self {
self.storage_encrypted = ::std::option::Option::Some(input);
self
}
/// <p>Whether the DB cluster is encrypted.</p>
pub fn set_storage_encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
self.storage_encrypted = input;
self
}
/// <p>The ARN of the KMS master key that is used to encrypt the database instances in the DB cluster.</p>
pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.kms_key_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the KMS master key that is used to encrypt the database instances in the DB cluster.</p>
pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.kms_key_id = input;
self
}
/// <p>The identifier of the DB cluster. The identifier must be unique within each Amazon Web Services Region and is immutable.</p>
pub fn db_cluster_resource_id(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.db_cluster_resource_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The identifier of the DB cluster. The identifier must be unique within each Amazon Web Services Region and is immutable.</p>
pub fn set_db_cluster_resource_id(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.db_cluster_resource_id = input;
self
}
/// Appends an item to `associated_roles`.
///
/// To override the contents of this collection use [`set_associated_roles`](Self::set_associated_roles).
///
/// <p>A list of the IAM roles that are associated with the DB cluster.</p>
pub fn associated_roles(mut self, input: crate::types::AwsRdsDbClusterAssociatedRole) -> Self {
let mut v = self.associated_roles.unwrap_or_default();
v.push(input);
self.associated_roles = ::std::option::Option::Some(v);
self
}
/// <p>A list of the IAM roles that are associated with the DB cluster.</p>
pub fn set_associated_roles(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbClusterAssociatedRole>>,
) -> Self {
self.associated_roles = input;
self
}
/// <p>Indicates when the DB cluster was created, in Universal Coordinated Time (UTC).</p>
/// <p>Uses the <code>date-time</code> format specified in <a href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6, Internet Date/Time Format</a>. The value cannot contain spaces, and date and time should be separated by <code>T</code>. For example, <code>2020-03-22T13:22:13.933Z</code>.</p>
pub fn cluster_create_time(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.cluster_create_time = ::std::option::Option::Some(input.into());
self
}
/// <p>Indicates when the DB cluster was created, in Universal Coordinated Time (UTC).</p>
/// <p>Uses the <code>date-time</code> format specified in <a href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6, Internet Date/Time Format</a>. The value cannot contain spaces, and date and time should be separated by <code>T</code>. For example, <code>2020-03-22T13:22:13.933Z</code>.</p>
pub fn set_cluster_create_time(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.cluster_create_time = input;
self
}
/// Appends an item to `enabled_cloud_watch_logs_exports`.
///
/// To override the contents of this collection use [`set_enabled_cloud_watch_logs_exports`](Self::set_enabled_cloud_watch_logs_exports).
///
/// <p>A list of log types that this DB cluster is configured to export to CloudWatch Logs.</p>
pub fn enabled_cloud_watch_logs_exports(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
let mut v = self.enabled_cloud_watch_logs_exports.unwrap_or_default();
v.push(input.into());
self.enabled_cloud_watch_logs_exports = ::std::option::Option::Some(v);
self
}
/// <p>A list of log types that this DB cluster is configured to export to CloudWatch Logs.</p>
pub fn set_enabled_cloud_watch_logs_exports(
mut self,
input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
) -> Self {
self.enabled_cloud_watch_logs_exports = input;
self
}
/// <p>The database engine mode of the DB cluster.Valid values are as follows:</p>
/// <ul>
/// <li> <p> <code>global</code> </p> </li>
/// <li> <p> <code>multimaster</code> </p> </li>
/// <li> <p> <code>parallelquery</code> </p> </li>
/// <li> <p> <code>provisioned</code> </p> </li>
/// <li> <p> <code>serverless</code> </p> </li>
/// </ul>
pub fn engine_mode(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.engine_mode = ::std::option::Option::Some(input.into());
self
}
/// <p>The database engine mode of the DB cluster.Valid values are as follows:</p>
/// <ul>
/// <li> <p> <code>global</code> </p> </li>
/// <li> <p> <code>multimaster</code> </p> </li>
/// <li> <p> <code>parallelquery</code> </p> </li>
/// <li> <p> <code>provisioned</code> </p> </li>
/// <li> <p> <code>serverless</code> </p> </li>
/// </ul>
pub fn set_engine_mode(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.engine_mode = input;
self
}
/// <p>Whether the DB cluster has deletion protection enabled.</p>
pub fn deletion_protection(mut self, input: bool) -> Self {
self.deletion_protection = ::std::option::Option::Some(input);
self
}
/// <p>Whether the DB cluster has deletion protection enabled.</p>
pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
self.deletion_protection = input;
self
}
/// <p>Whether the HTTP endpoint for an Aurora Serverless DB cluster is enabled.</p>
pub fn http_endpoint_enabled(mut self, input: bool) -> Self {
self.http_endpoint_enabled = ::std::option::Option::Some(input);
self
}
/// <p>Whether the HTTP endpoint for an Aurora Serverless DB cluster is enabled.</p>
pub fn set_http_endpoint_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.http_endpoint_enabled = input;
self
}
/// <p>The status of the database activity stream. Valid values are as follows:</p>
/// <ul>
/// <li> <p> <code>started</code> </p> </li>
/// <li> <p> <code>starting</code> </p> </li>
/// <li> <p> <code>stopped</code> </p> </li>
/// <li> <p> <code>stopping</code> </p> </li>
/// </ul>
pub fn activity_stream_status(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.activity_stream_status = ::std::option::Option::Some(input.into());
self
}
/// <p>The status of the database activity stream. Valid values are as follows:</p>
/// <ul>
/// <li> <p> <code>started</code> </p> </li>
/// <li> <p> <code>starting</code> </p> </li>
/// <li> <p> <code>stopped</code> </p> </li>
/// <li> <p> <code>stopping</code> </p> </li>
/// </ul>
pub fn set_activity_stream_status(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.activity_stream_status = input;
self
}
/// <p>Whether tags are copied from the DB cluster to snapshots of the DB cluster.</p>
pub fn copy_tags_to_snapshot(mut self, input: bool) -> Self {
self.copy_tags_to_snapshot = ::std::option::Option::Some(input);
self
}
/// <p>Whether tags are copied from the DB cluster to snapshots of the DB cluster.</p>
pub fn set_copy_tags_to_snapshot(mut self, input: ::std::option::Option<bool>) -> Self {
self.copy_tags_to_snapshot = input;
self
}
/// <p>Whether the DB cluster is a clone of a DB cluster owned by a different Amazon Web Services account.</p>
pub fn cross_account_clone(mut self, input: bool) -> Self {
self.cross_account_clone = ::std::option::Option::Some(input);
self
}
/// <p>Whether the DB cluster is a clone of a DB cluster owned by a different Amazon Web Services account.</p>
pub fn set_cross_account_clone(mut self, input: ::std::option::Option<bool>) -> Self {
self.cross_account_clone = input;
self
}
/// Appends an item to `domain_memberships`.
///
/// To override the contents of this collection use [`set_domain_memberships`](Self::set_domain_memberships).
///
/// <p>The Active Directory domain membership records that are associated with the DB cluster.</p>
pub fn domain_memberships(mut self, input: crate::types::AwsRdsDbDomainMembership) -> Self {
let mut v = self.domain_memberships.unwrap_or_default();
v.push(input);
self.domain_memberships = ::std::option::Option::Some(v);
self
}
/// <p>The Active Directory domain membership records that are associated with the DB cluster.</p>
pub fn set_domain_memberships(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbDomainMembership>>,
) -> Self {
self.domain_memberships = input;
self
}
/// <p>The name of the DB cluster parameter group for the DB cluster.</p>
pub fn db_cluster_parameter_group(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.db_cluster_parameter_group = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the DB cluster parameter group for the DB cluster.</p>
pub fn set_db_cluster_parameter_group(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.db_cluster_parameter_group = input;
self
}
/// <p>The subnet group that is associated with the DB cluster, including the name, description, and subnets in the subnet group.</p>
pub fn db_subnet_group(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.db_subnet_group = ::std::option::Option::Some(input.into());
self
}
/// <p>The subnet group that is associated with the DB cluster, including the name, description, and subnets in the subnet group.</p>
pub fn set_db_subnet_group(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.db_subnet_group = input;
self
}
/// Appends an item to `db_cluster_option_group_memberships`.
///
/// To override the contents of this collection use [`set_db_cluster_option_group_memberships`](Self::set_db_cluster_option_group_memberships).
///
/// <p>The list of option group memberships for this DB cluster.</p>
pub fn db_cluster_option_group_memberships(
mut self,
input: crate::types::AwsRdsDbClusterOptionGroupMembership,
) -> Self {
let mut v = self.db_cluster_option_group_memberships.unwrap_or_default();
v.push(input);
self.db_cluster_option_group_memberships = ::std::option::Option::Some(v);
self
}
/// <p>The list of option group memberships for this DB cluster.</p>
pub fn set_db_cluster_option_group_memberships(
mut self,
input: ::std::option::Option<
::std::vec::Vec<crate::types::AwsRdsDbClusterOptionGroupMembership>,
>,
) -> Self {
self.db_cluster_option_group_memberships = input;
self
}
/// <p>The DB cluster identifier that the user assigned to the cluster. This identifier is the unique key that identifies a DB cluster.</p>
pub fn db_cluster_identifier(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.db_cluster_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The DB cluster identifier that the user assigned to the cluster. This identifier is the unique key that identifies a DB cluster.</p>
pub fn set_db_cluster_identifier(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.db_cluster_identifier = input;
self
}
/// Appends an item to `db_cluster_members`.
///
/// To override the contents of this collection use [`set_db_cluster_members`](Self::set_db_cluster_members).
///
/// <p>The list of instances that make up the DB cluster.</p>
pub fn db_cluster_members(mut self, input: crate::types::AwsRdsDbClusterMember) -> Self {
let mut v = self.db_cluster_members.unwrap_or_default();
v.push(input);
self.db_cluster_members = ::std::option::Option::Some(v);
self
}
/// <p>The list of instances that make up the DB cluster.</p>
pub fn set_db_cluster_members(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbClusterMember>>,
) -> Self {
self.db_cluster_members = input;
self
}
/// <p>Whether the mapping of IAM accounts to database accounts is enabled.</p>
pub fn iam_database_authentication_enabled(mut self, input: bool) -> Self {
self.iam_database_authentication_enabled = ::std::option::Option::Some(input);
self
}
/// <p>Whether the mapping of IAM accounts to database accounts is enabled.</p>
pub fn set_iam_database_authentication_enabled(
mut self,
input: ::std::option::Option<bool>,
) -> Self {
self.iam_database_authentication_enabled = input;
self
}
/// Consumes the builder and constructs a [`AwsRdsDbClusterDetails`](crate::types::AwsRdsDbClusterDetails).
pub fn build(self) -> crate::types::AwsRdsDbClusterDetails {
crate::types::AwsRdsDbClusterDetails {
allocated_storage: self.allocated_storage.unwrap_or_default(),
availability_zones: self.availability_zones,
backup_retention_period: self.backup_retention_period.unwrap_or_default(),
database_name: self.database_name,
status: self.status,
endpoint: self.endpoint,
reader_endpoint: self.reader_endpoint,
custom_endpoints: self.custom_endpoints,
multi_az: self.multi_az.unwrap_or_default(),
engine: self.engine,
engine_version: self.engine_version,
port: self.port.unwrap_or_default(),
master_username: self.master_username,
preferred_backup_window: self.preferred_backup_window,
preferred_maintenance_window: self.preferred_maintenance_window,
read_replica_identifiers: self.read_replica_identifiers,
vpc_security_groups: self.vpc_security_groups,
hosted_zone_id: self.hosted_zone_id,
storage_encrypted: self.storage_encrypted.unwrap_or_default(),
kms_key_id: self.kms_key_id,
db_cluster_resource_id: self.db_cluster_resource_id,
associated_roles: self.associated_roles,
cluster_create_time: self.cluster_create_time,
enabled_cloud_watch_logs_exports: self.enabled_cloud_watch_logs_exports,
engine_mode: self.engine_mode,
deletion_protection: self.deletion_protection.unwrap_or_default(),
http_endpoint_enabled: self.http_endpoint_enabled.unwrap_or_default(),
activity_stream_status: self.activity_stream_status,
copy_tags_to_snapshot: self.copy_tags_to_snapshot.unwrap_or_default(),
cross_account_clone: self.cross_account_clone.unwrap_or_default(),
domain_memberships: self.domain_memberships,
db_cluster_parameter_group: self.db_cluster_parameter_group,
db_subnet_group: self.db_subnet_group,
db_cluster_option_group_memberships: self.db_cluster_option_group_memberships,
db_cluster_identifier: self.db_cluster_identifier,
db_cluster_members: self.db_cluster_members,
iam_database_authentication_enabled: self
.iam_database_authentication_enabled
.unwrap_or_default(),
}
}
}