// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p></p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct CreateDbClusterInput {
/// <p>A list of Availability Zones (AZs) where you specifically want to create DB instances in the DB cluster.</p>
/// <p>For the first three DB instances that you create, RDS distributes each DB instance to a different AZ that you specify. For additional DB instances that you create, RDS randomly distributes them to the AZs that you specified. For example, if you create a DB cluster with one writer instance and three reader instances, RDS might distribute the writer instance to AZ 1, the first reader instance to AZ 2, the second reader instance to AZ 3, and the third reader instance to either AZ 1, AZ 2, or AZ 3.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.AvailabilityZones">Availability Zones</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Concepts.AuroraHighAvailability.Instances">High availability for Aurora DB instances</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Can't specify more than three AZs.</p></li>
/// </ul>
pub availability_zones: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The number of days for which automated backups are retained.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Default: <code>1</code></p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be a value from 1 to 35.</p></li>
/// </ul>
pub backup_retention_period: ::std::option::Option<i32>,
/// <p>The name of the character set (<code>CharacterSet</code>) to associate the DB cluster with.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub character_set_name: ::std::option::Option<::std::string::String>,
/// <p>The name for your database of up to 64 alphanumeric characters. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub database_name: ::std::option::Option<::std::string::String>,
/// <p>The identifier for this DB cluster. This parameter is stored as a lowercase string.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must contain from 1 to 63 (for Aurora DB clusters) or 1 to 52 (for Multi-AZ DB clusters) letters, numbers, or hyphens.</p></li>
/// <li>
/// <p>First character must be a letter.</p></li>
/// <li>
/// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
/// </ul>
/// <p>Example: <code>my-cluster1</code></p>
pub db_cluster_identifier: ::std::option::Option<::std::string::String>,
/// <p>The name of the DB cluster parameter group to associate with this DB cluster. If you don't specify a value, then the default DB cluster parameter group for the specified DB engine and version is used.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>If supplied, must match the name of an existing DB cluster parameter group.</p></li>
/// </ul>
pub db_cluster_parameter_group_name: ::std::option::Option<::std::string::String>,
/// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub vpc_security_group_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>A DB subnet group to associate with this DB cluster.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must match the name of an existing DB subnet group.</p></li>
/// </ul>
/// <p>Example: <code>mydbsubnetgroup</code></p>
pub db_subnet_group_name: ::std::option::Option<::std::string::String>,
/// <p>The database engine to use for this DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>aurora-mysql</code></p></li>
/// <li>
/// <p><code>aurora-postgresql</code></p></li>
/// <li>
/// <p><code>mysql</code></p></li>
/// <li>
/// <p><code>postgres</code></p></li>
/// <li>
/// <p><code>neptune</code> - For information about using Amazon Neptune, see the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/intro.html"> <i>Amazon Neptune User Guide</i> </a>.</p></li>
/// </ul>
pub engine: ::std::option::Option<::std::string::String>,
/// <p>The version number of the database engine to use.</p>
/// <p>To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>You can supply either <code>5.7</code> or <code>8.0</code> to use the default engine version for Aurora MySQL version 2 or version 3, respectively.</p>
/// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>For information about a specific engine, see the following topics:</p>
/// <ul>
/// <li>
/// <p>Aurora MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html">Database engine updates for Amazon Aurora MySQL</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
/// <li>
/// <p>Aurora PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html">Amazon Aurora PostgreSQL releases and engine versions</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
/// <li>
/// <p>RDS for MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">Amazon RDS for MySQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
/// <li>
/// <p>RDS for PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub engine_version: ::std::option::Option<::std::string::String>,
/// <p>The port number on which the instances in the DB cluster accept connections.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>1150-65535</code></p>
/// <p>Default:</p>
/// <ul>
/// <li>
/// <p>RDS for MySQL and Aurora MySQL - <code>3306</code></p></li>
/// <li>
/// <p>RDS for PostgreSQL and Aurora PostgreSQL - <code>5432</code></p></li>
/// </ul>
pub port: ::std::option::Option<i32>,
/// <p>The name of the master user for the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be 1 to 16 letters or numbers.</p></li>
/// <li>
/// <p>First character must be a letter.</p></li>
/// <li>
/// <p>Can't be a reserved word for the chosen database engine.</p></li>
/// </ul>
pub master_username: ::std::option::Option<::std::string::String>,
/// <p>The password for the master database user.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must contain from 8 to 41 characters.</p></li>
/// <li>
/// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
/// <li>
/// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
/// </ul>
pub master_user_password: ::std::option::Option<::std::string::String>,
/// <p>The option group to associate the DB cluster with.</p>
/// <p>DB clusters are associated with a default option group that can't be modified.</p>
pub option_group_name: ::std::option::Option<::std::string::String>,
/// <p>The daily time range during which automated backups are created if automated backups are enabled using the <code>BackupRetentionPeriod</code> parameter.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
/// <li>
/// <p>Must be in Universal Coordinated Time (UTC).</p></li>
/// <li>
/// <p>Must not conflict with the preferred maintenance window.</p></li>
/// <li>
/// <p>Must be at least 30 minutes.</p></li>
/// </ul>
pub preferred_backup_window: ::std::option::Option<::std::string::String>,
/// <p>The weekly time range during which system maintenance can occur.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
/// <li>
/// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
/// <li>
/// <p>Must be in Universal Coordinated Time (UTC).</p></li>
/// <li>
/// <p>Must be at least 30 minutes.</p></li>
/// </ul>
pub preferred_maintenance_window: ::std::option::Option<::std::string::String>,
/// <p>The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub replication_source_identifier: ::std::option::Option<::std::string::String>,
/// <p>Tags to assign to the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
/// <p>Specifies whether the DB cluster is encrypted.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub storage_encrypted: ::std::option::Option<bool>,
/// <p>The Amazon Web Services KMS key identifier for an encrypted DB cluster.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
/// <p>When a KMS key isn't specified in <code>KmsKeyId</code>:</p>
/// <ul>
/// <li>
/// <p>If <code>ReplicationSourceIdentifier</code> identifies an encrypted source, then Amazon RDS uses the KMS key used to encrypt the source. Otherwise, Amazon RDS uses your default KMS key.</p></li>
/// <li>
/// <p>If the <code>StorageEncrypted</code> parameter is enabled and <code>ReplicationSourceIdentifier</code> isn't specified, then Amazon RDS uses your default KMS key.</p></li>
/// </ul>
/// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>If you create a read replica of an encrypted DB cluster in another Amazon Web Services Region, make sure to set <code>KmsKeyId</code> to a KMS key identifier that is valid in the destination Amazon Web Services Region. This KMS key is used to encrypt the read replica in that Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub kms_key_id: ::std::option::Option<::std::string::String>,
/// <p>When you are replicating a DB cluster from one Amazon Web Services GovCloud (US) Region to another, an URL that contains a Signature Version 4 signed request for the <code>CreateDBCluster</code> operation to be called in the source Amazon Web Services Region where the DB cluster is replicated from. Specify <code>PreSignedUrl</code> only when you are performing cross-Region replication from an encrypted DB cluster.</p>
/// <p>The presigned URL must be a valid request for the <code>CreateDBCluster</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster to copy.</p>
/// <p>The presigned URL request must contain the following parameter values:</p>
/// <ul>
/// <li>
/// <p><code>KmsKeyId</code> - The KMS key identifier for the KMS key to use to encrypt the copy of the DB cluster in the destination Amazon Web Services Region. This should refer to the same KMS key for both the <code>CreateDBCluster</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
/// <li>
/// <p><code>DestinationRegion</code> - The name of the Amazon Web Services Region that Aurora read replica will be created in.</p></li>
/// <li>
/// <p><code>ReplicationSourceIdentifier</code> - The DB cluster identifier for the encrypted DB cluster to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB cluster from the us-west-2 Amazon Web Services Region, then your <code>ReplicationSourceIdentifier</code> would look like Example: <code>arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1</code>.</p></li>
/// </ul>
/// <p>To learn how to generate a Signature Version 4 signed request, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html"> Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4)</a> and <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html"> Signature Version 4 Signing Process</a>.</p><note>
/// <p>If you are using an Amazon Web Services SDK tool or the CLI, you can specify <code>SourceRegion</code> (or <code>--source-region</code> for the CLI) instead of specifying <code>PreSignedUrl</code> manually. Specifying <code>SourceRegion</code> autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.</p>
/// </note>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub pre_signed_url: ::std::option::Option<::std::string::String>,
/// <p>Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub enable_iam_database_authentication: ::std::option::Option<bool>,
/// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
/// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
/// <p>Default: <code>0</code></p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
/// </ul>
pub backtrack_window: ::std::option::Option<i64>,
/// <p>The list of log types that need to be enabled for exporting to CloudWatch Logs.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The following values are valid for each DB engine:</p>
/// <ul>
/// <li>
/// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
/// <li>
/// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
/// <li>
/// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
/// <li>
/// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
/// </ul>
/// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
pub enable_cloudwatch_logs_exports: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p>
/// <p>The <code>serverless</code> engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the <code>provisioned</code> engine mode.</p>
/// <p>For information about limitations and requirements for Serverless DB clusters, see the following sections in the <i>Amazon Aurora User Guide</i>:</p>
/// <ul>
/// <li>
/// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations">Limitations of Aurora Serverless v1</a></p></li>
/// <li>
/// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html">Requirements for Aurora Serverless v2</a></p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub engine_mode: ::std::option::Option<::std::string::String>,
/// <p>For DB clusters in <code>serverless</code> DB engine mode, the scaling properties of the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub scaling_configuration: ::std::option::Option<crate::types::ScalingConfiguration>,
/// <p>Reserved for future use.</p>
pub rds_custom_cluster_configuration: ::std::option::Option<crate::types::RdsCustomClusterConfiguration>,
/// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
/// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance class</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
pub db_cluster_instance_class: ::std::option::Option<::std::string::String>,
/// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
pub allocated_storage: ::std::option::Option<i32>,
/// <p>The storage type to associate with the DB cluster.</p>
/// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
/// <li>
/// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
/// </ul>
/// <p>Default:</p>
/// <ul>
/// <li>
/// <p>Aurora DB clusters - <code>aurora</code></p></li>
/// <li>
/// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
/// </ul><note>
/// <p>When you create an Aurora DB cluster with the storage type set to <code>aurora-iopt1</code>, the storage type is returned in the response. The storage type isn't returned when you set it to <code>aurora</code>.</p>
/// </note>
pub storage_type: ::std::option::Option<::std::string::String>,
/// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
/// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
/// </ul>
pub iops: ::std::option::Option<i32>,
/// <p>Specifies whether the DB cluster is publicly accessible.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>When the DB cluster is publicly accessible and you connect from outside of the DB cluster's virtual private cloud (VPC), its domain name system (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to the private IP address. Access to the DB cluster is controlled by its security group settings.</p>
/// <p>When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.</p>
/// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
/// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
/// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
/// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
pub publicly_accessible: ::std::option::Option<bool>,
/// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB cluster.</p>
/// <p>For more information about automatic minor version upgrades, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades">Automatically upgrading the minor engine version</a>.</p>
pub auto_minor_version_upgrade: ::std::option::Option<bool>,
/// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub deletion_protection: ::std::option::Option<bool>,
/// <p>The global cluster ID of an Aurora cluster that becomes the primary cluster in the new global database cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub global_cluster_identifier: ::std::option::Option<::std::string::String>,
/// <p>Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled.</p>
/// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub enable_http_endpoint: ::std::option::Option<bool>,
/// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub copy_tags_to_snapshot: ::std::option::Option<bool>,
/// <p>The Active Directory directory ID to create the DB cluster in.</p>
/// <p>For Amazon Aurora DB clusters, Amazon RDS can use Kerberos authentication to authenticate users that connect to the DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub domain: ::std::option::Option<::std::string::String>,
/// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub domain_iam_role_name: ::std::option::Option<::std::string::String>,
/// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
/// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub enable_global_write_forwarding: ::std::option::Option<bool>,
/// <p>The network type of the DB cluster.</p>
/// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
/// <p>Valid Values: <code>IPV4 | DUAL</code></p>
pub network_type: ::std::option::Option<::std::string::String>,
/// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
pub serverless_v2_scaling_configuration: ::std::option::Option<crate::types::ServerlessV2ScalingConfiguration>,
/// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
/// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
/// <p>Default: <code>0</code></p>
pub monitoring_interval: ::std::option::Option<i32>,
/// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting up and enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub monitoring_role_arn: ::std::option::Option<::std::string::String>,
/// <p>The mode of Database Insights to enable for the DB cluster.</p>
/// <p>If you set this value to <code>advanced</code>, you must also set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub database_insights_mode: ::std::option::Option<crate::types::DatabaseInsightsMode>,
/// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub enable_performance_insights: ::std::option::Option<bool>,
/// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
/// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub performance_insights_kms_key_id: ::std::option::Option<::std::string::String>,
/// <p>The number of days to retain Performance Insights data.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>7</code></p></li>
/// <li>
/// <p><i>month</i> * 31, where <i>month</i> is a number of months from 1-23. Examples: <code>93</code> (3 months * 31), <code>341</code> (11 months * 31), <code>589</code> (19 months * 31)</p></li>
/// <li>
/// <p><code>731</code></p></li>
/// </ul>
/// <p>Default: <code>7</code> days</p>
/// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
pub performance_insights_retention_period: ::std::option::Option<i32>,
/// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
/// <p>Valid for: Aurora DB clusters only</p><note>
/// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting.</p>
/// </note>
pub enable_limitless_database: ::std::option::Option<bool>,
/// <p>Specifies the scalability mode of the Aurora DB cluster. When set to <code>limitless</code>, the cluster operates as an Aurora Limitless Database. When set to <code>standard</code> (the default), the cluster uses normal DB instance creation.</p>
/// <p>Valid for: Aurora DB clusters only</p><note>
/// <p>You can't modify this setting after you create the DB cluster.</p>
/// </note>
pub cluster_scalability_type: ::std::option::Option<crate::types::ClusterScalabilityType>,
/// <p>Reserved for future use.</p>
pub db_system_id: ::std::option::Option<::std::string::String>,
/// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
/// </ul>
pub manage_master_user_password: ::std::option::Option<bool>,
/// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
/// <p>Valid for: Aurora DB clusters only</p>
pub enable_local_write_forwarding: ::std::option::Option<bool>,
/// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
/// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
/// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
/// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub master_user_secret_kms_key_id: ::std::option::Option<::std::string::String>,
/// <p>The CA certificate identifier to use for the DB cluster's server certificate.</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>.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
pub ca_certificate_identifier: ::std::option::Option<::std::string::String>,
/// <p>The life cycle type for this DB cluster.</p><note>
/// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB cluster will fail if the DB major version is past its end of standard support date.</p>
/// </note>
/// <p>You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:</p>
/// <ul>
/// <li>
/// <p>Amazon Aurora - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html">Amazon RDS Extended Support with Amazon Aurora</a> in the <i>Amazon Aurora User Guide</i></p></li>
/// <li>
/// <p>Amazon RDS - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i></p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
/// <p>Default: <code>open-source-rds-extended-support</code></p>
pub engine_lifecycle_support: ::std::option::Option<::std::string::String>,
/// <p>Tags to assign to resources associated with the DB cluster.</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>cluster-auto-backup</code> - The DB cluster's automated backup.</p></li>
/// </ul>
pub tag_specifications: ::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>>,
/// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB cluster.</p>
/// <p>You can specify one of the following values:</p>
/// <ul>
/// <li>
/// <p><code>password</code> - Use standard database authentication with a password.</p></li>
/// <li>
/// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
pub master_user_authentication_type: ::std::option::Option<crate::types::MasterUserAuthenticationType>,
/// <p>Specifies to create an Aurora DB Cluster with express configuration in seconds. Express configuration provides a cluster with a writer instance and feature specific values set to all other input parameters of this API.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters</p>
pub with_express_configuration: ::std::option::Option<bool>,
}
impl CreateDbClusterInput {
/// <p>A list of Availability Zones (AZs) where you specifically want to create DB instances in the DB cluster.</p>
/// <p>For the first three DB instances that you create, RDS distributes each DB instance to a different AZ that you specify. For additional DB instances that you create, RDS randomly distributes them to the AZs that you specified. For example, if you create a DB cluster with one writer instance and three reader instances, RDS might distribute the writer instance to AZ 1, the first reader instance to AZ 2, the second reader instance to AZ 3, and the third reader instance to either AZ 1, AZ 2, or AZ 3.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.AvailabilityZones">Availability Zones</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Concepts.AuroraHighAvailability.Instances">High availability for Aurora DB instances</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Can't specify more than three AZs.</p></li>
/// </ul>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.availability_zones.is_none()`.
pub fn availability_zones(&self) -> &[::std::string::String] {
self.availability_zones.as_deref().unwrap_or_default()
}
/// <p>The number of days for which automated backups are retained.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Default: <code>1</code></p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be a value from 1 to 35.</p></li>
/// </ul>
pub fn backup_retention_period(&self) -> ::std::option::Option<i32> {
self.backup_retention_period
}
/// <p>The name of the character set (<code>CharacterSet</code>) to associate the DB cluster with.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn character_set_name(&self) -> ::std::option::Option<&str> {
self.character_set_name.as_deref()
}
/// <p>The name for your database of up to 64 alphanumeric characters. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn database_name(&self) -> ::std::option::Option<&str> {
self.database_name.as_deref()
}
/// <p>The identifier for this DB cluster. This parameter is stored as a lowercase string.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must contain from 1 to 63 (for Aurora DB clusters) or 1 to 52 (for Multi-AZ DB clusters) letters, numbers, or hyphens.</p></li>
/// <li>
/// <p>First character must be a letter.</p></li>
/// <li>
/// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
/// </ul>
/// <p>Example: <code>my-cluster1</code></p>
pub fn db_cluster_identifier(&self) -> ::std::option::Option<&str> {
self.db_cluster_identifier.as_deref()
}
/// <p>The name of the DB cluster parameter group to associate with this DB cluster. If you don't specify a value, then the default DB cluster parameter group for the specified DB engine and version is used.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>If supplied, must match the name of an existing DB cluster parameter group.</p></li>
/// </ul>
pub fn db_cluster_parameter_group_name(&self) -> ::std::option::Option<&str> {
self.db_cluster_parameter_group_name.as_deref()
}
/// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.vpc_security_group_ids.is_none()`.
pub fn vpc_security_group_ids(&self) -> &[::std::string::String] {
self.vpc_security_group_ids.as_deref().unwrap_or_default()
}
/// <p>A DB subnet group to associate with this DB cluster.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must match the name of an existing DB subnet group.</p></li>
/// </ul>
/// <p>Example: <code>mydbsubnetgroup</code></p>
pub fn db_subnet_group_name(&self) -> ::std::option::Option<&str> {
self.db_subnet_group_name.as_deref()
}
/// <p>The database engine to use for this DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>aurora-mysql</code></p></li>
/// <li>
/// <p><code>aurora-postgresql</code></p></li>
/// <li>
/// <p><code>mysql</code></p></li>
/// <li>
/// <p><code>postgres</code></p></li>
/// <li>
/// <p><code>neptune</code> - For information about using Amazon Neptune, see the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/intro.html"> <i>Amazon Neptune User Guide</i> </a>.</p></li>
/// </ul>
pub fn engine(&self) -> ::std::option::Option<&str> {
self.engine.as_deref()
}
/// <p>The version number of the database engine to use.</p>
/// <p>To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>You can supply either <code>5.7</code> or <code>8.0</code> to use the default engine version for Aurora MySQL version 2 or version 3, respectively.</p>
/// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>For information about a specific engine, see the following topics:</p>
/// <ul>
/// <li>
/// <p>Aurora MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html">Database engine updates for Amazon Aurora MySQL</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
/// <li>
/// <p>Aurora PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html">Amazon Aurora PostgreSQL releases and engine versions</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
/// <li>
/// <p>RDS for MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">Amazon RDS for MySQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
/// <li>
/// <p>RDS for PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn engine_version(&self) -> ::std::option::Option<&str> {
self.engine_version.as_deref()
}
/// <p>The port number on which the instances in the DB cluster accept connections.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>1150-65535</code></p>
/// <p>Default:</p>
/// <ul>
/// <li>
/// <p>RDS for MySQL and Aurora MySQL - <code>3306</code></p></li>
/// <li>
/// <p>RDS for PostgreSQL and Aurora PostgreSQL - <code>5432</code></p></li>
/// </ul>
pub fn port(&self) -> ::std::option::Option<i32> {
self.port
}
/// <p>The name of the master user for the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be 1 to 16 letters or numbers.</p></li>
/// <li>
/// <p>First character must be a letter.</p></li>
/// <li>
/// <p>Can't be a reserved word for the chosen database engine.</p></li>
/// </ul>
pub fn master_username(&self) -> ::std::option::Option<&str> {
self.master_username.as_deref()
}
/// <p>The password for the master database user.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must contain from 8 to 41 characters.</p></li>
/// <li>
/// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
/// <li>
/// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
/// </ul>
pub fn master_user_password(&self) -> ::std::option::Option<&str> {
self.master_user_password.as_deref()
}
/// <p>The option group to associate the DB cluster with.</p>
/// <p>DB clusters are associated with a default option group that can't be modified.</p>
pub fn option_group_name(&self) -> ::std::option::Option<&str> {
self.option_group_name.as_deref()
}
/// <p>The daily time range during which automated backups are created if automated backups are enabled using the <code>BackupRetentionPeriod</code> parameter.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
/// <li>
/// <p>Must be in Universal Coordinated Time (UTC).</p></li>
/// <li>
/// <p>Must not conflict with the preferred maintenance window.</p></li>
/// <li>
/// <p>Must be at least 30 minutes.</p></li>
/// </ul>
pub fn preferred_backup_window(&self) -> ::std::option::Option<&str> {
self.preferred_backup_window.as_deref()
}
/// <p>The weekly time range during which system maintenance can occur.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
/// <li>
/// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
/// <li>
/// <p>Must be in Universal Coordinated Time (UTC).</p></li>
/// <li>
/// <p>Must be at least 30 minutes.</p></li>
/// </ul>
pub fn preferred_maintenance_window(&self) -> ::std::option::Option<&str> {
self.preferred_maintenance_window.as_deref()
}
/// <p>The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn replication_source_identifier(&self) -> ::std::option::Option<&str> {
self.replication_source_identifier.as_deref()
}
/// <p>Tags to assign to the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
pub fn tags(&self) -> &[crate::types::Tag] {
self.tags.as_deref().unwrap_or_default()
}
/// <p>Specifies whether the DB cluster is encrypted.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn storage_encrypted(&self) -> ::std::option::Option<bool> {
self.storage_encrypted
}
/// <p>The Amazon Web Services KMS key identifier for an encrypted DB cluster.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
/// <p>When a KMS key isn't specified in <code>KmsKeyId</code>:</p>
/// <ul>
/// <li>
/// <p>If <code>ReplicationSourceIdentifier</code> identifies an encrypted source, then Amazon RDS uses the KMS key used to encrypt the source. Otherwise, Amazon RDS uses your default KMS key.</p></li>
/// <li>
/// <p>If the <code>StorageEncrypted</code> parameter is enabled and <code>ReplicationSourceIdentifier</code> isn't specified, then Amazon RDS uses your default KMS key.</p></li>
/// </ul>
/// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>If you create a read replica of an encrypted DB cluster in another Amazon Web Services Region, make sure to set <code>KmsKeyId</code> to a KMS key identifier that is valid in the destination Amazon Web Services Region. This KMS key is used to encrypt the read replica in that Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn kms_key_id(&self) -> ::std::option::Option<&str> {
self.kms_key_id.as_deref()
}
/// <p>When you are replicating a DB cluster from one Amazon Web Services GovCloud (US) Region to another, an URL that contains a Signature Version 4 signed request for the <code>CreateDBCluster</code> operation to be called in the source Amazon Web Services Region where the DB cluster is replicated from. Specify <code>PreSignedUrl</code> only when you are performing cross-Region replication from an encrypted DB cluster.</p>
/// <p>The presigned URL must be a valid request for the <code>CreateDBCluster</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster to copy.</p>
/// <p>The presigned URL request must contain the following parameter values:</p>
/// <ul>
/// <li>
/// <p><code>KmsKeyId</code> - The KMS key identifier for the KMS key to use to encrypt the copy of the DB cluster in the destination Amazon Web Services Region. This should refer to the same KMS key for both the <code>CreateDBCluster</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
/// <li>
/// <p><code>DestinationRegion</code> - The name of the Amazon Web Services Region that Aurora read replica will be created in.</p></li>
/// <li>
/// <p><code>ReplicationSourceIdentifier</code> - The DB cluster identifier for the encrypted DB cluster to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB cluster from the us-west-2 Amazon Web Services Region, then your <code>ReplicationSourceIdentifier</code> would look like Example: <code>arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1</code>.</p></li>
/// </ul>
/// <p>To learn how to generate a Signature Version 4 signed request, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html"> Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4)</a> and <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html"> Signature Version 4 Signing Process</a>.</p><note>
/// <p>If you are using an Amazon Web Services SDK tool or the CLI, you can specify <code>SourceRegion</code> (or <code>--source-region</code> for the CLI) instead of specifying <code>PreSignedUrl</code> manually. Specifying <code>SourceRegion</code> autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.</p>
/// </note>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn pre_signed_url(&self) -> ::std::option::Option<&str> {
self.pre_signed_url.as_deref()
}
/// <p>Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn enable_iam_database_authentication(&self) -> ::std::option::Option<bool> {
self.enable_iam_database_authentication
}
/// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
/// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
/// <p>Default: <code>0</code></p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
/// </ul>
pub fn backtrack_window(&self) -> ::std::option::Option<i64> {
self.backtrack_window
}
/// <p>The list of log types that need to be enabled for exporting to CloudWatch Logs.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The following values are valid for each DB engine:</p>
/// <ul>
/// <li>
/// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
/// <li>
/// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
/// <li>
/// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
/// <li>
/// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
/// </ul>
/// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.enable_cloudwatch_logs_exports.is_none()`.
pub fn enable_cloudwatch_logs_exports(&self) -> &[::std::string::String] {
self.enable_cloudwatch_logs_exports.as_deref().unwrap_or_default()
}
/// <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p>
/// <p>The <code>serverless</code> engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the <code>provisioned</code> engine mode.</p>
/// <p>For information about limitations and requirements for Serverless DB clusters, see the following sections in the <i>Amazon Aurora User Guide</i>:</p>
/// <ul>
/// <li>
/// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations">Limitations of Aurora Serverless v1</a></p></li>
/// <li>
/// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html">Requirements for Aurora Serverless v2</a></p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn engine_mode(&self) -> ::std::option::Option<&str> {
self.engine_mode.as_deref()
}
/// <p>For DB clusters in <code>serverless</code> DB engine mode, the scaling properties of the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn scaling_configuration(&self) -> ::std::option::Option<&crate::types::ScalingConfiguration> {
self.scaling_configuration.as_ref()
}
/// <p>Reserved for future use.</p>
pub fn rds_custom_cluster_configuration(&self) -> ::std::option::Option<&crate::types::RdsCustomClusterConfiguration> {
self.rds_custom_cluster_configuration.as_ref()
}
/// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
/// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance class</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
pub fn db_cluster_instance_class(&self) -> ::std::option::Option<&str> {
self.db_cluster_instance_class.as_deref()
}
/// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
pub fn allocated_storage(&self) -> ::std::option::Option<i32> {
self.allocated_storage
}
/// <p>The storage type to associate with the DB cluster.</p>
/// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
/// <li>
/// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
/// </ul>
/// <p>Default:</p>
/// <ul>
/// <li>
/// <p>Aurora DB clusters - <code>aurora</code></p></li>
/// <li>
/// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
/// </ul><note>
/// <p>When you create an Aurora DB cluster with the storage type set to <code>aurora-iopt1</code>, the storage type is returned in the response. The storage type isn't returned when you set it to <code>aurora</code>.</p>
/// </note>
pub fn storage_type(&self) -> ::std::option::Option<&str> {
self.storage_type.as_deref()
}
/// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
/// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
/// </ul>
pub fn iops(&self) -> ::std::option::Option<i32> {
self.iops
}
/// <p>Specifies whether the DB cluster is publicly accessible.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>When the DB cluster is publicly accessible and you connect from outside of the DB cluster's virtual private cloud (VPC), its domain name system (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to the private IP address. Access to the DB cluster is controlled by its security group settings.</p>
/// <p>When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.</p>
/// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
/// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
/// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
/// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
pub fn publicly_accessible(&self) -> ::std::option::Option<bool> {
self.publicly_accessible
}
/// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB cluster.</p>
/// <p>For more information about automatic minor version upgrades, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades">Automatically upgrading the minor engine version</a>.</p>
pub fn auto_minor_version_upgrade(&self) -> ::std::option::Option<bool> {
self.auto_minor_version_upgrade
}
/// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn deletion_protection(&self) -> ::std::option::Option<bool> {
self.deletion_protection
}
/// <p>The global cluster ID of an Aurora cluster that becomes the primary cluster in the new global database cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn global_cluster_identifier(&self) -> ::std::option::Option<&str> {
self.global_cluster_identifier.as_deref()
}
/// <p>Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled.</p>
/// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn enable_http_endpoint(&self) -> ::std::option::Option<bool> {
self.enable_http_endpoint
}
/// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn copy_tags_to_snapshot(&self) -> ::std::option::Option<bool> {
self.copy_tags_to_snapshot
}
/// <p>The Active Directory directory ID to create the DB cluster in.</p>
/// <p>For Amazon Aurora DB clusters, Amazon RDS can use Kerberos authentication to authenticate users that connect to the DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn domain(&self) -> ::std::option::Option<&str> {
self.domain.as_deref()
}
/// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn domain_iam_role_name(&self) -> ::std::option::Option<&str> {
self.domain_iam_role_name.as_deref()
}
/// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
/// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn enable_global_write_forwarding(&self) -> ::std::option::Option<bool> {
self.enable_global_write_forwarding
}
/// <p>The network type of the DB cluster.</p>
/// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
/// <p>Valid Values: <code>IPV4 | DUAL</code></p>
pub fn network_type(&self) -> ::std::option::Option<&str> {
self.network_type.as_deref()
}
/// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
pub fn serverless_v2_scaling_configuration(&self) -> ::std::option::Option<&crate::types::ServerlessV2ScalingConfiguration> {
self.serverless_v2_scaling_configuration.as_ref()
}
/// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
/// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
/// <p>Default: <code>0</code></p>
pub fn monitoring_interval(&self) -> ::std::option::Option<i32> {
self.monitoring_interval
}
/// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting up and enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn monitoring_role_arn(&self) -> ::std::option::Option<&str> {
self.monitoring_role_arn.as_deref()
}
/// <p>The mode of Database Insights to enable for the DB cluster.</p>
/// <p>If you set this value to <code>advanced</code>, you must also set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn database_insights_mode(&self) -> ::std::option::Option<&crate::types::DatabaseInsightsMode> {
self.database_insights_mode.as_ref()
}
/// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn enable_performance_insights(&self) -> ::std::option::Option<bool> {
self.enable_performance_insights
}
/// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
/// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn performance_insights_kms_key_id(&self) -> ::std::option::Option<&str> {
self.performance_insights_kms_key_id.as_deref()
}
/// <p>The number of days to retain Performance Insights data.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>7</code></p></li>
/// <li>
/// <p><i>month</i> * 31, where <i>month</i> is a number of months from 1-23. Examples: <code>93</code> (3 months * 31), <code>341</code> (11 months * 31), <code>589</code> (19 months * 31)</p></li>
/// <li>
/// <p><code>731</code></p></li>
/// </ul>
/// <p>Default: <code>7</code> days</p>
/// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
pub fn performance_insights_retention_period(&self) -> ::std::option::Option<i32> {
self.performance_insights_retention_period
}
/// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
/// <p>Valid for: Aurora DB clusters only</p><note>
/// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting.</p>
/// </note>
pub fn enable_limitless_database(&self) -> ::std::option::Option<bool> {
self.enable_limitless_database
}
/// <p>Specifies the scalability mode of the Aurora DB cluster. When set to <code>limitless</code>, the cluster operates as an Aurora Limitless Database. When set to <code>standard</code> (the default), the cluster uses normal DB instance creation.</p>
/// <p>Valid for: Aurora DB clusters only</p><note>
/// <p>You can't modify this setting after you create the DB cluster.</p>
/// </note>
pub fn cluster_scalability_type(&self) -> ::std::option::Option<&crate::types::ClusterScalabilityType> {
self.cluster_scalability_type.as_ref()
}
/// <p>Reserved for future use.</p>
pub fn db_system_id(&self) -> ::std::option::Option<&str> {
self.db_system_id.as_deref()
}
/// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
/// </ul>
pub fn manage_master_user_password(&self) -> ::std::option::Option<bool> {
self.manage_master_user_password
}
/// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
/// <p>Valid for: Aurora DB clusters only</p>
pub fn enable_local_write_forwarding(&self) -> ::std::option::Option<bool> {
self.enable_local_write_forwarding
}
/// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
/// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
/// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
/// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn master_user_secret_kms_key_id(&self) -> ::std::option::Option<&str> {
self.master_user_secret_kms_key_id.as_deref()
}
/// <p>The CA certificate identifier to use for the DB cluster's server certificate.</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>.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
pub fn ca_certificate_identifier(&self) -> ::std::option::Option<&str> {
self.ca_certificate_identifier.as_deref()
}
/// <p>The life cycle type for this DB cluster.</p><note>
/// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB cluster will fail if the DB major version is past its end of standard support date.</p>
/// </note>
/// <p>You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:</p>
/// <ul>
/// <li>
/// <p>Amazon Aurora - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html">Amazon RDS Extended Support with Amazon Aurora</a> in the <i>Amazon Aurora User Guide</i></p></li>
/// <li>
/// <p>Amazon RDS - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i></p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
/// <p>Default: <code>open-source-rds-extended-support</code></p>
pub fn engine_lifecycle_support(&self) -> ::std::option::Option<&str> {
self.engine_lifecycle_support.as_deref()
}
/// <p>Tags to assign to resources associated with the DB cluster.</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>cluster-auto-backup</code> - The DB cluster's automated backup.</p></li>
/// </ul>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tag_specifications.is_none()`.
pub fn tag_specifications(&self) -> &[crate::types::TagSpecification] {
self.tag_specifications.as_deref().unwrap_or_default()
}
/// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB cluster.</p>
/// <p>You can specify one of the following values:</p>
/// <ul>
/// <li>
/// <p><code>password</code> - Use standard database authentication with a password.</p></li>
/// <li>
/// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
pub fn master_user_authentication_type(&self) -> ::std::option::Option<&crate::types::MasterUserAuthenticationType> {
self.master_user_authentication_type.as_ref()
}
/// <p>Specifies to create an Aurora DB Cluster with express configuration in seconds. Express configuration provides a cluster with a writer instance and feature specific values set to all other input parameters of this API.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters</p>
pub fn with_express_configuration(&self) -> ::std::option::Option<bool> {
self.with_express_configuration
}
}
impl ::std::fmt::Debug for CreateDbClusterInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateDbClusterInput");
formatter.field("availability_zones", &self.availability_zones);
formatter.field("backup_retention_period", &self.backup_retention_period);
formatter.field("character_set_name", &self.character_set_name);
formatter.field("database_name", &self.database_name);
formatter.field("db_cluster_identifier", &self.db_cluster_identifier);
formatter.field("db_cluster_parameter_group_name", &self.db_cluster_parameter_group_name);
formatter.field("vpc_security_group_ids", &self.vpc_security_group_ids);
formatter.field("db_subnet_group_name", &self.db_subnet_group_name);
formatter.field("engine", &self.engine);
formatter.field("engine_version", &self.engine_version);
formatter.field("port", &self.port);
formatter.field("master_username", &self.master_username);
formatter.field("master_user_password", &"*** Sensitive Data Redacted ***");
formatter.field("option_group_name", &self.option_group_name);
formatter.field("preferred_backup_window", &self.preferred_backup_window);
formatter.field("preferred_maintenance_window", &self.preferred_maintenance_window);
formatter.field("replication_source_identifier", &self.replication_source_identifier);
formatter.field("tags", &self.tags);
formatter.field("storage_encrypted", &self.storage_encrypted);
formatter.field("kms_key_id", &self.kms_key_id);
formatter.field("pre_signed_url", &"*** Sensitive Data Redacted ***");
formatter.field("enable_iam_database_authentication", &self.enable_iam_database_authentication);
formatter.field("backtrack_window", &self.backtrack_window);
formatter.field("enable_cloudwatch_logs_exports", &self.enable_cloudwatch_logs_exports);
formatter.field("engine_mode", &self.engine_mode);
formatter.field("scaling_configuration", &self.scaling_configuration);
formatter.field("rds_custom_cluster_configuration", &self.rds_custom_cluster_configuration);
formatter.field("db_cluster_instance_class", &self.db_cluster_instance_class);
formatter.field("allocated_storage", &self.allocated_storage);
formatter.field("storage_type", &self.storage_type);
formatter.field("iops", &self.iops);
formatter.field("publicly_accessible", &self.publicly_accessible);
formatter.field("auto_minor_version_upgrade", &self.auto_minor_version_upgrade);
formatter.field("deletion_protection", &self.deletion_protection);
formatter.field("global_cluster_identifier", &self.global_cluster_identifier);
formatter.field("enable_http_endpoint", &self.enable_http_endpoint);
formatter.field("copy_tags_to_snapshot", &self.copy_tags_to_snapshot);
formatter.field("domain", &self.domain);
formatter.field("domain_iam_role_name", &self.domain_iam_role_name);
formatter.field("enable_global_write_forwarding", &self.enable_global_write_forwarding);
formatter.field("network_type", &self.network_type);
formatter.field("serverless_v2_scaling_configuration", &self.serverless_v2_scaling_configuration);
formatter.field("monitoring_interval", &self.monitoring_interval);
formatter.field("monitoring_role_arn", &self.monitoring_role_arn);
formatter.field("database_insights_mode", &self.database_insights_mode);
formatter.field("enable_performance_insights", &self.enable_performance_insights);
formatter.field("performance_insights_kms_key_id", &self.performance_insights_kms_key_id);
formatter.field("performance_insights_retention_period", &self.performance_insights_retention_period);
formatter.field("enable_limitless_database", &self.enable_limitless_database);
formatter.field("cluster_scalability_type", &self.cluster_scalability_type);
formatter.field("db_system_id", &self.db_system_id);
formatter.field("manage_master_user_password", &self.manage_master_user_password);
formatter.field("enable_local_write_forwarding", &self.enable_local_write_forwarding);
formatter.field("master_user_secret_kms_key_id", &self.master_user_secret_kms_key_id);
formatter.field("ca_certificate_identifier", &self.ca_certificate_identifier);
formatter.field("engine_lifecycle_support", &self.engine_lifecycle_support);
formatter.field("tag_specifications", &self.tag_specifications);
formatter.field("master_user_authentication_type", &self.master_user_authentication_type);
formatter.field("with_express_configuration", &self.with_express_configuration);
formatter.finish()
}
}
impl CreateDbClusterInput {
/// Creates a new builder-style object to manufacture [`CreateDbClusterInput`](crate::operation::create_db_cluster::CreateDbClusterInput).
pub fn builder() -> crate::operation::create_db_cluster::builders::CreateDbClusterInputBuilder {
crate::operation::create_db_cluster::builders::CreateDbClusterInputBuilder::default()
}
}
/// A builder for [`CreateDbClusterInput`](crate::operation::create_db_cluster::CreateDbClusterInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct CreateDbClusterInputBuilder {
pub(crate) availability_zones: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) backup_retention_period: ::std::option::Option<i32>,
pub(crate) character_set_name: ::std::option::Option<::std::string::String>,
pub(crate) database_name: ::std::option::Option<::std::string::String>,
pub(crate) db_cluster_identifier: ::std::option::Option<::std::string::String>,
pub(crate) db_cluster_parameter_group_name: ::std::option::Option<::std::string::String>,
pub(crate) vpc_security_group_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) db_subnet_group_name: ::std::option::Option<::std::string::String>,
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) master_user_password: ::std::option::Option<::std::string::String>,
pub(crate) option_group_name: ::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) replication_source_identifier: ::std::option::Option<::std::string::String>,
pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
pub(crate) storage_encrypted: ::std::option::Option<bool>,
pub(crate) kms_key_id: ::std::option::Option<::std::string::String>,
pub(crate) pre_signed_url: ::std::option::Option<::std::string::String>,
pub(crate) enable_iam_database_authentication: ::std::option::Option<bool>,
pub(crate) backtrack_window: ::std::option::Option<i64>,
pub(crate) enable_cloudwatch_logs_exports: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) engine_mode: ::std::option::Option<::std::string::String>,
pub(crate) scaling_configuration: ::std::option::Option<crate::types::ScalingConfiguration>,
pub(crate) rds_custom_cluster_configuration: ::std::option::Option<crate::types::RdsCustomClusterConfiguration>,
pub(crate) db_cluster_instance_class: ::std::option::Option<::std::string::String>,
pub(crate) allocated_storage: ::std::option::Option<i32>,
pub(crate) storage_type: ::std::option::Option<::std::string::String>,
pub(crate) iops: ::std::option::Option<i32>,
pub(crate) publicly_accessible: ::std::option::Option<bool>,
pub(crate) auto_minor_version_upgrade: ::std::option::Option<bool>,
pub(crate) deletion_protection: ::std::option::Option<bool>,
pub(crate) global_cluster_identifier: ::std::option::Option<::std::string::String>,
pub(crate) enable_http_endpoint: ::std::option::Option<bool>,
pub(crate) copy_tags_to_snapshot: ::std::option::Option<bool>,
pub(crate) domain: ::std::option::Option<::std::string::String>,
pub(crate) domain_iam_role_name: ::std::option::Option<::std::string::String>,
pub(crate) enable_global_write_forwarding: ::std::option::Option<bool>,
pub(crate) network_type: ::std::option::Option<::std::string::String>,
pub(crate) serverless_v2_scaling_configuration: ::std::option::Option<crate::types::ServerlessV2ScalingConfiguration>,
pub(crate) monitoring_interval: ::std::option::Option<i32>,
pub(crate) monitoring_role_arn: ::std::option::Option<::std::string::String>,
pub(crate) database_insights_mode: ::std::option::Option<crate::types::DatabaseInsightsMode>,
pub(crate) enable_performance_insights: ::std::option::Option<bool>,
pub(crate) performance_insights_kms_key_id: ::std::option::Option<::std::string::String>,
pub(crate) performance_insights_retention_period: ::std::option::Option<i32>,
pub(crate) enable_limitless_database: ::std::option::Option<bool>,
pub(crate) cluster_scalability_type: ::std::option::Option<crate::types::ClusterScalabilityType>,
pub(crate) db_system_id: ::std::option::Option<::std::string::String>,
pub(crate) manage_master_user_password: ::std::option::Option<bool>,
pub(crate) enable_local_write_forwarding: ::std::option::Option<bool>,
pub(crate) master_user_secret_kms_key_id: ::std::option::Option<::std::string::String>,
pub(crate) ca_certificate_identifier: ::std::option::Option<::std::string::String>,
pub(crate) engine_lifecycle_support: ::std::option::Option<::std::string::String>,
pub(crate) tag_specifications: ::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>>,
pub(crate) master_user_authentication_type: ::std::option::Option<crate::types::MasterUserAuthenticationType>,
pub(crate) with_express_configuration: ::std::option::Option<bool>,
}
impl CreateDbClusterInputBuilder {
/// 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 you specifically want to create DB instances in the DB cluster.</p>
/// <p>For the first three DB instances that you create, RDS distributes each DB instance to a different AZ that you specify. For additional DB instances that you create, RDS randomly distributes them to the AZs that you specified. For example, if you create a DB cluster with one writer instance and three reader instances, RDS might distribute the writer instance to AZ 1, the first reader instance to AZ 2, the second reader instance to AZ 3, and the third reader instance to either AZ 1, AZ 2, or AZ 3.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.AvailabilityZones">Availability Zones</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Concepts.AuroraHighAvailability.Instances">High availability for Aurora DB instances</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Can't specify more than three AZs.</p></li>
/// </ul>
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 you specifically want to create DB instances in the DB cluster.</p>
/// <p>For the first three DB instances that you create, RDS distributes each DB instance to a different AZ that you specify. For additional DB instances that you create, RDS randomly distributes them to the AZs that you specified. For example, if you create a DB cluster with one writer instance and three reader instances, RDS might distribute the writer instance to AZ 1, the first reader instance to AZ 2, the second reader instance to AZ 3, and the third reader instance to either AZ 1, AZ 2, or AZ 3.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.AvailabilityZones">Availability Zones</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Concepts.AuroraHighAvailability.Instances">High availability for Aurora DB instances</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Can't specify more than three AZs.</p></li>
/// </ul>
pub fn set_availability_zones(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.availability_zones = input;
self
}
/// <p>A list of Availability Zones (AZs) where you specifically want to create DB instances in the DB cluster.</p>
/// <p>For the first three DB instances that you create, RDS distributes each DB instance to a different AZ that you specify. For additional DB instances that you create, RDS randomly distributes them to the AZs that you specified. For example, if you create a DB cluster with one writer instance and three reader instances, RDS might distribute the writer instance to AZ 1, the first reader instance to AZ 2, the second reader instance to AZ 3, and the third reader instance to either AZ 1, AZ 2, or AZ 3.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.AvailabilityZones">Availability Zones</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Concepts.AuroraHighAvailability.Instances">High availability for Aurora DB instances</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Can't specify more than three AZs.</p></li>
/// </ul>
pub fn get_availability_zones(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.availability_zones
}
/// <p>The number of days for which automated backups are retained.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Default: <code>1</code></p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be a value from 1 to 35.</p></li>
/// </ul>
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>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Default: <code>1</code></p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be a value from 1 to 35.</p></li>
/// </ul>
pub fn set_backup_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
self.backup_retention_period = input;
self
}
/// <p>The number of days for which automated backups are retained.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Default: <code>1</code></p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be a value from 1 to 35.</p></li>
/// </ul>
pub fn get_backup_retention_period(&self) -> &::std::option::Option<i32> {
&self.backup_retention_period
}
/// <p>The name of the character set (<code>CharacterSet</code>) to associate the DB cluster with.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn character_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.character_set_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the character set (<code>CharacterSet</code>) to associate the DB cluster with.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn set_character_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.character_set_name = input;
self
}
/// <p>The name of the character set (<code>CharacterSet</code>) to associate the DB cluster with.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn get_character_set_name(&self) -> &::std::option::Option<::std::string::String> {
&self.character_set_name
}
/// <p>The name for your database of up to 64 alphanumeric characters. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</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 for your database of up to 64 alphanumeric characters. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_database_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.database_name = input;
self
}
/// <p>The name for your database of up to 64 alphanumeric characters. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_database_name(&self) -> &::std::option::Option<::std::string::String> {
&self.database_name
}
/// <p>The identifier for this DB cluster. This parameter is stored as a lowercase string.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must contain from 1 to 63 (for Aurora DB clusters) or 1 to 52 (for Multi-AZ DB clusters) letters, numbers, or hyphens.</p></li>
/// <li>
/// <p>First character must be a letter.</p></li>
/// <li>
/// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
/// </ul>
/// <p>Example: <code>my-cluster1</code></p>
/// This field is required.
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 identifier for this DB cluster. This parameter is stored as a lowercase string.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must contain from 1 to 63 (for Aurora DB clusters) or 1 to 52 (for Multi-AZ DB clusters) letters, numbers, or hyphens.</p></li>
/// <li>
/// <p>First character must be a letter.</p></li>
/// <li>
/// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
/// </ul>
/// <p>Example: <code>my-cluster1</code></p>
pub fn set_db_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.db_cluster_identifier = input;
self
}
/// <p>The identifier for this DB cluster. This parameter is stored as a lowercase string.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must contain from 1 to 63 (for Aurora DB clusters) or 1 to 52 (for Multi-AZ DB clusters) letters, numbers, or hyphens.</p></li>
/// <li>
/// <p>First character must be a letter.</p></li>
/// <li>
/// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
/// </ul>
/// <p>Example: <code>my-cluster1</code></p>
pub fn get_db_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.db_cluster_identifier
}
/// <p>The name of the DB cluster parameter group to associate with this DB cluster. If you don't specify a value, then the default DB cluster parameter group for the specified DB engine and version is used.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>If supplied, must match the name of an existing DB cluster parameter group.</p></li>
/// </ul>
pub fn db_cluster_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.db_cluster_parameter_group_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the DB cluster parameter group to associate with this DB cluster. If you don't specify a value, then the default DB cluster parameter group for the specified DB engine and version is used.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>If supplied, must match the name of an existing DB cluster parameter group.</p></li>
/// </ul>
pub fn set_db_cluster_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.db_cluster_parameter_group_name = input;
self
}
/// <p>The name of the DB cluster parameter group to associate with this DB cluster. If you don't specify a value, then the default DB cluster parameter group for the specified DB engine and version is used.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>If supplied, must match the name of an existing DB cluster parameter group.</p></li>
/// </ul>
pub fn get_db_cluster_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
&self.db_cluster_parameter_group_name
}
/// Appends an item to `vpc_security_group_ids`.
///
/// To override the contents of this collection use [`set_vpc_security_group_ids`](Self::set_vpc_security_group_ids).
///
/// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn vpc_security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.vpc_security_group_ids.unwrap_or_default();
v.push(input.into());
self.vpc_security_group_ids = ::std::option::Option::Some(v);
self
}
/// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_vpc_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.vpc_security_group_ids = input;
self
}
/// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_vpc_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.vpc_security_group_ids
}
/// <p>A DB subnet group to associate with this DB cluster.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must match the name of an existing DB subnet group.</p></li>
/// </ul>
/// <p>Example: <code>mydbsubnetgroup</code></p>
pub fn db_subnet_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.db_subnet_group_name = ::std::option::Option::Some(input.into());
self
}
/// <p>A DB subnet group to associate with this DB cluster.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must match the name of an existing DB subnet group.</p></li>
/// </ul>
/// <p>Example: <code>mydbsubnetgroup</code></p>
pub fn set_db_subnet_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.db_subnet_group_name = input;
self
}
/// <p>A DB subnet group to associate with this DB cluster.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must match the name of an existing DB subnet group.</p></li>
/// </ul>
/// <p>Example: <code>mydbsubnetgroup</code></p>
pub fn get_db_subnet_group_name(&self) -> &::std::option::Option<::std::string::String> {
&self.db_subnet_group_name
}
/// <p>The database engine to use for this DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>aurora-mysql</code></p></li>
/// <li>
/// <p><code>aurora-postgresql</code></p></li>
/// <li>
/// <p><code>mysql</code></p></li>
/// <li>
/// <p><code>postgres</code></p></li>
/// <li>
/// <p><code>neptune</code> - For information about using Amazon Neptune, see the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/intro.html"> <i>Amazon Neptune User Guide</i> </a>.</p></li>
/// </ul>
/// This field is required.
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 database engine to use for this DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>aurora-mysql</code></p></li>
/// <li>
/// <p><code>aurora-postgresql</code></p></li>
/// <li>
/// <p><code>mysql</code></p></li>
/// <li>
/// <p><code>postgres</code></p></li>
/// <li>
/// <p><code>neptune</code> - For information about using Amazon Neptune, see the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/intro.html"> <i>Amazon Neptune User Guide</i> </a>.</p></li>
/// </ul>
pub fn set_engine(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.engine = input;
self
}
/// <p>The database engine to use for this DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>aurora-mysql</code></p></li>
/// <li>
/// <p><code>aurora-postgresql</code></p></li>
/// <li>
/// <p><code>mysql</code></p></li>
/// <li>
/// <p><code>postgres</code></p></li>
/// <li>
/// <p><code>neptune</code> - For information about using Amazon Neptune, see the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/intro.html"> <i>Amazon Neptune User Guide</i> </a>.</p></li>
/// </ul>
pub fn get_engine(&self) -> &::std::option::Option<::std::string::String> {
&self.engine
}
/// <p>The version number of the database engine to use.</p>
/// <p>To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>You can supply either <code>5.7</code> or <code>8.0</code> to use the default engine version for Aurora MySQL version 2 or version 3, respectively.</p>
/// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>For information about a specific engine, see the following topics:</p>
/// <ul>
/// <li>
/// <p>Aurora MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html">Database engine updates for Amazon Aurora MySQL</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
/// <li>
/// <p>Aurora PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html">Amazon Aurora PostgreSQL releases and engine versions</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
/// <li>
/// <p>RDS for MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">Amazon RDS for MySQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
/// <li>
/// <p>RDS for PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</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>
/// <p>To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>You can supply either <code>5.7</code> or <code>8.0</code> to use the default engine version for Aurora MySQL version 2 or version 3, respectively.</p>
/// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>For information about a specific engine, see the following topics:</p>
/// <ul>
/// <li>
/// <p>Aurora MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html">Database engine updates for Amazon Aurora MySQL</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
/// <li>
/// <p>Aurora PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html">Amazon Aurora PostgreSQL releases and engine versions</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
/// <li>
/// <p>RDS for MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">Amazon RDS for MySQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
/// <li>
/// <p>RDS for PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.engine_version = input;
self
}
/// <p>The version number of the database engine to use.</p>
/// <p>To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>You can supply either <code>5.7</code> or <code>8.0</code> to use the default engine version for Aurora MySQL version 2 or version 3, respectively.</p>
/// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
/// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
/// <p>For information about a specific engine, see the following topics:</p>
/// <ul>
/// <li>
/// <p>Aurora MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html">Database engine updates for Amazon Aurora MySQL</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
/// <li>
/// <p>Aurora PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html">Amazon Aurora PostgreSQL releases and engine versions</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
/// <li>
/// <p>RDS for MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">Amazon RDS for MySQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
/// <li>
/// <p>RDS for PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
&self.engine_version
}
/// <p>The port number on which the instances in the DB cluster accept connections.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>1150-65535</code></p>
/// <p>Default:</p>
/// <ul>
/// <li>
/// <p>RDS for MySQL and Aurora MySQL - <code>3306</code></p></li>
/// <li>
/// <p>RDS for PostgreSQL and Aurora PostgreSQL - <code>5432</code></p></li>
/// </ul>
pub fn port(mut self, input: i32) -> Self {
self.port = ::std::option::Option::Some(input);
self
}
/// <p>The port number on which the instances in the DB cluster accept connections.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>1150-65535</code></p>
/// <p>Default:</p>
/// <ul>
/// <li>
/// <p>RDS for MySQL and Aurora MySQL - <code>3306</code></p></li>
/// <li>
/// <p>RDS for PostgreSQL and Aurora PostgreSQL - <code>5432</code></p></li>
/// </ul>
pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
self.port = input;
self
}
/// <p>The port number on which the instances in the DB cluster accept connections.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>1150-65535</code></p>
/// <p>Default:</p>
/// <ul>
/// <li>
/// <p>RDS for MySQL and Aurora MySQL - <code>3306</code></p></li>
/// <li>
/// <p>RDS for PostgreSQL and Aurora PostgreSQL - <code>5432</code></p></li>
/// </ul>
pub fn get_port(&self) -> &::std::option::Option<i32> {
&self.port
}
/// <p>The name of the master user for the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be 1 to 16 letters or numbers.</p></li>
/// <li>
/// <p>First character must be a letter.</p></li>
/// <li>
/// <p>Can't be a reserved word for the chosen database engine.</p></li>
/// </ul>
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>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be 1 to 16 letters or numbers.</p></li>
/// <li>
/// <p>First character must be a letter.</p></li>
/// <li>
/// <p>Can't be a reserved word for the chosen database engine.</p></li>
/// </ul>
pub fn set_master_username(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.master_username = input;
self
}
/// <p>The name of the master user for the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be 1 to 16 letters or numbers.</p></li>
/// <li>
/// <p>First character must be a letter.</p></li>
/// <li>
/// <p>Can't be a reserved word for the chosen database engine.</p></li>
/// </ul>
pub fn get_master_username(&self) -> &::std::option::Option<::std::string::String> {
&self.master_username
}
/// <p>The password for the master database user.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must contain from 8 to 41 characters.</p></li>
/// <li>
/// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
/// <li>
/// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
/// </ul>
pub fn master_user_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.master_user_password = ::std::option::Option::Some(input.into());
self
}
/// <p>The password for the master database user.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must contain from 8 to 41 characters.</p></li>
/// <li>
/// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
/// <li>
/// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
/// </ul>
pub fn set_master_user_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.master_user_password = input;
self
}
/// <p>The password for the master database user.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must contain from 8 to 41 characters.</p></li>
/// <li>
/// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
/// <li>
/// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
/// </ul>
pub fn get_master_user_password(&self) -> &::std::option::Option<::std::string::String> {
&self.master_user_password
}
/// <p>The option group to associate the DB cluster with.</p>
/// <p>DB clusters are associated with a default option group that can't be modified.</p>
pub fn option_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.option_group_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The option group to associate the DB cluster with.</p>
/// <p>DB clusters are associated with a default option group that can't be modified.</p>
pub fn set_option_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.option_group_name = input;
self
}
/// <p>The option group to associate the DB cluster with.</p>
/// <p>DB clusters are associated with a default option group that can't be modified.</p>
pub fn get_option_group_name(&self) -> &::std::option::Option<::std::string::String> {
&self.option_group_name
}
/// <p>The daily time range during which automated backups are created if automated backups are enabled using the <code>BackupRetentionPeriod</code> parameter.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
/// <li>
/// <p>Must be in Universal Coordinated Time (UTC).</p></li>
/// <li>
/// <p>Must not conflict with the preferred maintenance window.</p></li>
/// <li>
/// <p>Must be at least 30 minutes.</p></li>
/// </ul>
pub fn preferred_backup_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.preferred_backup_window = ::std::option::Option::Some(input.into());
self
}
/// <p>The daily time range during which automated backups are created if automated backups are enabled using the <code>BackupRetentionPeriod</code> parameter.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
/// <li>
/// <p>Must be in Universal Coordinated Time (UTC).</p></li>
/// <li>
/// <p>Must not conflict with the preferred maintenance window.</p></li>
/// <li>
/// <p>Must be at least 30 minutes.</p></li>
/// </ul>
pub fn set_preferred_backup_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.preferred_backup_window = input;
self
}
/// <p>The daily time range during which automated backups are created if automated backups are enabled using the <code>BackupRetentionPeriod</code> parameter.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
/// <li>
/// <p>Must be in Universal Coordinated Time (UTC).</p></li>
/// <li>
/// <p>Must not conflict with the preferred maintenance window.</p></li>
/// <li>
/// <p>Must be at least 30 minutes.</p></li>
/// </ul>
pub fn get_preferred_backup_window(&self) -> &::std::option::Option<::std::string::String> {
&self.preferred_backup_window
}
/// <p>The weekly time range during which system maintenance can occur.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
/// <li>
/// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
/// <li>
/// <p>Must be in Universal Coordinated Time (UTC).</p></li>
/// <li>
/// <p>Must be at least 30 minutes.</p></li>
/// </ul>
pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.preferred_maintenance_window = ::std::option::Option::Some(input.into());
self
}
/// <p>The weekly time range during which system maintenance can occur.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
/// <li>
/// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
/// <li>
/// <p>Must be in Universal Coordinated Time (UTC).</p></li>
/// <li>
/// <p>Must be at least 30 minutes.</p></li>
/// </ul>
pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.preferred_maintenance_window = input;
self
}
/// <p>The weekly time range during which system maintenance can occur.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
/// <li>
/// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
/// <li>
/// <p>Must be in Universal Coordinated Time (UTC).</p></li>
/// <li>
/// <p>Must be at least 30 minutes.</p></li>
/// </ul>
pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
&self.preferred_maintenance_window
}
/// <p>The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn replication_source_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.replication_source_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_replication_source_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.replication_source_identifier = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_replication_source_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.replication_source_identifier
}
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>Tags to assign to the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn tags(mut self, input: crate::types::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = ::std::option::Option::Some(v);
self
}
/// <p>Tags to assign to the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
self.tags = input;
self
}
/// <p>Tags to assign to the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
&self.tags
}
/// <p>Specifies whether the DB cluster is encrypted.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn storage_encrypted(mut self, input: bool) -> Self {
self.storage_encrypted = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether the DB cluster is encrypted.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_storage_encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
self.storage_encrypted = input;
self
}
/// <p>Specifies whether the DB cluster is encrypted.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_storage_encrypted(&self) -> &::std::option::Option<bool> {
&self.storage_encrypted
}
/// <p>The Amazon Web Services KMS key identifier for an encrypted DB cluster.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
/// <p>When a KMS key isn't specified in <code>KmsKeyId</code>:</p>
/// <ul>
/// <li>
/// <p>If <code>ReplicationSourceIdentifier</code> identifies an encrypted source, then Amazon RDS uses the KMS key used to encrypt the source. Otherwise, Amazon RDS uses your default KMS key.</p></li>
/// <li>
/// <p>If the <code>StorageEncrypted</code> parameter is enabled and <code>ReplicationSourceIdentifier</code> isn't specified, then Amazon RDS uses your default KMS key.</p></li>
/// </ul>
/// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>If you create a read replica of an encrypted DB cluster in another Amazon Web Services Region, make sure to set <code>KmsKeyId</code> to a KMS key identifier that is valid in the destination Amazon Web Services Region. This KMS key is used to encrypt the read replica in that Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</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 Amazon Web Services KMS key identifier for an encrypted DB cluster.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
/// <p>When a KMS key isn't specified in <code>KmsKeyId</code>:</p>
/// <ul>
/// <li>
/// <p>If <code>ReplicationSourceIdentifier</code> identifies an encrypted source, then Amazon RDS uses the KMS key used to encrypt the source. Otherwise, Amazon RDS uses your default KMS key.</p></li>
/// <li>
/// <p>If the <code>StorageEncrypted</code> parameter is enabled and <code>ReplicationSourceIdentifier</code> isn't specified, then Amazon RDS uses your default KMS key.</p></li>
/// </ul>
/// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>If you create a read replica of an encrypted DB cluster in another Amazon Web Services Region, make sure to set <code>KmsKeyId</code> to a KMS key identifier that is valid in the destination Amazon Web Services Region. This KMS key is used to encrypt the read replica in that Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</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 Amazon Web Services KMS key identifier for an encrypted DB cluster.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
/// <p>When a KMS key isn't specified in <code>KmsKeyId</code>:</p>
/// <ul>
/// <li>
/// <p>If <code>ReplicationSourceIdentifier</code> identifies an encrypted source, then Amazon RDS uses the KMS key used to encrypt the source. Otherwise, Amazon RDS uses your default KMS key.</p></li>
/// <li>
/// <p>If the <code>StorageEncrypted</code> parameter is enabled and <code>ReplicationSourceIdentifier</code> isn't specified, then Amazon RDS uses your default KMS key.</p></li>
/// </ul>
/// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>If you create a read replica of an encrypted DB cluster in another Amazon Web Services Region, make sure to set <code>KmsKeyId</code> to a KMS key identifier that is valid in the destination Amazon Web Services Region. This KMS key is used to encrypt the read replica in that Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
&self.kms_key_id
}
/// <p>When you are replicating a DB cluster from one Amazon Web Services GovCloud (US) Region to another, an URL that contains a Signature Version 4 signed request for the <code>CreateDBCluster</code> operation to be called in the source Amazon Web Services Region where the DB cluster is replicated from. Specify <code>PreSignedUrl</code> only when you are performing cross-Region replication from an encrypted DB cluster.</p>
/// <p>The presigned URL must be a valid request for the <code>CreateDBCluster</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster to copy.</p>
/// <p>The presigned URL request must contain the following parameter values:</p>
/// <ul>
/// <li>
/// <p><code>KmsKeyId</code> - The KMS key identifier for the KMS key to use to encrypt the copy of the DB cluster in the destination Amazon Web Services Region. This should refer to the same KMS key for both the <code>CreateDBCluster</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
/// <li>
/// <p><code>DestinationRegion</code> - The name of the Amazon Web Services Region that Aurora read replica will be created in.</p></li>
/// <li>
/// <p><code>ReplicationSourceIdentifier</code> - The DB cluster identifier for the encrypted DB cluster to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB cluster from the us-west-2 Amazon Web Services Region, then your <code>ReplicationSourceIdentifier</code> would look like Example: <code>arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1</code>.</p></li>
/// </ul>
/// <p>To learn how to generate a Signature Version 4 signed request, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html"> Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4)</a> and <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html"> Signature Version 4 Signing Process</a>.</p><note>
/// <p>If you are using an Amazon Web Services SDK tool or the CLI, you can specify <code>SourceRegion</code> (or <code>--source-region</code> for the CLI) instead of specifying <code>PreSignedUrl</code> manually. Specifying <code>SourceRegion</code> autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.</p>
/// </note>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn pre_signed_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.pre_signed_url = ::std::option::Option::Some(input.into());
self
}
/// <p>When you are replicating a DB cluster from one Amazon Web Services GovCloud (US) Region to another, an URL that contains a Signature Version 4 signed request for the <code>CreateDBCluster</code> operation to be called in the source Amazon Web Services Region where the DB cluster is replicated from. Specify <code>PreSignedUrl</code> only when you are performing cross-Region replication from an encrypted DB cluster.</p>
/// <p>The presigned URL must be a valid request for the <code>CreateDBCluster</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster to copy.</p>
/// <p>The presigned URL request must contain the following parameter values:</p>
/// <ul>
/// <li>
/// <p><code>KmsKeyId</code> - The KMS key identifier for the KMS key to use to encrypt the copy of the DB cluster in the destination Amazon Web Services Region. This should refer to the same KMS key for both the <code>CreateDBCluster</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
/// <li>
/// <p><code>DestinationRegion</code> - The name of the Amazon Web Services Region that Aurora read replica will be created in.</p></li>
/// <li>
/// <p><code>ReplicationSourceIdentifier</code> - The DB cluster identifier for the encrypted DB cluster to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB cluster from the us-west-2 Amazon Web Services Region, then your <code>ReplicationSourceIdentifier</code> would look like Example: <code>arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1</code>.</p></li>
/// </ul>
/// <p>To learn how to generate a Signature Version 4 signed request, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html"> Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4)</a> and <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html"> Signature Version 4 Signing Process</a>.</p><note>
/// <p>If you are using an Amazon Web Services SDK tool or the CLI, you can specify <code>SourceRegion</code> (or <code>--source-region</code> for the CLI) instead of specifying <code>PreSignedUrl</code> manually. Specifying <code>SourceRegion</code> autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.</p>
/// </note>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn set_pre_signed_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.pre_signed_url = input;
self
}
/// <p>When you are replicating a DB cluster from one Amazon Web Services GovCloud (US) Region to another, an URL that contains a Signature Version 4 signed request for the <code>CreateDBCluster</code> operation to be called in the source Amazon Web Services Region where the DB cluster is replicated from. Specify <code>PreSignedUrl</code> only when you are performing cross-Region replication from an encrypted DB cluster.</p>
/// <p>The presigned URL must be a valid request for the <code>CreateDBCluster</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster to copy.</p>
/// <p>The presigned URL request must contain the following parameter values:</p>
/// <ul>
/// <li>
/// <p><code>KmsKeyId</code> - The KMS key identifier for the KMS key to use to encrypt the copy of the DB cluster in the destination Amazon Web Services Region. This should refer to the same KMS key for both the <code>CreateDBCluster</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
/// <li>
/// <p><code>DestinationRegion</code> - The name of the Amazon Web Services Region that Aurora read replica will be created in.</p></li>
/// <li>
/// <p><code>ReplicationSourceIdentifier</code> - The DB cluster identifier for the encrypted DB cluster to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB cluster from the us-west-2 Amazon Web Services Region, then your <code>ReplicationSourceIdentifier</code> would look like Example: <code>arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1</code>.</p></li>
/// </ul>
/// <p>To learn how to generate a Signature Version 4 signed request, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html"> Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4)</a> and <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html"> Signature Version 4 Signing Process</a>.</p><note>
/// <p>If you are using an Amazon Web Services SDK tool or the CLI, you can specify <code>SourceRegion</code> (or <code>--source-region</code> for the CLI) instead of specifying <code>PreSignedUrl</code> manually. Specifying <code>SourceRegion</code> autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.</p>
/// </note>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn get_pre_signed_url(&self) -> &::std::option::Option<::std::string::String> {
&self.pre_signed_url
}
/// <p>Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn enable_iam_database_authentication(mut self, input: bool) -> Self {
self.enable_iam_database_authentication = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_enable_iam_database_authentication(mut self, input: ::std::option::Option<bool>) -> Self {
self.enable_iam_database_authentication = input;
self
}
/// <p>Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_enable_iam_database_authentication(&self) -> &::std::option::Option<bool> {
&self.enable_iam_database_authentication
}
/// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
/// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
/// <p>Default: <code>0</code></p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
/// </ul>
pub fn backtrack_window(mut self, input: i64) -> Self {
self.backtrack_window = ::std::option::Option::Some(input);
self
}
/// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
/// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
/// <p>Default: <code>0</code></p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
/// </ul>
pub fn set_backtrack_window(mut self, input: ::std::option::Option<i64>) -> Self {
self.backtrack_window = input;
self
}
/// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
/// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
/// <p>Default: <code>0</code></p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
/// </ul>
pub fn get_backtrack_window(&self) -> &::std::option::Option<i64> {
&self.backtrack_window
}
/// Appends an item to `enable_cloudwatch_logs_exports`.
///
/// To override the contents of this collection use [`set_enable_cloudwatch_logs_exports`](Self::set_enable_cloudwatch_logs_exports).
///
/// <p>The list of log types that need to be enabled for exporting to CloudWatch Logs.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The following values are valid for each DB engine:</p>
/// <ul>
/// <li>
/// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
/// <li>
/// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
/// <li>
/// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
/// <li>
/// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
/// </ul>
/// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
pub fn enable_cloudwatch_logs_exports(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.enable_cloudwatch_logs_exports.unwrap_or_default();
v.push(input.into());
self.enable_cloudwatch_logs_exports = ::std::option::Option::Some(v);
self
}
/// <p>The list of log types that need to be enabled for exporting to CloudWatch Logs.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The following values are valid for each DB engine:</p>
/// <ul>
/// <li>
/// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
/// <li>
/// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
/// <li>
/// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
/// <li>
/// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
/// </ul>
/// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
pub fn set_enable_cloudwatch_logs_exports(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.enable_cloudwatch_logs_exports = input;
self
}
/// <p>The list of log types that need to be enabled for exporting to CloudWatch Logs.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>The following values are valid for each DB engine:</p>
/// <ul>
/// <li>
/// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
/// <li>
/// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
/// <li>
/// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
/// <li>
/// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
/// </ul>
/// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
pub fn get_enable_cloudwatch_logs_exports(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.enable_cloudwatch_logs_exports
}
/// <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p>
/// <p>The <code>serverless</code> engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the <code>provisioned</code> engine mode.</p>
/// <p>For information about limitations and requirements for Serverless DB clusters, see the following sections in the <i>Amazon Aurora User Guide</i>:</p>
/// <ul>
/// <li>
/// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations">Limitations of Aurora Serverless v1</a></p></li>
/// <li>
/// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html">Requirements for Aurora Serverless v2</a></p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
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 DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p>
/// <p>The <code>serverless</code> engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the <code>provisioned</code> engine mode.</p>
/// <p>For information about limitations and requirements for Serverless DB clusters, see the following sections in the <i>Amazon Aurora User Guide</i>:</p>
/// <ul>
/// <li>
/// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations">Limitations of Aurora Serverless v1</a></p></li>
/// <li>
/// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html">Requirements for Aurora Serverless v2</a></p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn set_engine_mode(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.engine_mode = input;
self
}
/// <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p>
/// <p>The <code>serverless</code> engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the <code>provisioned</code> engine mode.</p>
/// <p>For information about limitations and requirements for Serverless DB clusters, see the following sections in the <i>Amazon Aurora User Guide</i>:</p>
/// <ul>
/// <li>
/// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations">Limitations of Aurora Serverless v1</a></p></li>
/// <li>
/// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html">Requirements for Aurora Serverless v2</a></p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn get_engine_mode(&self) -> &::std::option::Option<::std::string::String> {
&self.engine_mode
}
/// <p>For DB clusters in <code>serverless</code> DB engine mode, the scaling properties of the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn scaling_configuration(mut self, input: crate::types::ScalingConfiguration) -> Self {
self.scaling_configuration = ::std::option::Option::Some(input);
self
}
/// <p>For DB clusters in <code>serverless</code> DB engine mode, the scaling properties of the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn set_scaling_configuration(mut self, input: ::std::option::Option<crate::types::ScalingConfiguration>) -> Self {
self.scaling_configuration = input;
self
}
/// <p>For DB clusters in <code>serverless</code> DB engine mode, the scaling properties of the DB cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn get_scaling_configuration(&self) -> &::std::option::Option<crate::types::ScalingConfiguration> {
&self.scaling_configuration
}
/// <p>Reserved for future use.</p>
pub fn rds_custom_cluster_configuration(mut self, input: crate::types::RdsCustomClusterConfiguration) -> Self {
self.rds_custom_cluster_configuration = ::std::option::Option::Some(input);
self
}
/// <p>Reserved for future use.</p>
pub fn set_rds_custom_cluster_configuration(mut self, input: ::std::option::Option<crate::types::RdsCustomClusterConfiguration>) -> Self {
self.rds_custom_cluster_configuration = input;
self
}
/// <p>Reserved for future use.</p>
pub fn get_rds_custom_cluster_configuration(&self) -> &::std::option::Option<crate::types::RdsCustomClusterConfiguration> {
&self.rds_custom_cluster_configuration
}
/// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
/// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance class</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
pub fn db_cluster_instance_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.db_cluster_instance_class = ::std::option::Option::Some(input.into());
self
}
/// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
/// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance class</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
pub fn set_db_cluster_instance_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.db_cluster_instance_class = input;
self
}
/// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
/// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance class</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
pub fn get_db_cluster_instance_class(&self) -> &::std::option::Option<::std::string::String> {
&self.db_cluster_instance_class
}
/// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
pub fn allocated_storage(mut self, input: i32) -> Self {
self.allocated_storage = ::std::option::Option::Some(input);
self
}
/// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
pub fn set_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
self.allocated_storage = input;
self
}
/// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
pub fn get_allocated_storage(&self) -> &::std::option::Option<i32> {
&self.allocated_storage
}
/// <p>The storage type to associate with the DB cluster.</p>
/// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
/// <li>
/// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
/// </ul>
/// <p>Default:</p>
/// <ul>
/// <li>
/// <p>Aurora DB clusters - <code>aurora</code></p></li>
/// <li>
/// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
/// </ul><note>
/// <p>When you create an Aurora DB cluster with the storage type set to <code>aurora-iopt1</code>, the storage type is returned in the response. The storage type isn't returned when you set it to <code>aurora</code>.</p>
/// </note>
pub fn storage_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.storage_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The storage type to associate with the DB cluster.</p>
/// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
/// <li>
/// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
/// </ul>
/// <p>Default:</p>
/// <ul>
/// <li>
/// <p>Aurora DB clusters - <code>aurora</code></p></li>
/// <li>
/// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
/// </ul><note>
/// <p>When you create an Aurora DB cluster with the storage type set to <code>aurora-iopt1</code>, the storage type is returned in the response. The storage type isn't returned when you set it to <code>aurora</code>.</p>
/// </note>
pub fn set_storage_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.storage_type = input;
self
}
/// <p>The storage type to associate with the DB cluster.</p>
/// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
/// <li>
/// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
/// </ul>
/// <p>Default:</p>
/// <ul>
/// <li>
/// <p>Aurora DB clusters - <code>aurora</code></p></li>
/// <li>
/// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
/// </ul><note>
/// <p>When you create an Aurora DB cluster with the storage type set to <code>aurora-iopt1</code>, the storage type is returned in the response. The storage type isn't returned when you set it to <code>aurora</code>.</p>
/// </note>
pub fn get_storage_type(&self) -> &::std::option::Option<::std::string::String> {
&self.storage_type
}
/// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
/// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
/// </ul>
pub fn iops(mut self, input: i32) -> Self {
self.iops = ::std::option::Option::Some(input);
self
}
/// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
/// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
/// </ul>
pub fn set_iops(mut self, input: ::std::option::Option<i32>) -> Self {
self.iops = input;
self
}
/// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
/// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>This setting is required to create a Multi-AZ DB cluster.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
/// </ul>
pub fn get_iops(&self) -> &::std::option::Option<i32> {
&self.iops
}
/// <p>Specifies whether the DB cluster is publicly accessible.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>When the DB cluster is publicly accessible and you connect from outside of the DB cluster's virtual private cloud (VPC), its domain name system (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to the private IP address. Access to the DB cluster is controlled by its security group settings.</p>
/// <p>When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.</p>
/// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
/// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
/// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
/// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
pub fn publicly_accessible(mut self, input: bool) -> Self {
self.publicly_accessible = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether the DB cluster is publicly accessible.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>When the DB cluster is publicly accessible and you connect from outside of the DB cluster's virtual private cloud (VPC), its domain name system (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to the private IP address. Access to the DB cluster is controlled by its security group settings.</p>
/// <p>When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.</p>
/// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
/// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
/// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
/// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
pub fn set_publicly_accessible(mut self, input: ::std::option::Option<bool>) -> Self {
self.publicly_accessible = input;
self
}
/// <p>Specifies whether the DB cluster is publicly accessible.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
/// <p>When the DB cluster is publicly accessible and you connect from outside of the DB cluster's virtual private cloud (VPC), its domain name system (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to the private IP address. Access to the DB cluster is controlled by its security group settings.</p>
/// <p>When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.</p>
/// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
/// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
/// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
/// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
pub fn get_publicly_accessible(&self) -> &::std::option::Option<bool> {
&self.publicly_accessible
}
/// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB cluster.</p>
/// <p>For more information about automatic minor version upgrades, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades">Automatically upgrading the minor engine version</a>.</p>
pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
self.auto_minor_version_upgrade = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB cluster.</p>
/// <p>For more information about automatic minor version upgrades, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades">Automatically upgrading the minor engine version</a>.</p>
pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
self.auto_minor_version_upgrade = input;
self
}
/// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB cluster.</p>
/// <p>For more information about automatic minor version upgrades, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades">Automatically upgrading the minor engine version</a>.</p>
pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
&self.auto_minor_version_upgrade
}
/// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn deletion_protection(mut self, input: bool) -> Self {
self.deletion_protection = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
self.deletion_protection = input;
self
}
/// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
&self.deletion_protection
}
/// <p>The global cluster ID of an Aurora cluster that becomes the primary cluster in the new global database cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn global_cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.global_cluster_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The global cluster ID of an Aurora cluster that becomes the primary cluster in the new global database cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn set_global_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.global_cluster_identifier = input;
self
}
/// <p>The global cluster ID of an Aurora cluster that becomes the primary cluster in the new global database cluster.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn get_global_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.global_cluster_identifier
}
/// <p>Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled.</p>
/// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn enable_http_endpoint(mut self, input: bool) -> Self {
self.enable_http_endpoint = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled.</p>
/// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn set_enable_http_endpoint(mut self, input: ::std::option::Option<bool>) -> Self {
self.enable_http_endpoint = input;
self
}
/// <p>Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled.</p>
/// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn get_enable_http_endpoint(&self) -> &::std::option::Option<bool> {
&self.enable_http_endpoint
}
/// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn copy_tags_to_snapshot(mut self, input: bool) -> Self {
self.copy_tags_to_snapshot = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_copy_tags_to_snapshot(mut self, input: ::std::option::Option<bool>) -> Self {
self.copy_tags_to_snapshot = input;
self
}
/// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_copy_tags_to_snapshot(&self) -> &::std::option::Option<bool> {
&self.copy_tags_to_snapshot
}
/// <p>The Active Directory directory ID to create the DB cluster in.</p>
/// <p>For Amazon Aurora DB clusters, Amazon RDS can use Kerberos authentication to authenticate users that connect to the DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain = ::std::option::Option::Some(input.into());
self
}
/// <p>The Active Directory directory ID to create the DB cluster in.</p>
/// <p>For Amazon Aurora DB clusters, Amazon RDS can use Kerberos authentication to authenticate users that connect to the DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain = input;
self
}
/// <p>The Active Directory directory ID to create the DB cluster in.</p>
/// <p>For Amazon Aurora DB clusters, Amazon RDS can use Kerberos authentication to authenticate users that connect to the DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
&self.domain
}
/// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn domain_iam_role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_iam_role_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn set_domain_iam_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_iam_role_name = input;
self
}
/// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn get_domain_iam_role_name(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_iam_role_name
}
/// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
/// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn enable_global_write_forwarding(mut self, input: bool) -> Self {
self.enable_global_write_forwarding = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
/// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn set_enable_global_write_forwarding(mut self, input: ::std::option::Option<bool>) -> Self {
self.enable_global_write_forwarding = input;
self
}
/// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
/// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
pub fn get_enable_global_write_forwarding(&self) -> &::std::option::Option<bool> {
&self.enable_global_write_forwarding
}
/// <p>The network type of the DB cluster.</p>
/// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
/// <p>Valid Values: <code>IPV4 | DUAL</code></p>
pub fn network_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.network_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The network type of the DB cluster.</p>
/// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
/// <p>Valid Values: <code>IPV4 | DUAL</code></p>
pub fn set_network_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.network_type = input;
self
}
/// <p>The network type of the DB cluster.</p>
/// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
/// <p>Valid for Cluster Type: Aurora DB clusters only</p>
/// <p>Valid Values: <code>IPV4 | DUAL</code></p>
pub fn get_network_type(&self) -> &::std::option::Option<::std::string::String> {
&self.network_type
}
/// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
pub fn serverless_v2_scaling_configuration(mut self, input: crate::types::ServerlessV2ScalingConfiguration) -> Self {
self.serverless_v2_scaling_configuration = ::std::option::Option::Some(input);
self
}
/// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
pub fn set_serverless_v2_scaling_configuration(mut self, input: ::std::option::Option<crate::types::ServerlessV2ScalingConfiguration>) -> Self {
self.serverless_v2_scaling_configuration = input;
self
}
/// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
pub fn get_serverless_v2_scaling_configuration(&self) -> &::std::option::Option<crate::types::ServerlessV2ScalingConfiguration> {
&self.serverless_v2_scaling_configuration
}
/// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
/// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
/// <p>Default: <code>0</code></p>
pub fn monitoring_interval(mut self, input: i32) -> Self {
self.monitoring_interval = ::std::option::Option::Some(input);
self
}
/// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
/// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
/// <p>Default: <code>0</code></p>
pub fn set_monitoring_interval(mut self, input: ::std::option::Option<i32>) -> Self {
self.monitoring_interval = input;
self
}
/// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
/// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
/// <p>Default: <code>0</code></p>
pub fn get_monitoring_interval(&self) -> &::std::option::Option<i32> {
&self.monitoring_interval
}
/// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting up and enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn monitoring_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.monitoring_role_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting up and enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_monitoring_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.monitoring_role_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting up and enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_monitoring_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.monitoring_role_arn
}
/// <p>The mode of Database Insights to enable for the DB cluster.</p>
/// <p>If you set this value to <code>advanced</code>, you must also set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn database_insights_mode(mut self, input: crate::types::DatabaseInsightsMode) -> Self {
self.database_insights_mode = ::std::option::Option::Some(input);
self
}
/// <p>The mode of Database Insights to enable for the DB cluster.</p>
/// <p>If you set this value to <code>advanced</code>, you must also set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_database_insights_mode(mut self, input: ::std::option::Option<crate::types::DatabaseInsightsMode>) -> Self {
self.database_insights_mode = input;
self
}
/// <p>The mode of Database Insights to enable for the DB cluster.</p>
/// <p>If you set this value to <code>advanced</code>, you must also set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_database_insights_mode(&self) -> &::std::option::Option<crate::types::DatabaseInsightsMode> {
&self.database_insights_mode
}
/// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn enable_performance_insights(mut self, input: bool) -> Self {
self.enable_performance_insights = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_enable_performance_insights(mut self, input: ::std::option::Option<bool>) -> Self {
self.enable_performance_insights = input;
self
}
/// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_enable_performance_insights(&self) -> &::std::option::Option<bool> {
&self.enable_performance_insights
}
/// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
/// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn performance_insights_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.performance_insights_kms_key_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
/// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_performance_insights_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.performance_insights_kms_key_id = input;
self
}
/// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
/// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_performance_insights_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
&self.performance_insights_kms_key_id
}
/// <p>The number of days to retain Performance Insights data.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>7</code></p></li>
/// <li>
/// <p><i>month</i> * 31, where <i>month</i> is a number of months from 1-23. Examples: <code>93</code> (3 months * 31), <code>341</code> (11 months * 31), <code>589</code> (19 months * 31)</p></li>
/// <li>
/// <p><code>731</code></p></li>
/// </ul>
/// <p>Default: <code>7</code> days</p>
/// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
pub fn performance_insights_retention_period(mut self, input: i32) -> Self {
self.performance_insights_retention_period = ::std::option::Option::Some(input);
self
}
/// <p>The number of days to retain Performance Insights data.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>7</code></p></li>
/// <li>
/// <p><i>month</i> * 31, where <i>month</i> is a number of months from 1-23. Examples: <code>93</code> (3 months * 31), <code>341</code> (11 months * 31), <code>589</code> (19 months * 31)</p></li>
/// <li>
/// <p><code>731</code></p></li>
/// </ul>
/// <p>Default: <code>7</code> days</p>
/// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
pub fn set_performance_insights_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
self.performance_insights_retention_period = input;
self
}
/// <p>The number of days to retain Performance Insights data.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>7</code></p></li>
/// <li>
/// <p><i>month</i> * 31, where <i>month</i> is a number of months from 1-23. Examples: <code>93</code> (3 months * 31), <code>341</code> (11 months * 31), <code>589</code> (19 months * 31)</p></li>
/// <li>
/// <p><code>731</code></p></li>
/// </ul>
/// <p>Default: <code>7</code> days</p>
/// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
pub fn get_performance_insights_retention_period(&self) -> &::std::option::Option<i32> {
&self.performance_insights_retention_period
}
/// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
/// <p>Valid for: Aurora DB clusters only</p><note>
/// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting.</p>
/// </note>
pub fn enable_limitless_database(mut self, input: bool) -> Self {
self.enable_limitless_database = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
/// <p>Valid for: Aurora DB clusters only</p><note>
/// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting.</p>
/// </note>
pub fn set_enable_limitless_database(mut self, input: ::std::option::Option<bool>) -> Self {
self.enable_limitless_database = input;
self
}
/// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
/// <p>Valid for: Aurora DB clusters only</p><note>
/// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting.</p>
/// </note>
pub fn get_enable_limitless_database(&self) -> &::std::option::Option<bool> {
&self.enable_limitless_database
}
/// <p>Specifies the scalability mode of the Aurora DB cluster. When set to <code>limitless</code>, the cluster operates as an Aurora Limitless Database. When set to <code>standard</code> (the default), the cluster uses normal DB instance creation.</p>
/// <p>Valid for: Aurora DB clusters only</p><note>
/// <p>You can't modify this setting after you create the DB cluster.</p>
/// </note>
pub fn cluster_scalability_type(mut self, input: crate::types::ClusterScalabilityType) -> Self {
self.cluster_scalability_type = ::std::option::Option::Some(input);
self
}
/// <p>Specifies the scalability mode of the Aurora DB cluster. When set to <code>limitless</code>, the cluster operates as an Aurora Limitless Database. When set to <code>standard</code> (the default), the cluster uses normal DB instance creation.</p>
/// <p>Valid for: Aurora DB clusters only</p><note>
/// <p>You can't modify this setting after you create the DB cluster.</p>
/// </note>
pub fn set_cluster_scalability_type(mut self, input: ::std::option::Option<crate::types::ClusterScalabilityType>) -> Self {
self.cluster_scalability_type = input;
self
}
/// <p>Specifies the scalability mode of the Aurora DB cluster. When set to <code>limitless</code>, the cluster operates as an Aurora Limitless Database. When set to <code>standard</code> (the default), the cluster uses normal DB instance creation.</p>
/// <p>Valid for: Aurora DB clusters only</p><note>
/// <p>You can't modify this setting after you create the DB cluster.</p>
/// </note>
pub fn get_cluster_scalability_type(&self) -> &::std::option::Option<crate::types::ClusterScalabilityType> {
&self.cluster_scalability_type
}
/// <p>Reserved for future use.</p>
pub fn db_system_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.db_system_id = ::std::option::Option::Some(input.into());
self
}
/// <p>Reserved for future use.</p>
pub fn set_db_system_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.db_system_id = input;
self
}
/// <p>Reserved for future use.</p>
pub fn get_db_system_id(&self) -> &::std::option::Option<::std::string::String> {
&self.db_system_id
}
/// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
/// </ul>
pub fn manage_master_user_password(mut self, input: bool) -> Self {
self.manage_master_user_password = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
/// </ul>
pub fn set_manage_master_user_password(mut self, input: ::std::option::Option<bool>) -> Self {
self.manage_master_user_password = input;
self
}
/// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Constraints:</p>
/// <ul>
/// <li>
/// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
/// </ul>
pub fn get_manage_master_user_password(&self) -> &::std::option::Option<bool> {
&self.manage_master_user_password
}
/// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
/// <p>Valid for: Aurora DB clusters only</p>
pub fn enable_local_write_forwarding(mut self, input: bool) -> Self {
self.enable_local_write_forwarding = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
/// <p>Valid for: Aurora DB clusters only</p>
pub fn set_enable_local_write_forwarding(mut self, input: ::std::option::Option<bool>) -> Self {
self.enable_local_write_forwarding = input;
self
}
/// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
/// <p>Valid for: Aurora DB clusters only</p>
pub fn get_enable_local_write_forwarding(&self) -> &::std::option::Option<bool> {
&self.enable_local_write_forwarding
}
/// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
/// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
/// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
/// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn master_user_secret_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.master_user_secret_kms_key_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
/// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
/// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
/// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn set_master_user_secret_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.master_user_secret_kms_key_id = input;
self
}
/// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
/// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster.</p>
/// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
/// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
/// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
pub fn get_master_user_secret_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
&self.master_user_secret_kms_key_id
}
/// <p>The CA certificate identifier to use for the DB cluster's server certificate.</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>.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
pub fn ca_certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ca_certificate_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The CA certificate identifier to use for the DB cluster's server certificate.</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>.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
pub fn set_ca_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ca_certificate_identifier = input;
self
}
/// <p>The CA certificate identifier to use for the DB cluster's server certificate.</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>.</p>
/// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
pub fn get_ca_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.ca_certificate_identifier
}
/// <p>The life cycle type for this DB cluster.</p><note>
/// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB cluster will fail if the DB major version is past its end of standard support date.</p>
/// </note>
/// <p>You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:</p>
/// <ul>
/// <li>
/// <p>Amazon Aurora - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html">Amazon RDS Extended Support with Amazon Aurora</a> in the <i>Amazon Aurora User Guide</i></p></li>
/// <li>
/// <p>Amazon RDS - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i></p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
/// <p>Default: <code>open-source-rds-extended-support</code></p>
pub fn engine_lifecycle_support(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.engine_lifecycle_support = ::std::option::Option::Some(input.into());
self
}
/// <p>The life cycle type for this DB cluster.</p><note>
/// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB cluster will fail if the DB major version is past its end of standard support date.</p>
/// </note>
/// <p>You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:</p>
/// <ul>
/// <li>
/// <p>Amazon Aurora - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html">Amazon RDS Extended Support with Amazon Aurora</a> in the <i>Amazon Aurora User Guide</i></p></li>
/// <li>
/// <p>Amazon RDS - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i></p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
/// <p>Default: <code>open-source-rds-extended-support</code></p>
pub fn set_engine_lifecycle_support(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.engine_lifecycle_support = input;
self
}
/// <p>The life cycle type for this DB cluster.</p><note>
/// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB cluster will fail if the DB major version is past its end of standard support date.</p>
/// </note>
/// <p>You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:</p>
/// <ul>
/// <li>
/// <p>Amazon Aurora - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html">Amazon RDS Extended Support with Amazon Aurora</a> in the <i>Amazon Aurora User Guide</i></p></li>
/// <li>
/// <p>Amazon RDS - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i></p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
/// <p>Default: <code>open-source-rds-extended-support</code></p>
pub fn get_engine_lifecycle_support(&self) -> &::std::option::Option<::std::string::String> {
&self.engine_lifecycle_support
}
/// Appends an item to `tag_specifications`.
///
/// To override the contents of this collection use [`set_tag_specifications`](Self::set_tag_specifications).
///
/// <p>Tags to assign to resources associated with the DB cluster.</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>cluster-auto-backup</code> - The DB cluster's automated backup.</p></li>
/// </ul>
pub fn tag_specifications(mut self, input: crate::types::TagSpecification) -> Self {
let mut v = self.tag_specifications.unwrap_or_default();
v.push(input);
self.tag_specifications = ::std::option::Option::Some(v);
self
}
/// <p>Tags to assign to resources associated with the DB cluster.</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>cluster-auto-backup</code> - The DB cluster's automated backup.</p></li>
/// </ul>
pub fn set_tag_specifications(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>>) -> Self {
self.tag_specifications = input;
self
}
/// <p>Tags to assign to resources associated with the DB cluster.</p>
/// <p>Valid Values:</p>
/// <ul>
/// <li>
/// <p><code>cluster-auto-backup</code> - The DB cluster's automated backup.</p></li>
/// </ul>
pub fn get_tag_specifications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>> {
&self.tag_specifications
}
/// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB cluster.</p>
/// <p>You can specify one of the following values:</p>
/// <ul>
/// <li>
/// <p><code>password</code> - Use standard database authentication with a password.</p></li>
/// <li>
/// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
pub fn master_user_authentication_type(mut self, input: crate::types::MasterUserAuthenticationType) -> Self {
self.master_user_authentication_type = ::std::option::Option::Some(input);
self
}
/// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB cluster.</p>
/// <p>You can specify one of the following values:</p>
/// <ul>
/// <li>
/// <p><code>password</code> - Use standard database authentication with a password.</p></li>
/// <li>
/// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
pub fn set_master_user_authentication_type(mut self, input: ::std::option::Option<crate::types::MasterUserAuthenticationType>) -> Self {
self.master_user_authentication_type = input;
self
}
/// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB cluster.</p>
/// <p>You can specify one of the following values:</p>
/// <ul>
/// <li>
/// <p><code>password</code> - Use standard database authentication with a password.</p></li>
/// <li>
/// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
/// </ul>
/// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
/// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
pub fn get_master_user_authentication_type(&self) -> &::std::option::Option<crate::types::MasterUserAuthenticationType> {
&self.master_user_authentication_type
}
/// <p>Specifies to create an Aurora DB Cluster with express configuration in seconds. Express configuration provides a cluster with a writer instance and feature specific values set to all other input parameters of this API.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters</p>
pub fn with_express_configuration(mut self, input: bool) -> Self {
self.with_express_configuration = ::std::option::Option::Some(input);
self
}
/// <p>Specifies to create an Aurora DB Cluster with express configuration in seconds. Express configuration provides a cluster with a writer instance and feature specific values set to all other input parameters of this API.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters</p>
pub fn set_with_express_configuration(mut self, input: ::std::option::Option<bool>) -> Self {
self.with_express_configuration = input;
self
}
/// <p>Specifies to create an Aurora DB Cluster with express configuration in seconds. Express configuration provides a cluster with a writer instance and feature specific values set to all other input parameters of this API.</p>
/// <p>Valid for Cluster Type: Aurora DB clusters</p>
pub fn get_with_express_configuration(&self) -> &::std::option::Option<bool> {
&self.with_express_configuration
}
/// Consumes the builder and constructs a [`CreateDbClusterInput`](crate::operation::create_db_cluster::CreateDbClusterInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::create_db_cluster::CreateDbClusterInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_db_cluster::CreateDbClusterInput {
availability_zones: self.availability_zones,
backup_retention_period: self.backup_retention_period,
character_set_name: self.character_set_name,
database_name: self.database_name,
db_cluster_identifier: self.db_cluster_identifier,
db_cluster_parameter_group_name: self.db_cluster_parameter_group_name,
vpc_security_group_ids: self.vpc_security_group_ids,
db_subnet_group_name: self.db_subnet_group_name,
engine: self.engine,
engine_version: self.engine_version,
port: self.port,
master_username: self.master_username,
master_user_password: self.master_user_password,
option_group_name: self.option_group_name,
preferred_backup_window: self.preferred_backup_window,
preferred_maintenance_window: self.preferred_maintenance_window,
replication_source_identifier: self.replication_source_identifier,
tags: self.tags,
storage_encrypted: self.storage_encrypted,
kms_key_id: self.kms_key_id,
pre_signed_url: self.pre_signed_url,
enable_iam_database_authentication: self.enable_iam_database_authentication,
backtrack_window: self.backtrack_window,
enable_cloudwatch_logs_exports: self.enable_cloudwatch_logs_exports,
engine_mode: self.engine_mode,
scaling_configuration: self.scaling_configuration,
rds_custom_cluster_configuration: self.rds_custom_cluster_configuration,
db_cluster_instance_class: self.db_cluster_instance_class,
allocated_storage: self.allocated_storage,
storage_type: self.storage_type,
iops: self.iops,
publicly_accessible: self.publicly_accessible,
auto_minor_version_upgrade: self.auto_minor_version_upgrade,
deletion_protection: self.deletion_protection,
global_cluster_identifier: self.global_cluster_identifier,
enable_http_endpoint: self.enable_http_endpoint,
copy_tags_to_snapshot: self.copy_tags_to_snapshot,
domain: self.domain,
domain_iam_role_name: self.domain_iam_role_name,
enable_global_write_forwarding: self.enable_global_write_forwarding,
network_type: self.network_type,
serverless_v2_scaling_configuration: self.serverless_v2_scaling_configuration,
monitoring_interval: self.monitoring_interval,
monitoring_role_arn: self.monitoring_role_arn,
database_insights_mode: self.database_insights_mode,
enable_performance_insights: self.enable_performance_insights,
performance_insights_kms_key_id: self.performance_insights_kms_key_id,
performance_insights_retention_period: self.performance_insights_retention_period,
enable_limitless_database: self.enable_limitless_database,
cluster_scalability_type: self.cluster_scalability_type,
db_system_id: self.db_system_id,
manage_master_user_password: self.manage_master_user_password,
enable_local_write_forwarding: self.enable_local_write_forwarding,
master_user_secret_kms_key_id: self.master_user_secret_kms_key_id,
ca_certificate_identifier: self.ca_certificate_identifier,
engine_lifecycle_support: self.engine_lifecycle_support,
tag_specifications: self.tag_specifications,
master_user_authentication_type: self.master_user_authentication_type,
with_express_configuration: self.with_express_configuration,
})
}
}
impl ::std::fmt::Debug for CreateDbClusterInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateDbClusterInputBuilder");
formatter.field("availability_zones", &self.availability_zones);
formatter.field("backup_retention_period", &self.backup_retention_period);
formatter.field("character_set_name", &self.character_set_name);
formatter.field("database_name", &self.database_name);
formatter.field("db_cluster_identifier", &self.db_cluster_identifier);
formatter.field("db_cluster_parameter_group_name", &self.db_cluster_parameter_group_name);
formatter.field("vpc_security_group_ids", &self.vpc_security_group_ids);
formatter.field("db_subnet_group_name", &self.db_subnet_group_name);
formatter.field("engine", &self.engine);
formatter.field("engine_version", &self.engine_version);
formatter.field("port", &self.port);
formatter.field("master_username", &self.master_username);
formatter.field("master_user_password", &"*** Sensitive Data Redacted ***");
formatter.field("option_group_name", &self.option_group_name);
formatter.field("preferred_backup_window", &self.preferred_backup_window);
formatter.field("preferred_maintenance_window", &self.preferred_maintenance_window);
formatter.field("replication_source_identifier", &self.replication_source_identifier);
formatter.field("tags", &self.tags);
formatter.field("storage_encrypted", &self.storage_encrypted);
formatter.field("kms_key_id", &self.kms_key_id);
formatter.field("pre_signed_url", &"*** Sensitive Data Redacted ***");
formatter.field("enable_iam_database_authentication", &self.enable_iam_database_authentication);
formatter.field("backtrack_window", &self.backtrack_window);
formatter.field("enable_cloudwatch_logs_exports", &self.enable_cloudwatch_logs_exports);
formatter.field("engine_mode", &self.engine_mode);
formatter.field("scaling_configuration", &self.scaling_configuration);
formatter.field("rds_custom_cluster_configuration", &self.rds_custom_cluster_configuration);
formatter.field("db_cluster_instance_class", &self.db_cluster_instance_class);
formatter.field("allocated_storage", &self.allocated_storage);
formatter.field("storage_type", &self.storage_type);
formatter.field("iops", &self.iops);
formatter.field("publicly_accessible", &self.publicly_accessible);
formatter.field("auto_minor_version_upgrade", &self.auto_minor_version_upgrade);
formatter.field("deletion_protection", &self.deletion_protection);
formatter.field("global_cluster_identifier", &self.global_cluster_identifier);
formatter.field("enable_http_endpoint", &self.enable_http_endpoint);
formatter.field("copy_tags_to_snapshot", &self.copy_tags_to_snapshot);
formatter.field("domain", &self.domain);
formatter.field("domain_iam_role_name", &self.domain_iam_role_name);
formatter.field("enable_global_write_forwarding", &self.enable_global_write_forwarding);
formatter.field("network_type", &self.network_type);
formatter.field("serverless_v2_scaling_configuration", &self.serverless_v2_scaling_configuration);
formatter.field("monitoring_interval", &self.monitoring_interval);
formatter.field("monitoring_role_arn", &self.monitoring_role_arn);
formatter.field("database_insights_mode", &self.database_insights_mode);
formatter.field("enable_performance_insights", &self.enable_performance_insights);
formatter.field("performance_insights_kms_key_id", &self.performance_insights_kms_key_id);
formatter.field("performance_insights_retention_period", &self.performance_insights_retention_period);
formatter.field("enable_limitless_database", &self.enable_limitless_database);
formatter.field("cluster_scalability_type", &self.cluster_scalability_type);
formatter.field("db_system_id", &self.db_system_id);
formatter.field("manage_master_user_password", &self.manage_master_user_password);
formatter.field("enable_local_write_forwarding", &self.enable_local_write_forwarding);
formatter.field("master_user_secret_kms_key_id", &self.master_user_secret_kms_key_id);
formatter.field("ca_certificate_identifier", &self.ca_certificate_identifier);
formatter.field("engine_lifecycle_support", &self.engine_lifecycle_support);
formatter.field("tag_specifications", &self.tag_specifications);
formatter.field("master_user_authentication_type", &self.master_user_authentication_type);
formatter.field("with_express_configuration", &self.with_express_configuration);
formatter.finish()
}
}