All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.alicloud.rds.kotlin.InstanceArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.rds.kotlin

import com.pulumi.alicloud.rds.InstanceArgs.builder
import com.pulumi.alicloud.rds.kotlin.inputs.InstanceBabelfishConfigArgs
import com.pulumi.alicloud.rds.kotlin.inputs.InstanceBabelfishConfigArgsBuilder
import com.pulumi.alicloud.rds.kotlin.inputs.InstanceParameterArgs
import com.pulumi.alicloud.rds.kotlin.inputs.InstanceParameterArgsBuilder
import com.pulumi.alicloud.rds.kotlin.inputs.InstancePgHbaConfArgs
import com.pulumi.alicloud.rds.kotlin.inputs.InstancePgHbaConfArgsBuilder
import com.pulumi.alicloud.rds.kotlin.inputs.InstanceServerlessConfigArgs
import com.pulumi.alicloud.rds.kotlin.inputs.InstanceServerlessConfigArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * ## Import
 * RDS instance can be imported using the id, e.g.
 * ```sh
 * $ pulumi import alicloud:rds/instance:Instance example rm-abc12345678
 * ```
 * @property acl The method that is used to verify the identities of clients. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. In addition, this parameter is available only when the public key of the CA that issues client certificates is enabled. Valid values:
 * - cert
 * - perfer
 * - verify-ca
 * - verify-full (supported only when the instance runs PostgreSQL 12 or later)
 * @property autoRenew Whether to renewal a DB instance automatically or not. It is valid when instance_charge_type is `PrePaid`. Default to `false`.
 * @property autoRenewPeriod Auto-renewal period of an instance, in the unit of the month. It is valid when instance_charge_type is `PrePaid`. Valid value:[1~12], Default to 1.
 * @property autoUpgradeMinorVersion The upgrade method to use. Valid values:
 * - Auto: Instances are automatically upgraded to a higher minor version.
 * - Manual: Instances are forcibly upgraded to a higher minor version when the current version is unpublished.
 * See more [details and limitation](https://www.alibabacloud.com/help/doc-detail/123605.htm).
 * @property babelfishConfigs The configuration of an ApsaraDB RDS for PostgreSQL instance for which Babelfish is enabled. See `babelfish_config` below.
 * > **NOTE:** This parameter takes effect only when you create an ApsaraDB RDS for PostgreSQL instance. For more information, see [Introduction to Babelfish](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/babelfish-for-pg).
 * @property babelfishPort The TDS port of the instance for which Babelfish is enabled.
 * > **NOTE:** This parameter applies only to ApsaraDB RDS for PostgreSQL instances. For more information about Babelfish for ApsaraDB RDS for PostgreSQL, see [Introduction to Babelfish](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/babelfish-for-pg).
 * @property caType The type of the server certificate. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the SSLEnabled parameter to 1, the default value of this parameter is aliyun. Value range:
 * - aliyun: a cloud certificate
 * - custom: a custom certificate
 * @property category The RDS edition of the instance. If you want to create a serverless instance, you must use this value. Valid values:
 * * **Basic**: Basic Edition.
 * * **HighAvailability**: High-availability Edition.
 * * **AlwaysOn**: Cluster Edition.
 * * **Finance**: Enterprise Edition.
 * * **cluster**: MySQL Cluster Edition. (Available since 1.202.0)
 * * **serverless_basic**: RDS Serverless Basic Edition. This edition is available only for instances that run MySQL and PostgreSQL. (Available since 1.200.0)
 * * **serverless_standard**: RDS Serverless Basic Edition. This edition is available only for instances that run MySQL and PostgreSQL. (Available since 1.204.0)
 * * **serverless_ha**: RDS Serverless High-availability Edition for SQL Server. (Available since 1.204.0)
 * > **NOTE:** `zone_id_slave_a` and `zone_id_slave_b` can specify slave zone ids when creating the high-availability or enterprise edition instances. Meanwhile, `vswitch_id` needs to pass in the corresponding vswitch id to the slave zone by order (If the `vswitch_id` is not specified, the classic network version will be created). For example, `zone_id` = "zone-a" and `zone_id_slave_a` = "zone-c", `zone_id_slave_b` = "zone-b", then the `vswitch_id` must be "vsw-zone-a,vsw-zone-c,vsw-zone-b". Of course, you can also choose automatic allocation , for example, `zone_id` = "zone-a" and `zone_id_slave_a` = "Auto",`zone_id_slave_b` = "Auto", then the `vswitch_id` must be "vsw-zone-a,Auto,Auto". The list contains up to 2 slave zone ids , separated by commas.
 * @property clientCaCert The public key of the CA that issues client certificates. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the ClientCAEbabled parameter to 1, you must also specify this parameter.
 * @property clientCaEnabled Specifies whether to enable the public key of the CA that issues client certificates. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. Valid values:
 * - 1: enables the public key
 * - 0: disables the public key
 * @property clientCertRevocationList The CRL that contains revoked client certificates. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the ClientCrlEnabled parameter to 1, you must also specify this parameter.
 * @property clientCrlEnabled Specifies whether to enable a certificate revocation list (CRL) that contains revoked client certificates. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. In addition, this parameter is available only when the public key of the CA that issues client certificates is enabled. Valid values:
 * - 1: enables the CRL
 * - 0: disables the CRL
 * @property connectionStringPrefix The private connection string prefix. If you want to update public connection string prefix, please use resource alicloud.rds.Connection connection_prefix.
 * > **NOTE:** The prefix must be 8 to 64 characters in length and can contain letters, digits, and hyphens (-). It cannot contain Chinese characters and special characters ~!#%^&*=+\|{};:'",<>/?
 * @property dbInstanceIpArrayAttribute The attribute of the IP address whitelist. By default, this parameter is empty.
 * > **NOTE:** The IP address whitelists that have the hidden attribute are not displayed in the ApsaraDB RDS console. These IP address whitelists are used to access Alibaba Cloud services, such as Data Transmission Service (DTS).
 * @property dbInstanceIpArrayName The name of the IP address whitelist. Default value: Default.
 * > **NOTE:** A maximum of 200 IP address whitelists can be configured for each instance.
 * @property dbInstanceStorageType The storage type of the instance. Serverless instance, only `cloud_essd` can be selected. Valid values:
 * - local_ssd: specifies to use local SSDs. This value is recommended.
 * - cloud_ssd: specifies to use standard SSDs.
 * - cloud_essd: specifies to use enhanced SSDs (ESSDs).
 * - cloud_essd2: specifies to use enhanced SSDs (ESSDs).
 * - cloud_essd3: specifies to use enhanced SSDs (ESSDs).
 * - general_essd: general essd.
 * @property dbIsIgnoreCase Specifies whether table names on the instance are case-sensitive. Valid values: `true`, `false`.
 * @property dbParamGroupId Parameter template ID. Only MySQL and PostgreSQL support this parameter. If this parameter is not specified, the default parameter template is used. You can also customize a parameter template and use it here.
 * @property dbTimeZone The time zone of the instance. This parameter takes effect only when you set the `Engine` parameter to MySQL or PostgreSQL.
 * - If you set the `Engine` parameter to MySQL.
 * - This time zone of the instance is in UTC. Valid values: -12:59 to +13:00.
 * - You can specify this parameter when the instance is equipped with local SSDs. For example, you can specify the time zone to Asia/Hong_Kong. For more information about time zones, see [Time zones](https://www.alibabacloud.com/help/doc-detail/297356.htm).
 * - If you set the `Engine` parameter to PostgreSQL.
 * - This time zone of the instance is not in UTC. For more information about time zones, see [Time zones](https://www.alibabacloud.com/help/doc-detail/297356.htm).
 * - You can specify this parameter only when the instance is equipped with standard SSDs or ESSDs.
 * > **NOTE:** You can specify the time zone when you create a primary instance. You cannot specify the time zone when you create a read-only instance. Read-only instances inherit the time zone of their primary instance. If you do not specify this parameter, the system assigns the default time zone of the region where the instance resides.
 * @property deletionProtection The switch of delete protection. Valid values:
 * - true: delete protect.
 * - false: no delete protect.
 * > **NOTE:** `deletion_protection` is valid only when attribute `instance_charge_type` is set to `Postpaid` or `Serverless`, supported engine type: `MySQL`, `PostgreSQL`, `MariaDB`, `MSSQL`.
 * @property direction The instance configuration type. Valid values: ["Up", "Down", "TempUpgrade", "Serverless"]
 * @property effectiveTime The method to update the engine version and change.  Default value: Immediate. Valid values:
 * - Immediate: The change immediately takes effect.
 * - MaintainTime: The change takes effect during the specified maintenance window. For more information, see ModifyDBInstanceMaintainTime.
 * @property encryptionKey The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
 * @property engine Database type. Value options: MySQL, SQLServer, PostgreSQL, MariaDB.
 * > **NOTE:** When the 'engine_version' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
 * @property engineVersion Database version. Value options can refer to the latest docs [CreateDBInstance](https://www.alibabacloud.com/help/doc-detail/26228.htm) `EngineVersion`.
 * - MySQL: [ 5.5、5.6、5.7、8.0 ]
 * - SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
 * - PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
 * - MariaDB: [ 10.3 ]
 * - Serverless
 * > - MySQL: [ 5.7、8.0 ]
 * > - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
 * > - PostgreSQL: [ 14.0 ]
 * > - MariaDB does not support creating serverless instances.
 * @property force Specifies whether to enable forcible switching. Valid values:
 * - Yes
 * - No
 * @property forceRestart Set it to true to make some parameter efficient when modifying them. Default to false.
 * @property freshWhiteListReadins The read-only instances to which you want to synchronize the IP address whitelist.
 * * If the instance is attached with a read-only instance, you can use this parameter to synchronize the IP address whitelist to the read-only instance. If the instance is attached with multiple read-only instances, the read-only instances must be separated by commas (,).
 * * If the instance is not attached with a read-only instance, this parameter is empty.
 * @property haConfig The primary/secondary switchover mode of the instance. Default value: Auto. Valid values:
 * - Auto: The system automatically switches over services from the primary to secondary instances in the event of a fault.
 * - Manual: You must manually switch over services from the primary to secondary instances in the event of a fault.
 * > **NOTE:** If you set this parameter to Manual, you must specify the ManualHATime parameter.
 * @property instanceChargeType Valid values are `Prepaid`, `Postpaid`, `Serverless`, Default to `Postpaid`. Currently, the resource only supports PostPaid to PrePaid. For more information, see [Overview](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/what-is-serverless?spm=a2c63.p38356.0.0.772a28cfTAGqIv).
 * @property instanceName The name of DB instance. It a string of 2 to 256 characters.
 * @property instanceStorage User-defined DB instance storage space. Value range:
 * - [5, 2000] for MySQL/PostgreSQL HA dual node edition;
 * - [20,1000] for MySQL 5.7 basic single node edition;
 * - [10, 2000] for SQL Server 2008R2;
 * - [20,2000] for SQL Server 2012 basic single node edition
 * Increase progressively at a rate of 5 GB. For details, see [Instance type table](https://www.alibabacloud.com/help/doc-detail/26312.htm).
 * Note: There is extra 5 GB storage for SQL Server Instance, and it is not in specified `instance_storage`.
 * @property instanceType DB Instance type. For details, see [Instance type table](https://www.alibabacloud.com/help/doc-detail/26312.htm).
 * - To create a serverless instance, please pass the following values:
 * - MySQL basic: mysql.n2.serverless.1c
 * - MySQL high availability: mysql.n2.serverless.2c
 * - SQLServer high availability: mssql.mem2.serverless.s2
 * - PostgreSQL basic: pg.n2.serverless.1c
 * > **NOTE:** When `storage_auto_scale="Enable"`, do not perform `instance_storage` check. when `storage_auto_scale="Disable"`, if the instance itself `instance_storage`has changed. You need to manually revise the `instance_storage` in the template value. When `payment_type="Serverless"` and when modifying, do not perform `instance_storage` check. Otherwise, check.
 * @property maintainTime Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
 * @property manualHaTime The time after when you want to enable automatic primary/secondary switchover. At most, you can set this parameter to 23:59:59 seven days later. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
 * > **NOTE:** This parameter only takes effect when the HAConfig parameter is set to Manual.
 * @property modifyMode The method that is used to modify the IP address whitelist. Default value: Cover. Valid values:
 * - Cover: Use the value of the SecurityIps parameter to overwrite the existing entries in the IP address whitelist.
 * - Append: Add the IP addresses and CIDR blocks that are specified in the SecurityIps parameter to the IP address whitelist.
 * - Delete: Delete IP addresses and CIDR blocks that are specified in the SecurityIps parameter from the IP address whitelist. You must retain at least one IP address or CIDR block.
 * @property monitoringPeriod The monitoring frequency in seconds. Valid values are 5, 10, 60, 300. Defaults to 300.
 * @property nodeId The globally unique identifier (GUID) of the secondary instance. You can call the DescribeDBInstanceHAConfig operation to query the GUID of the secondary instance.
 * @property parameters Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs [View database parameter templates](https://www.alibabacloud.com/help/doc-detail/26284.htm) . See `parameters` below.
 * @property period The duration that you will buy DB instance (in month). It is valid when instance_charge_type is `PrePaid`. Valid values: [1~9], 12, 24, 36.
 * > **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
 * @property pgHbaConfs The configuration of [AD domain](https://www.alibabacloud.com/help/en/doc-detail/349288.htm) . See `pg_hba_conf` below.
 * @property port The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
 * @property privateIpAddress The private IP address of the instance. The private IP address must be within the Classless Inter-Domain Routing (CIDR) block of the vSwitch that is specified by the VSwitchId parameter.
 * @property releasedKeepPolicy The policy based on which ApsaraDB RDS retains archived backup files after the instance is released. Valid values:
 * - None: No archived backup files are retained.
 * - Lastest: Only the last archived backup file is retained.
 * - All: All the archived backup files are retained.
 * > **NOTE:** This parameter is supported only when the instance runs the MySQL database engine.
 * @property replicationAcl The method that is used to verify the replication permission. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. In addition, this parameter is available only when the public key of the CA that issues client certificates is enabled. Valid values:
 * - cert
 * - perfer
 * - verify-ca
 * - verify-full (supported only when the instance runs PostgreSQL 12 or later)
 * @property resourceGroupId The ID of resource group which the DB instance belongs.
 * @property roleArn The Alibaba Cloud Resource Name (ARN) of the RAM role.
 * > **NOTE:**  This parameter is not required when you create an instance that runs MySQL, PostgreSQL, or SQL Server. You need to only specify the RoleARN parameter to create an instance that has cloud disk encryption enabled by using the obtained key ID.
 * You can configure RAM authorization to require a RAM user to enable cloud disk encryption when the RAM user is used to create an instance. If cloud disk encryption is disabled during the instance creation, the creation operation fails. To complete the configuration, you can attach the following policy to the RAM user: {"Version":"1","Statement":[{"Effect":"Deny","Action":"rds:CreateDBInstance","Resource":"*","Condition":{"StringEquals":{"rds:DiskEncryptionRequired":"false"}}}]}
 * @property securityGroupId It has been deprecated from 1.69.0 and use `security_group_ids` instead.
 * @property securityGroupIds , Available since 1.69.0) The list IDs to join ECS Security Group. At most supports three security groups.
 * @property securityIpMode Valid values are `normal`, `safety`, Default to `normal`. support `safety` switch to high security access mode.
 * @property securityIpType The type of IP address in the IP address whitelist.
 * @property securityIps List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
 * @property serverCert The content of the server certificate. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the CAType parameter to custom, you must also specify this parameter.
 * @property serverKey The private key of the server certificate. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the CAType parameter to custom, you must also specify this parameter.
 * @property serverlessConfigs The settings of the serverless instance. This parameter is required when you create a serverless instance. This parameter takes effect only when you create an ApsaraDB RDS for Serverless instance. See `serverless_config` below.
 * @property sqlCollectorConfigValue The sql collector keep time of the instance. Valid values are `30`, `180`, `365`, `1095`, `1825`, Default to `30`.
 * @property sqlCollectorStatus The sql collector status of the instance. Valid values are `Enabled`, `Disabled`, Default to `Disabled`.
 * @property sslAction Actions performed on SSL functions. Valid values:
 * `Open`: turn on SSL encryption;
 * `Close`: turn off SSL encryption;
 * `Update`: update SSL certificate.
 * See more [engine and engineVersion limitation](https://www.alibabacloud.com/help/zh/doc-detail/26254.htm).
 * > **NOTE:** The attribute `ssl_action` will be ignored when setting `instance_charge_type = "Serverless"` for SQLServer, PostgreSQL or MariaDB.
 * @property sslConnectionString The internal or public endpoint for which the server certificate needs to be created or updated.
 * @property storageAutoScale Automatic storage space expansion switch. Valid values:
 * - Enable
 * - Disable
 * > **NOTE:** This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
 * @property storageThreshold The threshold in percentage based on which an automatic storage expansion is triggered. If the available storage reaches the threshold, ApsaraDB RDS increases the storage capacity of the instance.
 * Valid values: [10, 20, 30, 40, 50].
 * > **NOTE:** This parameter only takes effect when the StorageAutoScale parameter is set to Enable. The value must be greater than or equal to the total size of the current storage space of the instance.
 * @property storageUpperBound The upper limit of the total storage space for automatic expansion of the storage space, that is, automatic expansion will not cause the total storage space of the instance to exceed this value. Unit: GB. The value must be ≥0.
 * > **NOTE:** Because of data backup and migration, change DB instance type and storage would cost 15~20 minutes. Please make full preparation before changing them.
 * @property switchTime The specific point in time when you want to perform the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. It is valid only when `target_minor_version` is changed. The time must be in UTC.
 * > **NOTE:** This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
 * @property tags A mapping of tags to assign to the resource.
 * - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
 * - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
 * Note: From 1.63.0, the tag key and value are case sensitive. Before that, they are not case sensitive.
 * @property targetMinorVersion The minor engine version to which you want to update the instance. If you do not specify this parameter, the instance is updated to the latest minor engine version. You must specify the minor engine version in one of the following formats:
 * - PostgreSQL: rds_postgres_00_. Example: rds_postgres_1200_20200830.
 * - MySQL: _. Examples: rds_20200229, xcluster_20200229, and xcluster80_20200229. The following RDS editions are supported:
 * - rds: The instance runs RDS Basic or High-availability Edition.
 * - xcluster: The instance runs MySQL 5.7 on RDS Enterprise Edition.
 * - xcluster80: The instance runs MySQL 8.0 on RDS Enterprise Edition.
 * - SQLServer: . Example: 15.0.4073.23.
 * > **NOTE:** For more information about minor engine versions, see Release notes of minor AliPG versions, Release notes of minor AliSQL versions, and Release notes of minor engine versions of ApsaraDB RDS for SQL Server.
 * @property tcpConnectionType The availability check method of the instance. Valid values:
 * - **SHORT**: Alibaba Cloud uses short-lived connections to check the availability of the instance.
 * - **LONG**: Alibaba Cloud uses persistent connections to check the availability of the instance.
 * @property tdeStatus The TDE(Transparent Data Encryption) status. After TDE is turned on, it cannot be turned off. See more [engine and engineVersion limitation](https://www.alibabacloud.com/help/zh/doc-detail/26256.htm).
 * @property upgradeDbInstanceKernelVersion Whether to upgrade a minor version of the kernel. Valid values:
 * - true: upgrade
 * - false: not to upgrade
 * @property upgradeTime The method to update the minor engine version. Default value: Immediate. It is valid only when `target_minor_version` is changed. Valid values:
 * - Immediate: The minor engine version is immediately updated.
 * - MaintainTime: The minor engine version is updated during the maintenance window. For more information about how to change the maintenance window, see ModifyDBInstanceMaintainTime.
 * - SpecifyTime: The minor engine version is updated at the point in time you specify.
 * @property vpcId The VPC ID of the instance.
 * > **NOTE:** This parameter applies only to ApsaraDB RDS for MySQL instances. For more information about Upgrade the major engine version of an ApsaraDB RDS for MySQL instance, see [Upgrade the major engine version of an RDS instance in the ApsaraDB RDS console](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/upgrade-the-major-engine-version-of-an-apsaradb-rds-for-mysql-instance-1).
 * @property vswitchId The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
 * @property whitelistNetworkType The network type of the IP address whitelist. Default value: MIX. Valid values:
 * - Classic: classic network in enhanced whitelist mode
 * - VPC: virtual private cloud (VPC) in enhanced whitelist mode
 * - MIX: standard whitelist mode
 * > **NOTE:** In standard whitelist mode, IP addresses and CIDR blocks can be added only to the default IP address whitelist. In enhanced whitelist mode, IP addresses and CIDR blocks can be added to both IP address whitelists of the classic network type and those of the VPC network type.
 * @property zoneId The Zone to launch the DB instance. From version 1.8.1, it supports multiple zone.
 * If it is a multi-zone and `vswitch_id` is specified, the vswitch must in the one of them.
 * The multiple zone ID can be retrieved by setting `multi` to "true" in the data source `alicloud.getZones`.
 * @property zoneIdSlaveA The region ID of the secondary instance if you create a secondary instance. If you set this parameter to the same value as the ZoneId parameter, the instance is deployed in a single zone. Otherwise, the instance is deployed in multiple zones.
 */
public data class InstanceArgs(
    public val acl: Output? = null,
    public val autoRenew: Output? = null,
    public val autoRenewPeriod: Output? = null,
    public val autoUpgradeMinorVersion: Output? = null,
    public val babelfishConfigs: Output>? = null,
    public val babelfishPort: Output? = null,
    public val caType: Output? = null,
    public val category: Output? = null,
    public val clientCaCert: Output? = null,
    public val clientCaEnabled: Output? = null,
    public val clientCertRevocationList: Output? = null,
    public val clientCrlEnabled: Output? = null,
    public val connectionStringPrefix: Output? = null,
    public val dbInstanceIpArrayAttribute: Output? = null,
    public val dbInstanceIpArrayName: Output? = null,
    public val dbInstanceStorageType: Output? = null,
    public val dbIsIgnoreCase: Output? = null,
    public val dbParamGroupId: Output? = null,
    public val dbTimeZone: Output? = null,
    public val deletionProtection: Output? = null,
    public val direction: Output? = null,
    public val effectiveTime: Output? = null,
    public val encryptionKey: Output? = null,
    public val engine: Output? = null,
    public val engineVersion: Output? = null,
    public val force: Output? = null,
    public val forceRestart: Output? = null,
    public val freshWhiteListReadins: Output? = null,
    public val haConfig: Output? = null,
    public val instanceChargeType: Output? = null,
    public val instanceName: Output? = null,
    public val instanceStorage: Output? = null,
    public val instanceType: Output? = null,
    public val maintainTime: Output? = null,
    public val manualHaTime: Output? = null,
    public val modifyMode: Output? = null,
    public val monitoringPeriod: Output? = null,
    public val nodeId: Output? = null,
    public val parameters: Output>? = null,
    public val period: Output? = null,
    public val pgHbaConfs: Output>? = null,
    public val port: Output? = null,
    public val privateIpAddress: Output? = null,
    public val releasedKeepPolicy: Output? = null,
    public val replicationAcl: Output? = null,
    public val resourceGroupId: Output? = null,
    public val roleArn: Output? = null,
    @Deprecated(
        message = """
  Attribute `security_group_id` has been deprecated from 1.69.0 and use `security_group_ids`
      instead.
  """,
    )
    public val securityGroupId: Output? = null,
    public val securityGroupIds: Output>? = null,
    public val securityIpMode: Output? = null,
    public val securityIpType: Output? = null,
    public val securityIps: Output>? = null,
    public val serverCert: Output? = null,
    public val serverKey: Output? = null,
    public val serverlessConfigs: Output>? = null,
    public val sqlCollectorConfigValue: Output? = null,
    public val sqlCollectorStatus: Output? = null,
    public val sslAction: Output? = null,
    public val sslConnectionString: Output? = null,
    public val storageAutoScale: Output? = null,
    public val storageThreshold: Output? = null,
    public val storageUpperBound: Output? = null,
    public val switchTime: Output? = null,
    public val tags: Output>? = null,
    public val targetMinorVersion: Output? = null,
    public val tcpConnectionType: Output? = null,
    public val tdeStatus: Output? = null,
    @Deprecated(
        message = """
  Attribute `upgrade_db_instance_kernel_version` has been deprecated from 1.198.0 and use
      `target_minor_version` instead.
  """,
    )
    public val upgradeDbInstanceKernelVersion: Output? = null,
    public val upgradeTime: Output? = null,
    public val vpcId: Output? = null,
    public val vswitchId: Output? = null,
    public val whitelistNetworkType: Output? = null,
    public val zoneId: Output? = null,
    public val zoneIdSlaveA: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.rds.InstanceArgs =
        com.pulumi.alicloud.rds.InstanceArgs.builder()
            .acl(acl?.applyValue({ args0 -> args0 }))
            .autoRenew(autoRenew?.applyValue({ args0 -> args0 }))
            .autoRenewPeriod(autoRenewPeriod?.applyValue({ args0 -> args0 }))
            .autoUpgradeMinorVersion(autoUpgradeMinorVersion?.applyValue({ args0 -> args0 }))
            .babelfishConfigs(
                babelfishConfigs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .babelfishPort(babelfishPort?.applyValue({ args0 -> args0 }))
            .caType(caType?.applyValue({ args0 -> args0 }))
            .category(category?.applyValue({ args0 -> args0 }))
            .clientCaCert(clientCaCert?.applyValue({ args0 -> args0 }))
            .clientCaEnabled(clientCaEnabled?.applyValue({ args0 -> args0 }))
            .clientCertRevocationList(clientCertRevocationList?.applyValue({ args0 -> args0 }))
            .clientCrlEnabled(clientCrlEnabled?.applyValue({ args0 -> args0 }))
            .connectionStringPrefix(connectionStringPrefix?.applyValue({ args0 -> args0 }))
            .dbInstanceIpArrayAttribute(dbInstanceIpArrayAttribute?.applyValue({ args0 -> args0 }))
            .dbInstanceIpArrayName(dbInstanceIpArrayName?.applyValue({ args0 -> args0 }))
            .dbInstanceStorageType(dbInstanceStorageType?.applyValue({ args0 -> args0 }))
            .dbIsIgnoreCase(dbIsIgnoreCase?.applyValue({ args0 -> args0 }))
            .dbParamGroupId(dbParamGroupId?.applyValue({ args0 -> args0 }))
            .dbTimeZone(dbTimeZone?.applyValue({ args0 -> args0 }))
            .deletionProtection(deletionProtection?.applyValue({ args0 -> args0 }))
            .direction(direction?.applyValue({ args0 -> args0 }))
            .effectiveTime(effectiveTime?.applyValue({ args0 -> args0 }))
            .encryptionKey(encryptionKey?.applyValue({ args0 -> args0 }))
            .engine(engine?.applyValue({ args0 -> args0 }))
            .engineVersion(engineVersion?.applyValue({ args0 -> args0 }))
            .force(force?.applyValue({ args0 -> args0 }))
            .forceRestart(forceRestart?.applyValue({ args0 -> args0 }))
            .freshWhiteListReadins(freshWhiteListReadins?.applyValue({ args0 -> args0 }))
            .haConfig(haConfig?.applyValue({ args0 -> args0 }))
            .instanceChargeType(instanceChargeType?.applyValue({ args0 -> args0 }))
            .instanceName(instanceName?.applyValue({ args0 -> args0 }))
            .instanceStorage(instanceStorage?.applyValue({ args0 -> args0 }))
            .instanceType(instanceType?.applyValue({ args0 -> args0 }))
            .maintainTime(maintainTime?.applyValue({ args0 -> args0 }))
            .manualHaTime(manualHaTime?.applyValue({ args0 -> args0 }))
            .modifyMode(modifyMode?.applyValue({ args0 -> args0 }))
            .monitoringPeriod(monitoringPeriod?.applyValue({ args0 -> args0 }))
            .nodeId(nodeId?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .period(period?.applyValue({ args0 -> args0 }))
            .pgHbaConfs(
                pgHbaConfs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .port(port?.applyValue({ args0 -> args0 }))
            .privateIpAddress(privateIpAddress?.applyValue({ args0 -> args0 }))
            .releasedKeepPolicy(releasedKeepPolicy?.applyValue({ args0 -> args0 }))
            .replicationAcl(replicationAcl?.applyValue({ args0 -> args0 }))
            .resourceGroupId(resourceGroupId?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .securityGroupId(securityGroupId?.applyValue({ args0 -> args0 }))
            .securityGroupIds(securityGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .securityIpMode(securityIpMode?.applyValue({ args0 -> args0 }))
            .securityIpType(securityIpType?.applyValue({ args0 -> args0 }))
            .securityIps(securityIps?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .serverCert(serverCert?.applyValue({ args0 -> args0 }))
            .serverKey(serverKey?.applyValue({ args0 -> args0 }))
            .serverlessConfigs(
                serverlessConfigs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .sqlCollectorConfigValue(sqlCollectorConfigValue?.applyValue({ args0 -> args0 }))
            .sqlCollectorStatus(sqlCollectorStatus?.applyValue({ args0 -> args0 }))
            .sslAction(sslAction?.applyValue({ args0 -> args0 }))
            .sslConnectionString(sslConnectionString?.applyValue({ args0 -> args0 }))
            .storageAutoScale(storageAutoScale?.applyValue({ args0 -> args0 }))
            .storageThreshold(storageThreshold?.applyValue({ args0 -> args0 }))
            .storageUpperBound(storageUpperBound?.applyValue({ args0 -> args0 }))
            .switchTime(switchTime?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .targetMinorVersion(targetMinorVersion?.applyValue({ args0 -> args0 }))
            .tcpConnectionType(tcpConnectionType?.applyValue({ args0 -> args0 }))
            .tdeStatus(tdeStatus?.applyValue({ args0 -> args0 }))
            .upgradeDbInstanceKernelVersion(upgradeDbInstanceKernelVersion?.applyValue({ args0 -> args0 }))
            .upgradeTime(upgradeTime?.applyValue({ args0 -> args0 }))
            .vpcId(vpcId?.applyValue({ args0 -> args0 }))
            .vswitchId(vswitchId?.applyValue({ args0 -> args0 }))
            .whitelistNetworkType(whitelistNetworkType?.applyValue({ args0 -> args0 }))
            .zoneId(zoneId?.applyValue({ args0 -> args0 }))
            .zoneIdSlaveA(zoneIdSlaveA?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceArgs].
 */
@PulumiTagMarker
public class InstanceArgsBuilder internal constructor() {
    private var acl: Output? = null

    private var autoRenew: Output? = null

    private var autoRenewPeriod: Output? = null

    private var autoUpgradeMinorVersion: Output? = null

    private var babelfishConfigs: Output>? = null

    private var babelfishPort: Output? = null

    private var caType: Output? = null

    private var category: Output? = null

    private var clientCaCert: Output? = null

    private var clientCaEnabled: Output? = null

    private var clientCertRevocationList: Output? = null

    private var clientCrlEnabled: Output? = null

    private var connectionStringPrefix: Output? = null

    private var dbInstanceIpArrayAttribute: Output? = null

    private var dbInstanceIpArrayName: Output? = null

    private var dbInstanceStorageType: Output? = null

    private var dbIsIgnoreCase: Output? = null

    private var dbParamGroupId: Output? = null

    private var dbTimeZone: Output? = null

    private var deletionProtection: Output? = null

    private var direction: Output? = null

    private var effectiveTime: Output? = null

    private var encryptionKey: Output? = null

    private var engine: Output? = null

    private var engineVersion: Output? = null

    private var force: Output? = null

    private var forceRestart: Output? = null

    private var freshWhiteListReadins: Output? = null

    private var haConfig: Output? = null

    private var instanceChargeType: Output? = null

    private var instanceName: Output? = null

    private var instanceStorage: Output? = null

    private var instanceType: Output? = null

    private var maintainTime: Output? = null

    private var manualHaTime: Output? = null

    private var modifyMode: Output? = null

    private var monitoringPeriod: Output? = null

    private var nodeId: Output? = null

    private var parameters: Output>? = null

    private var period: Output? = null

    private var pgHbaConfs: Output>? = null

    private var port: Output? = null

    private var privateIpAddress: Output? = null

    private var releasedKeepPolicy: Output? = null

    private var replicationAcl: Output? = null

    private var resourceGroupId: Output? = null

    private var roleArn: Output? = null

    private var securityGroupId: Output? = null

    private var securityGroupIds: Output>? = null

    private var securityIpMode: Output? = null

    private var securityIpType: Output? = null

    private var securityIps: Output>? = null

    private var serverCert: Output? = null

    private var serverKey: Output? = null

    private var serverlessConfigs: Output>? = null

    private var sqlCollectorConfigValue: Output? = null

    private var sqlCollectorStatus: Output? = null

    private var sslAction: Output? = null

    private var sslConnectionString: Output? = null

    private var storageAutoScale: Output? = null

    private var storageThreshold: Output? = null

    private var storageUpperBound: Output? = null

    private var switchTime: Output? = null

    private var tags: Output>? = null

    private var targetMinorVersion: Output? = null

    private var tcpConnectionType: Output? = null

    private var tdeStatus: Output? = null

    private var upgradeDbInstanceKernelVersion: Output? = null

    private var upgradeTime: Output? = null

    private var vpcId: Output? = null

    private var vswitchId: Output? = null

    private var whitelistNetworkType: Output? = null

    private var zoneId: Output? = null

    private var zoneIdSlaveA: Output? = null

    /**
     * @param value The method that is used to verify the identities of clients. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. In addition, this parameter is available only when the public key of the CA that issues client certificates is enabled. Valid values:
     * - cert
     * - perfer
     * - verify-ca
     * - verify-full (supported only when the instance runs PostgreSQL 12 or later)
     */
    @JvmName("vwravkbvwxhcjpdq")
    public suspend fun acl(`value`: Output) {
        this.acl = value
    }

    /**
     * @param value Whether to renewal a DB instance automatically or not. It is valid when instance_charge_type is `PrePaid`. Default to `false`.
     */
    @JvmName("whcuormjrqgnsqqq")
    public suspend fun autoRenew(`value`: Output) {
        this.autoRenew = value
    }

    /**
     * @param value Auto-renewal period of an instance, in the unit of the month. It is valid when instance_charge_type is `PrePaid`. Valid value:[1~12], Default to 1.
     */
    @JvmName("wfbbqsntesvbmbvs")
    public suspend fun autoRenewPeriod(`value`: Output) {
        this.autoRenewPeriod = value
    }

    /**
     * @param value The upgrade method to use. Valid values:
     * - Auto: Instances are automatically upgraded to a higher minor version.
     * - Manual: Instances are forcibly upgraded to a higher minor version when the current version is unpublished.
     * See more [details and limitation](https://www.alibabacloud.com/help/doc-detail/123605.htm).
     */
    @JvmName("sfwksuilfmfhbnek")
    public suspend fun autoUpgradeMinorVersion(`value`: Output) {
        this.autoUpgradeMinorVersion = value
    }

    /**
     * @param value The configuration of an ApsaraDB RDS for PostgreSQL instance for which Babelfish is enabled. See `babelfish_config` below.
     * > **NOTE:** This parameter takes effect only when you create an ApsaraDB RDS for PostgreSQL instance. For more information, see [Introduction to Babelfish](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/babelfish-for-pg).
     */
    @JvmName("xwhopixrjbxhnlrd")
    public suspend fun babelfishConfigs(`value`: Output>) {
        this.babelfishConfigs = value
    }

    @JvmName("sbdrqkblageahbex")
    public suspend fun babelfishConfigs(vararg values: Output) {
        this.babelfishConfigs = Output.all(values.asList())
    }

    /**
     * @param values The configuration of an ApsaraDB RDS for PostgreSQL instance for which Babelfish is enabled. See `babelfish_config` below.
     * > **NOTE:** This parameter takes effect only when you create an ApsaraDB RDS for PostgreSQL instance. For more information, see [Introduction to Babelfish](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/babelfish-for-pg).
     */
    @JvmName("fdwjnyssowpixxkw")
    public suspend fun babelfishConfigs(values: List>) {
        this.babelfishConfigs = Output.all(values)
    }

    /**
     * @param value The TDS port of the instance for which Babelfish is enabled.
     * > **NOTE:** This parameter applies only to ApsaraDB RDS for PostgreSQL instances. For more information about Babelfish for ApsaraDB RDS for PostgreSQL, see [Introduction to Babelfish](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/babelfish-for-pg).
     */
    @JvmName("nppomjxiakcgqgep")
    public suspend fun babelfishPort(`value`: Output) {
        this.babelfishPort = value
    }

    /**
     * @param value The type of the server certificate. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the SSLEnabled parameter to 1, the default value of this parameter is aliyun. Value range:
     * - aliyun: a cloud certificate
     * - custom: a custom certificate
     */
    @JvmName("agikdljfhkrxiykc")
    public suspend fun caType(`value`: Output) {
        this.caType = value
    }

    /**
     * @param value The RDS edition of the instance. If you want to create a serverless instance, you must use this value. Valid values:
     * * **Basic**: Basic Edition.
     * * **HighAvailability**: High-availability Edition.
     * * **AlwaysOn**: Cluster Edition.
     * * **Finance**: Enterprise Edition.
     * * **cluster**: MySQL Cluster Edition. (Available since 1.202.0)
     * * **serverless_basic**: RDS Serverless Basic Edition. This edition is available only for instances that run MySQL and PostgreSQL. (Available since 1.200.0)
     * * **serverless_standard**: RDS Serverless Basic Edition. This edition is available only for instances that run MySQL and PostgreSQL. (Available since 1.204.0)
     * * **serverless_ha**: RDS Serverless High-availability Edition for SQL Server. (Available since 1.204.0)
     * > **NOTE:** `zone_id_slave_a` and `zone_id_slave_b` can specify slave zone ids when creating the high-availability or enterprise edition instances. Meanwhile, `vswitch_id` needs to pass in the corresponding vswitch id to the slave zone by order (If the `vswitch_id` is not specified, the classic network version will be created). For example, `zone_id` = "zone-a" and `zone_id_slave_a` = "zone-c", `zone_id_slave_b` = "zone-b", then the `vswitch_id` must be "vsw-zone-a,vsw-zone-c,vsw-zone-b". Of course, you can also choose automatic allocation , for example, `zone_id` = "zone-a" and `zone_id_slave_a` = "Auto",`zone_id_slave_b` = "Auto", then the `vswitch_id` must be "vsw-zone-a,Auto,Auto". The list contains up to 2 slave zone ids , separated by commas.
     */
    @JvmName("tvdqpjstbciqajan")
    public suspend fun category(`value`: Output) {
        this.category = value
    }

    /**
     * @param value The public key of the CA that issues client certificates. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the ClientCAEbabled parameter to 1, you must also specify this parameter.
     */
    @JvmName("dppxrqqnwxdtehko")
    public suspend fun clientCaCert(`value`: Output) {
        this.clientCaCert = value
    }

    /**
     * @param value Specifies whether to enable the public key of the CA that issues client certificates. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. Valid values:
     * - 1: enables the public key
     * - 0: disables the public key
     */
    @JvmName("tkjqjjrytibthyqx")
    public suspend fun clientCaEnabled(`value`: Output) {
        this.clientCaEnabled = value
    }

    /**
     * @param value The CRL that contains revoked client certificates. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the ClientCrlEnabled parameter to 1, you must also specify this parameter.
     */
    @JvmName("waclgsdpgkhosmfm")
    public suspend fun clientCertRevocationList(`value`: Output) {
        this.clientCertRevocationList = value
    }

    /**
     * @param value Specifies whether to enable a certificate revocation list (CRL) that contains revoked client certificates. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. In addition, this parameter is available only when the public key of the CA that issues client certificates is enabled. Valid values:
     * - 1: enables the CRL
     * - 0: disables the CRL
     */
    @JvmName("cyhanpetykxyowvt")
    public suspend fun clientCrlEnabled(`value`: Output) {
        this.clientCrlEnabled = value
    }

    /**
     * @param value The private connection string prefix. If you want to update public connection string prefix, please use resource alicloud.rds.Connection connection_prefix.
     * > **NOTE:** The prefix must be 8 to 64 characters in length and can contain letters, digits, and hyphens (-). It cannot contain Chinese characters and special characters ~!#%^&*=+\|{};:'",<>/?
     */
    @JvmName("twjoluywufekwnub")
    public suspend fun connectionStringPrefix(`value`: Output) {
        this.connectionStringPrefix = value
    }

    /**
     * @param value The attribute of the IP address whitelist. By default, this parameter is empty.
     * > **NOTE:** The IP address whitelists that have the hidden attribute are not displayed in the ApsaraDB RDS console. These IP address whitelists are used to access Alibaba Cloud services, such as Data Transmission Service (DTS).
     */
    @JvmName("jcywolvofsridrcb")
    public suspend fun dbInstanceIpArrayAttribute(`value`: Output) {
        this.dbInstanceIpArrayAttribute = value
    }

    /**
     * @param value The name of the IP address whitelist. Default value: Default.
     * > **NOTE:** A maximum of 200 IP address whitelists can be configured for each instance.
     */
    @JvmName("xsncmhusdrqirvex")
    public suspend fun dbInstanceIpArrayName(`value`: Output) {
        this.dbInstanceIpArrayName = value
    }

    /**
     * @param value The storage type of the instance. Serverless instance, only `cloud_essd` can be selected. Valid values:
     * - local_ssd: specifies to use local SSDs. This value is recommended.
     * - cloud_ssd: specifies to use standard SSDs.
     * - cloud_essd: specifies to use enhanced SSDs (ESSDs).
     * - cloud_essd2: specifies to use enhanced SSDs (ESSDs).
     * - cloud_essd3: specifies to use enhanced SSDs (ESSDs).
     * - general_essd: general essd.
     */
    @JvmName("ypudynxatrxqbyjx")
    public suspend fun dbInstanceStorageType(`value`: Output) {
        this.dbInstanceStorageType = value
    }

    /**
     * @param value Specifies whether table names on the instance are case-sensitive. Valid values: `true`, `false`.
     */
    @JvmName("axudcpvwyybvjypg")
    public suspend fun dbIsIgnoreCase(`value`: Output) {
        this.dbIsIgnoreCase = value
    }

    /**
     * @param value Parameter template ID. Only MySQL and PostgreSQL support this parameter. If this parameter is not specified, the default parameter template is used. You can also customize a parameter template and use it here.
     */
    @JvmName("gjcqpdytgcnlaqit")
    public suspend fun dbParamGroupId(`value`: Output) {
        this.dbParamGroupId = value
    }

    /**
     * @param value The time zone of the instance. This parameter takes effect only when you set the `Engine` parameter to MySQL or PostgreSQL.
     * - If you set the `Engine` parameter to MySQL.
     * - This time zone of the instance is in UTC. Valid values: -12:59 to +13:00.
     * - You can specify this parameter when the instance is equipped with local SSDs. For example, you can specify the time zone to Asia/Hong_Kong. For more information about time zones, see [Time zones](https://www.alibabacloud.com/help/doc-detail/297356.htm).
     * - If you set the `Engine` parameter to PostgreSQL.
     * - This time zone of the instance is not in UTC. For more information about time zones, see [Time zones](https://www.alibabacloud.com/help/doc-detail/297356.htm).
     * - You can specify this parameter only when the instance is equipped with standard SSDs or ESSDs.
     * > **NOTE:** You can specify the time zone when you create a primary instance. You cannot specify the time zone when you create a read-only instance. Read-only instances inherit the time zone of their primary instance. If you do not specify this parameter, the system assigns the default time zone of the region where the instance resides.
     */
    @JvmName("voqgmlwrpnnriugm")
    public suspend fun dbTimeZone(`value`: Output) {
        this.dbTimeZone = value
    }

    /**
     * @param value The switch of delete protection. Valid values:
     * - true: delete protect.
     * - false: no delete protect.
     * > **NOTE:** `deletion_protection` is valid only when attribute `instance_charge_type` is set to `Postpaid` or `Serverless`, supported engine type: `MySQL`, `PostgreSQL`, `MariaDB`, `MSSQL`.
     */
    @JvmName("xeikontygsjsosme")
    public suspend fun deletionProtection(`value`: Output) {
        this.deletionProtection = value
    }

    /**
     * @param value The instance configuration type. Valid values: ["Up", "Down", "TempUpgrade", "Serverless"]
     */
    @JvmName("nrgrkainvixxitpm")
    public suspend fun direction(`value`: Output) {
        this.direction = value
    }

    /**
     * @param value The method to update the engine version and change.  Default value: Immediate. Valid values:
     * - Immediate: The change immediately takes effect.
     * - MaintainTime: The change takes effect during the specified maintenance window. For more information, see ModifyDBInstanceMaintainTime.
     */
    @JvmName("kcwpyabctrdqfeen")
    public suspend fun effectiveTime(`value`: Output) {
        this.effectiveTime = value
    }

    /**
     * @param value The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
     */
    @JvmName("jbhqgmipupionkeo")
    public suspend fun encryptionKey(`value`: Output) {
        this.encryptionKey = value
    }

    /**
     * @param value Database type. Value options: MySQL, SQLServer, PostgreSQL, MariaDB.
     * > **NOTE:** When the 'engine_version' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
     */
    @JvmName("hitioemqigwfaasi")
    public suspend fun engine(`value`: Output) {
        this.engine = value
    }

    /**
     * @param value Database version. Value options can refer to the latest docs [CreateDBInstance](https://www.alibabacloud.com/help/doc-detail/26228.htm) `EngineVersion`.
     * - MySQL: [ 5.5、5.6、5.7、8.0 ]
     * - SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
     * - PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
     * - MariaDB: [ 10.3 ]
     * - Serverless
     * > - MySQL: [ 5.7、8.0 ]
     * > - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
     * > - PostgreSQL: [ 14.0 ]
     * > - MariaDB does not support creating serverless instances.
     */
    @JvmName("xclqyjjfccmvdeld")
    public suspend fun engineVersion(`value`: Output) {
        this.engineVersion = value
    }

    /**
     * @param value Specifies whether to enable forcible switching. Valid values:
     * - Yes
     * - No
     */
    @JvmName("qsbjagbpsylhgqek")
    public suspend fun force(`value`: Output) {
        this.force = value
    }

    /**
     * @param value Set it to true to make some parameter efficient when modifying them. Default to false.
     */
    @JvmName("wqqixsqslpitgsof")
    public suspend fun forceRestart(`value`: Output) {
        this.forceRestart = value
    }

    /**
     * @param value The read-only instances to which you want to synchronize the IP address whitelist.
     * * If the instance is attached with a read-only instance, you can use this parameter to synchronize the IP address whitelist to the read-only instance. If the instance is attached with multiple read-only instances, the read-only instances must be separated by commas (,).
     * * If the instance is not attached with a read-only instance, this parameter is empty.
     */
    @JvmName("lhgmlkkkjrpfsxlw")
    public suspend fun freshWhiteListReadins(`value`: Output) {
        this.freshWhiteListReadins = value
    }

    /**
     * @param value The primary/secondary switchover mode of the instance. Default value: Auto. Valid values:
     * - Auto: The system automatically switches over services from the primary to secondary instances in the event of a fault.
     * - Manual: You must manually switch over services from the primary to secondary instances in the event of a fault.
     * > **NOTE:** If you set this parameter to Manual, you must specify the ManualHATime parameter.
     */
    @JvmName("uvcxwrqvamsrhpuo")
    public suspend fun haConfig(`value`: Output) {
        this.haConfig = value
    }

    /**
     * @param value Valid values are `Prepaid`, `Postpaid`, `Serverless`, Default to `Postpaid`. Currently, the resource only supports PostPaid to PrePaid. For more information, see [Overview](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/what-is-serverless?spm=a2c63.p38356.0.0.772a28cfTAGqIv).
     */
    @JvmName("iuxniyvbucitlnul")
    public suspend fun instanceChargeType(`value`: Output) {
        this.instanceChargeType = value
    }

    /**
     * @param value The name of DB instance. It a string of 2 to 256 characters.
     */
    @JvmName("ebfvyalkyoweluhg")
    public suspend fun instanceName(`value`: Output) {
        this.instanceName = value
    }

    /**
     * @param value User-defined DB instance storage space. Value range:
     * - [5, 2000] for MySQL/PostgreSQL HA dual node edition;
     * - [20,1000] for MySQL 5.7 basic single node edition;
     * - [10, 2000] for SQL Server 2008R2;
     * - [20,2000] for SQL Server 2012 basic single node edition
     * Increase progressively at a rate of 5 GB. For details, see [Instance type table](https://www.alibabacloud.com/help/doc-detail/26312.htm).
     * Note: There is extra 5 GB storage for SQL Server Instance, and it is not in specified `instance_storage`.
     */
    @JvmName("nasgpumegwkdftmd")
    public suspend fun instanceStorage(`value`: Output) {
        this.instanceStorage = value
    }

    /**
     * @param value DB Instance type. For details, see [Instance type table](https://www.alibabacloud.com/help/doc-detail/26312.htm).
     * - To create a serverless instance, please pass the following values:
     * - MySQL basic: mysql.n2.serverless.1c
     * - MySQL high availability: mysql.n2.serverless.2c
     * - SQLServer high availability: mssql.mem2.serverless.s2
     * - PostgreSQL basic: pg.n2.serverless.1c
     * > **NOTE:** When `storage_auto_scale="Enable"`, do not perform `instance_storage` check. when `storage_auto_scale="Disable"`, if the instance itself `instance_storage`has changed. You need to manually revise the `instance_storage` in the template value. When `payment_type="Serverless"` and when modifying, do not perform `instance_storage` check. Otherwise, check.
     */
    @JvmName("ewahcxdsdigwoxdk")
    public suspend fun instanceType(`value`: Output) {
        this.instanceType = value
    }

    /**
     * @param value Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
     */
    @JvmName("jfsrhkrgfounvnjv")
    public suspend fun maintainTime(`value`: Output) {
        this.maintainTime = value
    }

    /**
     * @param value The time after when you want to enable automatic primary/secondary switchover. At most, you can set this parameter to 23:59:59 seven days later. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
     * > **NOTE:** This parameter only takes effect when the HAConfig parameter is set to Manual.
     */
    @JvmName("cuupqwhjjwyerync")
    public suspend fun manualHaTime(`value`: Output) {
        this.manualHaTime = value
    }

    /**
     * @param value The method that is used to modify the IP address whitelist. Default value: Cover. Valid values:
     * - Cover: Use the value of the SecurityIps parameter to overwrite the existing entries in the IP address whitelist.
     * - Append: Add the IP addresses and CIDR blocks that are specified in the SecurityIps parameter to the IP address whitelist.
     * - Delete: Delete IP addresses and CIDR blocks that are specified in the SecurityIps parameter from the IP address whitelist. You must retain at least one IP address or CIDR block.
     */
    @JvmName("wnxprdlodkmqdsrt")
    public suspend fun modifyMode(`value`: Output) {
        this.modifyMode = value
    }

    /**
     * @param value The monitoring frequency in seconds. Valid values are 5, 10, 60, 300. Defaults to 300.
     */
    @JvmName("ckijsfccqdgipavi")
    public suspend fun monitoringPeriod(`value`: Output) {
        this.monitoringPeriod = value
    }

    /**
     * @param value The globally unique identifier (GUID) of the secondary instance. You can call the DescribeDBInstanceHAConfig operation to query the GUID of the secondary instance.
     */
    @JvmName("dyecspascyqfdahs")
    public suspend fun nodeId(`value`: Output) {
        this.nodeId = value
    }

    /**
     * @param value Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs [View database parameter templates](https://www.alibabacloud.com/help/doc-detail/26284.htm) . See `parameters` below.
     */
    @JvmName("bukwhaymmemqxtlf")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    @JvmName("hvlfpacwrpamksmy")
    public suspend fun parameters(vararg values: Output) {
        this.parameters = Output.all(values.asList())
    }

    /**
     * @param values Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs [View database parameter templates](https://www.alibabacloud.com/help/doc-detail/26284.htm) . See `parameters` below.
     */
    @JvmName("dqspsebtrmcmluuk")
    public suspend fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

    /**
     * @param value The duration that you will buy DB instance (in month). It is valid when instance_charge_type is `PrePaid`. Valid values: [1~9], 12, 24, 36.
     * > **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
     */
    @JvmName("ojbxqiiajrrvyukg")
    public suspend fun period(`value`: Output) {
        this.period = value
    }

    /**
     * @param value The configuration of [AD domain](https://www.alibabacloud.com/help/en/doc-detail/349288.htm) . See `pg_hba_conf` below.
     */
    @JvmName("rrqrankxmonjcaqy")
    public suspend fun pgHbaConfs(`value`: Output>) {
        this.pgHbaConfs = value
    }

    @JvmName("lqdvlnoeoqokbjcm")
    public suspend fun pgHbaConfs(vararg values: Output) {
        this.pgHbaConfs = Output.all(values.asList())
    }

    /**
     * @param values The configuration of [AD domain](https://www.alibabacloud.com/help/en/doc-detail/349288.htm) . See `pg_hba_conf` below.
     */
    @JvmName("blleaiejvixkxhrk")
    public suspend fun pgHbaConfs(values: List>) {
        this.pgHbaConfs = Output.all(values)
    }

    /**
     * @param value The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
     */
    @JvmName("jttuaausbgktqbuy")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value The private IP address of the instance. The private IP address must be within the Classless Inter-Domain Routing (CIDR) block of the vSwitch that is specified by the VSwitchId parameter.
     */
    @JvmName("tnlqhwquebotbisd")
    public suspend fun privateIpAddress(`value`: Output) {
        this.privateIpAddress = value
    }

    /**
     * @param value The policy based on which ApsaraDB RDS retains archived backup files after the instance is released. Valid values:
     * - None: No archived backup files are retained.
     * - Lastest: Only the last archived backup file is retained.
     * - All: All the archived backup files are retained.
     * > **NOTE:** This parameter is supported only when the instance runs the MySQL database engine.
     */
    @JvmName("pyekcbuvepwpvfsn")
    public suspend fun releasedKeepPolicy(`value`: Output) {
        this.releasedKeepPolicy = value
    }

    /**
     * @param value The method that is used to verify the replication permission. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. In addition, this parameter is available only when the public key of the CA that issues client certificates is enabled. Valid values:
     * - cert
     * - perfer
     * - verify-ca
     * - verify-full (supported only when the instance runs PostgreSQL 12 or later)
     */
    @JvmName("wxaxxrcrtfqtyieh")
    public suspend fun replicationAcl(`value`: Output) {
        this.replicationAcl = value
    }

    /**
     * @param value The ID of resource group which the DB instance belongs.
     */
    @JvmName("neaoxuhtrotjrqcy")
    public suspend fun resourceGroupId(`value`: Output) {
        this.resourceGroupId = value
    }

    /**
     * @param value The Alibaba Cloud Resource Name (ARN) of the RAM role.
     * > **NOTE:**  This parameter is not required when you create an instance that runs MySQL, PostgreSQL, or SQL Server. You need to only specify the RoleARN parameter to create an instance that has cloud disk encryption enabled by using the obtained key ID.
     * You can configure RAM authorization to require a RAM user to enable cloud disk encryption when the RAM user is used to create an instance. If cloud disk encryption is disabled during the instance creation, the creation operation fails. To complete the configuration, you can attach the following policy to the RAM user: {"Version":"1","Statement":[{"Effect":"Deny","Action":"rds:CreateDBInstance","Resource":"*","Condition":{"StringEquals":{"rds:DiskEncryptionRequired":"false"}}}]}
     */
    @JvmName("eqlqkeiqqvsmshmk")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value It has been deprecated from 1.69.0 and use `security_group_ids` instead.
     */
    @Deprecated(
        message = """
  Attribute `security_group_id` has been deprecated from 1.69.0 and use `security_group_ids`
      instead.
  """,
    )
    @JvmName("yncepjxchusgxpul")
    public suspend fun securityGroupId(`value`: Output) {
        this.securityGroupId = value
    }

    /**
     * @param value , Available since 1.69.0) The list IDs to join ECS Security Group. At most supports three security groups.
     */
    @JvmName("uyplxmrnhfkehijd")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

    @JvmName("qllshsfflnusmyhf")
    public suspend fun securityGroupIds(vararg values: Output) {
        this.securityGroupIds = Output.all(values.asList())
    }

    /**
     * @param values , Available since 1.69.0) The list IDs to join ECS Security Group. At most supports three security groups.
     */
    @JvmName("teasvjgchkycaguq")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value Valid values are `normal`, `safety`, Default to `normal`. support `safety` switch to high security access mode.
     */
    @JvmName("ohuweopvphojnbli")
    public suspend fun securityIpMode(`value`: Output) {
        this.securityIpMode = value
    }

    /**
     * @param value The type of IP address in the IP address whitelist.
     */
    @JvmName("nkxdedtgptmkwioy")
    public suspend fun securityIpType(`value`: Output) {
        this.securityIpType = value
    }

    /**
     * @param value List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
     */
    @JvmName("noutodmooomxhfla")
    public suspend fun securityIps(`value`: Output>) {
        this.securityIps = value
    }

    @JvmName("pdknedefrytbcvfj")
    public suspend fun securityIps(vararg values: Output) {
        this.securityIps = Output.all(values.asList())
    }

    /**
     * @param values List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
     */
    @JvmName("lnrcmrbscbjckxor")
    public suspend fun securityIps(values: List>) {
        this.securityIps = Output.all(values)
    }

    /**
     * @param value The content of the server certificate. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the CAType parameter to custom, you must also specify this parameter.
     */
    @JvmName("xmmarvsbrtlpwjsf")
    public suspend fun serverCert(`value`: Output) {
        this.serverCert = value
    }

    /**
     * @param value The private key of the server certificate. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the CAType parameter to custom, you must also specify this parameter.
     */
    @JvmName("rkjnabkeciwujkom")
    public suspend fun serverKey(`value`: Output) {
        this.serverKey = value
    }

    /**
     * @param value The settings of the serverless instance. This parameter is required when you create a serverless instance. This parameter takes effect only when you create an ApsaraDB RDS for Serverless instance. See `serverless_config` below.
     */
    @JvmName("ngnkvsxeygwikxob")
    public suspend fun serverlessConfigs(`value`: Output>) {
        this.serverlessConfigs = value
    }

    @JvmName("xybjsfdynnfpkypi")
    public suspend fun serverlessConfigs(vararg values: Output) {
        this.serverlessConfigs = Output.all(values.asList())
    }

    /**
     * @param values The settings of the serverless instance. This parameter is required when you create a serverless instance. This parameter takes effect only when you create an ApsaraDB RDS for Serverless instance. See `serverless_config` below.
     */
    @JvmName("jdlfrjluqshskfbc")
    public suspend fun serverlessConfigs(values: List>) {
        this.serverlessConfigs = Output.all(values)
    }

    /**
     * @param value The sql collector keep time of the instance. Valid values are `30`, `180`, `365`, `1095`, `1825`, Default to `30`.
     */
    @JvmName("nhvvdbmaflqagmik")
    public suspend fun sqlCollectorConfigValue(`value`: Output) {
        this.sqlCollectorConfigValue = value
    }

    /**
     * @param value The sql collector status of the instance. Valid values are `Enabled`, `Disabled`, Default to `Disabled`.
     */
    @JvmName("jdggningthfsubbd")
    public suspend fun sqlCollectorStatus(`value`: Output) {
        this.sqlCollectorStatus = value
    }

    /**
     * @param value Actions performed on SSL functions. Valid values:
     * `Open`: turn on SSL encryption;
     * `Close`: turn off SSL encryption;
     * `Update`: update SSL certificate.
     * See more [engine and engineVersion limitation](https://www.alibabacloud.com/help/zh/doc-detail/26254.htm).
     * > **NOTE:** The attribute `ssl_action` will be ignored when setting `instance_charge_type = "Serverless"` for SQLServer, PostgreSQL or MariaDB.
     */
    @JvmName("tgiqcuyvgpksirea")
    public suspend fun sslAction(`value`: Output) {
        this.sslAction = value
    }

    /**
     * @param value The internal or public endpoint for which the server certificate needs to be created or updated.
     */
    @JvmName("bklenkvwvmueqjnu")
    public suspend fun sslConnectionString(`value`: Output) {
        this.sslConnectionString = value
    }

    /**
     * @param value Automatic storage space expansion switch. Valid values:
     * - Enable
     * - Disable
     * > **NOTE:** This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
     */
    @JvmName("lxyawklvoowwhgvl")
    public suspend fun storageAutoScale(`value`: Output) {
        this.storageAutoScale = value
    }

    /**
     * @param value The threshold in percentage based on which an automatic storage expansion is triggered. If the available storage reaches the threshold, ApsaraDB RDS increases the storage capacity of the instance.
     * Valid values: [10, 20, 30, 40, 50].
     * > **NOTE:** This parameter only takes effect when the StorageAutoScale parameter is set to Enable. The value must be greater than or equal to the total size of the current storage space of the instance.
     */
    @JvmName("dubmxrbhlubwjgnx")
    public suspend fun storageThreshold(`value`: Output) {
        this.storageThreshold = value
    }

    /**
     * @param value The upper limit of the total storage space for automatic expansion of the storage space, that is, automatic expansion will not cause the total storage space of the instance to exceed this value. Unit: GB. The value must be ≥0.
     * > **NOTE:** Because of data backup and migration, change DB instance type and storage would cost 15~20 minutes. Please make full preparation before changing them.
     */
    @JvmName("xslhvgvvycvmfbhm")
    public suspend fun storageUpperBound(`value`: Output) {
        this.storageUpperBound = value
    }

    /**
     * @param value The specific point in time when you want to perform the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. It is valid only when `target_minor_version` is changed. The time must be in UTC.
     * > **NOTE:** This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
     */
    @JvmName("utcxrpibhkmjvwit")
    public suspend fun switchTime(`value`: Output) {
        this.switchTime = value
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     * - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
     * - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
     * Note: From 1.63.0, the tag key and value are case sensitive. Before that, they are not case sensitive.
     */
    @JvmName("qbakjlkkiyoiuluv")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The minor engine version to which you want to update the instance. If you do not specify this parameter, the instance is updated to the latest minor engine version. You must specify the minor engine version in one of the following formats:
     * - PostgreSQL: rds_postgres_00_. Example: rds_postgres_1200_20200830.
     * - MySQL: _. Examples: rds_20200229, xcluster_20200229, and xcluster80_20200229. The following RDS editions are supported:
     * - rds: The instance runs RDS Basic or High-availability Edition.
     * - xcluster: The instance runs MySQL 5.7 on RDS Enterprise Edition.
     * - xcluster80: The instance runs MySQL 8.0 on RDS Enterprise Edition.
     * - SQLServer: . Example: 15.0.4073.23.
     * > **NOTE:** For more information about minor engine versions, see Release notes of minor AliPG versions, Release notes of minor AliSQL versions, and Release notes of minor engine versions of ApsaraDB RDS for SQL Server.
     */
    @JvmName("btfidgwaruylbmod")
    public suspend fun targetMinorVersion(`value`: Output) {
        this.targetMinorVersion = value
    }

    /**
     * @param value The availability check method of the instance. Valid values:
     * - **SHORT**: Alibaba Cloud uses short-lived connections to check the availability of the instance.
     * - **LONG**: Alibaba Cloud uses persistent connections to check the availability of the instance.
     */
    @JvmName("migewestlvjwfdbv")
    public suspend fun tcpConnectionType(`value`: Output) {
        this.tcpConnectionType = value
    }

    /**
     * @param value The TDE(Transparent Data Encryption) status. After TDE is turned on, it cannot be turned off. See more [engine and engineVersion limitation](https://www.alibabacloud.com/help/zh/doc-detail/26256.htm).
     */
    @JvmName("rekhyepqpgstsmqc")
    public suspend fun tdeStatus(`value`: Output) {
        this.tdeStatus = value
    }

    /**
     * @param value Whether to upgrade a minor version of the kernel. Valid values:
     * - true: upgrade
     * - false: not to upgrade
     */
    @Deprecated(
        message = """
  Attribute `upgrade_db_instance_kernel_version` has been deprecated from 1.198.0 and use
      `target_minor_version` instead.
  """,
    )
    @JvmName("njyxgrtmwdffhbvn")
    public suspend fun upgradeDbInstanceKernelVersion(`value`: Output) {
        this.upgradeDbInstanceKernelVersion = value
    }

    /**
     * @param value The method to update the minor engine version. Default value: Immediate. It is valid only when `target_minor_version` is changed. Valid values:
     * - Immediate: The minor engine version is immediately updated.
     * - MaintainTime: The minor engine version is updated during the maintenance window. For more information about how to change the maintenance window, see ModifyDBInstanceMaintainTime.
     * - SpecifyTime: The minor engine version is updated at the point in time you specify.
     */
    @JvmName("wdjuewwlwvvlltsq")
    public suspend fun upgradeTime(`value`: Output) {
        this.upgradeTime = value
    }

    /**
     * @param value The VPC ID of the instance.
     * > **NOTE:** This parameter applies only to ApsaraDB RDS for MySQL instances. For more information about Upgrade the major engine version of an ApsaraDB RDS for MySQL instance, see [Upgrade the major engine version of an RDS instance in the ApsaraDB RDS console](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/upgrade-the-major-engine-version-of-an-apsaradb-rds-for-mysql-instance-1).
     */
    @JvmName("bchkfmctwcejkxyg")
    public suspend fun vpcId(`value`: Output) {
        this.vpcId = value
    }

    /**
     * @param value The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
     */
    @JvmName("frcegtegixdpjonb")
    public suspend fun vswitchId(`value`: Output) {
        this.vswitchId = value
    }

    /**
     * @param value The network type of the IP address whitelist. Default value: MIX. Valid values:
     * - Classic: classic network in enhanced whitelist mode
     * - VPC: virtual private cloud (VPC) in enhanced whitelist mode
     * - MIX: standard whitelist mode
     * > **NOTE:** In standard whitelist mode, IP addresses and CIDR blocks can be added only to the default IP address whitelist. In enhanced whitelist mode, IP addresses and CIDR blocks can be added to both IP address whitelists of the classic network type and those of the VPC network type.
     */
    @JvmName("uhnqenfotuxjqdiv")
    public suspend fun whitelistNetworkType(`value`: Output) {
        this.whitelistNetworkType = value
    }

    /**
     * @param value The Zone to launch the DB instance. From version 1.8.1, it supports multiple zone.
     * If it is a multi-zone and `vswitch_id` is specified, the vswitch must in the one of them.
     * The multiple zone ID can be retrieved by setting `multi` to "true" in the data source `alicloud.getZones`.
     */
    @JvmName("fcwuoqaqubeaqnnb")
    public suspend fun zoneId(`value`: Output) {
        this.zoneId = value
    }

    /**
     * @param value The region ID of the secondary instance if you create a secondary instance. If you set this parameter to the same value as the ZoneId parameter, the instance is deployed in a single zone. Otherwise, the instance is deployed in multiple zones.
     */
    @JvmName("bdsykicbofjuutky")
    public suspend fun zoneIdSlaveA(`value`: Output) {
        this.zoneIdSlaveA = value
    }

    /**
     * @param value The method that is used to verify the identities of clients. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. In addition, this parameter is available only when the public key of the CA that issues client certificates is enabled. Valid values:
     * - cert
     * - perfer
     * - verify-ca
     * - verify-full (supported only when the instance runs PostgreSQL 12 or later)
     */
    @JvmName("rkcyvmexxhqxsjuf")
    public suspend fun acl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acl = mapped
    }

    /**
     * @param value Whether to renewal a DB instance automatically or not. It is valid when instance_charge_type is `PrePaid`. Default to `false`.
     */
    @JvmName("qcrwkqggjjcxbfou")
    public suspend fun autoRenew(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoRenew = mapped
    }

    /**
     * @param value Auto-renewal period of an instance, in the unit of the month. It is valid when instance_charge_type is `PrePaid`. Valid value:[1~12], Default to 1.
     */
    @JvmName("bcytvfxtyniqcean")
    public suspend fun autoRenewPeriod(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoRenewPeriod = mapped
    }

    /**
     * @param value The upgrade method to use. Valid values:
     * - Auto: Instances are automatically upgraded to a higher minor version.
     * - Manual: Instances are forcibly upgraded to a higher minor version when the current version is unpublished.
     * See more [details and limitation](https://www.alibabacloud.com/help/doc-detail/123605.htm).
     */
    @JvmName("njemrxmegdhefuhd")
    public suspend fun autoUpgradeMinorVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoUpgradeMinorVersion = mapped
    }

    /**
     * @param value The configuration of an ApsaraDB RDS for PostgreSQL instance for which Babelfish is enabled. See `babelfish_config` below.
     * > **NOTE:** This parameter takes effect only when you create an ApsaraDB RDS for PostgreSQL instance. For more information, see [Introduction to Babelfish](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/babelfish-for-pg).
     */
    @JvmName("ueruhrwkqtluedtc")
    public suspend fun babelfishConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.babelfishConfigs = mapped
    }

    /**
     * @param argument The configuration of an ApsaraDB RDS for PostgreSQL instance for which Babelfish is enabled. See `babelfish_config` below.
     * > **NOTE:** This parameter takes effect only when you create an ApsaraDB RDS for PostgreSQL instance. For more information, see [Introduction to Babelfish](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/babelfish-for-pg).
     */
    @JvmName("knbqbctnchjwiggr")
    public suspend fun babelfishConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InstanceBabelfishConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.babelfishConfigs = mapped
    }

    /**
     * @param argument The configuration of an ApsaraDB RDS for PostgreSQL instance for which Babelfish is enabled. See `babelfish_config` below.
     * > **NOTE:** This parameter takes effect only when you create an ApsaraDB RDS for PostgreSQL instance. For more information, see [Introduction to Babelfish](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/babelfish-for-pg).
     */
    @JvmName("rwwhislcrhocahct")
    public suspend fun babelfishConfigs(vararg argument: suspend InstanceBabelfishConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InstanceBabelfishConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.babelfishConfigs = mapped
    }

    /**
     * @param argument The configuration of an ApsaraDB RDS for PostgreSQL instance for which Babelfish is enabled. See `babelfish_config` below.
     * > **NOTE:** This parameter takes effect only when you create an ApsaraDB RDS for PostgreSQL instance. For more information, see [Introduction to Babelfish](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/babelfish-for-pg).
     */
    @JvmName("iaheawfaktstrdrp")
    public suspend fun babelfishConfigs(argument: suspend InstanceBabelfishConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            InstanceBabelfishConfigArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.babelfishConfigs = mapped
    }

    /**
     * @param values The configuration of an ApsaraDB RDS for PostgreSQL instance for which Babelfish is enabled. See `babelfish_config` below.
     * > **NOTE:** This parameter takes effect only when you create an ApsaraDB RDS for PostgreSQL instance. For more information, see [Introduction to Babelfish](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/babelfish-for-pg).
     */
    @JvmName("qjsqhetlpqiyfwyi")
    public suspend fun babelfishConfigs(vararg values: InstanceBabelfishConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.babelfishConfigs = mapped
    }

    /**
     * @param value The TDS port of the instance for which Babelfish is enabled.
     * > **NOTE:** This parameter applies only to ApsaraDB RDS for PostgreSQL instances. For more information about Babelfish for ApsaraDB RDS for PostgreSQL, see [Introduction to Babelfish](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/babelfish-for-pg).
     */
    @JvmName("pryktrhlaxyisnvh")
    public suspend fun babelfishPort(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.babelfishPort = mapped
    }

    /**
     * @param value The type of the server certificate. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the SSLEnabled parameter to 1, the default value of this parameter is aliyun. Value range:
     * - aliyun: a cloud certificate
     * - custom: a custom certificate
     */
    @JvmName("ioistdyuwxjqqhay")
    public suspend fun caType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.caType = mapped
    }

    /**
     * @param value The RDS edition of the instance. If you want to create a serverless instance, you must use this value. Valid values:
     * * **Basic**: Basic Edition.
     * * **HighAvailability**: High-availability Edition.
     * * **AlwaysOn**: Cluster Edition.
     * * **Finance**: Enterprise Edition.
     * * **cluster**: MySQL Cluster Edition. (Available since 1.202.0)
     * * **serverless_basic**: RDS Serverless Basic Edition. This edition is available only for instances that run MySQL and PostgreSQL. (Available since 1.200.0)
     * * **serverless_standard**: RDS Serverless Basic Edition. This edition is available only for instances that run MySQL and PostgreSQL. (Available since 1.204.0)
     * * **serverless_ha**: RDS Serverless High-availability Edition for SQL Server. (Available since 1.204.0)
     * > **NOTE:** `zone_id_slave_a` and `zone_id_slave_b` can specify slave zone ids when creating the high-availability or enterprise edition instances. Meanwhile, `vswitch_id` needs to pass in the corresponding vswitch id to the slave zone by order (If the `vswitch_id` is not specified, the classic network version will be created). For example, `zone_id` = "zone-a" and `zone_id_slave_a` = "zone-c", `zone_id_slave_b` = "zone-b", then the `vswitch_id` must be "vsw-zone-a,vsw-zone-c,vsw-zone-b". Of course, you can also choose automatic allocation , for example, `zone_id` = "zone-a" and `zone_id_slave_a` = "Auto",`zone_id_slave_b` = "Auto", then the `vswitch_id` must be "vsw-zone-a,Auto,Auto". The list contains up to 2 slave zone ids , separated by commas.
     */
    @JvmName("fuhgctlaunnkewgn")
    public suspend fun category(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.category = mapped
    }

    /**
     * @param value The public key of the CA that issues client certificates. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the ClientCAEbabled parameter to 1, you must also specify this parameter.
     */
    @JvmName("uofipsjqoykveogu")
    public suspend fun clientCaCert(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientCaCert = mapped
    }

    /**
     * @param value Specifies whether to enable the public key of the CA that issues client certificates. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. Valid values:
     * - 1: enables the public key
     * - 0: disables the public key
     */
    @JvmName("lrqyegynmhrjteky")
    public suspend fun clientCaEnabled(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientCaEnabled = mapped
    }

    /**
     * @param value The CRL that contains revoked client certificates. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the ClientCrlEnabled parameter to 1, you must also specify this parameter.
     */
    @JvmName("yuqpjpesjsurcyco")
    public suspend fun clientCertRevocationList(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientCertRevocationList = mapped
    }

    /**
     * @param value Specifies whether to enable a certificate revocation list (CRL) that contains revoked client certificates. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. In addition, this parameter is available only when the public key of the CA that issues client certificates is enabled. Valid values:
     * - 1: enables the CRL
     * - 0: disables the CRL
     */
    @JvmName("rbrgkwascbkcqgtu")
    public suspend fun clientCrlEnabled(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientCrlEnabled = mapped
    }

    /**
     * @param value The private connection string prefix. If you want to update public connection string prefix, please use resource alicloud.rds.Connection connection_prefix.
     * > **NOTE:** The prefix must be 8 to 64 characters in length and can contain letters, digits, and hyphens (-). It cannot contain Chinese characters and special characters ~!#%^&*=+\|{};:'",<>/?
     */
    @JvmName("igjculqbyxknapon")
    public suspend fun connectionStringPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectionStringPrefix = mapped
    }

    /**
     * @param value The attribute of the IP address whitelist. By default, this parameter is empty.
     * > **NOTE:** The IP address whitelists that have the hidden attribute are not displayed in the ApsaraDB RDS console. These IP address whitelists are used to access Alibaba Cloud services, such as Data Transmission Service (DTS).
     */
    @JvmName("nvxejvsqpxoygfxm")
    public suspend fun dbInstanceIpArrayAttribute(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbInstanceIpArrayAttribute = mapped
    }

    /**
     * @param value The name of the IP address whitelist. Default value: Default.
     * > **NOTE:** A maximum of 200 IP address whitelists can be configured for each instance.
     */
    @JvmName("smixytkvcftasplw")
    public suspend fun dbInstanceIpArrayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbInstanceIpArrayName = mapped
    }

    /**
     * @param value The storage type of the instance. Serverless instance, only `cloud_essd` can be selected. Valid values:
     * - local_ssd: specifies to use local SSDs. This value is recommended.
     * - cloud_ssd: specifies to use standard SSDs.
     * - cloud_essd: specifies to use enhanced SSDs (ESSDs).
     * - cloud_essd2: specifies to use enhanced SSDs (ESSDs).
     * - cloud_essd3: specifies to use enhanced SSDs (ESSDs).
     * - general_essd: general essd.
     */
    @JvmName("txbasixryjthihot")
    public suspend fun dbInstanceStorageType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbInstanceStorageType = mapped
    }

    /**
     * @param value Specifies whether table names on the instance are case-sensitive. Valid values: `true`, `false`.
     */
    @JvmName("pceypxgcayfapvaq")
    public suspend fun dbIsIgnoreCase(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbIsIgnoreCase = mapped
    }

    /**
     * @param value Parameter template ID. Only MySQL and PostgreSQL support this parameter. If this parameter is not specified, the default parameter template is used. You can also customize a parameter template and use it here.
     */
    @JvmName("qtybxcwkgvohbumg")
    public suspend fun dbParamGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbParamGroupId = mapped
    }

    /**
     * @param value The time zone of the instance. This parameter takes effect only when you set the `Engine` parameter to MySQL or PostgreSQL.
     * - If you set the `Engine` parameter to MySQL.
     * - This time zone of the instance is in UTC. Valid values: -12:59 to +13:00.
     * - You can specify this parameter when the instance is equipped with local SSDs. For example, you can specify the time zone to Asia/Hong_Kong. For more information about time zones, see [Time zones](https://www.alibabacloud.com/help/doc-detail/297356.htm).
     * - If you set the `Engine` parameter to PostgreSQL.
     * - This time zone of the instance is not in UTC. For more information about time zones, see [Time zones](https://www.alibabacloud.com/help/doc-detail/297356.htm).
     * - You can specify this parameter only when the instance is equipped with standard SSDs or ESSDs.
     * > **NOTE:** You can specify the time zone when you create a primary instance. You cannot specify the time zone when you create a read-only instance. Read-only instances inherit the time zone of their primary instance. If you do not specify this parameter, the system assigns the default time zone of the region where the instance resides.
     */
    @JvmName("qfngkhkkroaqknjd")
    public suspend fun dbTimeZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbTimeZone = mapped
    }

    /**
     * @param value The switch of delete protection. Valid values:
     * - true: delete protect.
     * - false: no delete protect.
     * > **NOTE:** `deletion_protection` is valid only when attribute `instance_charge_type` is set to `Postpaid` or `Serverless`, supported engine type: `MySQL`, `PostgreSQL`, `MariaDB`, `MSSQL`.
     */
    @JvmName("wddjvacjafgxkfqi")
    public suspend fun deletionProtection(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deletionProtection = mapped
    }

    /**
     * @param value The instance configuration type. Valid values: ["Up", "Down", "TempUpgrade", "Serverless"]
     */
    @JvmName("pqsifgsqlmkmlegw")
    public suspend fun direction(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.direction = mapped
    }

    /**
     * @param value The method to update the engine version and change.  Default value: Immediate. Valid values:
     * - Immediate: The change immediately takes effect.
     * - MaintainTime: The change takes effect during the specified maintenance window. For more information, see ModifyDBInstanceMaintainTime.
     */
    @JvmName("vkxhgmcxucfxonwo")
    public suspend fun effectiveTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.effectiveTime = mapped
    }

    /**
     * @param value The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
     */
    @JvmName("jjxadiilxhaoiwaq")
    public suspend fun encryptionKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionKey = mapped
    }

    /**
     * @param value Database type. Value options: MySQL, SQLServer, PostgreSQL, MariaDB.
     * > **NOTE:** When the 'engine_version' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
     */
    @JvmName("lfyflfxnkygkjgqg")
    public suspend fun engine(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.engine = mapped
    }

    /**
     * @param value Database version. Value options can refer to the latest docs [CreateDBInstance](https://www.alibabacloud.com/help/doc-detail/26228.htm) `EngineVersion`.
     * - MySQL: [ 5.5、5.6、5.7、8.0 ]
     * - SQLServer: [ 2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、2019_ent ]
     * - PostgreSQL: [ 10.0、11.0、12.0、13.0、14.0、15.0 ]
     * - MariaDB: [ 10.3 ]
     * - Serverless
     * > - MySQL: [ 5.7、8.0 ]
     * > - SQLServer: [ 2016_std_sl、2017_std_sl、2019_std_sl ]
     * > - PostgreSQL: [ 14.0 ]
     * > - MariaDB does not support creating serverless instances.
     */
    @JvmName("yaatbvhexduqoixx")
    public suspend fun engineVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.engineVersion = mapped
    }

    /**
     * @param value Specifies whether to enable forcible switching. Valid values:
     * - Yes
     * - No
     */
    @JvmName("uukmspmhfpwhulpo")
    public suspend fun force(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.force = mapped
    }

    /**
     * @param value Set it to true to make some parameter efficient when modifying them. Default to false.
     */
    @JvmName("wgeoijepbocrmljv")
    public suspend fun forceRestart(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.forceRestart = mapped
    }

    /**
     * @param value The read-only instances to which you want to synchronize the IP address whitelist.
     * * If the instance is attached with a read-only instance, you can use this parameter to synchronize the IP address whitelist to the read-only instance. If the instance is attached with multiple read-only instances, the read-only instances must be separated by commas (,).
     * * If the instance is not attached with a read-only instance, this parameter is empty.
     */
    @JvmName("uqpmoebjiqrjgitc")
    public suspend fun freshWhiteListReadins(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.freshWhiteListReadins = mapped
    }

    /**
     * @param value The primary/secondary switchover mode of the instance. Default value: Auto. Valid values:
     * - Auto: The system automatically switches over services from the primary to secondary instances in the event of a fault.
     * - Manual: You must manually switch over services from the primary to secondary instances in the event of a fault.
     * > **NOTE:** If you set this parameter to Manual, you must specify the ManualHATime parameter.
     */
    @JvmName("thytpuyxaflveusw")
    public suspend fun haConfig(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.haConfig = mapped
    }

    /**
     * @param value Valid values are `Prepaid`, `Postpaid`, `Serverless`, Default to `Postpaid`. Currently, the resource only supports PostPaid to PrePaid. For more information, see [Overview](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/what-is-serverless?spm=a2c63.p38356.0.0.772a28cfTAGqIv).
     */
    @JvmName("jlfikujahnnallya")
    public suspend fun instanceChargeType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceChargeType = mapped
    }

    /**
     * @param value The name of DB instance. It a string of 2 to 256 characters.
     */
    @JvmName("bfoymyecbqgcaicw")
    public suspend fun instanceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceName = mapped
    }

    /**
     * @param value User-defined DB instance storage space. Value range:
     * - [5, 2000] for MySQL/PostgreSQL HA dual node edition;
     * - [20,1000] for MySQL 5.7 basic single node edition;
     * - [10, 2000] for SQL Server 2008R2;
     * - [20,2000] for SQL Server 2012 basic single node edition
     * Increase progressively at a rate of 5 GB. For details, see [Instance type table](https://www.alibabacloud.com/help/doc-detail/26312.htm).
     * Note: There is extra 5 GB storage for SQL Server Instance, and it is not in specified `instance_storage`.
     */
    @JvmName("mqqyxgmjtitswnib")
    public suspend fun instanceStorage(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceStorage = mapped
    }

    /**
     * @param value DB Instance type. For details, see [Instance type table](https://www.alibabacloud.com/help/doc-detail/26312.htm).
     * - To create a serverless instance, please pass the following values:
     * - MySQL basic: mysql.n2.serverless.1c
     * - MySQL high availability: mysql.n2.serverless.2c
     * - SQLServer high availability: mssql.mem2.serverless.s2
     * - PostgreSQL basic: pg.n2.serverless.1c
     * > **NOTE:** When `storage_auto_scale="Enable"`, do not perform `instance_storage` check. when `storage_auto_scale="Disable"`, if the instance itself `instance_storage`has changed. You need to manually revise the `instance_storage` in the template value. When `payment_type="Serverless"` and when modifying, do not perform `instance_storage` check. Otherwise, check.
     */
    @JvmName("wybbksrdxtrcidrc")
    public suspend fun instanceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceType = mapped
    }

    /**
     * @param value Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
     */
    @JvmName("sxkllekljrxxppat")
    public suspend fun maintainTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maintainTime = mapped
    }

    /**
     * @param value The time after when you want to enable automatic primary/secondary switchover. At most, you can set this parameter to 23:59:59 seven days later. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
     * > **NOTE:** This parameter only takes effect when the HAConfig parameter is set to Manual.
     */
    @JvmName("qcqsuderdptnuvkw")
    public suspend fun manualHaTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manualHaTime = mapped
    }

    /**
     * @param value The method that is used to modify the IP address whitelist. Default value: Cover. Valid values:
     * - Cover: Use the value of the SecurityIps parameter to overwrite the existing entries in the IP address whitelist.
     * - Append: Add the IP addresses and CIDR blocks that are specified in the SecurityIps parameter to the IP address whitelist.
     * - Delete: Delete IP addresses and CIDR blocks that are specified in the SecurityIps parameter from the IP address whitelist. You must retain at least one IP address or CIDR block.
     */
    @JvmName("hfdwafgjctqvtpll")
    public suspend fun modifyMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modifyMode = mapped
    }

    /**
     * @param value The monitoring frequency in seconds. Valid values are 5, 10, 60, 300. Defaults to 300.
     */
    @JvmName("tiipjesktgwkcmfq")
    public suspend fun monitoringPeriod(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monitoringPeriod = mapped
    }

    /**
     * @param value The globally unique identifier (GUID) of the secondary instance. You can call the DescribeDBInstanceHAConfig operation to query the GUID of the secondary instance.
     */
    @JvmName("tqumpoydxhdxcqgm")
    public suspend fun nodeId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeId = mapped
    }

    /**
     * @param value Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs [View database parameter templates](https://www.alibabacloud.com/help/doc-detail/26284.htm) . See `parameters` below.
     */
    @JvmName("hvwtrfsbkgknjbjo")
    public suspend fun parameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs [View database parameter templates](https://www.alibabacloud.com/help/doc-detail/26284.htm) . See `parameters` below.
     */
    @JvmName("ekdfbslypmojuiba")
    public suspend fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InstanceParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs [View database parameter templates](https://www.alibabacloud.com/help/doc-detail/26284.htm) . See `parameters` below.
     */
    @JvmName("pjmyghyowgsxokut")
    public suspend fun parameters(vararg argument: suspend InstanceParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InstanceParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs [View database parameter templates](https://www.alibabacloud.com/help/doc-detail/26284.htm) . See `parameters` below.
     */
    @JvmName("bohivcfxratcbwle")
    public suspend fun parameters(argument: suspend InstanceParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(InstanceParameterArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs [View database parameter templates](https://www.alibabacloud.com/help/doc-detail/26284.htm) . See `parameters` below.
     */
    @JvmName("qrhkdudaagwalgwa")
    public suspend fun parameters(vararg values: InstanceParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value The duration that you will buy DB instance (in month). It is valid when instance_charge_type is `PrePaid`. Valid values: [1~9], 12, 24, 36.
     * > **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
     */
    @JvmName("yfwwtvrgwwxtfqfs")
    public suspend fun period(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.period = mapped
    }

    /**
     * @param value The configuration of [AD domain](https://www.alibabacloud.com/help/en/doc-detail/349288.htm) . See `pg_hba_conf` below.
     */
    @JvmName("fyooyckofuxqeksg")
    public suspend fun pgHbaConfs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pgHbaConfs = mapped
    }

    /**
     * @param argument The configuration of [AD domain](https://www.alibabacloud.com/help/en/doc-detail/349288.htm) . See `pg_hba_conf` below.
     */
    @JvmName("kslsccmkqdjhyxfj")
    public suspend fun pgHbaConfs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InstancePgHbaConfArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.pgHbaConfs = mapped
    }

    /**
     * @param argument The configuration of [AD domain](https://www.alibabacloud.com/help/en/doc-detail/349288.htm) . See `pg_hba_conf` below.
     */
    @JvmName("cbserpstsxdvllfo")
    public suspend fun pgHbaConfs(vararg argument: suspend InstancePgHbaConfArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InstancePgHbaConfArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.pgHbaConfs = mapped
    }

    /**
     * @param argument The configuration of [AD domain](https://www.alibabacloud.com/help/en/doc-detail/349288.htm) . See `pg_hba_conf` below.
     */
    @JvmName("belnnawrrqsctdqa")
    public suspend fun pgHbaConfs(argument: suspend InstancePgHbaConfArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(InstancePgHbaConfArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.pgHbaConfs = mapped
    }

    /**
     * @param values The configuration of [AD domain](https://www.alibabacloud.com/help/en/doc-detail/349288.htm) . See `pg_hba_conf` below.
     */
    @JvmName("eamowdvehxxcsvaa")
    public suspend fun pgHbaConfs(vararg values: InstancePgHbaConfArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pgHbaConfs = mapped
    }

    /**
     * @param value The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
     */
    @JvmName("kshigfywjvdaqeom")
    public suspend fun port(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value The private IP address of the instance. The private IP address must be within the Classless Inter-Domain Routing (CIDR) block of the vSwitch that is specified by the VSwitchId parameter.
     */
    @JvmName("alkvijsjoxvtoxcd")
    public suspend fun privateIpAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateIpAddress = mapped
    }

    /**
     * @param value The policy based on which ApsaraDB RDS retains archived backup files after the instance is released. Valid values:
     * - None: No archived backup files are retained.
     * - Lastest: Only the last archived backup file is retained.
     * - All: All the archived backup files are retained.
     * > **NOTE:** This parameter is supported only when the instance runs the MySQL database engine.
     */
    @JvmName("lirjufcbfyvuqiqp")
    public suspend fun releasedKeepPolicy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.releasedKeepPolicy = mapped
    }

    /**
     * @param value The method that is used to verify the replication permission. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. In addition, this parameter is available only when the public key of the CA that issues client certificates is enabled. Valid values:
     * - cert
     * - perfer
     * - verify-ca
     * - verify-full (supported only when the instance runs PostgreSQL 12 or later)
     */
    @JvmName("mlplcoyoxeaiqcdc")
    public suspend fun replicationAcl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replicationAcl = mapped
    }

    /**
     * @param value The ID of resource group which the DB instance belongs.
     */
    @JvmName("bxqbquunaphfwgub")
    public suspend fun resourceGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupId = mapped
    }

    /**
     * @param value The Alibaba Cloud Resource Name (ARN) of the RAM role.
     * > **NOTE:**  This parameter is not required when you create an instance that runs MySQL, PostgreSQL, or SQL Server. You need to only specify the RoleARN parameter to create an instance that has cloud disk encryption enabled by using the obtained key ID.
     * You can configure RAM authorization to require a RAM user to enable cloud disk encryption when the RAM user is used to create an instance. If cloud disk encryption is disabled during the instance creation, the creation operation fails. To complete the configuration, you can attach the following policy to the RAM user: {"Version":"1","Statement":[{"Effect":"Deny","Action":"rds:CreateDBInstance","Resource":"*","Condition":{"StringEquals":{"rds:DiskEncryptionRequired":"false"}}}]}
     */
    @JvmName("shiukcqypaykbqvg")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value It has been deprecated from 1.69.0 and use `security_group_ids` instead.
     */
    @Deprecated(
        message = """
  Attribute `security_group_id` has been deprecated from 1.69.0 and use `security_group_ids`
      instead.
  """,
    )
    @JvmName("sbbjgnyvykdbetyy")
    public suspend fun securityGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupId = mapped
    }

    /**
     * @param value , Available since 1.69.0) The list IDs to join ECS Security Group. At most supports three security groups.
     */
    @JvmName("nxmasjinjbvcymdx")
    public suspend fun securityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values , Available since 1.69.0) The list IDs to join ECS Security Group. At most supports three security groups.
     */
    @JvmName("trkanvtwbewjfgro")
    public suspend fun securityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param value Valid values are `normal`, `safety`, Default to `normal`. support `safety` switch to high security access mode.
     */
    @JvmName("bplkwloykpgpeejy")
    public suspend fun securityIpMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityIpMode = mapped
    }

    /**
     * @param value The type of IP address in the IP address whitelist.
     */
    @JvmName("yggkqohrltmcmdnd")
    public suspend fun securityIpType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityIpType = mapped
    }

    /**
     * @param value List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
     */
    @JvmName("tpqaifusgdhgtigx")
    public suspend fun securityIps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityIps = mapped
    }

    /**
     * @param values List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
     */
    @JvmName("esbagyliuncywtxp")
    public suspend fun securityIps(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityIps = mapped
    }

    /**
     * @param value The content of the server certificate. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the CAType parameter to custom, you must also specify this parameter.
     */
    @JvmName("wbgwsbvparbksach")
    public suspend fun serverCert(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverCert = mapped
    }

    /**
     * @param value The private key of the server certificate. This parameter is supported only when the instance runs PostgreSQL with standard or enhanced SSDs. If you set the CAType parameter to custom, you must also specify this parameter.
     */
    @JvmName("afueeilskslefmub")
    public suspend fun serverKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverKey = mapped
    }

    /**
     * @param value The settings of the serverless instance. This parameter is required when you create a serverless instance. This parameter takes effect only when you create an ApsaraDB RDS for Serverless instance. See `serverless_config` below.
     */
    @JvmName("dlnnwwuabqipjghr")
    public suspend fun serverlessConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverlessConfigs = mapped
    }

    /**
     * @param argument The settings of the serverless instance. This parameter is required when you create a serverless instance. This parameter takes effect only when you create an ApsaraDB RDS for Serverless instance. See `serverless_config` below.
     */
    @JvmName("prequnjcfdgkvgpj")
    public suspend fun serverlessConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InstanceServerlessConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.serverlessConfigs = mapped
    }

    /**
     * @param argument The settings of the serverless instance. This parameter is required when you create a serverless instance. This parameter takes effect only when you create an ApsaraDB RDS for Serverless instance. See `serverless_config` below.
     */
    @JvmName("eeebcujwwlqiljcs")
    public suspend fun serverlessConfigs(vararg argument: suspend InstanceServerlessConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InstanceServerlessConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.serverlessConfigs = mapped
    }

    /**
     * @param argument The settings of the serverless instance. This parameter is required when you create a serverless instance. This parameter takes effect only when you create an ApsaraDB RDS for Serverless instance. See `serverless_config` below.
     */
    @JvmName("pnyffqbpcdjsdgnw")
    public suspend fun serverlessConfigs(argument: suspend InstanceServerlessConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            InstanceServerlessConfigArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.serverlessConfigs = mapped
    }

    /**
     * @param values The settings of the serverless instance. This parameter is required when you create a serverless instance. This parameter takes effect only when you create an ApsaraDB RDS for Serverless instance. See `serverless_config` below.
     */
    @JvmName("ekrjukrgmunfabep")
    public suspend fun serverlessConfigs(vararg values: InstanceServerlessConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serverlessConfigs = mapped
    }

    /**
     * @param value The sql collector keep time of the instance. Valid values are `30`, `180`, `365`, `1095`, `1825`, Default to `30`.
     */
    @JvmName("njdlstikffvckxnu")
    public suspend fun sqlCollectorConfigValue(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlCollectorConfigValue = mapped
    }

    /**
     * @param value The sql collector status of the instance. Valid values are `Enabled`, `Disabled`, Default to `Disabled`.
     */
    @JvmName("cxyiieydhdkymcne")
    public suspend fun sqlCollectorStatus(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlCollectorStatus = mapped
    }

    /**
     * @param value Actions performed on SSL functions. Valid values:
     * `Open`: turn on SSL encryption;
     * `Close`: turn off SSL encryption;
     * `Update`: update SSL certificate.
     * See more [engine and engineVersion limitation](https://www.alibabacloud.com/help/zh/doc-detail/26254.htm).
     * > **NOTE:** The attribute `ssl_action` will be ignored when setting `instance_charge_type = "Serverless"` for SQLServer, PostgreSQL or MariaDB.
     */
    @JvmName("ucekitgbfomeryhc")
    public suspend fun sslAction(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sslAction = mapped
    }

    /**
     * @param value The internal or public endpoint for which the server certificate needs to be created or updated.
     */
    @JvmName("uhddwcvynadljnbx")
    public suspend fun sslConnectionString(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sslConnectionString = mapped
    }

    /**
     * @param value Automatic storage space expansion switch. Valid values:
     * - Enable
     * - Disable
     * > **NOTE:** This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
     */
    @JvmName("gtotyhfotrhkrpkt")
    public suspend fun storageAutoScale(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageAutoScale = mapped
    }

    /**
     * @param value The threshold in percentage based on which an automatic storage expansion is triggered. If the available storage reaches the threshold, ApsaraDB RDS increases the storage capacity of the instance.
     * Valid values: [10, 20, 30, 40, 50].
     * > **NOTE:** This parameter only takes effect when the StorageAutoScale parameter is set to Enable. The value must be greater than or equal to the total size of the current storage space of the instance.
     */
    @JvmName("wmksgsadutssdals")
    public suspend fun storageThreshold(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageThreshold = mapped
    }

    /**
     * @param value The upper limit of the total storage space for automatic expansion of the storage space, that is, automatic expansion will not cause the total storage space of the instance to exceed this value. Unit: GB. The value must be ≥0.
     * > **NOTE:** Because of data backup and migration, change DB instance type and storage would cost 15~20 minutes. Please make full preparation before changing them.
     */
    @JvmName("byyydkfpupsrcdbg")
    public suspend fun storageUpperBound(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageUpperBound = mapped
    }

    /**
     * @param value The specific point in time when you want to perform the update. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. It is valid only when `target_minor_version` is changed. The time must be in UTC.
     * > **NOTE:** This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
     */
    @JvmName("vguqkwhuowdgwhea")
    public suspend fun switchTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.switchTime = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     * - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
     * - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
     * Note: From 1.63.0, the tag key and value are case sensitive. Before that, they are not case sensitive.
     */
    @JvmName("chldomgtkgffjjdn")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags to assign to the resource.
     * - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
     * - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
     * Note: From 1.63.0, the tag key and value are case sensitive. Before that, they are not case sensitive.
     */
    @JvmName("sxylbbwpwciljhld")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The minor engine version to which you want to update the instance. If you do not specify this parameter, the instance is updated to the latest minor engine version. You must specify the minor engine version in one of the following formats:
     * - PostgreSQL: rds_postgres_00_. Example: rds_postgres_1200_20200830.
     * - MySQL: _. Examples: rds_20200229, xcluster_20200229, and xcluster80_20200229. The following RDS editions are supported:
     * - rds: The instance runs RDS Basic or High-availability Edition.
     * - xcluster: The instance runs MySQL 5.7 on RDS Enterprise Edition.
     * - xcluster80: The instance runs MySQL 8.0 on RDS Enterprise Edition.
     * - SQLServer: . Example: 15.0.4073.23.
     * > **NOTE:** For more information about minor engine versions, see Release notes of minor AliPG versions, Release notes of minor AliSQL versions, and Release notes of minor engine versions of ApsaraDB RDS for SQL Server.
     */
    @JvmName("arakveednepdvtgb")
    public suspend fun targetMinorVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetMinorVersion = mapped
    }

    /**
     * @param value The availability check method of the instance. Valid values:
     * - **SHORT**: Alibaba Cloud uses short-lived connections to check the availability of the instance.
     * - **LONG**: Alibaba Cloud uses persistent connections to check the availability of the instance.
     */
    @JvmName("leduhphjuudwgrli")
    public suspend fun tcpConnectionType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tcpConnectionType = mapped
    }

    /**
     * @param value The TDE(Transparent Data Encryption) status. After TDE is turned on, it cannot be turned off. See more [engine and engineVersion limitation](https://www.alibabacloud.com/help/zh/doc-detail/26256.htm).
     */
    @JvmName("hdvdwcbrjxhnlmfs")
    public suspend fun tdeStatus(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tdeStatus = mapped
    }

    /**
     * @param value Whether to upgrade a minor version of the kernel. Valid values:
     * - true: upgrade
     * - false: not to upgrade
     */
    @Deprecated(
        message = """
  Attribute `upgrade_db_instance_kernel_version` has been deprecated from 1.198.0 and use
      `target_minor_version` instead.
  """,
    )
    @JvmName("lqfibiqprnryiipt")
    public suspend fun upgradeDbInstanceKernelVersion(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.upgradeDbInstanceKernelVersion = mapped
    }

    /**
     * @param value The method to update the minor engine version. Default value: Immediate. It is valid only when `target_minor_version` is changed. Valid values:
     * - Immediate: The minor engine version is immediately updated.
     * - MaintainTime: The minor engine version is updated during the maintenance window. For more information about how to change the maintenance window, see ModifyDBInstanceMaintainTime.
     * - SpecifyTime: The minor engine version is updated at the point in time you specify.
     */
    @JvmName("tkvgjglcfdwwgjay")
    public suspend fun upgradeTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.upgradeTime = mapped
    }

    /**
     * @param value The VPC ID of the instance.
     * > **NOTE:** This parameter applies only to ApsaraDB RDS for MySQL instances. For more information about Upgrade the major engine version of an ApsaraDB RDS for MySQL instance, see [Upgrade the major engine version of an RDS instance in the ApsaraDB RDS console](https://www.alibabacloud.com/help/en/apsaradb-for-rds/latest/upgrade-the-major-engine-version-of-an-apsaradb-rds-for-mysql-instance-1).
     */
    @JvmName("kctjdilyvggknnne")
    public suspend fun vpcId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcId = mapped
    }

    /**
     * @param value The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
     */
    @JvmName("mxthegjhksgkrlsy")
    public suspend fun vswitchId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vswitchId = mapped
    }

    /**
     * @param value The network type of the IP address whitelist. Default value: MIX. Valid values:
     * - Classic: classic network in enhanced whitelist mode
     * - VPC: virtual private cloud (VPC) in enhanced whitelist mode
     * - MIX: standard whitelist mode
     * > **NOTE:** In standard whitelist mode, IP addresses and CIDR blocks can be added only to the default IP address whitelist. In enhanced whitelist mode, IP addresses and CIDR blocks can be added to both IP address whitelists of the classic network type and those of the VPC network type.
     */
    @JvmName("gwbnjiikdmblbckh")
    public suspend fun whitelistNetworkType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.whitelistNetworkType = mapped
    }

    /**
     * @param value The Zone to launch the DB instance. From version 1.8.1, it supports multiple zone.
     * If it is a multi-zone and `vswitch_id` is specified, the vswitch must in the one of them.
     * The multiple zone ID can be retrieved by setting `multi` to "true" in the data source `alicloud.getZones`.
     */
    @JvmName("icqnehgitgbqdlrr")
    public suspend fun zoneId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zoneId = mapped
    }

    /**
     * @param value The region ID of the secondary instance if you create a secondary instance. If you set this parameter to the same value as the ZoneId parameter, the instance is deployed in a single zone. Otherwise, the instance is deployed in multiple zones.
     */
    @JvmName("gqeerpwqtkkittcl")
    public suspend fun zoneIdSlaveA(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zoneIdSlaveA = mapped
    }

    internal fun build(): InstanceArgs = InstanceArgs(
        acl = acl,
        autoRenew = autoRenew,
        autoRenewPeriod = autoRenewPeriod,
        autoUpgradeMinorVersion = autoUpgradeMinorVersion,
        babelfishConfigs = babelfishConfigs,
        babelfishPort = babelfishPort,
        caType = caType,
        category = category,
        clientCaCert = clientCaCert,
        clientCaEnabled = clientCaEnabled,
        clientCertRevocationList = clientCertRevocationList,
        clientCrlEnabled = clientCrlEnabled,
        connectionStringPrefix = connectionStringPrefix,
        dbInstanceIpArrayAttribute = dbInstanceIpArrayAttribute,
        dbInstanceIpArrayName = dbInstanceIpArrayName,
        dbInstanceStorageType = dbInstanceStorageType,
        dbIsIgnoreCase = dbIsIgnoreCase,
        dbParamGroupId = dbParamGroupId,
        dbTimeZone = dbTimeZone,
        deletionProtection = deletionProtection,
        direction = direction,
        effectiveTime = effectiveTime,
        encryptionKey = encryptionKey,
        engine = engine,
        engineVersion = engineVersion,
        force = force,
        forceRestart = forceRestart,
        freshWhiteListReadins = freshWhiteListReadins,
        haConfig = haConfig,
        instanceChargeType = instanceChargeType,
        instanceName = instanceName,
        instanceStorage = instanceStorage,
        instanceType = instanceType,
        maintainTime = maintainTime,
        manualHaTime = manualHaTime,
        modifyMode = modifyMode,
        monitoringPeriod = monitoringPeriod,
        nodeId = nodeId,
        parameters = parameters,
        period = period,
        pgHbaConfs = pgHbaConfs,
        port = port,
        privateIpAddress = privateIpAddress,
        releasedKeepPolicy = releasedKeepPolicy,
        replicationAcl = replicationAcl,
        resourceGroupId = resourceGroupId,
        roleArn = roleArn,
        securityGroupId = securityGroupId,
        securityGroupIds = securityGroupIds,
        securityIpMode = securityIpMode,
        securityIpType = securityIpType,
        securityIps = securityIps,
        serverCert = serverCert,
        serverKey = serverKey,
        serverlessConfigs = serverlessConfigs,
        sqlCollectorConfigValue = sqlCollectorConfigValue,
        sqlCollectorStatus = sqlCollectorStatus,
        sslAction = sslAction,
        sslConnectionString = sslConnectionString,
        storageAutoScale = storageAutoScale,
        storageThreshold = storageThreshold,
        storageUpperBound = storageUpperBound,
        switchTime = switchTime,
        tags = tags,
        targetMinorVersion = targetMinorVersion,
        tcpConnectionType = tcpConnectionType,
        tdeStatus = tdeStatus,
        upgradeDbInstanceKernelVersion = upgradeDbInstanceKernelVersion,
        upgradeTime = upgradeTime,
        vpcId = vpcId,
        vswitchId = vswitchId,
        whitelistNetworkType = whitelistNetworkType,
        zoneId = zoneId,
        zoneIdSlaveA = zoneIdSlaveA,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy