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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>This data type is used as a response element in the action <code>DescribeDBEngineVersions</code>.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DbEngineVersion {
/// <p>The name of the database engine.</p>
#[doc(hidden)]
pub engine: std::option::Option<std::string::String>,
/// <p>The version number of the database engine.</p>
#[doc(hidden)]
pub engine_version: std::option::Option<std::string::String>,
/// <p>The name of the DB parameter group family for the database engine.</p>
#[doc(hidden)]
pub db_parameter_group_family: std::option::Option<std::string::String>,
/// <p>The description of the database engine.</p>
#[doc(hidden)]
pub db_engine_description: std::option::Option<std::string::String>,
/// <p>The description of the database engine version.</p>
#[doc(hidden)]
pub db_engine_version_description: std::option::Option<std::string::String>,
/// <p>The default character set for new instances of this engine version, if the <code>CharacterSetName</code> parameter of the CreateDBInstance API isn't specified.</p>
#[doc(hidden)]
pub default_character_set: std::option::Option<crate::types::CharacterSet>,
/// <p>The EC2 image</p>
#[doc(hidden)]
pub image: std::option::Option<crate::types::CustomDbEngineVersionAmi>,
/// <p>A value that indicates the source media provider of the AMI based on the usage operation. Applicable for RDS Custom for SQL Server.</p>
#[doc(hidden)]
pub db_engine_media_type: std::option::Option<std::string::String>,
/// <p>A list of the character sets supported by this engine for the <code>CharacterSetName</code> parameter of the <code>CreateDBInstance</code> operation.</p>
#[doc(hidden)]
pub supported_character_sets: std::option::Option<std::vec::Vec<crate::types::CharacterSet>>,
/// <p>A list of the character sets supported by the Oracle DB engine for the <code>NcharCharacterSetName</code> parameter of the <code>CreateDBInstance</code> operation.</p>
#[doc(hidden)]
pub supported_nchar_character_sets:
std::option::Option<std::vec::Vec<crate::types::CharacterSet>>,
/// <p>A list of engine versions that this database engine version can be upgraded to.</p>
#[doc(hidden)]
pub valid_upgrade_target: std::option::Option<std::vec::Vec<crate::types::UpgradeTarget>>,
/// <p>A list of the time zones supported by this engine for the <code>Timezone</code> parameter of the <code>CreateDBInstance</code> action.</p>
#[doc(hidden)]
pub supported_timezones: std::option::Option<std::vec::Vec<crate::types::Timezone>>,
/// <p>The types of logs that the database engine has available for export to CloudWatch Logs.</p>
#[doc(hidden)]
pub exportable_log_types: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>A value that indicates whether the engine version supports exporting the log types specified by ExportableLogTypes to CloudWatch Logs.</p>
#[doc(hidden)]
pub supports_log_exports_to_cloudwatch_logs: bool,
/// <p>Indicates whether the database engine version supports read replicas.</p>
#[doc(hidden)]
pub supports_read_replica: bool,
/// <p>A list of the supported DB engine modes.</p>
#[doc(hidden)]
pub supported_engine_modes: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>A list of features supported by the DB engine.</p>
/// <p>The supported features vary by DB engine and DB engine version.</p>
/// <p>To determine the supported features for a specific DB engine and DB engine version using the CLI, use the following command:</p>
/// <p> <code>aws rds describe-db-engine-versions --engine
/// <engine_name>
/// --engine-version
/// <engine_version></engine_version>
/// </engine_name></code> </p>
/// <p>For example, to determine the supported features for RDS for PostgreSQL version 13.3 using the CLI, use the following command:</p>
/// <p> <code>aws rds describe-db-engine-versions --engine postgres --engine-version 13.3</code> </p>
/// <p>The supported features are listed under <code>SupportedFeatureNames</code> in the output.</p>
#[doc(hidden)]
pub supported_feature_names: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>The status of the DB engine version, either <code>available</code> or <code>deprecated</code>.</p>
#[doc(hidden)]
pub status: std::option::Option<std::string::String>,
/// <p>A value that indicates whether you can use Aurora parallel query with a specific DB engine version.</p>
#[doc(hidden)]
pub supports_parallel_query: bool,
/// <p>A value that indicates whether you can use Aurora global databases with a specific DB engine version.</p>
#[doc(hidden)]
pub supports_global_databases: bool,
/// <p>The major engine version of the CEV.</p>
#[doc(hidden)]
pub major_engine_version: std::option::Option<std::string::String>,
/// <p>The name of the Amazon S3 bucket that contains your database installation files.</p>
#[doc(hidden)]
pub database_installation_files_s3_bucket_name: std::option::Option<std::string::String>,
/// <p>The Amazon S3 directory that contains the database installation files. If not specified, then no prefix is assumed.</p>
#[doc(hidden)]
pub database_installation_files_s3_prefix: std::option::Option<std::string::String>,
/// <p>The ARN of the custom engine version.</p>
#[doc(hidden)]
pub db_engine_version_arn: std::option::Option<std::string::String>,
/// <p>The Amazon Web Services KMS key identifier for an encrypted CEV. This parameter is required for RDS Custom, but optional for Amazon RDS.</p>
#[doc(hidden)]
pub kms_key_id: std::option::Option<std::string::String>,
/// <p>The creation time of the DB engine version.</p>
#[doc(hidden)]
pub create_time: std::option::Option<aws_smithy_types::DateTime>,
/// <p>A list of tags. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS Resources</a> in the <i>Amazon RDS User Guide.</i> </p>
#[doc(hidden)]
pub tag_list: std::option::Option<std::vec::Vec<crate::types::Tag>>,
/// <p>A value that indicates whether the engine version supports Babelfish for Aurora PostgreSQL.</p>
#[doc(hidden)]
pub supports_babelfish: bool,
/// <p>JSON string that lists the installation files and parameters that RDS Custom uses to create a custom engine version (CEV). RDS Custom applies the patches in the order in which they're listed in the manifest. You can set the Oracle home, Oracle base, and UNIX/Linux user and group using the installation parameters. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.preparing.html#custom-cev.preparing.manifest.fields">JSON fields in the CEV manifest</a> in the <i>Amazon RDS User Guide</i>. </p>
#[doc(hidden)]
pub custom_db_engine_version_manifest: std::option::Option<std::string::String>,
/// <p>A value that indicates whether the engine version supports rotating the server certificate without rebooting the DB instance.</p>
#[doc(hidden)]
pub supports_certificate_rotation_without_restart: std::option::Option<bool>,
/// <p>A list of the supported CA certificate identifiers.</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>
#[doc(hidden)]
pub supported_ca_certificate_identifiers:
std::option::Option<std::vec::Vec<std::string::String>>,
}
impl DbEngineVersion {
/// <p>The name of the database engine.</p>
pub fn engine(&self) -> std::option::Option<&str> {
self.engine.as_deref()
}
/// <p>The version number of the database engine.</p>
pub fn engine_version(&self) -> std::option::Option<&str> {
self.engine_version.as_deref()
}
/// <p>The name of the DB parameter group family for the database engine.</p>
pub fn db_parameter_group_family(&self) -> std::option::Option<&str> {
self.db_parameter_group_family.as_deref()
}
/// <p>The description of the database engine.</p>
pub fn db_engine_description(&self) -> std::option::Option<&str> {
self.db_engine_description.as_deref()
}
/// <p>The description of the database engine version.</p>
pub fn db_engine_version_description(&self) -> std::option::Option<&str> {
self.db_engine_version_description.as_deref()
}
/// <p>The default character set for new instances of this engine version, if the <code>CharacterSetName</code> parameter of the CreateDBInstance API isn't specified.</p>
pub fn default_character_set(&self) -> std::option::Option<&crate::types::CharacterSet> {
self.default_character_set.as_ref()
}
/// <p>The EC2 image</p>
pub fn image(&self) -> std::option::Option<&crate::types::CustomDbEngineVersionAmi> {
self.image.as_ref()
}
/// <p>A value that indicates the source media provider of the AMI based on the usage operation. Applicable for RDS Custom for SQL Server.</p>
pub fn db_engine_media_type(&self) -> std::option::Option<&str> {
self.db_engine_media_type.as_deref()
}
/// <p>A list of the character sets supported by this engine for the <code>CharacterSetName</code> parameter of the <code>CreateDBInstance</code> operation.</p>
pub fn supported_character_sets(&self) -> std::option::Option<&[crate::types::CharacterSet]> {
self.supported_character_sets.as_deref()
}
/// <p>A list of the character sets supported by the Oracle DB engine for the <code>NcharCharacterSetName</code> parameter of the <code>CreateDBInstance</code> operation.</p>
pub fn supported_nchar_character_sets(
&self,
) -> std::option::Option<&[crate::types::CharacterSet]> {
self.supported_nchar_character_sets.as_deref()
}
/// <p>A list of engine versions that this database engine version can be upgraded to.</p>
pub fn valid_upgrade_target(&self) -> std::option::Option<&[crate::types::UpgradeTarget]> {
self.valid_upgrade_target.as_deref()
}
/// <p>A list of the time zones supported by this engine for the <code>Timezone</code> parameter of the <code>CreateDBInstance</code> action.</p>
pub fn supported_timezones(&self) -> std::option::Option<&[crate::types::Timezone]> {
self.supported_timezones.as_deref()
}
/// <p>The types of logs that the database engine has available for export to CloudWatch Logs.</p>
pub fn exportable_log_types(&self) -> std::option::Option<&[std::string::String]> {
self.exportable_log_types.as_deref()
}
/// <p>A value that indicates whether the engine version supports exporting the log types specified by ExportableLogTypes to CloudWatch Logs.</p>
pub fn supports_log_exports_to_cloudwatch_logs(&self) -> bool {
self.supports_log_exports_to_cloudwatch_logs
}
/// <p>Indicates whether the database engine version supports read replicas.</p>
pub fn supports_read_replica(&self) -> bool {
self.supports_read_replica
}
/// <p>A list of the supported DB engine modes.</p>
pub fn supported_engine_modes(&self) -> std::option::Option<&[std::string::String]> {
self.supported_engine_modes.as_deref()
}
/// <p>A list of features supported by the DB engine.</p>
/// <p>The supported features vary by DB engine and DB engine version.</p>
/// <p>To determine the supported features for a specific DB engine and DB engine version using the CLI, use the following command:</p>
/// <p> <code>aws rds describe-db-engine-versions --engine
/// <engine_name>
/// --engine-version
/// <engine_version></engine_version>
/// </engine_name></code> </p>
/// <p>For example, to determine the supported features for RDS for PostgreSQL version 13.3 using the CLI, use the following command:</p>
/// <p> <code>aws rds describe-db-engine-versions --engine postgres --engine-version 13.3</code> </p>
/// <p>The supported features are listed under <code>SupportedFeatureNames</code> in the output.</p>
pub fn supported_feature_names(&self) -> std::option::Option<&[std::string::String]> {
self.supported_feature_names.as_deref()
}
/// <p>The status of the DB engine version, either <code>available</code> or <code>deprecated</code>.</p>
pub fn status(&self) -> std::option::Option<&str> {
self.status.as_deref()
}
/// <p>A value that indicates whether you can use Aurora parallel query with a specific DB engine version.</p>
pub fn supports_parallel_query(&self) -> bool {
self.supports_parallel_query
}
/// <p>A value that indicates whether you can use Aurora global databases with a specific DB engine version.</p>
pub fn supports_global_databases(&self) -> bool {
self.supports_global_databases
}
/// <p>The major engine version of the CEV.</p>
pub fn major_engine_version(&self) -> std::option::Option<&str> {
self.major_engine_version.as_deref()
}
/// <p>The name of the Amazon S3 bucket that contains your database installation files.</p>
pub fn database_installation_files_s3_bucket_name(&self) -> std::option::Option<&str> {
self.database_installation_files_s3_bucket_name.as_deref()
}
/// <p>The Amazon S3 directory that contains the database installation files. If not specified, then no prefix is assumed.</p>
pub fn database_installation_files_s3_prefix(&self) -> std::option::Option<&str> {
self.database_installation_files_s3_prefix.as_deref()
}
/// <p>The ARN of the custom engine version.</p>
pub fn db_engine_version_arn(&self) -> std::option::Option<&str> {
self.db_engine_version_arn.as_deref()
}
/// <p>The Amazon Web Services KMS key identifier for an encrypted CEV. This parameter is required for RDS Custom, but optional for Amazon RDS.</p>
pub fn kms_key_id(&self) -> std::option::Option<&str> {
self.kms_key_id.as_deref()
}
/// <p>The creation time of the DB engine version.</p>
pub fn create_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.create_time.as_ref()
}
/// <p>A list of tags. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS Resources</a> in the <i>Amazon RDS User Guide.</i> </p>
pub fn tag_list(&self) -> std::option::Option<&[crate::types::Tag]> {
self.tag_list.as_deref()
}
/// <p>A value that indicates whether the engine version supports Babelfish for Aurora PostgreSQL.</p>
pub fn supports_babelfish(&self) -> bool {
self.supports_babelfish
}
/// <p>JSON string that lists the installation files and parameters that RDS Custom uses to create a custom engine version (CEV). RDS Custom applies the patches in the order in which they're listed in the manifest. You can set the Oracle home, Oracle base, and UNIX/Linux user and group using the installation parameters. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.preparing.html#custom-cev.preparing.manifest.fields">JSON fields in the CEV manifest</a> in the <i>Amazon RDS User Guide</i>. </p>
pub fn custom_db_engine_version_manifest(&self) -> std::option::Option<&str> {
self.custom_db_engine_version_manifest.as_deref()
}
/// <p>A value that indicates whether the engine version supports rotating the server certificate without rebooting the DB instance.</p>
pub fn supports_certificate_rotation_without_restart(&self) -> std::option::Option<bool> {
self.supports_certificate_rotation_without_restart
}
/// <p>A list of the supported CA certificate identifiers.</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 supported_ca_certificate_identifiers(
&self,
) -> std::option::Option<&[std::string::String]> {
self.supported_ca_certificate_identifiers.as_deref()
}
}
impl DbEngineVersion {
/// Creates a new builder-style object to manufacture [`DbEngineVersion`](crate::types::DbEngineVersion).
pub fn builder() -> crate::types::builders::DbEngineVersionBuilder {
crate::types::builders::DbEngineVersionBuilder::default()
}
}
/// A builder for [`DbEngineVersion`](crate::types::DbEngineVersion).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DbEngineVersionBuilder {
pub(crate) engine: std::option::Option<std::string::String>,
pub(crate) engine_version: std::option::Option<std::string::String>,
pub(crate) db_parameter_group_family: std::option::Option<std::string::String>,
pub(crate) db_engine_description: std::option::Option<std::string::String>,
pub(crate) db_engine_version_description: std::option::Option<std::string::String>,
pub(crate) default_character_set: std::option::Option<crate::types::CharacterSet>,
pub(crate) image: std::option::Option<crate::types::CustomDbEngineVersionAmi>,
pub(crate) db_engine_media_type: std::option::Option<std::string::String>,
pub(crate) supported_character_sets:
std::option::Option<std::vec::Vec<crate::types::CharacterSet>>,
pub(crate) supported_nchar_character_sets:
std::option::Option<std::vec::Vec<crate::types::CharacterSet>>,
pub(crate) valid_upgrade_target:
std::option::Option<std::vec::Vec<crate::types::UpgradeTarget>>,
pub(crate) supported_timezones: std::option::Option<std::vec::Vec<crate::types::Timezone>>,
pub(crate) exportable_log_types: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) supports_log_exports_to_cloudwatch_logs: std::option::Option<bool>,
pub(crate) supports_read_replica: std::option::Option<bool>,
pub(crate) supported_engine_modes: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) supported_feature_names: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) status: std::option::Option<std::string::String>,
pub(crate) supports_parallel_query: std::option::Option<bool>,
pub(crate) supports_global_databases: std::option::Option<bool>,
pub(crate) major_engine_version: std::option::Option<std::string::String>,
pub(crate) database_installation_files_s3_bucket_name: std::option::Option<std::string::String>,
pub(crate) database_installation_files_s3_prefix: std::option::Option<std::string::String>,
pub(crate) db_engine_version_arn: std::option::Option<std::string::String>,
pub(crate) kms_key_id: std::option::Option<std::string::String>,
pub(crate) create_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) tag_list: std::option::Option<std::vec::Vec<crate::types::Tag>>,
pub(crate) supports_babelfish: std::option::Option<bool>,
pub(crate) custom_db_engine_version_manifest: std::option::Option<std::string::String>,
pub(crate) supports_certificate_rotation_without_restart: std::option::Option<bool>,
pub(crate) supported_ca_certificate_identifiers:
std::option::Option<std::vec::Vec<std::string::String>>,
}
impl DbEngineVersionBuilder {
/// <p>The name of the database engine.</p>
pub fn engine(mut self, input: impl Into<std::string::String>) -> Self {
self.engine = Some(input.into());
self
}
/// <p>The name of the database engine.</p>
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.</p>
pub fn engine_version(mut self, input: impl Into<std::string::String>) -> Self {
self.engine_version = Some(input.into());
self
}
/// <p>The version number of the database engine.</p>
pub fn set_engine_version(mut self, input: std::option::Option<std::string::String>) -> Self {
self.engine_version = input;
self
}
/// <p>The name of the DB parameter group family for the database engine.</p>
pub fn db_parameter_group_family(mut self, input: impl Into<std::string::String>) -> Self {
self.db_parameter_group_family = Some(input.into());
self
}
/// <p>The name of the DB parameter group family for the database engine.</p>
pub fn set_db_parameter_group_family(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.db_parameter_group_family = input;
self
}
/// <p>The description of the database engine.</p>
pub fn db_engine_description(mut self, input: impl Into<std::string::String>) -> Self {
self.db_engine_description = Some(input.into());
self
}
/// <p>The description of the database engine.</p>
pub fn set_db_engine_description(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.db_engine_description = input;
self
}
/// <p>The description of the database engine version.</p>
pub fn db_engine_version_description(mut self, input: impl Into<std::string::String>) -> Self {
self.db_engine_version_description = Some(input.into());
self
}
/// <p>The description of the database engine version.</p>
pub fn set_db_engine_version_description(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.db_engine_version_description = input;
self
}
/// <p>The default character set for new instances of this engine version, if the <code>CharacterSetName</code> parameter of the CreateDBInstance API isn't specified.</p>
pub fn default_character_set(mut self, input: crate::types::CharacterSet) -> Self {
self.default_character_set = Some(input);
self
}
/// <p>The default character set for new instances of this engine version, if the <code>CharacterSetName</code> parameter of the CreateDBInstance API isn't specified.</p>
pub fn set_default_character_set(
mut self,
input: std::option::Option<crate::types::CharacterSet>,
) -> Self {
self.default_character_set = input;
self
}
/// <p>The EC2 image</p>
pub fn image(mut self, input: crate::types::CustomDbEngineVersionAmi) -> Self {
self.image = Some(input);
self
}
/// <p>The EC2 image</p>
pub fn set_image(
mut self,
input: std::option::Option<crate::types::CustomDbEngineVersionAmi>,
) -> Self {
self.image = input;
self
}
/// <p>A value that indicates the source media provider of the AMI based on the usage operation. Applicable for RDS Custom for SQL Server.</p>
pub fn db_engine_media_type(mut self, input: impl Into<std::string::String>) -> Self {
self.db_engine_media_type = Some(input.into());
self
}
/// <p>A value that indicates the source media provider of the AMI based on the usage operation. Applicable for RDS Custom for SQL Server.</p>
pub fn set_db_engine_media_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.db_engine_media_type = input;
self
}
/// Appends an item to `supported_character_sets`.
///
/// To override the contents of this collection use [`set_supported_character_sets`](Self::set_supported_character_sets).
///
/// <p>A list of the character sets supported by this engine for the <code>CharacterSetName</code> parameter of the <code>CreateDBInstance</code> operation.</p>
pub fn supported_character_sets(mut self, input: crate::types::CharacterSet) -> Self {
let mut v = self.supported_character_sets.unwrap_or_default();
v.push(input);
self.supported_character_sets = Some(v);
self
}
/// <p>A list of the character sets supported by this engine for the <code>CharacterSetName</code> parameter of the <code>CreateDBInstance</code> operation.</p>
pub fn set_supported_character_sets(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::CharacterSet>>,
) -> Self {
self.supported_character_sets = input;
self
}
/// Appends an item to `supported_nchar_character_sets`.
///
/// To override the contents of this collection use [`set_supported_nchar_character_sets`](Self::set_supported_nchar_character_sets).
///
/// <p>A list of the character sets supported by the Oracle DB engine for the <code>NcharCharacterSetName</code> parameter of the <code>CreateDBInstance</code> operation.</p>
pub fn supported_nchar_character_sets(mut self, input: crate::types::CharacterSet) -> Self {
let mut v = self.supported_nchar_character_sets.unwrap_or_default();
v.push(input);
self.supported_nchar_character_sets = Some(v);
self
}
/// <p>A list of the character sets supported by the Oracle DB engine for the <code>NcharCharacterSetName</code> parameter of the <code>CreateDBInstance</code> operation.</p>
pub fn set_supported_nchar_character_sets(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::CharacterSet>>,
) -> Self {
self.supported_nchar_character_sets = input;
self
}
/// Appends an item to `valid_upgrade_target`.
///
/// To override the contents of this collection use [`set_valid_upgrade_target`](Self::set_valid_upgrade_target).
///
/// <p>A list of engine versions that this database engine version can be upgraded to.</p>
pub fn valid_upgrade_target(mut self, input: crate::types::UpgradeTarget) -> Self {
let mut v = self.valid_upgrade_target.unwrap_or_default();
v.push(input);
self.valid_upgrade_target = Some(v);
self
}
/// <p>A list of engine versions that this database engine version can be upgraded to.</p>
pub fn set_valid_upgrade_target(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::UpgradeTarget>>,
) -> Self {
self.valid_upgrade_target = input;
self
}
/// Appends an item to `supported_timezones`.
///
/// To override the contents of this collection use [`set_supported_timezones`](Self::set_supported_timezones).
///
/// <p>A list of the time zones supported by this engine for the <code>Timezone</code> parameter of the <code>CreateDBInstance</code> action.</p>
pub fn supported_timezones(mut self, input: crate::types::Timezone) -> Self {
let mut v = self.supported_timezones.unwrap_or_default();
v.push(input);
self.supported_timezones = Some(v);
self
}
/// <p>A list of the time zones supported by this engine for the <code>Timezone</code> parameter of the <code>CreateDBInstance</code> action.</p>
pub fn set_supported_timezones(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::Timezone>>,
) -> Self {
self.supported_timezones = input;
self
}
/// Appends an item to `exportable_log_types`.
///
/// To override the contents of this collection use [`set_exportable_log_types`](Self::set_exportable_log_types).
///
/// <p>The types of logs that the database engine has available for export to CloudWatch Logs.</p>
pub fn exportable_log_types(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.exportable_log_types.unwrap_or_default();
v.push(input.into());
self.exportable_log_types = Some(v);
self
}
/// <p>The types of logs that the database engine has available for export to CloudWatch Logs.</p>
pub fn set_exportable_log_types(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.exportable_log_types = input;
self
}
/// <p>A value that indicates whether the engine version supports exporting the log types specified by ExportableLogTypes to CloudWatch Logs.</p>
pub fn supports_log_exports_to_cloudwatch_logs(mut self, input: bool) -> Self {
self.supports_log_exports_to_cloudwatch_logs = Some(input);
self
}
/// <p>A value that indicates whether the engine version supports exporting the log types specified by ExportableLogTypes to CloudWatch Logs.</p>
pub fn set_supports_log_exports_to_cloudwatch_logs(
mut self,
input: std::option::Option<bool>,
) -> Self {
self.supports_log_exports_to_cloudwatch_logs = input;
self
}
/// <p>Indicates whether the database engine version supports read replicas.</p>
pub fn supports_read_replica(mut self, input: bool) -> Self {
self.supports_read_replica = Some(input);
self
}
/// <p>Indicates whether the database engine version supports read replicas.</p>
pub fn set_supports_read_replica(mut self, input: std::option::Option<bool>) -> Self {
self.supports_read_replica = input;
self
}
/// Appends an item to `supported_engine_modes`.
///
/// To override the contents of this collection use [`set_supported_engine_modes`](Self::set_supported_engine_modes).
///
/// <p>A list of the supported DB engine modes.</p>
pub fn supported_engine_modes(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.supported_engine_modes.unwrap_or_default();
v.push(input.into());
self.supported_engine_modes = Some(v);
self
}
/// <p>A list of the supported DB engine modes.</p>
pub fn set_supported_engine_modes(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.supported_engine_modes = input;
self
}
/// Appends an item to `supported_feature_names`.
///
/// To override the contents of this collection use [`set_supported_feature_names`](Self::set_supported_feature_names).
///
/// <p>A list of features supported by the DB engine.</p>
/// <p>The supported features vary by DB engine and DB engine version.</p>
/// <p>To determine the supported features for a specific DB engine and DB engine version using the CLI, use the following command:</p>
/// <p> <code>aws rds describe-db-engine-versions --engine
/// <engine_name>
/// --engine-version
/// <engine_version></engine_version>
/// </engine_name></code> </p>
/// <p>For example, to determine the supported features for RDS for PostgreSQL version 13.3 using the CLI, use the following command:</p>
/// <p> <code>aws rds describe-db-engine-versions --engine postgres --engine-version 13.3</code> </p>
/// <p>The supported features are listed under <code>SupportedFeatureNames</code> in the output.</p>
pub fn supported_feature_names(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.supported_feature_names.unwrap_or_default();
v.push(input.into());
self.supported_feature_names = Some(v);
self
}
/// <p>A list of features supported by the DB engine.</p>
/// <p>The supported features vary by DB engine and DB engine version.</p>
/// <p>To determine the supported features for a specific DB engine and DB engine version using the CLI, use the following command:</p>
/// <p> <code>aws rds describe-db-engine-versions --engine
/// <engine_name>
/// --engine-version
/// <engine_version></engine_version>
/// </engine_name></code> </p>
/// <p>For example, to determine the supported features for RDS for PostgreSQL version 13.3 using the CLI, use the following command:</p>
/// <p> <code>aws rds describe-db-engine-versions --engine postgres --engine-version 13.3</code> </p>
/// <p>The supported features are listed under <code>SupportedFeatureNames</code> in the output.</p>
pub fn set_supported_feature_names(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.supported_feature_names = input;
self
}
/// <p>The status of the DB engine version, either <code>available</code> or <code>deprecated</code>.</p>
pub fn status(mut self, input: impl Into<std::string::String>) -> Self {
self.status = Some(input.into());
self
}
/// <p>The status of the DB engine version, either <code>available</code> or <code>deprecated</code>.</p>
pub fn set_status(mut self, input: std::option::Option<std::string::String>) -> Self {
self.status = input;
self
}
/// <p>A value that indicates whether you can use Aurora parallel query with a specific DB engine version.</p>
pub fn supports_parallel_query(mut self, input: bool) -> Self {
self.supports_parallel_query = Some(input);
self
}
/// <p>A value that indicates whether you can use Aurora parallel query with a specific DB engine version.</p>
pub fn set_supports_parallel_query(mut self, input: std::option::Option<bool>) -> Self {
self.supports_parallel_query = input;
self
}
/// <p>A value that indicates whether you can use Aurora global databases with a specific DB engine version.</p>
pub fn supports_global_databases(mut self, input: bool) -> Self {
self.supports_global_databases = Some(input);
self
}
/// <p>A value that indicates whether you can use Aurora global databases with a specific DB engine version.</p>
pub fn set_supports_global_databases(mut self, input: std::option::Option<bool>) -> Self {
self.supports_global_databases = input;
self
}
/// <p>The major engine version of the CEV.</p>
pub fn major_engine_version(mut self, input: impl Into<std::string::String>) -> Self {
self.major_engine_version = Some(input.into());
self
}
/// <p>The major engine version of the CEV.</p>
pub fn set_major_engine_version(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.major_engine_version = input;
self
}
/// <p>The name of the Amazon S3 bucket that contains your database installation files.</p>
pub fn database_installation_files_s3_bucket_name(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.database_installation_files_s3_bucket_name = Some(input.into());
self
}
/// <p>The name of the Amazon S3 bucket that contains your database installation files.</p>
pub fn set_database_installation_files_s3_bucket_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.database_installation_files_s3_bucket_name = input;
self
}
/// <p>The Amazon S3 directory that contains the database installation files. If not specified, then no prefix is assumed.</p>
pub fn database_installation_files_s3_prefix(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.database_installation_files_s3_prefix = Some(input.into());
self
}
/// <p>The Amazon S3 directory that contains the database installation files. If not specified, then no prefix is assumed.</p>
pub fn set_database_installation_files_s3_prefix(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.database_installation_files_s3_prefix = input;
self
}
/// <p>The ARN of the custom engine version.</p>
pub fn db_engine_version_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.db_engine_version_arn = Some(input.into());
self
}
/// <p>The ARN of the custom engine version.</p>
pub fn set_db_engine_version_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.db_engine_version_arn = input;
self
}
/// <p>The Amazon Web Services KMS key identifier for an encrypted CEV. This parameter is required for RDS Custom, but optional for Amazon RDS.</p>
pub fn kms_key_id(mut self, input: impl Into<std::string::String>) -> Self {
self.kms_key_id = Some(input.into());
self
}
/// <p>The Amazon Web Services KMS key identifier for an encrypted CEV. This parameter is required for RDS Custom, but optional for Amazon RDS.</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 creation time of the DB engine version.</p>
pub fn create_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.create_time = Some(input);
self
}
/// <p>The creation time of the DB engine version.</p>
pub fn set_create_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.create_time = input;
self
}
/// Appends an item to `tag_list`.
///
/// To override the contents of this collection use [`set_tag_list`](Self::set_tag_list).
///
/// <p>A list of tags. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS Resources</a> in the <i>Amazon RDS User Guide.</i> </p>
pub fn tag_list(mut self, input: crate::types::Tag) -> Self {
let mut v = self.tag_list.unwrap_or_default();
v.push(input);
self.tag_list = Some(v);
self
}
/// <p>A list of tags. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS Resources</a> in the <i>Amazon RDS User Guide.</i> </p>
pub fn set_tag_list(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::Tag>>,
) -> Self {
self.tag_list = input;
self
}
/// <p>A value that indicates whether the engine version supports Babelfish for Aurora PostgreSQL.</p>
pub fn supports_babelfish(mut self, input: bool) -> Self {
self.supports_babelfish = Some(input);
self
}
/// <p>A value that indicates whether the engine version supports Babelfish for Aurora PostgreSQL.</p>
pub fn set_supports_babelfish(mut self, input: std::option::Option<bool>) -> Self {
self.supports_babelfish = input;
self
}
/// <p>JSON string that lists the installation files and parameters that RDS Custom uses to create a custom engine version (CEV). RDS Custom applies the patches in the order in which they're listed in the manifest. You can set the Oracle home, Oracle base, and UNIX/Linux user and group using the installation parameters. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.preparing.html#custom-cev.preparing.manifest.fields">JSON fields in the CEV manifest</a> in the <i>Amazon RDS User Guide</i>. </p>
pub fn custom_db_engine_version_manifest(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.custom_db_engine_version_manifest = Some(input.into());
self
}
/// <p>JSON string that lists the installation files and parameters that RDS Custom uses to create a custom engine version (CEV). RDS Custom applies the patches in the order in which they're listed in the manifest. You can set the Oracle home, Oracle base, and UNIX/Linux user and group using the installation parameters. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.preparing.html#custom-cev.preparing.manifest.fields">JSON fields in the CEV manifest</a> in the <i>Amazon RDS User Guide</i>. </p>
pub fn set_custom_db_engine_version_manifest(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.custom_db_engine_version_manifest = input;
self
}
/// <p>A value that indicates whether the engine version supports rotating the server certificate without rebooting the DB instance.</p>
pub fn supports_certificate_rotation_without_restart(mut self, input: bool) -> Self {
self.supports_certificate_rotation_without_restart = Some(input);
self
}
/// <p>A value that indicates whether the engine version supports rotating the server certificate without rebooting the DB instance.</p>
pub fn set_supports_certificate_rotation_without_restart(
mut self,
input: std::option::Option<bool>,
) -> Self {
self.supports_certificate_rotation_without_restart = input;
self
}
/// Appends an item to `supported_ca_certificate_identifiers`.
///
/// To override the contents of this collection use [`set_supported_ca_certificate_identifiers`](Self::set_supported_ca_certificate_identifiers).
///
/// <p>A list of the supported CA certificate identifiers.</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 supported_ca_certificate_identifiers(
mut self,
input: impl Into<std::string::String>,
) -> Self {
let mut v = self
.supported_ca_certificate_identifiers
.unwrap_or_default();
v.push(input.into());
self.supported_ca_certificate_identifiers = Some(v);
self
}
/// <p>A list of the supported CA certificate identifiers.</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_supported_ca_certificate_identifiers(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.supported_ca_certificate_identifiers = input;
self
}
/// Consumes the builder and constructs a [`DbEngineVersion`](crate::types::DbEngineVersion).
pub fn build(self) -> crate::types::DbEngineVersion {
crate::types::DbEngineVersion {
engine: self.engine,
engine_version: self.engine_version,
db_parameter_group_family: self.db_parameter_group_family,
db_engine_description: self.db_engine_description,
db_engine_version_description: self.db_engine_version_description,
default_character_set: self.default_character_set,
image: self.image,
db_engine_media_type: self.db_engine_media_type,
supported_character_sets: self.supported_character_sets,
supported_nchar_character_sets: self.supported_nchar_character_sets,
valid_upgrade_target: self.valid_upgrade_target,
supported_timezones: self.supported_timezones,
exportable_log_types: self.exportable_log_types,
supports_log_exports_to_cloudwatch_logs: self
.supports_log_exports_to_cloudwatch_logs
.unwrap_or_default(),
supports_read_replica: self.supports_read_replica.unwrap_or_default(),
supported_engine_modes: self.supported_engine_modes,
supported_feature_names: self.supported_feature_names,
status: self.status,
supports_parallel_query: self.supports_parallel_query.unwrap_or_default(),
supports_global_databases: self.supports_global_databases.unwrap_or_default(),
major_engine_version: self.major_engine_version,
database_installation_files_s3_bucket_name: self
.database_installation_files_s3_bucket_name,
database_installation_files_s3_prefix: self.database_installation_files_s3_prefix,
db_engine_version_arn: self.db_engine_version_arn,
kms_key_id: self.kms_key_id,
create_time: self.create_time,
tag_list: self.tag_list,
supports_babelfish: self.supports_babelfish.unwrap_or_default(),
custom_db_engine_version_manifest: self.custom_db_engine_version_manifest,
supports_certificate_rotation_without_restart: self
.supports_certificate_rotation_without_restart,
supported_ca_certificate_identifiers: self.supported_ca_certificate_identifiers,
}
}
}