alicloud.rds.DdrInstance
Explore with Pulumi AI
Import
RDS ddr instance can be imported using the id, e.g.
$ pulumi import alicloud:rds/ddrInstance:DdrInstance example rm-abc12345678
Create DdrInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DdrInstance(name: string, args: DdrInstanceArgs, opts?: CustomResourceOptions);
@overload
def DdrInstance(resource_name: str,
args: DdrInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DdrInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
engine: Optional[str] = None,
restore_type: Optional[str] = None,
payment_type: Optional[str] = None,
instance_type: Optional[str] = None,
instance_storage: Optional[int] = None,
engine_version: Optional[str] = None,
pg_hba_confs: Optional[Sequence[DdrInstancePgHbaConfArgs]] = None,
db_instance_ip_array_name: Optional[str] = None,
client_cert_revocation_list: Optional[str] = None,
client_crl_enabled: Optional[int] = None,
connection_string_prefix: Optional[str] = None,
db_instance_ip_array_attribute: Optional[str] = None,
released_keep_policy: Optional[str] = None,
db_instance_storage_type: Optional[str] = None,
deletion_protection: Optional[bool] = None,
effective_time: Optional[str] = None,
encryption_key: Optional[str] = None,
client_ca_cert: Optional[str] = None,
ca_type: Optional[str] = None,
force_restart: Optional[bool] = None,
fresh_white_list_readins: Optional[str] = None,
ha_config: Optional[str] = None,
instance_name: Optional[str] = None,
backup_set_id: Optional[str] = None,
auto_upgrade_minor_version: Optional[str] = None,
maintain_time: Optional[str] = None,
manual_ha_time: Optional[str] = None,
modify_mode: Optional[str] = None,
monitoring_period: Optional[int] = None,
parameters: Optional[Sequence[DdrInstanceParameterArgs]] = None,
auto_renew_period: Optional[int] = None,
replication_acl: Optional[str] = None,
private_ip_address: Optional[str] = None,
port: Optional[str] = None,
acl: Optional[str] = None,
client_ca_enabled: Optional[int] = None,
period: Optional[int] = None,
resource_group_id: Optional[str] = None,
restore_time: Optional[str] = None,
auto_renew: Optional[bool] = None,
security_group_ids: Optional[Sequence[str]] = None,
security_ip_mode: Optional[str] = None,
security_ip_type: Optional[str] = None,
security_ips: Optional[Sequence[str]] = None,
server_cert: Optional[str] = None,
server_key: Optional[str] = None,
source_db_instance_name: Optional[str] = None,
source_region: Optional[str] = None,
sql_collector_config_value: Optional[int] = None,
sql_collector_status: Optional[str] = None,
ssl_action: Optional[str] = None,
storage_auto_scale: Optional[str] = None,
storage_threshold: Optional[int] = None,
storage_upper_bound: Optional[int] = None,
switch_time: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
target_minor_version: Optional[str] = None,
tcp_connection_type: Optional[str] = None,
tde_status: Optional[str] = None,
upgrade_db_instance_kernel_version: Optional[bool] = None,
upgrade_time: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
whitelist_network_type: Optional[str] = None,
zone_id: Optional[str] = None)
func NewDdrInstance(ctx *Context, name string, args DdrInstanceArgs, opts ...ResourceOption) (*DdrInstance, error)
public DdrInstance(string name, DdrInstanceArgs args, CustomResourceOptions? opts = null)
public DdrInstance(String name, DdrInstanceArgs args)
public DdrInstance(String name, DdrInstanceArgs args, CustomResourceOptions options)
type: alicloud:rds:DdrInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DdrInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DdrInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DdrInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DdrInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DdrInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ddrInstanceResource = new AliCloud.Rds.DdrInstance("ddrInstanceResource", new()
{
Engine = "string",
RestoreType = "string",
PaymentType = "string",
InstanceType = "string",
InstanceStorage = 0,
EngineVersion = "string",
PgHbaConfs = new[]
{
new AliCloud.Rds.Inputs.DdrInstancePgHbaConfArgs
{
Address = "string",
Database = "string",
Method = "string",
PriorityId = 0,
Type = "string",
User = "string",
Mask = "string",
Option = "string",
},
},
DbInstanceIpArrayName = "string",
ClientCertRevocationList = "string",
ClientCrlEnabled = 0,
ConnectionStringPrefix = "string",
DbInstanceIpArrayAttribute = "string",
ReleasedKeepPolicy = "string",
DbInstanceStorageType = "string",
DeletionProtection = false,
EffectiveTime = "string",
EncryptionKey = "string",
ClientCaCert = "string",
CaType = "string",
ForceRestart = false,
FreshWhiteListReadins = "string",
HaConfig = "string",
InstanceName = "string",
BackupSetId = "string",
AutoUpgradeMinorVersion = "string",
MaintainTime = "string",
ManualHaTime = "string",
ModifyMode = "string",
MonitoringPeriod = 0,
Parameters = new[]
{
new AliCloud.Rds.Inputs.DdrInstanceParameterArgs
{
Name = "string",
Value = "string",
},
},
AutoRenewPeriod = 0,
ReplicationAcl = "string",
PrivateIpAddress = "string",
Port = "string",
Acl = "string",
ClientCaEnabled = 0,
Period = 0,
ResourceGroupId = "string",
RestoreTime = "string",
AutoRenew = false,
SecurityGroupIds = new[]
{
"string",
},
SecurityIpMode = "string",
SecurityIpType = "string",
SecurityIps = new[]
{
"string",
},
ServerCert = "string",
ServerKey = "string",
SourceDbInstanceName = "string",
SourceRegion = "string",
SqlCollectorConfigValue = 0,
SqlCollectorStatus = "string",
SslAction = "string",
StorageAutoScale = "string",
StorageThreshold = 0,
StorageUpperBound = 0,
SwitchTime = "string",
Tags =
{
{ "string", "string" },
},
TargetMinorVersion = "string",
TcpConnectionType = "string",
TdeStatus = "string",
UpgradeDbInstanceKernelVersion = false,
UpgradeTime = "string",
VpcId = "string",
VswitchId = "string",
WhitelistNetworkType = "string",
ZoneId = "string",
});
example, err := rds.NewDdrInstance(ctx, "ddrInstanceResource", &rds.DdrInstanceArgs{
Engine: pulumi.String("string"),
RestoreType: pulumi.String("string"),
PaymentType: pulumi.String("string"),
InstanceType: pulumi.String("string"),
InstanceStorage: pulumi.Int(0),
EngineVersion: pulumi.String("string"),
PgHbaConfs: rds.DdrInstancePgHbaConfArray{
&rds.DdrInstancePgHbaConfArgs{
Address: pulumi.String("string"),
Database: pulumi.String("string"),
Method: pulumi.String("string"),
PriorityId: pulumi.Int(0),
Type: pulumi.String("string"),
User: pulumi.String("string"),
Mask: pulumi.String("string"),
Option: pulumi.String("string"),
},
},
DbInstanceIpArrayName: pulumi.String("string"),
ClientCertRevocationList: pulumi.String("string"),
ClientCrlEnabled: pulumi.Int(0),
ConnectionStringPrefix: pulumi.String("string"),
DbInstanceIpArrayAttribute: pulumi.String("string"),
ReleasedKeepPolicy: pulumi.String("string"),
DbInstanceStorageType: pulumi.String("string"),
DeletionProtection: pulumi.Bool(false),
EffectiveTime: pulumi.String("string"),
EncryptionKey: pulumi.String("string"),
ClientCaCert: pulumi.String("string"),
CaType: pulumi.String("string"),
ForceRestart: pulumi.Bool(false),
FreshWhiteListReadins: pulumi.String("string"),
HaConfig: pulumi.String("string"),
InstanceName: pulumi.String("string"),
BackupSetId: pulumi.String("string"),
AutoUpgradeMinorVersion: pulumi.String("string"),
MaintainTime: pulumi.String("string"),
ManualHaTime: pulumi.String("string"),
ModifyMode: pulumi.String("string"),
MonitoringPeriod: pulumi.Int(0),
Parameters: rds.DdrInstanceParameterArray{
&rds.DdrInstanceParameterArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
AutoRenewPeriod: pulumi.Int(0),
ReplicationAcl: pulumi.String("string"),
PrivateIpAddress: pulumi.String("string"),
Port: pulumi.String("string"),
Acl: pulumi.String("string"),
ClientCaEnabled: pulumi.Int(0),
Period: pulumi.Int(0),
ResourceGroupId: pulumi.String("string"),
RestoreTime: pulumi.String("string"),
AutoRenew: pulumi.Bool(false),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
SecurityIpMode: pulumi.String("string"),
SecurityIpType: pulumi.String("string"),
SecurityIps: pulumi.StringArray{
pulumi.String("string"),
},
ServerCert: pulumi.String("string"),
ServerKey: pulumi.String("string"),
SourceDbInstanceName: pulumi.String("string"),
SourceRegion: pulumi.String("string"),
SqlCollectorConfigValue: pulumi.Int(0),
SqlCollectorStatus: pulumi.String("string"),
SslAction: pulumi.String("string"),
StorageAutoScale: pulumi.String("string"),
StorageThreshold: pulumi.Int(0),
StorageUpperBound: pulumi.Int(0),
SwitchTime: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TargetMinorVersion: pulumi.String("string"),
TcpConnectionType: pulumi.String("string"),
TdeStatus: pulumi.String("string"),
UpgradeDbInstanceKernelVersion: pulumi.Bool(false),
UpgradeTime: pulumi.String("string"),
VpcId: pulumi.String("string"),
VswitchId: pulumi.String("string"),
WhitelistNetworkType: pulumi.String("string"),
ZoneId: pulumi.String("string"),
})
var ddrInstanceResource = new DdrInstance("ddrInstanceResource", DdrInstanceArgs.builder()
.engine("string")
.restoreType("string")
.paymentType("string")
.instanceType("string")
.instanceStorage(0)
.engineVersion("string")
.pgHbaConfs(DdrInstancePgHbaConfArgs.builder()
.address("string")
.database("string")
.method("string")
.priorityId(0)
.type("string")
.user("string")
.mask("string")
.option("string")
.build())
.dbInstanceIpArrayName("string")
.clientCertRevocationList("string")
.clientCrlEnabled(0)
.connectionStringPrefix("string")
.dbInstanceIpArrayAttribute("string")
.releasedKeepPolicy("string")
.dbInstanceStorageType("string")
.deletionProtection(false)
.effectiveTime("string")
.encryptionKey("string")
.clientCaCert("string")
.caType("string")
.forceRestart(false)
.freshWhiteListReadins("string")
.haConfig("string")
.instanceName("string")
.backupSetId("string")
.autoUpgradeMinorVersion("string")
.maintainTime("string")
.manualHaTime("string")
.modifyMode("string")
.monitoringPeriod(0)
.parameters(DdrInstanceParameterArgs.builder()
.name("string")
.value("string")
.build())
.autoRenewPeriod(0)
.replicationAcl("string")
.privateIpAddress("string")
.port("string")
.acl("string")
.clientCaEnabled(0)
.period(0)
.resourceGroupId("string")
.restoreTime("string")
.autoRenew(false)
.securityGroupIds("string")
.securityIpMode("string")
.securityIpType("string")
.securityIps("string")
.serverCert("string")
.serverKey("string")
.sourceDbInstanceName("string")
.sourceRegion("string")
.sqlCollectorConfigValue(0)
.sqlCollectorStatus("string")
.sslAction("string")
.storageAutoScale("string")
.storageThreshold(0)
.storageUpperBound(0)
.switchTime("string")
.tags(Map.of("string", "string"))
.targetMinorVersion("string")
.tcpConnectionType("string")
.tdeStatus("string")
.upgradeDbInstanceKernelVersion(false)
.upgradeTime("string")
.vpcId("string")
.vswitchId("string")
.whitelistNetworkType("string")
.zoneId("string")
.build());
ddr_instance_resource = alicloud.rds.DdrInstance("ddrInstanceResource",
engine="string",
restore_type="string",
payment_type="string",
instance_type="string",
instance_storage=0,
engine_version="string",
pg_hba_confs=[{
"address": "string",
"database": "string",
"method": "string",
"priority_id": 0,
"type": "string",
"user": "string",
"mask": "string",
"option": "string",
}],
db_instance_ip_array_name="string",
client_cert_revocation_list="string",
client_crl_enabled=0,
connection_string_prefix="string",
db_instance_ip_array_attribute="string",
released_keep_policy="string",
db_instance_storage_type="string",
deletion_protection=False,
effective_time="string",
encryption_key="string",
client_ca_cert="string",
ca_type="string",
force_restart=False,
fresh_white_list_readins="string",
ha_config="string",
instance_name="string",
backup_set_id="string",
auto_upgrade_minor_version="string",
maintain_time="string",
manual_ha_time="string",
modify_mode="string",
monitoring_period=0,
parameters=[{
"name": "string",
"value": "string",
}],
auto_renew_period=0,
replication_acl="string",
private_ip_address="string",
port="string",
acl="string",
client_ca_enabled=0,
period=0,
resource_group_id="string",
restore_time="string",
auto_renew=False,
security_group_ids=["string"],
security_ip_mode="string",
security_ip_type="string",
security_ips=["string"],
server_cert="string",
server_key="string",
source_db_instance_name="string",
source_region="string",
sql_collector_config_value=0,
sql_collector_status="string",
ssl_action="string",
storage_auto_scale="string",
storage_threshold=0,
storage_upper_bound=0,
switch_time="string",
tags={
"string": "string",
},
target_minor_version="string",
tcp_connection_type="string",
tde_status="string",
upgrade_db_instance_kernel_version=False,
upgrade_time="string",
vpc_id="string",
vswitch_id="string",
whitelist_network_type="string",
zone_id="string")
const ddrInstanceResource = new alicloud.rds.DdrInstance("ddrInstanceResource", {
engine: "string",
restoreType: "string",
paymentType: "string",
instanceType: "string",
instanceStorage: 0,
engineVersion: "string",
pgHbaConfs: [{
address: "string",
database: "string",
method: "string",
priorityId: 0,
type: "string",
user: "string",
mask: "string",
option: "string",
}],
dbInstanceIpArrayName: "string",
clientCertRevocationList: "string",
clientCrlEnabled: 0,
connectionStringPrefix: "string",
dbInstanceIpArrayAttribute: "string",
releasedKeepPolicy: "string",
dbInstanceStorageType: "string",
deletionProtection: false,
effectiveTime: "string",
encryptionKey: "string",
clientCaCert: "string",
caType: "string",
forceRestart: false,
freshWhiteListReadins: "string",
haConfig: "string",
instanceName: "string",
backupSetId: "string",
autoUpgradeMinorVersion: "string",
maintainTime: "string",
manualHaTime: "string",
modifyMode: "string",
monitoringPeriod: 0,
parameters: [{
name: "string",
value: "string",
}],
autoRenewPeriod: 0,
replicationAcl: "string",
privateIpAddress: "string",
port: "string",
acl: "string",
clientCaEnabled: 0,
period: 0,
resourceGroupId: "string",
restoreTime: "string",
autoRenew: false,
securityGroupIds: ["string"],
securityIpMode: "string",
securityIpType: "string",
securityIps: ["string"],
serverCert: "string",
serverKey: "string",
sourceDbInstanceName: "string",
sourceRegion: "string",
sqlCollectorConfigValue: 0,
sqlCollectorStatus: "string",
sslAction: "string",
storageAutoScale: "string",
storageThreshold: 0,
storageUpperBound: 0,
switchTime: "string",
tags: {
string: "string",
},
targetMinorVersion: "string",
tcpConnectionType: "string",
tdeStatus: "string",
upgradeDbInstanceKernelVersion: false,
upgradeTime: "string",
vpcId: "string",
vswitchId: "string",
whitelistNetworkType: "string",
zoneId: "string",
});
type: alicloud:rds:DdrInstance
properties:
acl: string
autoRenew: false
autoRenewPeriod: 0
autoUpgradeMinorVersion: string
backupSetId: string
caType: string
clientCaCert: string
clientCaEnabled: 0
clientCertRevocationList: string
clientCrlEnabled: 0
connectionStringPrefix: string
dbInstanceIpArrayAttribute: string
dbInstanceIpArrayName: string
dbInstanceStorageType: string
deletionProtection: false
effectiveTime: string
encryptionKey: string
engine: string
engineVersion: string
forceRestart: false
freshWhiteListReadins: string
haConfig: string
instanceName: string
instanceStorage: 0
instanceType: string
maintainTime: string
manualHaTime: string
modifyMode: string
monitoringPeriod: 0
parameters:
- name: string
value: string
paymentType: string
period: 0
pgHbaConfs:
- address: string
database: string
mask: string
method: string
option: string
priorityId: 0
type: string
user: string
port: string
privateIpAddress: string
releasedKeepPolicy: string
replicationAcl: string
resourceGroupId: string
restoreTime: string
restoreType: string
securityGroupIds:
- string
securityIpMode: string
securityIpType: string
securityIps:
- string
serverCert: string
serverKey: string
sourceDbInstanceName: string
sourceRegion: string
sqlCollectorConfigValue: 0
sqlCollectorStatus: string
sslAction: string
storageAutoScale: string
storageThreshold: 0
storageUpperBound: 0
switchTime: string
tags:
string: string
targetMinorVersion: string
tcpConnectionType: string
tdeStatus: string
upgradeDbInstanceKernelVersion: false
upgradeTime: string
vpcId: string
vswitchId: string
whitelistNetworkType: string
zoneId: string
DdrInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DdrInstance resource accepts the following input properties:
- Engine string
Database type. Value options: MySQL, SQLServer.
NOTE: When the 'EngineVersion' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
- Engine
Version string - Database version. Value options can refer to the latest docs CreateDdrInstance
EngineVersion
. - Instance
Storage int The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB.
This value must be a multiple of 5 GB. For more information, see Primary ApsaraDB RDS instance types.
- Instance
Type string DB Instance type.
NOTE: When
storage_auto_scale="Enable"
, do not performinstance_storage
check. whenstorage_auto_scale="Disable"
, if the instance itselfinstance_storage
has changed. You need to manually revise theinstance_storage
in the template value.- Payment
Type string - Valid values are
Subscription
,PayAsYouGo
, Default toPayAsYouGo
. - Restore
Type string - The method that is used to restore data. Valid values:
- BackupSet: Data is restored from a backup set. If you use this value, you must also specify the BackupSetID parameter.
- BackupTime: restores data to a point in time. You must also specify the RestoreTime, SourceRegion, and SourceDBInstanceName parameters.
- Acl string
- 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)
- Auto
Renew bool - Whether to renewal a DB instance automatically or not. It is valid when payment_type is
Subscription
. Default tofalse
. - Auto
Renew intPeriod - Auto-renewal period of an instance, in the unit of the month. It is valid when payment_type is
Subscription
. Valid value:[1~12], Default to 1. - Auto
Upgrade stringMinor Version 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.
- Backup
Set stringId - The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the ID of the backup set.
- Ca
Type string - 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
- Client
Ca stringCert - 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.
- Client
Ca intEnabled - 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
- Client
Cert stringRevocation List - 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.
- Client
Crl intEnabled - 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
- Connection
String stringPrefix 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 ~!#%^&*=+|{};:'",<>/?
- Db
Instance stringIp Array Attribute 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).
- Db
Instance stringIp Array Name The name of the IP address whitelist. Default value: Default.
NOTE: A maximum of 200 IP address whitelists can be configured for each instance.
- Db
Instance stringStorage Type The storage type of the instance. 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).
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.
- Deletion
Protection bool The switch of delete protection. Valid values:
- true: delete protect.
- false: no delete protect.
NOTE:
deletion_protection
is valid only when attributepayment_type
is set toPayAsYouGo
, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.- Effective
Time string - 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.
- Encryption
Key string - The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
- Force
Restart bool - Set it to true to make some parameter efficient when modifying them. Default to false.
- Fresh
White stringList Readins - 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.
- Ha
Config string 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.
- Instance
Name string - The name of DB instance. It a string of 2 to 256 characters.
- Maintain
Time string - Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
- Manual
Ha stringTime 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.
- Modify
Mode string - 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.
- Monitoring
Period int - The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
- Parameters
List<Pulumi.
Ali Cloud. Rds. Inputs. Ddr Instance Parameter> - Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs View database parameter templates . See
parameters
below. - Period int
The duration that you will buy DB instance (in month). It is valid when payment_type is
Subscription
. 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 runningpulumi up
will not effect the resource.- Pg
Hba List<Pulumi.Confs Ali Cloud. Rds. Inputs. Ddr Instance Pg Hba Conf> - The configuration of AD domain . See
pg_hba_conf
below. - Port string
- The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
- Private
Ip stringAddress - 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.
- Released
Keep stringPolicy 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.
- Replication
Acl string - 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)
- Resource
Group stringId - The ID of resource group which the DB instance belongs.
- Restore
Time string - The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
- Security
Group List<string>Ids - ) The list IDs to join ECS Security Group. At most supports three security groups.
- Security
Ip stringMode - Valid values are
normal
,safety
, Default tonormal
. supportsafety
switch to high security access mode. - Security
Ip stringType - The type of IP address in the IP address whitelist.
- Security
Ips List<string> - 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]).
- Server
Cert string - 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.
- Server
Key string - 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.
- Source
Db stringInstance Name - The ID of the source instance if you want to restore data to a point in time.
- Source
Region string - The region ID of the source instance if you want to restore data to a point in time.
- Sql
Collector intConfig Value - The sql collector keep time of the instance. Valid values are
30
,180
,365
,1095
,1825
, Default to30
. - Sql
Collector stringStatus - The sql collector status of the instance. Valid values are
Enabled
,Disabled
, Default toDisabled
. - Ssl
Action string - 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. - Storage
Auto stringScale Automatic storage space expansion switch. Valid values:
- Enable
- Disable
NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
- Storage
Threshold int The trigger threshold (percentage) for automatic storage space expansion. 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.
- Storage
Upper intBound 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.
- Switch
Time string 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
upgrade_db_instance_kernel_version = true
. The time must be in UTC.NOTE: This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
- Dictionary<string, string>
- 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.
- Target
Minor stringVersion 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. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- Tcp
Connection stringType - 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.
- Tde
Status string - The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
- Upgrade
Db boolInstance Kernel Version - Whether to upgrade a minor version of the kernel. Valid values:
- true: upgrade
- false: not to upgrade
- Upgrade
Time string - The method to update the minor engine version. Default value: Immediate. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- Vpc
Id string 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.
- Vswitch
Id string - The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
- Whitelist
Network stringType 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.
- Zone
Id string - The Zone to launch the DB instance. 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 settingmulti
to "true" in the data sourcealicloud.getZones
.
- Engine string
Database type. Value options: MySQL, SQLServer.
NOTE: When the 'EngineVersion' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
- Engine
Version string - Database version. Value options can refer to the latest docs CreateDdrInstance
EngineVersion
. - Instance
Storage int The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB.
This value must be a multiple of 5 GB. For more information, see Primary ApsaraDB RDS instance types.
- Instance
Type string DB Instance type.
NOTE: When
storage_auto_scale="Enable"
, do not performinstance_storage
check. whenstorage_auto_scale="Disable"
, if the instance itselfinstance_storage
has changed. You need to manually revise theinstance_storage
in the template value.- Payment
Type string - Valid values are
Subscription
,PayAsYouGo
, Default toPayAsYouGo
. - Restore
Type string - The method that is used to restore data. Valid values:
- BackupSet: Data is restored from a backup set. If you use this value, you must also specify the BackupSetID parameter.
- BackupTime: restores data to a point in time. You must also specify the RestoreTime, SourceRegion, and SourceDBInstanceName parameters.
- Acl string
- 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)
- Auto
Renew bool - Whether to renewal a DB instance automatically or not. It is valid when payment_type is
Subscription
. Default tofalse
. - Auto
Renew intPeriod - Auto-renewal period of an instance, in the unit of the month. It is valid when payment_type is
Subscription
. Valid value:[1~12], Default to 1. - Auto
Upgrade stringMinor Version 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.
- Backup
Set stringId - The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the ID of the backup set.
- Ca
Type string - 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
- Client
Ca stringCert - 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.
- Client
Ca intEnabled - 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
- Client
Cert stringRevocation List - 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.
- Client
Crl intEnabled - 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
- Connection
String stringPrefix 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 ~!#%^&*=+|{};:'",<>/?
- Db
Instance stringIp Array Attribute 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).
- Db
Instance stringIp Array Name The name of the IP address whitelist. Default value: Default.
NOTE: A maximum of 200 IP address whitelists can be configured for each instance.
- Db
Instance stringStorage Type The storage type of the instance. 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).
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.
- Deletion
Protection bool The switch of delete protection. Valid values:
- true: delete protect.
- false: no delete protect.
NOTE:
deletion_protection
is valid only when attributepayment_type
is set toPayAsYouGo
, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.- Effective
Time string - 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.
- Encryption
Key string - The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
- Force
Restart bool - Set it to true to make some parameter efficient when modifying them. Default to false.
- Fresh
White stringList Readins - 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.
- Ha
Config string 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.
- Instance
Name string - The name of DB instance. It a string of 2 to 256 characters.
- Maintain
Time string - Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
- Manual
Ha stringTime 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.
- Modify
Mode string - 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.
- Monitoring
Period int - The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
- Parameters
[]Ddr
Instance Parameter Args - Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs View database parameter templates . See
parameters
below. - Period int
The duration that you will buy DB instance (in month). It is valid when payment_type is
Subscription
. 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 runningpulumi up
will not effect the resource.- Pg
Hba []DdrConfs Instance Pg Hba Conf Args - The configuration of AD domain . See
pg_hba_conf
below. - Port string
- The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
- Private
Ip stringAddress - 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.
- Released
Keep stringPolicy 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.
- Replication
Acl string - 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)
- Resource
Group stringId - The ID of resource group which the DB instance belongs.
- Restore
Time string - The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
- Security
Group []stringIds - ) The list IDs to join ECS Security Group. At most supports three security groups.
- Security
Ip stringMode - Valid values are
normal
,safety
, Default tonormal
. supportsafety
switch to high security access mode. - Security
Ip stringType - The type of IP address in the IP address whitelist.
- Security
Ips []string - 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]).
- Server
Cert string - 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.
- Server
Key string - 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.
- Source
Db stringInstance Name - The ID of the source instance if you want to restore data to a point in time.
- Source
Region string - The region ID of the source instance if you want to restore data to a point in time.
- Sql
Collector intConfig Value - The sql collector keep time of the instance. Valid values are
30
,180
,365
,1095
,1825
, Default to30
. - Sql
Collector stringStatus - The sql collector status of the instance. Valid values are
Enabled
,Disabled
, Default toDisabled
. - Ssl
Action string - 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. - Storage
Auto stringScale Automatic storage space expansion switch. Valid values:
- Enable
- Disable
NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
- Storage
Threshold int The trigger threshold (percentage) for automatic storage space expansion. 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.
- Storage
Upper intBound 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.
- Switch
Time string 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
upgrade_db_instance_kernel_version = true
. The time must be in UTC.NOTE: This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
- map[string]string
- 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.
- Target
Minor stringVersion 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. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- Tcp
Connection stringType - 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.
- Tde
Status string - The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
- Upgrade
Db boolInstance Kernel Version - Whether to upgrade a minor version of the kernel. Valid values:
- true: upgrade
- false: not to upgrade
- Upgrade
Time string - The method to update the minor engine version. Default value: Immediate. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- Vpc
Id string 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.
- Vswitch
Id string - The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
- Whitelist
Network stringType 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.
- Zone
Id string - The Zone to launch the DB instance. 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 settingmulti
to "true" in the data sourcealicloud.getZones
.
- engine String
Database type. Value options: MySQL, SQLServer.
NOTE: When the 'EngineVersion' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
- engine
Version String - Database version. Value options can refer to the latest docs CreateDdrInstance
EngineVersion
. - instance
Storage Integer The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB.
This value must be a multiple of 5 GB. For more information, see Primary ApsaraDB RDS instance types.
- instance
Type String DB Instance type.
NOTE: When
storage_auto_scale="Enable"
, do not performinstance_storage
check. whenstorage_auto_scale="Disable"
, if the instance itselfinstance_storage
has changed. You need to manually revise theinstance_storage
in the template value.- payment
Type String - Valid values are
Subscription
,PayAsYouGo
, Default toPayAsYouGo
. - restore
Type String - The method that is used to restore data. Valid values:
- BackupSet: Data is restored from a backup set. If you use this value, you must also specify the BackupSetID parameter.
- BackupTime: restores data to a point in time. You must also specify the RestoreTime, SourceRegion, and SourceDBInstanceName parameters.
- acl String
- 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)
- auto
Renew Boolean - Whether to renewal a DB instance automatically or not. It is valid when payment_type is
Subscription
. Default tofalse
. - auto
Renew IntegerPeriod - Auto-renewal period of an instance, in the unit of the month. It is valid when payment_type is
Subscription
. Valid value:[1~12], Default to 1. - auto
Upgrade StringMinor Version 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.
- backup
Set StringId - The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the ID of the backup set.
- ca
Type String - 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
- client
Ca StringCert - 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.
- client
Ca IntegerEnabled - 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
- client
Cert StringRevocation List - 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.
- client
Crl IntegerEnabled - 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
- connection
String StringPrefix 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 ~!#%^&*=+|{};:'",<>/?
- db
Instance StringIp Array Attribute 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).
- db
Instance StringIp Array Name The name of the IP address whitelist. Default value: Default.
NOTE: A maximum of 200 IP address whitelists can be configured for each instance.
- db
Instance StringStorage Type The storage type of the instance. 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).
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.
- deletion
Protection Boolean The switch of delete protection. Valid values:
- true: delete protect.
- false: no delete protect.
NOTE:
deletion_protection
is valid only when attributepayment_type
is set toPayAsYouGo
, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.- effective
Time String - 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.
- encryption
Key String - The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
- force
Restart Boolean - Set it to true to make some parameter efficient when modifying them. Default to false.
- fresh
White StringList Readins - 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.
- ha
Config String 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.
- instance
Name String - The name of DB instance. It a string of 2 to 256 characters.
- maintain
Time String - Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
- manual
Ha StringTime 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.
- modify
Mode String - 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.
- monitoring
Period Integer - The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
- parameters
List<Ddr
Instance Parameter> - Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs View database parameter templates . See
parameters
below. - period Integer
The duration that you will buy DB instance (in month). It is valid when payment_type is
Subscription
. 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 runningpulumi up
will not effect the resource.- pg
Hba List<DdrConfs Instance Pg Hba Conf> - The configuration of AD domain . See
pg_hba_conf
below. - port String
- The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
- private
Ip StringAddress - 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.
- released
Keep StringPolicy 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.
- replication
Acl String - 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)
- resource
Group StringId - The ID of resource group which the DB instance belongs.
- restore
Time String - The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
- security
Group List<String>Ids - ) The list IDs to join ECS Security Group. At most supports three security groups.
- security
Ip StringMode - Valid values are
normal
,safety
, Default tonormal
. supportsafety
switch to high security access mode. - security
Ip StringType - The type of IP address in the IP address whitelist.
- security
Ips List<String> - 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]).
- server
Cert String - 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.
- server
Key String - 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.
- source
Db StringInstance Name - The ID of the source instance if you want to restore data to a point in time.
- source
Region String - The region ID of the source instance if you want to restore data to a point in time.
- sql
Collector IntegerConfig Value - The sql collector keep time of the instance. Valid values are
30
,180
,365
,1095
,1825
, Default to30
. - sql
Collector StringStatus - The sql collector status of the instance. Valid values are
Enabled
,Disabled
, Default toDisabled
. - ssl
Action String - 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. - storage
Auto StringScale Automatic storage space expansion switch. Valid values:
- Enable
- Disable
NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
- storage
Threshold Integer The trigger threshold (percentage) for automatic storage space expansion. 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.
- storage
Upper IntegerBound 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.
- switch
Time String 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
upgrade_db_instance_kernel_version = true
. The time must be in UTC.NOTE: This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
- Map<String,String>
- 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.
- target
Minor StringVersion 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. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- tcp
Connection StringType - 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.
- tde
Status String - The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
- upgrade
Db BooleanInstance Kernel Version - Whether to upgrade a minor version of the kernel. Valid values:
- true: upgrade
- false: not to upgrade
- upgrade
Time String - The method to update the minor engine version. Default value: Immediate. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- vpc
Id String 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.
- vswitch
Id String - The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
- whitelist
Network StringType 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.
- zone
Id String - The Zone to launch the DB instance. 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 settingmulti
to "true" in the data sourcealicloud.getZones
.
- engine string
Database type. Value options: MySQL, SQLServer.
NOTE: When the 'EngineVersion' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
- engine
Version string - Database version. Value options can refer to the latest docs CreateDdrInstance
EngineVersion
. - instance
Storage number The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB.
This value must be a multiple of 5 GB. For more information, see Primary ApsaraDB RDS instance types.
- instance
Type string DB Instance type.
NOTE: When
storage_auto_scale="Enable"
, do not performinstance_storage
check. whenstorage_auto_scale="Disable"
, if the instance itselfinstance_storage
has changed. You need to manually revise theinstance_storage
in the template value.- payment
Type string - Valid values are
Subscription
,PayAsYouGo
, Default toPayAsYouGo
. - restore
Type string - The method that is used to restore data. Valid values:
- BackupSet: Data is restored from a backup set. If you use this value, you must also specify the BackupSetID parameter.
- BackupTime: restores data to a point in time. You must also specify the RestoreTime, SourceRegion, and SourceDBInstanceName parameters.
- acl string
- 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)
- auto
Renew boolean - Whether to renewal a DB instance automatically or not. It is valid when payment_type is
Subscription
. Default tofalse
. - auto
Renew numberPeriod - Auto-renewal period of an instance, in the unit of the month. It is valid when payment_type is
Subscription
. Valid value:[1~12], Default to 1. - auto
Upgrade stringMinor Version 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.
- backup
Set stringId - The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the ID of the backup set.
- ca
Type string - 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
- client
Ca stringCert - 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.
- client
Ca numberEnabled - 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
- client
Cert stringRevocation List - 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.
- client
Crl numberEnabled - 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
- connection
String stringPrefix 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 ~!#%^&*=+|{};:'",<>/?
- db
Instance stringIp Array Attribute 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).
- db
Instance stringIp Array Name The name of the IP address whitelist. Default value: Default.
NOTE: A maximum of 200 IP address whitelists can be configured for each instance.
- db
Instance stringStorage Type The storage type of the instance. 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).
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.
- deletion
Protection boolean The switch of delete protection. Valid values:
- true: delete protect.
- false: no delete protect.
NOTE:
deletion_protection
is valid only when attributepayment_type
is set toPayAsYouGo
, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.- effective
Time string - 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.
- encryption
Key string - The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
- force
Restart boolean - Set it to true to make some parameter efficient when modifying them. Default to false.
- fresh
White stringList Readins - 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.
- ha
Config string 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.
- instance
Name string - The name of DB instance. It a string of 2 to 256 characters.
- maintain
Time string - Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
- manual
Ha stringTime 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.
- modify
Mode string - 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.
- monitoring
Period number - The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
- parameters
Ddr
Instance Parameter[] - Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs View database parameter templates . See
parameters
below. - period number
The duration that you will buy DB instance (in month). It is valid when payment_type is
Subscription
. 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 runningpulumi up
will not effect the resource.- pg
Hba DdrConfs Instance Pg Hba Conf[] - The configuration of AD domain . See
pg_hba_conf
below. - port string
- The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
- private
Ip stringAddress - 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.
- released
Keep stringPolicy 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.
- replication
Acl string - 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)
- resource
Group stringId - The ID of resource group which the DB instance belongs.
- restore
Time string - The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
- security
Group string[]Ids - ) The list IDs to join ECS Security Group. At most supports three security groups.
- security
Ip stringMode - Valid values are
normal
,safety
, Default tonormal
. supportsafety
switch to high security access mode. - security
Ip stringType - The type of IP address in the IP address whitelist.
- security
Ips string[] - 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]).
- server
Cert string - 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.
- server
Key string - 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.
- source
Db stringInstance Name - The ID of the source instance if you want to restore data to a point in time.
- source
Region string - The region ID of the source instance if you want to restore data to a point in time.
- sql
Collector numberConfig Value - The sql collector keep time of the instance. Valid values are
30
,180
,365
,1095
,1825
, Default to30
. - sql
Collector stringStatus - The sql collector status of the instance. Valid values are
Enabled
,Disabled
, Default toDisabled
. - ssl
Action string - 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. - storage
Auto stringScale Automatic storage space expansion switch. Valid values:
- Enable
- Disable
NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
- storage
Threshold number The trigger threshold (percentage) for automatic storage space expansion. 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.
- storage
Upper numberBound 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.
- switch
Time string 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
upgrade_db_instance_kernel_version = true
. The time must be in UTC.NOTE: This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
- {[key: string]: string}
- 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.
- target
Minor stringVersion 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. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- tcp
Connection stringType - 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.
- tde
Status string - The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
- upgrade
Db booleanInstance Kernel Version - Whether to upgrade a minor version of the kernel. Valid values:
- true: upgrade
- false: not to upgrade
- upgrade
Time string - The method to update the minor engine version. Default value: Immediate. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- vpc
Id string 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.
- vswitch
Id string - The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
- whitelist
Network stringType 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.
- zone
Id string - The Zone to launch the DB instance. 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 settingmulti
to "true" in the data sourcealicloud.getZones
.
- engine str
Database type. Value options: MySQL, SQLServer.
NOTE: When the 'EngineVersion' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
- engine_
version str - Database version. Value options can refer to the latest docs CreateDdrInstance
EngineVersion
. - instance_
storage int The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB.
This value must be a multiple of 5 GB. For more information, see Primary ApsaraDB RDS instance types.
- instance_
type str DB Instance type.
NOTE: When
storage_auto_scale="Enable"
, do not performinstance_storage
check. whenstorage_auto_scale="Disable"
, if the instance itselfinstance_storage
has changed. You need to manually revise theinstance_storage
in the template value.- payment_
type str - Valid values are
Subscription
,PayAsYouGo
, Default toPayAsYouGo
. - restore_
type str - The method that is used to restore data. Valid values:
- BackupSet: Data is restored from a backup set. If you use this value, you must also specify the BackupSetID parameter.
- BackupTime: restores data to a point in time. You must also specify the RestoreTime, SourceRegion, and SourceDBInstanceName parameters.
- acl str
- 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)
- auto_
renew bool - Whether to renewal a DB instance automatically or not. It is valid when payment_type is
Subscription
. Default tofalse
. - auto_
renew_ intperiod - Auto-renewal period of an instance, in the unit of the month. It is valid when payment_type is
Subscription
. Valid value:[1~12], Default to 1. - auto_
upgrade_ strminor_ version 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.
- backup_
set_ strid - The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the ID of the backup set.
- ca_
type str - 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
- client_
ca_ strcert - 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.
- client_
ca_ intenabled - 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
- client_
cert_ strrevocation_ list - 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.
- client_
crl_ intenabled - 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
- connection_
string_ strprefix 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 ~!#%^&*=+|{};:'",<>/?
- db_
instance_ strip_ array_ attribute 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).
- db_
instance_ strip_ array_ name The name of the IP address whitelist. Default value: Default.
NOTE: A maximum of 200 IP address whitelists can be configured for each instance.
- db_
instance_ strstorage_ type The storage type of the instance. 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).
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.
- deletion_
protection bool The switch of delete protection. Valid values:
- true: delete protect.
- false: no delete protect.
NOTE:
deletion_protection
is valid only when attributepayment_type
is set toPayAsYouGo
, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.- effective_
time str - 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.
- encryption_
key str - The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
- force_
restart bool - Set it to true to make some parameter efficient when modifying them. Default to false.
- fresh_
white_ strlist_ readins - 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.
- ha_
config str 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.
- instance_
name str - The name of DB instance. It a string of 2 to 256 characters.
- maintain_
time str - Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
- manual_
ha_ strtime 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.
- modify_
mode str - 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.
- monitoring_
period int - The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
- parameters
Sequence[Ddr
Instance Parameter Args] - Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs View database parameter templates . See
parameters
below. - period int
The duration that you will buy DB instance (in month). It is valid when payment_type is
Subscription
. 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 runningpulumi up
will not effect the resource.- pg_
hba_ Sequence[Ddrconfs Instance Pg Hba Conf Args] - The configuration of AD domain . See
pg_hba_conf
below. - port str
- The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
- private_
ip_ straddress - 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.
- released_
keep_ strpolicy 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.
- replication_
acl str - 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)
- resource_
group_ strid - The ID of resource group which the DB instance belongs.
- restore_
time str - The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
- security_
group_ Sequence[str]ids - ) The list IDs to join ECS Security Group. At most supports three security groups.
- security_
ip_ strmode - Valid values are
normal
,safety
, Default tonormal
. supportsafety
switch to high security access mode. - security_
ip_ strtype - The type of IP address in the IP address whitelist.
- security_
ips Sequence[str] - 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]).
- server_
cert str - 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.
- server_
key str - 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.
- source_
db_ strinstance_ name - The ID of the source instance if you want to restore data to a point in time.
- source_
region str - The region ID of the source instance if you want to restore data to a point in time.
- sql_
collector_ intconfig_ value - The sql collector keep time of the instance. Valid values are
30
,180
,365
,1095
,1825
, Default to30
. - sql_
collector_ strstatus - The sql collector status of the instance. Valid values are
Enabled
,Disabled
, Default toDisabled
. - ssl_
action str - 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. - storage_
auto_ strscale Automatic storage space expansion switch. Valid values:
- Enable
- Disable
NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
- storage_
threshold int The trigger threshold (percentage) for automatic storage space expansion. 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.
- storage_
upper_ intbound 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.
- switch_
time str 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
upgrade_db_instance_kernel_version = true
. The time must be in UTC.NOTE: This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
- Mapping[str, str]
- 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.
- target_
minor_ strversion 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. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- tcp_
connection_ strtype - 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.
- tde_
status str - The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
- upgrade_
db_ boolinstance_ kernel_ version - Whether to upgrade a minor version of the kernel. Valid values:
- true: upgrade
- false: not to upgrade
- upgrade_
time str - The method to update the minor engine version. Default value: Immediate. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- vpc_
id str 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.
- vswitch_
id str - The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
- whitelist_
network_ strtype 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.
- zone_
id str - The Zone to launch the DB instance. 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 settingmulti
to "true" in the data sourcealicloud.getZones
.
- engine String
Database type. Value options: MySQL, SQLServer.
NOTE: When the 'EngineVersion' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
- engine
Version String - Database version. Value options can refer to the latest docs CreateDdrInstance
EngineVersion
. - instance
Storage Number The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB.
This value must be a multiple of 5 GB. For more information, see Primary ApsaraDB RDS instance types.
- instance
Type String DB Instance type.
NOTE: When
storage_auto_scale="Enable"
, do not performinstance_storage
check. whenstorage_auto_scale="Disable"
, if the instance itselfinstance_storage
has changed. You need to manually revise theinstance_storage
in the template value.- payment
Type String - Valid values are
Subscription
,PayAsYouGo
, Default toPayAsYouGo
. - restore
Type String - The method that is used to restore data. Valid values:
- BackupSet: Data is restored from a backup set. If you use this value, you must also specify the BackupSetID parameter.
- BackupTime: restores data to a point in time. You must also specify the RestoreTime, SourceRegion, and SourceDBInstanceName parameters.
- acl String
- 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)
- auto
Renew Boolean - Whether to renewal a DB instance automatically or not. It is valid when payment_type is
Subscription
. Default tofalse
. - auto
Renew NumberPeriod - Auto-renewal period of an instance, in the unit of the month. It is valid when payment_type is
Subscription
. Valid value:[1~12], Default to 1. - auto
Upgrade StringMinor Version 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.
- backup
Set StringId - The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the ID of the backup set.
- ca
Type String - 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
- client
Ca StringCert - 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.
- client
Ca NumberEnabled - 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
- client
Cert StringRevocation List - 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.
- client
Crl NumberEnabled - 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
- connection
String StringPrefix 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 ~!#%^&*=+|{};:'",<>/?
- db
Instance StringIp Array Attribute 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).
- db
Instance StringIp Array Name The name of the IP address whitelist. Default value: Default.
NOTE: A maximum of 200 IP address whitelists can be configured for each instance.
- db
Instance StringStorage Type The storage type of the instance. 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).
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.
- deletion
Protection Boolean The switch of delete protection. Valid values:
- true: delete protect.
- false: no delete protect.
NOTE:
deletion_protection
is valid only when attributepayment_type
is set toPayAsYouGo
, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.- effective
Time String - 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.
- encryption
Key String - The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
- force
Restart Boolean - Set it to true to make some parameter efficient when modifying them. Default to false.
- fresh
White StringList Readins - 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.
- ha
Config String 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.
- instance
Name String - The name of DB instance. It a string of 2 to 256 characters.
- maintain
Time String - Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
- manual
Ha StringTime 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.
- modify
Mode String - 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.
- monitoring
Period Number - The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
- parameters List<Property Map>
- Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs View database parameter templates . See
parameters
below. - period Number
The duration that you will buy DB instance (in month). It is valid when payment_type is
Subscription
. 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 runningpulumi up
will not effect the resource.- pg
Hba List<Property Map>Confs - The configuration of AD domain . See
pg_hba_conf
below. - port String
- The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
- private
Ip StringAddress - 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.
- released
Keep StringPolicy 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.
- replication
Acl String - 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)
- resource
Group StringId - The ID of resource group which the DB instance belongs.
- restore
Time String - The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
- security
Group List<String>Ids - ) The list IDs to join ECS Security Group. At most supports three security groups.
- security
Ip StringMode - Valid values are
normal
,safety
, Default tonormal
. supportsafety
switch to high security access mode. - security
Ip StringType - The type of IP address in the IP address whitelist.
- security
Ips List<String> - 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]).
- server
Cert String - 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.
- server
Key String - 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.
- source
Db StringInstance Name - The ID of the source instance if you want to restore data to a point in time.
- source
Region String - The region ID of the source instance if you want to restore data to a point in time.
- sql
Collector NumberConfig Value - The sql collector keep time of the instance. Valid values are
30
,180
,365
,1095
,1825
, Default to30
. - sql
Collector StringStatus - The sql collector status of the instance. Valid values are
Enabled
,Disabled
, Default toDisabled
. - ssl
Action String - 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. - storage
Auto StringScale Automatic storage space expansion switch. Valid values:
- Enable
- Disable
NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
- storage
Threshold Number The trigger threshold (percentage) for automatic storage space expansion. 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.
- storage
Upper NumberBound 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.
- switch
Time String 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
upgrade_db_instance_kernel_version = true
. The time must be in UTC.NOTE: This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
- Map<String>
- 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.
- target
Minor StringVersion 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. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- tcp
Connection StringType - 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.
- tde
Status String - The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
- upgrade
Db BooleanInstance Kernel Version - Whether to upgrade a minor version of the kernel. Valid values:
- true: upgrade
- false: not to upgrade
- upgrade
Time String - The method to update the minor engine version. Default value: Immediate. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- vpc
Id String 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.
- vswitch
Id String - The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
- whitelist
Network StringType 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.
- zone
Id String - The Zone to launch the DB instance. 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 settingmulti
to "true" in the data sourcealicloud.getZones
.
Outputs
All input properties are implicitly available as output properties. Additionally, the DdrInstance resource produces the following output properties:
- Category string
- The RDS edition of the instance.
- Connection
String string - RDS database connection string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ssl
Status string - Status of the SSL feature.
Yes
: SSL is turned on;No
: SSL is turned off. - Zone
Id stringSlave A - The region ID of the secondary instance if you create a secondary instance.
- Zone
Id stringSlave B - The region ID of the log instance if you create a log instance.
- Category string
- The RDS edition of the instance.
- Connection
String string - RDS database connection string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ssl
Status string - Status of the SSL feature.
Yes
: SSL is turned on;No
: SSL is turned off. - Zone
Id stringSlave A - The region ID of the secondary instance if you create a secondary instance.
- Zone
Id stringSlave B - The region ID of the log instance if you create a log instance.
- category String
- The RDS edition of the instance.
- connection
String String - RDS database connection string.
- id String
- The provider-assigned unique ID for this managed resource.
- ssl
Status String - Status of the SSL feature.
Yes
: SSL is turned on;No
: SSL is turned off. - zone
Id StringSlave A - The region ID of the secondary instance if you create a secondary instance.
- zone
Id StringSlave B - The region ID of the log instance if you create a log instance.
- category string
- The RDS edition of the instance.
- connection
String string - RDS database connection string.
- id string
- The provider-assigned unique ID for this managed resource.
- ssl
Status string - Status of the SSL feature.
Yes
: SSL is turned on;No
: SSL is turned off. - zone
Id stringSlave A - The region ID of the secondary instance if you create a secondary instance.
- zone
Id stringSlave B - The region ID of the log instance if you create a log instance.
- category str
- The RDS edition of the instance.
- connection_
string str - RDS database connection string.
- id str
- The provider-assigned unique ID for this managed resource.
- ssl_
status str - Status of the SSL feature.
Yes
: SSL is turned on;No
: SSL is turned off. - zone_
id_ strslave_ a - The region ID of the secondary instance if you create a secondary instance.
- zone_
id_ strslave_ b - The region ID of the log instance if you create a log instance.
- category String
- The RDS edition of the instance.
- connection
String String - RDS database connection string.
- id String
- The provider-assigned unique ID for this managed resource.
- ssl
Status String - Status of the SSL feature.
Yes
: SSL is turned on;No
: SSL is turned off. - zone
Id StringSlave A - The region ID of the secondary instance if you create a secondary instance.
- zone
Id StringSlave B - The region ID of the log instance if you create a log instance.
Look up Existing DdrInstance Resource
Get an existing DdrInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DdrInstanceState, opts?: CustomResourceOptions): DdrInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl: Optional[str] = None,
auto_renew: Optional[bool] = None,
auto_renew_period: Optional[int] = None,
auto_upgrade_minor_version: Optional[str] = None,
backup_set_id: Optional[str] = None,
ca_type: Optional[str] = None,
category: Optional[str] = None,
client_ca_cert: Optional[str] = None,
client_ca_enabled: Optional[int] = None,
client_cert_revocation_list: Optional[str] = None,
client_crl_enabled: Optional[int] = None,
connection_string: Optional[str] = None,
connection_string_prefix: Optional[str] = None,
db_instance_ip_array_attribute: Optional[str] = None,
db_instance_ip_array_name: Optional[str] = None,
db_instance_storage_type: Optional[str] = None,
deletion_protection: Optional[bool] = None,
effective_time: Optional[str] = None,
encryption_key: Optional[str] = None,
engine: Optional[str] = None,
engine_version: Optional[str] = None,
force_restart: Optional[bool] = None,
fresh_white_list_readins: Optional[str] = None,
ha_config: Optional[str] = None,
instance_name: Optional[str] = None,
instance_storage: Optional[int] = None,
instance_type: Optional[str] = None,
maintain_time: Optional[str] = None,
manual_ha_time: Optional[str] = None,
modify_mode: Optional[str] = None,
monitoring_period: Optional[int] = None,
parameters: Optional[Sequence[DdrInstanceParameterArgs]] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
pg_hba_confs: Optional[Sequence[DdrInstancePgHbaConfArgs]] = None,
port: Optional[str] = None,
private_ip_address: Optional[str] = None,
released_keep_policy: Optional[str] = None,
replication_acl: Optional[str] = None,
resource_group_id: Optional[str] = None,
restore_time: Optional[str] = None,
restore_type: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
security_ip_mode: Optional[str] = None,
security_ip_type: Optional[str] = None,
security_ips: Optional[Sequence[str]] = None,
server_cert: Optional[str] = None,
server_key: Optional[str] = None,
source_db_instance_name: Optional[str] = None,
source_region: Optional[str] = None,
sql_collector_config_value: Optional[int] = None,
sql_collector_status: Optional[str] = None,
ssl_action: Optional[str] = None,
ssl_status: Optional[str] = None,
storage_auto_scale: Optional[str] = None,
storage_threshold: Optional[int] = None,
storage_upper_bound: Optional[int] = None,
switch_time: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
target_minor_version: Optional[str] = None,
tcp_connection_type: Optional[str] = None,
tde_status: Optional[str] = None,
upgrade_db_instance_kernel_version: Optional[bool] = None,
upgrade_time: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
whitelist_network_type: Optional[str] = None,
zone_id: Optional[str] = None,
zone_id_slave_a: Optional[str] = None,
zone_id_slave_b: Optional[str] = None) -> DdrInstance
func GetDdrInstance(ctx *Context, name string, id IDInput, state *DdrInstanceState, opts ...ResourceOption) (*DdrInstance, error)
public static DdrInstance Get(string name, Input<string> id, DdrInstanceState? state, CustomResourceOptions? opts = null)
public static DdrInstance get(String name, Output<String> id, DdrInstanceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Acl string
- 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)
- Auto
Renew bool - Whether to renewal a DB instance automatically or not. It is valid when payment_type is
Subscription
. Default tofalse
. - Auto
Renew intPeriod - Auto-renewal period of an instance, in the unit of the month. It is valid when payment_type is
Subscription
. Valid value:[1~12], Default to 1. - Auto
Upgrade stringMinor Version 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.
- Backup
Set stringId - The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the ID of the backup set.
- Ca
Type string - 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
- Category string
- The RDS edition of the instance.
- Client
Ca stringCert - 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.
- Client
Ca intEnabled - 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
- Client
Cert stringRevocation List - 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.
- Client
Crl intEnabled - 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
- Connection
String string - RDS database connection string.
- Connection
String stringPrefix 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 ~!#%^&*=+|{};:'",<>/?
- Db
Instance stringIp Array Attribute 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).
- Db
Instance stringIp Array Name The name of the IP address whitelist. Default value: Default.
NOTE: A maximum of 200 IP address whitelists can be configured for each instance.
- Db
Instance stringStorage Type The storage type of the instance. 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).
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.
- Deletion
Protection bool The switch of delete protection. Valid values:
- true: delete protect.
- false: no delete protect.
NOTE:
deletion_protection
is valid only when attributepayment_type
is set toPayAsYouGo
, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.- Effective
Time string - 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.
- Encryption
Key string - The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
- Engine string
Database type. Value options: MySQL, SQLServer.
NOTE: When the 'EngineVersion' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
- Engine
Version string - Database version. Value options can refer to the latest docs CreateDdrInstance
EngineVersion
. - Force
Restart bool - Set it to true to make some parameter efficient when modifying them. Default to false.
- Fresh
White stringList Readins - 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.
- Ha
Config string 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.
- Instance
Name string - The name of DB instance. It a string of 2 to 256 characters.
- Instance
Storage int The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB.
This value must be a multiple of 5 GB. For more information, see Primary ApsaraDB RDS instance types.
- Instance
Type string DB Instance type.
NOTE: When
storage_auto_scale="Enable"
, do not performinstance_storage
check. whenstorage_auto_scale="Disable"
, if the instance itselfinstance_storage
has changed. You need to manually revise theinstance_storage
in the template value.- Maintain
Time string - Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
- Manual
Ha stringTime 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.
- Modify
Mode string - 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.
- Monitoring
Period int - The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
- Parameters
List<Pulumi.
Ali Cloud. Rds. Inputs. Ddr Instance Parameter> - Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs View database parameter templates . See
parameters
below. - Payment
Type string - Valid values are
Subscription
,PayAsYouGo
, Default toPayAsYouGo
. - Period int
The duration that you will buy DB instance (in month). It is valid when payment_type is
Subscription
. 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 runningpulumi up
will not effect the resource.- Pg
Hba List<Pulumi.Confs Ali Cloud. Rds. Inputs. Ddr Instance Pg Hba Conf> - The configuration of AD domain . See
pg_hba_conf
below. - Port string
- The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
- Private
Ip stringAddress - 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.
- Released
Keep stringPolicy 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.
- Replication
Acl string - 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)
- Resource
Group stringId - The ID of resource group which the DB instance belongs.
- Restore
Time string - The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
- Restore
Type string - The method that is used to restore data. Valid values:
- BackupSet: Data is restored from a backup set. If you use this value, you must also specify the BackupSetID parameter.
- BackupTime: restores data to a point in time. You must also specify the RestoreTime, SourceRegion, and SourceDBInstanceName parameters.
- Security
Group List<string>Ids - ) The list IDs to join ECS Security Group. At most supports three security groups.
- Security
Ip stringMode - Valid values are
normal
,safety
, Default tonormal
. supportsafety
switch to high security access mode. - Security
Ip stringType - The type of IP address in the IP address whitelist.
- Security
Ips List<string> - 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]).
- Server
Cert string - 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.
- Server
Key string - 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.
- Source
Db stringInstance Name - The ID of the source instance if you want to restore data to a point in time.
- Source
Region string - The region ID of the source instance if you want to restore data to a point in time.
- Sql
Collector intConfig Value - The sql collector keep time of the instance. Valid values are
30
,180
,365
,1095
,1825
, Default to30
. - Sql
Collector stringStatus - The sql collector status of the instance. Valid values are
Enabled
,Disabled
, Default toDisabled
. - Ssl
Action string - 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. - Ssl
Status string - Status of the SSL feature.
Yes
: SSL is turned on;No
: SSL is turned off. - Storage
Auto stringScale Automatic storage space expansion switch. Valid values:
- Enable
- Disable
NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
- Storage
Threshold int The trigger threshold (percentage) for automatic storage space expansion. 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.
- Storage
Upper intBound 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.
- Switch
Time string 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
upgrade_db_instance_kernel_version = true
. The time must be in UTC.NOTE: This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
- Dictionary<string, string>
- 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.
- Target
Minor stringVersion 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. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- Tcp
Connection stringType - 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.
- Tde
Status string - The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
- Upgrade
Db boolInstance Kernel Version - Whether to upgrade a minor version of the kernel. Valid values:
- true: upgrade
- false: not to upgrade
- Upgrade
Time string - The method to update the minor engine version. Default value: Immediate. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- Vpc
Id string 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.
- Vswitch
Id string - The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
- Whitelist
Network stringType 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.
- Zone
Id string - The Zone to launch the DB instance. 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 settingmulti
to "true" in the data sourcealicloud.getZones
. - Zone
Id stringSlave A - The region ID of the secondary instance if you create a secondary instance.
- Zone
Id stringSlave B - The region ID of the log instance if you create a log instance.
- Acl string
- 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)
- Auto
Renew bool - Whether to renewal a DB instance automatically or not. It is valid when payment_type is
Subscription
. Default tofalse
. - Auto
Renew intPeriod - Auto-renewal period of an instance, in the unit of the month. It is valid when payment_type is
Subscription
. Valid value:[1~12], Default to 1. - Auto
Upgrade stringMinor Version 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.
- Backup
Set stringId - The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the ID of the backup set.
- Ca
Type string - 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
- Category string
- The RDS edition of the instance.
- Client
Ca stringCert - 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.
- Client
Ca intEnabled - 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
- Client
Cert stringRevocation List - 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.
- Client
Crl intEnabled - 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
- Connection
String string - RDS database connection string.
- Connection
String stringPrefix 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 ~!#%^&*=+|{};:'",<>/?
- Db
Instance stringIp Array Attribute 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).
- Db
Instance stringIp Array Name The name of the IP address whitelist. Default value: Default.
NOTE: A maximum of 200 IP address whitelists can be configured for each instance.
- Db
Instance stringStorage Type The storage type of the instance. 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).
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.
- Deletion
Protection bool The switch of delete protection. Valid values:
- true: delete protect.
- false: no delete protect.
NOTE:
deletion_protection
is valid only when attributepayment_type
is set toPayAsYouGo
, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.- Effective
Time string - 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.
- Encryption
Key string - The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
- Engine string
Database type. Value options: MySQL, SQLServer.
NOTE: When the 'EngineVersion' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
- Engine
Version string - Database version. Value options can refer to the latest docs CreateDdrInstance
EngineVersion
. - Force
Restart bool - Set it to true to make some parameter efficient when modifying them. Default to false.
- Fresh
White stringList Readins - 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.
- Ha
Config string 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.
- Instance
Name string - The name of DB instance. It a string of 2 to 256 characters.
- Instance
Storage int The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB.
This value must be a multiple of 5 GB. For more information, see Primary ApsaraDB RDS instance types.
- Instance
Type string DB Instance type.
NOTE: When
storage_auto_scale="Enable"
, do not performinstance_storage
check. whenstorage_auto_scale="Disable"
, if the instance itselfinstance_storage
has changed. You need to manually revise theinstance_storage
in the template value.- Maintain
Time string - Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
- Manual
Ha stringTime 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.
- Modify
Mode string - 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.
- Monitoring
Period int - The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
- Parameters
[]Ddr
Instance Parameter Args - Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs View database parameter templates . See
parameters
below. - Payment
Type string - Valid values are
Subscription
,PayAsYouGo
, Default toPayAsYouGo
. - Period int
The duration that you will buy DB instance (in month). It is valid when payment_type is
Subscription
. 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 runningpulumi up
will not effect the resource.- Pg
Hba []DdrConfs Instance Pg Hba Conf Args - The configuration of AD domain . See
pg_hba_conf
below. - Port string
- The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
- Private
Ip stringAddress - 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.
- Released
Keep stringPolicy 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.
- Replication
Acl string - 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)
- Resource
Group stringId - The ID of resource group which the DB instance belongs.
- Restore
Time string - The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
- Restore
Type string - The method that is used to restore data. Valid values:
- BackupSet: Data is restored from a backup set. If you use this value, you must also specify the BackupSetID parameter.
- BackupTime: restores data to a point in time. You must also specify the RestoreTime, SourceRegion, and SourceDBInstanceName parameters.
- Security
Group []stringIds - ) The list IDs to join ECS Security Group. At most supports three security groups.
- Security
Ip stringMode - Valid values are
normal
,safety
, Default tonormal
. supportsafety
switch to high security access mode. - Security
Ip stringType - The type of IP address in the IP address whitelist.
- Security
Ips []string - 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]).
- Server
Cert string - 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.
- Server
Key string - 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.
- Source
Db stringInstance Name - The ID of the source instance if you want to restore data to a point in time.
- Source
Region string - The region ID of the source instance if you want to restore data to a point in time.
- Sql
Collector intConfig Value - The sql collector keep time of the instance. Valid values are
30
,180
,365
,1095
,1825
, Default to30
. - Sql
Collector stringStatus - The sql collector status of the instance. Valid values are
Enabled
,Disabled
, Default toDisabled
. - Ssl
Action string - 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. - Ssl
Status string - Status of the SSL feature.
Yes
: SSL is turned on;No
: SSL is turned off. - Storage
Auto stringScale Automatic storage space expansion switch. Valid values:
- Enable
- Disable
NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
- Storage
Threshold int The trigger threshold (percentage) for automatic storage space expansion. 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.
- Storage
Upper intBound 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.
- Switch
Time string 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
upgrade_db_instance_kernel_version = true
. The time must be in UTC.NOTE: This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
- map[string]string
- 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.
- Target
Minor stringVersion 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. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- Tcp
Connection stringType - 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.
- Tde
Status string - The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
- Upgrade
Db boolInstance Kernel Version - Whether to upgrade a minor version of the kernel. Valid values:
- true: upgrade
- false: not to upgrade
- Upgrade
Time string - The method to update the minor engine version. Default value: Immediate. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- Vpc
Id string 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.
- Vswitch
Id string - The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
- Whitelist
Network stringType 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.
- Zone
Id string - The Zone to launch the DB instance. 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 settingmulti
to "true" in the data sourcealicloud.getZones
. - Zone
Id stringSlave A - The region ID of the secondary instance if you create a secondary instance.
- Zone
Id stringSlave B - The region ID of the log instance if you create a log instance.
- acl String
- 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)
- auto
Renew Boolean - Whether to renewal a DB instance automatically or not. It is valid when payment_type is
Subscription
. Default tofalse
. - auto
Renew IntegerPeriod - Auto-renewal period of an instance, in the unit of the month. It is valid when payment_type is
Subscription
. Valid value:[1~12], Default to 1. - auto
Upgrade StringMinor Version 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.
- backup
Set StringId - The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the ID of the backup set.
- ca
Type String - 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
- category String
- The RDS edition of the instance.
- client
Ca StringCert - 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.
- client
Ca IntegerEnabled - 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
- client
Cert StringRevocation List - 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.
- client
Crl IntegerEnabled - 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
- connection
String String - RDS database connection string.
- connection
String StringPrefix 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 ~!#%^&*=+|{};:'",<>/?
- db
Instance StringIp Array Attribute 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).
- db
Instance StringIp Array Name The name of the IP address whitelist. Default value: Default.
NOTE: A maximum of 200 IP address whitelists can be configured for each instance.
- db
Instance StringStorage Type The storage type of the instance. 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).
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.
- deletion
Protection Boolean The switch of delete protection. Valid values:
- true: delete protect.
- false: no delete protect.
NOTE:
deletion_protection
is valid only when attributepayment_type
is set toPayAsYouGo
, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.- effective
Time String - 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.
- encryption
Key String - The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
- engine String
Database type. Value options: MySQL, SQLServer.
NOTE: When the 'EngineVersion' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
- engine
Version String - Database version. Value options can refer to the latest docs CreateDdrInstance
EngineVersion
. - force
Restart Boolean - Set it to true to make some parameter efficient when modifying them. Default to false.
- fresh
White StringList Readins - 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.
- ha
Config String 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.
- instance
Name String - The name of DB instance. It a string of 2 to 256 characters.
- instance
Storage Integer The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB.
This value must be a multiple of 5 GB. For more information, see Primary ApsaraDB RDS instance types.
- instance
Type String DB Instance type.
NOTE: When
storage_auto_scale="Enable"
, do not performinstance_storage
check. whenstorage_auto_scale="Disable"
, if the instance itselfinstance_storage
has changed. You need to manually revise theinstance_storage
in the template value.- maintain
Time String - Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
- manual
Ha StringTime 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.
- modify
Mode String - 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.
- monitoring
Period Integer - The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
- parameters
List<Ddr
Instance Parameter> - Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs View database parameter templates . See
parameters
below. - payment
Type String - Valid values are
Subscription
,PayAsYouGo
, Default toPayAsYouGo
. - period Integer
The duration that you will buy DB instance (in month). It is valid when payment_type is
Subscription
. 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 runningpulumi up
will not effect the resource.- pg
Hba List<DdrConfs Instance Pg Hba Conf> - The configuration of AD domain . See
pg_hba_conf
below. - port String
- The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
- private
Ip StringAddress - 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.
- released
Keep StringPolicy 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.
- replication
Acl String - 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)
- resource
Group StringId - The ID of resource group which the DB instance belongs.
- restore
Time String - The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
- restore
Type String - The method that is used to restore data. Valid values:
- BackupSet: Data is restored from a backup set. If you use this value, you must also specify the BackupSetID parameter.
- BackupTime: restores data to a point in time. You must also specify the RestoreTime, SourceRegion, and SourceDBInstanceName parameters.
- security
Group List<String>Ids - ) The list IDs to join ECS Security Group. At most supports three security groups.
- security
Ip StringMode - Valid values are
normal
,safety
, Default tonormal
. supportsafety
switch to high security access mode. - security
Ip StringType - The type of IP address in the IP address whitelist.
- security
Ips List<String> - 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]).
- server
Cert String - 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.
- server
Key String - 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.
- source
Db StringInstance Name - The ID of the source instance if you want to restore data to a point in time.
- source
Region String - The region ID of the source instance if you want to restore data to a point in time.
- sql
Collector IntegerConfig Value - The sql collector keep time of the instance. Valid values are
30
,180
,365
,1095
,1825
, Default to30
. - sql
Collector StringStatus - The sql collector status of the instance. Valid values are
Enabled
,Disabled
, Default toDisabled
. - ssl
Action String - 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. - ssl
Status String - Status of the SSL feature.
Yes
: SSL is turned on;No
: SSL is turned off. - storage
Auto StringScale Automatic storage space expansion switch. Valid values:
- Enable
- Disable
NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
- storage
Threshold Integer The trigger threshold (percentage) for automatic storage space expansion. 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.
- storage
Upper IntegerBound 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.
- switch
Time String 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
upgrade_db_instance_kernel_version = true
. The time must be in UTC.NOTE: This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
- Map<String,String>
- 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.
- target
Minor StringVersion 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. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- tcp
Connection StringType - 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.
- tde
Status String - The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
- upgrade
Db BooleanInstance Kernel Version - Whether to upgrade a minor version of the kernel. Valid values:
- true: upgrade
- false: not to upgrade
- upgrade
Time String - The method to update the minor engine version. Default value: Immediate. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- vpc
Id String 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.
- vswitch
Id String - The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
- whitelist
Network StringType 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.
- zone
Id String - The Zone to launch the DB instance. 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 settingmulti
to "true" in the data sourcealicloud.getZones
. - zone
Id StringSlave A - The region ID of the secondary instance if you create a secondary instance.
- zone
Id StringSlave B - The region ID of the log instance if you create a log instance.
- acl string
- 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)
- auto
Renew boolean - Whether to renewal a DB instance automatically or not. It is valid when payment_type is
Subscription
. Default tofalse
. - auto
Renew numberPeriod - Auto-renewal period of an instance, in the unit of the month. It is valid when payment_type is
Subscription
. Valid value:[1~12], Default to 1. - auto
Upgrade stringMinor Version 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.
- backup
Set stringId - The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the ID of the backup set.
- ca
Type string - 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
- category string
- The RDS edition of the instance.
- client
Ca stringCert - 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.
- client
Ca numberEnabled - 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
- client
Cert stringRevocation List - 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.
- client
Crl numberEnabled - 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
- connection
String string - RDS database connection string.
- connection
String stringPrefix 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 ~!#%^&*=+|{};:'",<>/?
- db
Instance stringIp Array Attribute 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).
- db
Instance stringIp Array Name The name of the IP address whitelist. Default value: Default.
NOTE: A maximum of 200 IP address whitelists can be configured for each instance.
- db
Instance stringStorage Type The storage type of the instance. 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).
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.
- deletion
Protection boolean The switch of delete protection. Valid values:
- true: delete protect.
- false: no delete protect.
NOTE:
deletion_protection
is valid only when attributepayment_type
is set toPayAsYouGo
, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.- effective
Time string - 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.
- encryption
Key string - The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
- engine string
Database type. Value options: MySQL, SQLServer.
NOTE: When the 'EngineVersion' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
- engine
Version string - Database version. Value options can refer to the latest docs CreateDdrInstance
EngineVersion
. - force
Restart boolean - Set it to true to make some parameter efficient when modifying them. Default to false.
- fresh
White stringList Readins - 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.
- ha
Config string 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.
- instance
Name string - The name of DB instance. It a string of 2 to 256 characters.
- instance
Storage number The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB.
This value must be a multiple of 5 GB. For more information, see Primary ApsaraDB RDS instance types.
- instance
Type string DB Instance type.
NOTE: When
storage_auto_scale="Enable"
, do not performinstance_storage
check. whenstorage_auto_scale="Disable"
, if the instance itselfinstance_storage
has changed. You need to manually revise theinstance_storage
in the template value.- maintain
Time string - Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
- manual
Ha stringTime 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.
- modify
Mode string - 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.
- monitoring
Period number - The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
- parameters
Ddr
Instance Parameter[] - Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs View database parameter templates . See
parameters
below. - payment
Type string - Valid values are
Subscription
,PayAsYouGo
, Default toPayAsYouGo
. - period number
The duration that you will buy DB instance (in month). It is valid when payment_type is
Subscription
. 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 runningpulumi up
will not effect the resource.- pg
Hba DdrConfs Instance Pg Hba Conf[] - The configuration of AD domain . See
pg_hba_conf
below. - port string
- The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
- private
Ip stringAddress - 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.
- released
Keep stringPolicy 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.
- replication
Acl string - 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)
- resource
Group stringId - The ID of resource group which the DB instance belongs.
- restore
Time string - The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
- restore
Type string - The method that is used to restore data. Valid values:
- BackupSet: Data is restored from a backup set. If you use this value, you must also specify the BackupSetID parameter.
- BackupTime: restores data to a point in time. You must also specify the RestoreTime, SourceRegion, and SourceDBInstanceName parameters.
- security
Group string[]Ids - ) The list IDs to join ECS Security Group. At most supports three security groups.
- security
Ip stringMode - Valid values are
normal
,safety
, Default tonormal
. supportsafety
switch to high security access mode. - security
Ip stringType - The type of IP address in the IP address whitelist.
- security
Ips string[] - 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]).
- server
Cert string - 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.
- server
Key string - 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.
- source
Db stringInstance Name - The ID of the source instance if you want to restore data to a point in time.
- source
Region string - The region ID of the source instance if you want to restore data to a point in time.
- sql
Collector numberConfig Value - The sql collector keep time of the instance. Valid values are
30
,180
,365
,1095
,1825
, Default to30
. - sql
Collector stringStatus - The sql collector status of the instance. Valid values are
Enabled
,Disabled
, Default toDisabled
. - ssl
Action string - 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. - ssl
Status string - Status of the SSL feature.
Yes
: SSL is turned on;No
: SSL is turned off. - storage
Auto stringScale Automatic storage space expansion switch. Valid values:
- Enable
- Disable
NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
- storage
Threshold number The trigger threshold (percentage) for automatic storage space expansion. 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.
- storage
Upper numberBound 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.
- switch
Time string 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
upgrade_db_instance_kernel_version = true
. The time must be in UTC.NOTE: This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
- {[key: string]: string}
- 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.
- target
Minor stringVersion 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. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- tcp
Connection stringType - 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.
- tde
Status string - The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
- upgrade
Db booleanInstance Kernel Version - Whether to upgrade a minor version of the kernel. Valid values:
- true: upgrade
- false: not to upgrade
- upgrade
Time string - The method to update the minor engine version. Default value: Immediate. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- vpc
Id string 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.
- vswitch
Id string - The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
- whitelist
Network stringType 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.
- zone
Id string - The Zone to launch the DB instance. 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 settingmulti
to "true" in the data sourcealicloud.getZones
. - zone
Id stringSlave A - The region ID of the secondary instance if you create a secondary instance.
- zone
Id stringSlave B - The region ID of the log instance if you create a log instance.
- acl str
- 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)
- auto_
renew bool - Whether to renewal a DB instance automatically or not. It is valid when payment_type is
Subscription
. Default tofalse
. - auto_
renew_ intperiod - Auto-renewal period of an instance, in the unit of the month. It is valid when payment_type is
Subscription
. Valid value:[1~12], Default to 1. - auto_
upgrade_ strminor_ version 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.
- backup_
set_ strid - The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the ID of the backup set.
- ca_
type str - 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
- category str
- The RDS edition of the instance.
- client_
ca_ strcert - 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.
- client_
ca_ intenabled - 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
- client_
cert_ strrevocation_ list - 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.
- client_
crl_ intenabled - 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
- connection_
string str - RDS database connection string.
- connection_
string_ strprefix 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 ~!#%^&*=+|{};:'",<>/?
- db_
instance_ strip_ array_ attribute 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).
- db_
instance_ strip_ array_ name The name of the IP address whitelist. Default value: Default.
NOTE: A maximum of 200 IP address whitelists can be configured for each instance.
- db_
instance_ strstorage_ type The storage type of the instance. 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).
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.
- deletion_
protection bool The switch of delete protection. Valid values:
- true: delete protect.
- false: no delete protect.
NOTE:
deletion_protection
is valid only when attributepayment_type
is set toPayAsYouGo
, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.- effective_
time str - 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.
- encryption_
key str - The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
- engine str
Database type. Value options: MySQL, SQLServer.
NOTE: When the 'EngineVersion' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
- engine_
version str - Database version. Value options can refer to the latest docs CreateDdrInstance
EngineVersion
. - force_
restart bool - Set it to true to make some parameter efficient when modifying them. Default to false.
- fresh_
white_ strlist_ readins - 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.
- ha_
config str 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.
- instance_
name str - The name of DB instance. It a string of 2 to 256 characters.
- instance_
storage int The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB.
This value must be a multiple of 5 GB. For more information, see Primary ApsaraDB RDS instance types.
- instance_
type str DB Instance type.
NOTE: When
storage_auto_scale="Enable"
, do not performinstance_storage
check. whenstorage_auto_scale="Disable"
, if the instance itselfinstance_storage
has changed. You need to manually revise theinstance_storage
in the template value.- maintain_
time str - Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
- manual_
ha_ strtime 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.
- modify_
mode str - 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.
- monitoring_
period int - The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
- parameters
Sequence[Ddr
Instance Parameter Args] - Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs View database parameter templates . See
parameters
below. - payment_
type str - Valid values are
Subscription
,PayAsYouGo
, Default toPayAsYouGo
. - period int
The duration that you will buy DB instance (in month). It is valid when payment_type is
Subscription
. 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 runningpulumi up
will not effect the resource.- pg_
hba_ Sequence[Ddrconfs Instance Pg Hba Conf Args] - The configuration of AD domain . See
pg_hba_conf
below. - port str
- The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
- private_
ip_ straddress - 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.
- released_
keep_ strpolicy 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.
- replication_
acl str - 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)
- resource_
group_ strid - The ID of resource group which the DB instance belongs.
- restore_
time str - The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
- restore_
type str - The method that is used to restore data. Valid values:
- BackupSet: Data is restored from a backup set. If you use this value, you must also specify the BackupSetID parameter.
- BackupTime: restores data to a point in time. You must also specify the RestoreTime, SourceRegion, and SourceDBInstanceName parameters.
- security_
group_ Sequence[str]ids - ) The list IDs to join ECS Security Group. At most supports three security groups.
- security_
ip_ strmode - Valid values are
normal
,safety
, Default tonormal
. supportsafety
switch to high security access mode. - security_
ip_ strtype - The type of IP address in the IP address whitelist.
- security_
ips Sequence[str] - 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]).
- server_
cert str - 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.
- server_
key str - 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.
- source_
db_ strinstance_ name - The ID of the source instance if you want to restore data to a point in time.
- source_
region str - The region ID of the source instance if you want to restore data to a point in time.
- sql_
collector_ intconfig_ value - The sql collector keep time of the instance. Valid values are
30
,180
,365
,1095
,1825
, Default to30
. - sql_
collector_ strstatus - The sql collector status of the instance. Valid values are
Enabled
,Disabled
, Default toDisabled
. - ssl_
action str - 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. - ssl_
status str - Status of the SSL feature.
Yes
: SSL is turned on;No
: SSL is turned off. - storage_
auto_ strscale Automatic storage space expansion switch. Valid values:
- Enable
- Disable
NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
- storage_
threshold int The trigger threshold (percentage) for automatic storage space expansion. 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.
- storage_
upper_ intbound 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.
- switch_
time str 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
upgrade_db_instance_kernel_version = true
. The time must be in UTC.NOTE: This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
- Mapping[str, str]
- 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.
- target_
minor_ strversion 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. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- tcp_
connection_ strtype - 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.
- tde_
status str - The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
- upgrade_
db_ boolinstance_ kernel_ version - Whether to upgrade a minor version of the kernel. Valid values:
- true: upgrade
- false: not to upgrade
- upgrade_
time str - The method to update the minor engine version. Default value: Immediate. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- vpc_
id str 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.
- vswitch_
id str - The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
- whitelist_
network_ strtype 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.
- zone_
id str - The Zone to launch the DB instance. 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 settingmulti
to "true" in the data sourcealicloud.getZones
. - zone_
id_ strslave_ a - The region ID of the secondary instance if you create a secondary instance.
- zone_
id_ strslave_ b - The region ID of the log instance if you create a log instance.
- acl String
- 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)
- auto
Renew Boolean - Whether to renewal a DB instance automatically or not. It is valid when payment_type is
Subscription
. Default tofalse
. - auto
Renew NumberPeriod - Auto-renewal period of an instance, in the unit of the month. It is valid when payment_type is
Subscription
. Valid value:[1~12], Default to 1. - auto
Upgrade StringMinor Version 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.
- backup
Set StringId - The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the ID of the backup set.
- ca
Type String - 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
- category String
- The RDS edition of the instance.
- client
Ca StringCert - 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.
- client
Ca NumberEnabled - 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
- client
Cert StringRevocation List - 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.
- client
Crl NumberEnabled - 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
- connection
String String - RDS database connection string.
- connection
String StringPrefix 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 ~!#%^&*=+|{};:'",<>/?
- db
Instance StringIp Array Attribute 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).
- db
Instance StringIp Array Name The name of the IP address whitelist. Default value: Default.
NOTE: A maximum of 200 IP address whitelists can be configured for each instance.
- db
Instance StringStorage Type The storage type of the instance. 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).
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.
- deletion
Protection Boolean The switch of delete protection. Valid values:
- true: delete protect.
- false: no delete protect.
NOTE:
deletion_protection
is valid only when attributepayment_type
is set toPayAsYouGo
, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.- effective
Time String - 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.
- encryption
Key String - The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
- engine String
Database type. Value options: MySQL, SQLServer.
NOTE: When the 'EngineVersion' changes, it can be used as the target database version for the large version upgrade of RDS for MySQL instance.
- engine
Version String - Database version. Value options can refer to the latest docs CreateDdrInstance
EngineVersion
. - force
Restart Boolean - Set it to true to make some parameter efficient when modifying them. Default to false.
- fresh
White StringList Readins - 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.
- ha
Config String 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.
- instance
Name String - The name of DB instance. It a string of 2 to 256 characters.
- instance
Storage Number The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB.
This value must be a multiple of 5 GB. For more information, see Primary ApsaraDB RDS instance types.
- instance
Type String DB Instance type.
NOTE: When
storage_auto_scale="Enable"
, do not performinstance_storage
check. whenstorage_auto_scale="Disable"
, if the instance itselfinstance_storage
has changed. You need to manually revise theinstance_storage
in the template value.- maintain
Time String - Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
- manual
Ha StringTime 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.
- modify
Mode String - 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.
- monitoring
Period Number - The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
- parameters List<Property Map>
- Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs View database parameter templates . See
parameters
below. - payment
Type String - Valid values are
Subscription
,PayAsYouGo
, Default toPayAsYouGo
. - period Number
The duration that you will buy DB instance (in month). It is valid when payment_type is
Subscription
. 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 runningpulumi up
will not effect the resource.- pg
Hba List<Property Map>Confs - The configuration of AD domain . See
pg_hba_conf
below. - port String
- The private port of the database service. If you want to update public port, please use resource alicloud.rds.Connection port.
- private
Ip StringAddress - 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.
- released
Keep StringPolicy 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.
- replication
Acl String - 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)
- resource
Group StringId - The ID of resource group which the DB instance belongs.
- restore
Time String - The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
- restore
Type String - The method that is used to restore data. Valid values:
- BackupSet: Data is restored from a backup set. If you use this value, you must also specify the BackupSetID parameter.
- BackupTime: restores data to a point in time. You must also specify the RestoreTime, SourceRegion, and SourceDBInstanceName parameters.
- security
Group List<String>Ids - ) The list IDs to join ECS Security Group. At most supports three security groups.
- security
Ip StringMode - Valid values are
normal
,safety
, Default tonormal
. supportsafety
switch to high security access mode. - security
Ip StringType - The type of IP address in the IP address whitelist.
- security
Ips List<String> - 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]).
- server
Cert String - 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.
- server
Key String - 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.
- source
Db StringInstance Name - The ID of the source instance if you want to restore data to a point in time.
- source
Region String - The region ID of the source instance if you want to restore data to a point in time.
- sql
Collector NumberConfig Value - The sql collector keep time of the instance. Valid values are
30
,180
,365
,1095
,1825
, Default to30
. - sql
Collector StringStatus - The sql collector status of the instance. Valid values are
Enabled
,Disabled
, Default toDisabled
. - ssl
Action String - 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. - ssl
Status String - Status of the SSL feature.
Yes
: SSL is turned on;No
: SSL is turned off. - storage
Auto StringScale Automatic storage space expansion switch. Valid values:
- Enable
- Disable
NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.
- storage
Threshold Number The trigger threshold (percentage) for automatic storage space expansion. 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.
- storage
Upper NumberBound 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.
- switch
Time String 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
upgrade_db_instance_kernel_version = true
. The time must be in UTC.NOTE: This parameter takes effect only when you set the UpgradeTime parameter to SpecifyTime.
- Map<String>
- 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.
- target
Minor StringVersion 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. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- tcp
Connection StringType - 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.
- tde
Status String - The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
- upgrade
Db BooleanInstance Kernel Version - Whether to upgrade a minor version of the kernel. Valid values:
- true: upgrade
- false: not to upgrade
- upgrade
Time String - The method to update the minor engine version. Default value: Immediate. It is valid only when
upgrade_db_instance_kernel_version = true
. 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.
- vpc
Id String 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.
- vswitch
Id String - The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
- whitelist
Network StringType 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.
- zone
Id String - The Zone to launch the DB instance. 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 settingmulti
to "true" in the data sourcealicloud.getZones
. - zone
Id StringSlave A - The region ID of the secondary instance if you create a secondary instance.
- zone
Id StringSlave B - The region ID of the log instance if you create a log instance.
Supporting Types
DdrInstanceParameter, DdrInstanceParameterArgs
DdrInstancePgHbaConf, DdrInstancePgHbaConfArgs
- Address string
- The IP addresses from which the specified users can access the specified databases. If you set this parameter to 0.0.0.0/0, the specified users are allowed to access the specified databases from all IP addresses.
- Database string
- The name of the database that the specified users are allowed to access. If you set this parameter to all, the specified users are allowed to access all databases in the instance. If you specify multiple databases, separate the database names with commas (,).
- Method string
- The authentication method of Lightweight Directory Access Protocol (LDAP). Valid values:
trust
,reject
,scram-sha-256
,md5
,password
,gss
,sspi
,ldap
,radius
,cert
,pam
. - Priority
Id int - The priority of an AD domain. If you set this parameter to 0, the AD domain has the highest priority. Valid values: 0 to 10000. This parameter is used to identify each AD domain. When you add an AD domain, the value of the PriorityId parameter of the new AD domain cannot be the same as the value of the PriorityId parameter for any existing AD domain. When you modify or delete an AD domain, you must also modify or delete the value of the PriorityId parameter for this AD domain.
- Type string
The type of connection to the instance. Valid values:
- host: specifies to verify TCP/IP connections, including SSL connections and non-SSL connections.
- hostssl: specifies to verify only TCP/IP connections that are established over SSL connections.
- hostnossl: specifies to verify only TCP/IP connections that are established over non-SSL connections.
NOTE: You can set this parameter to hostssl only when SSL encryption is enabled for the instance. For more information, see Configure SSL encryption for an ApsaraDB RDS for PostgreSQL instance.
- User string
- The user that is allowed to access the instance. If you specify multiple users, separate the usernames with commas (,).
- Mask string
- The mask of the instance. If the value of the
Address
parameter is an IP address, you can use this parameter to specify the mask of the IP address. - Option string
- Optional. The value of this parameter is based on the value of the HbaItem.N.Method parameter. In this topic, LDAP is used as an example. You must configure this parameter. For more information, see Authentication Methods.
- Address string
- The IP addresses from which the specified users can access the specified databases. If you set this parameter to 0.0.0.0/0, the specified users are allowed to access the specified databases from all IP addresses.
- Database string
- The name of the database that the specified users are allowed to access. If you set this parameter to all, the specified users are allowed to access all databases in the instance. If you specify multiple databases, separate the database names with commas (,).
- Method string
- The authentication method of Lightweight Directory Access Protocol (LDAP). Valid values:
trust
,reject
,scram-sha-256
,md5
,password
,gss
,sspi
,ldap
,radius
,cert
,pam
. - Priority
Id int - The priority of an AD domain. If you set this parameter to 0, the AD domain has the highest priority. Valid values: 0 to 10000. This parameter is used to identify each AD domain. When you add an AD domain, the value of the PriorityId parameter of the new AD domain cannot be the same as the value of the PriorityId parameter for any existing AD domain. When you modify or delete an AD domain, you must also modify or delete the value of the PriorityId parameter for this AD domain.
- Type string
The type of connection to the instance. Valid values:
- host: specifies to verify TCP/IP connections, including SSL connections and non-SSL connections.
- hostssl: specifies to verify only TCP/IP connections that are established over SSL connections.
- hostnossl: specifies to verify only TCP/IP connections that are established over non-SSL connections.
NOTE: You can set this parameter to hostssl only when SSL encryption is enabled for the instance. For more information, see Configure SSL encryption for an ApsaraDB RDS for PostgreSQL instance.
- User string
- The user that is allowed to access the instance. If you specify multiple users, separate the usernames with commas (,).
- Mask string
- The mask of the instance. If the value of the
Address
parameter is an IP address, you can use this parameter to specify the mask of the IP address. - Option string
- Optional. The value of this parameter is based on the value of the HbaItem.N.Method parameter. In this topic, LDAP is used as an example. You must configure this parameter. For more information, see Authentication Methods.
- address String
- The IP addresses from which the specified users can access the specified databases. If you set this parameter to 0.0.0.0/0, the specified users are allowed to access the specified databases from all IP addresses.
- database String
- The name of the database that the specified users are allowed to access. If you set this parameter to all, the specified users are allowed to access all databases in the instance. If you specify multiple databases, separate the database names with commas (,).
- method String
- The authentication method of Lightweight Directory Access Protocol (LDAP). Valid values:
trust
,reject
,scram-sha-256
,md5
,password
,gss
,sspi
,ldap
,radius
,cert
,pam
. - priority
Id Integer - The priority of an AD domain. If you set this parameter to 0, the AD domain has the highest priority. Valid values: 0 to 10000. This parameter is used to identify each AD domain. When you add an AD domain, the value of the PriorityId parameter of the new AD domain cannot be the same as the value of the PriorityId parameter for any existing AD domain. When you modify or delete an AD domain, you must also modify or delete the value of the PriorityId parameter for this AD domain.
- type String
The type of connection to the instance. Valid values:
- host: specifies to verify TCP/IP connections, including SSL connections and non-SSL connections.
- hostssl: specifies to verify only TCP/IP connections that are established over SSL connections.
- hostnossl: specifies to verify only TCP/IP connections that are established over non-SSL connections.
NOTE: You can set this parameter to hostssl only when SSL encryption is enabled for the instance. For more information, see Configure SSL encryption for an ApsaraDB RDS for PostgreSQL instance.
- user String
- The user that is allowed to access the instance. If you specify multiple users, separate the usernames with commas (,).
- mask String
- The mask of the instance. If the value of the
Address
parameter is an IP address, you can use this parameter to specify the mask of the IP address. - option String
- Optional. The value of this parameter is based on the value of the HbaItem.N.Method parameter. In this topic, LDAP is used as an example. You must configure this parameter. For more information, see Authentication Methods.
- address string
- The IP addresses from which the specified users can access the specified databases. If you set this parameter to 0.0.0.0/0, the specified users are allowed to access the specified databases from all IP addresses.
- database string
- The name of the database that the specified users are allowed to access. If you set this parameter to all, the specified users are allowed to access all databases in the instance. If you specify multiple databases, separate the database names with commas (,).
- method string
- The authentication method of Lightweight Directory Access Protocol (LDAP). Valid values:
trust
,reject
,scram-sha-256
,md5
,password
,gss
,sspi
,ldap
,radius
,cert
,pam
. - priority
Id number - The priority of an AD domain. If you set this parameter to 0, the AD domain has the highest priority. Valid values: 0 to 10000. This parameter is used to identify each AD domain. When you add an AD domain, the value of the PriorityId parameter of the new AD domain cannot be the same as the value of the PriorityId parameter for any existing AD domain. When you modify or delete an AD domain, you must also modify or delete the value of the PriorityId parameter for this AD domain.
- type string
The type of connection to the instance. Valid values:
- host: specifies to verify TCP/IP connections, including SSL connections and non-SSL connections.
- hostssl: specifies to verify only TCP/IP connections that are established over SSL connections.
- hostnossl: specifies to verify only TCP/IP connections that are established over non-SSL connections.
NOTE: You can set this parameter to hostssl only when SSL encryption is enabled for the instance. For more information, see Configure SSL encryption for an ApsaraDB RDS for PostgreSQL instance.
- user string
- The user that is allowed to access the instance. If you specify multiple users, separate the usernames with commas (,).
- mask string
- The mask of the instance. If the value of the
Address
parameter is an IP address, you can use this parameter to specify the mask of the IP address. - option string
- Optional. The value of this parameter is based on the value of the HbaItem.N.Method parameter. In this topic, LDAP is used as an example. You must configure this parameter. For more information, see Authentication Methods.
- address str
- The IP addresses from which the specified users can access the specified databases. If you set this parameter to 0.0.0.0/0, the specified users are allowed to access the specified databases from all IP addresses.
- database str
- The name of the database that the specified users are allowed to access. If you set this parameter to all, the specified users are allowed to access all databases in the instance. If you specify multiple databases, separate the database names with commas (,).
- method str
- The authentication method of Lightweight Directory Access Protocol (LDAP). Valid values:
trust
,reject
,scram-sha-256
,md5
,password
,gss
,sspi
,ldap
,radius
,cert
,pam
. - priority_
id int - The priority of an AD domain. If you set this parameter to 0, the AD domain has the highest priority. Valid values: 0 to 10000. This parameter is used to identify each AD domain. When you add an AD domain, the value of the PriorityId parameter of the new AD domain cannot be the same as the value of the PriorityId parameter for any existing AD domain. When you modify or delete an AD domain, you must also modify or delete the value of the PriorityId parameter for this AD domain.
- type str
The type of connection to the instance. Valid values:
- host: specifies to verify TCP/IP connections, including SSL connections and non-SSL connections.
- hostssl: specifies to verify only TCP/IP connections that are established over SSL connections.
- hostnossl: specifies to verify only TCP/IP connections that are established over non-SSL connections.
NOTE: You can set this parameter to hostssl only when SSL encryption is enabled for the instance. For more information, see Configure SSL encryption for an ApsaraDB RDS for PostgreSQL instance.
- user str
- The user that is allowed to access the instance. If you specify multiple users, separate the usernames with commas (,).
- mask str
- The mask of the instance. If the value of the
Address
parameter is an IP address, you can use this parameter to specify the mask of the IP address. - option str
- Optional. The value of this parameter is based on the value of the HbaItem.N.Method parameter. In this topic, LDAP is used as an example. You must configure this parameter. For more information, see Authentication Methods.
- address String
- The IP addresses from which the specified users can access the specified databases. If you set this parameter to 0.0.0.0/0, the specified users are allowed to access the specified databases from all IP addresses.
- database String
- The name of the database that the specified users are allowed to access. If you set this parameter to all, the specified users are allowed to access all databases in the instance. If you specify multiple databases, separate the database names with commas (,).
- method String
- The authentication method of Lightweight Directory Access Protocol (LDAP). Valid values:
trust
,reject
,scram-sha-256
,md5
,password
,gss
,sspi
,ldap
,radius
,cert
,pam
. - priority
Id Number - The priority of an AD domain. If you set this parameter to 0, the AD domain has the highest priority. Valid values: 0 to 10000. This parameter is used to identify each AD domain. When you add an AD domain, the value of the PriorityId parameter of the new AD domain cannot be the same as the value of the PriorityId parameter for any existing AD domain. When you modify or delete an AD domain, you must also modify or delete the value of the PriorityId parameter for this AD domain.
- type String
The type of connection to the instance. Valid values:
- host: specifies to verify TCP/IP connections, including SSL connections and non-SSL connections.
- hostssl: specifies to verify only TCP/IP connections that are established over SSL connections.
- hostnossl: specifies to verify only TCP/IP connections that are established over non-SSL connections.
NOTE: You can set this parameter to hostssl only when SSL encryption is enabled for the instance. For more information, see Configure SSL encryption for an ApsaraDB RDS for PostgreSQL instance.
- user String
- The user that is allowed to access the instance. If you specify multiple users, separate the usernames with commas (,).
- mask String
- The mask of the instance. If the value of the
Address
parameter is an IP address, you can use this parameter to specify the mask of the IP address. - option String
- Optional. The value of this parameter is based on the value of the HbaItem.N.Method parameter. In this topic, LDAP is used as an example. You must configure this parameter. For more information, see Authentication Methods.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.