1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. rds
  5. DdrInstance
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.rds.DdrInstance

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    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, Any]] = 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", "any" },
        },
        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.Map{
    		"string": pulumi.Any("any"),
    	},
    	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", "any"))
        .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=[alicloud.rds.DdrInstancePgHbaConfArgs(
            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=[alicloud.rds.DdrInstanceParameterArgs(
            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": "any",
        },
        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: "any",
        },
        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: any
        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

    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.

    EngineVersion string
    Database version. Value options can refer to the latest docs CreateDdrInstance EngineVersion.
    InstanceStorage 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.

    InstanceType string

    DB Instance type.

    NOTE: When storage_auto_scale="Enable", do not perform instance_storage check. when storage_auto_scale="Disable", if the instance itself instance_storagehas changed. You need to manually revise the instance_storage in the template value.

    PaymentType string
    Valid values are Subscription, PayAsYouGo, Default to PayAsYouGo.
    RestoreType 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)
    AutoRenew bool
    Whether to renewal a DB instance automatically or not. It is valid when payment_type is Subscription. Default to false.
    AutoRenewPeriod int
    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.
    AutoUpgradeMinorVersion string

    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.

    BackupSetId string
    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.
    CaType 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
    ClientCaCert string
    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.
    ClientCaEnabled int
    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
    ClientCertRevocationList string
    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.
    ClientCrlEnabled int
    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
    ConnectionStringPrefix string

    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 ~!#%^&*=+|{};:'",<>/?

    DbInstanceIpArrayAttribute string

    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).

    DbInstanceIpArrayName string

    The name of the IP address whitelist. Default value: Default.

    NOTE: A maximum of 200 IP address whitelists can be configured for each instance.

    DbInstanceStorageType string

    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.

    DeletionProtection bool

    The switch of delete protection. Valid values:

    • true: delete protect.
    • false: no delete protect.

    NOTE: deletion_protection is valid only when attribute payment_type is set to PayAsYouGo, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.

    EffectiveTime 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.
    EncryptionKey string
    The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
    ForceRestart bool
    Set it to true to make some parameter efficient when modifying them. Default to false.
    FreshWhiteListReadins string
    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.
    HaConfig 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.

    InstanceName string
    The name of DB instance. It a string of 2 to 256 characters.
    MaintainTime string
    Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
    ManualHaTime string

    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.

    ModifyMode 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.
    MonitoringPeriod int
    The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
    Parameters List<Pulumi.AliCloud.Rds.Inputs.DdrInstanceParameter>
    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 running pulumi up will not effect the resource.

    PgHbaConfs List<Pulumi.AliCloud.Rds.Inputs.DdrInstancePgHbaConf>
    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.
    PrivateIpAddress string
    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.
    ReleasedKeepPolicy string

    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.

    ReplicationAcl 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)
    ResourceGroupId string
    The ID of resource group which the DB instance belongs.
    RestoreTime 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.
    SecurityGroupIds List<string>
    ) The list IDs to join ECS Security Group. At most supports three security groups.
    SecurityIpMode string
    Valid values are normal, safety, Default to normal. support safety switch to high security access mode.
    SecurityIpType string
    The type of IP address in the IP address whitelist.
    SecurityIps 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]).
    ServerCert 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.
    ServerKey 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.
    SourceDbInstanceName string
    The ID of the source instance if you want to restore data to a point in time.
    SourceRegion string
    The region ID of the source instance if you want to restore data to a point in time.
    SqlCollectorConfigValue int
    The sql collector keep time of the instance. Valid values are 30, 180, 365, 1095, 1825, Default to 30.
    SqlCollectorStatus string
    The sql collector status of the instance. Valid values are Enabled, Disabled, Default to Disabled.
    SslAction 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.
    StorageAutoScale string

    Automatic storage space expansion switch. Valid values:

    • Enable
    • Disable

    NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.

    StorageThreshold 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.

    StorageUpperBound int

    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.

    SwitchTime 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.

    Tags Dictionary<string, object>
    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.
    TargetMinorVersion string

    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.

    TcpConnectionType string
    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.
    TdeStatus string
    The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
    UpgradeDbInstanceKernelVersion bool
    Whether to upgrade a minor version of the kernel. Valid values:

    • true: upgrade
    • false: not to upgrade
    UpgradeTime 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.
    VpcId 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.

    VswitchId string
    The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
    WhitelistNetworkType string

    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.

    ZoneId 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 setting multi to "true" in the data source alicloud.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.

    EngineVersion string
    Database version. Value options can refer to the latest docs CreateDdrInstance EngineVersion.
    InstanceStorage 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.

    InstanceType string

    DB Instance type.

    NOTE: When storage_auto_scale="Enable", do not perform instance_storage check. when storage_auto_scale="Disable", if the instance itself instance_storagehas changed. You need to manually revise the instance_storage in the template value.

    PaymentType string
    Valid values are Subscription, PayAsYouGo, Default to PayAsYouGo.
    RestoreType 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)
    AutoRenew bool
    Whether to renewal a DB instance automatically or not. It is valid when payment_type is Subscription. Default to false.
    AutoRenewPeriod int
    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.
    AutoUpgradeMinorVersion string

    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.

    BackupSetId string
    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.
    CaType 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
    ClientCaCert string
    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.
    ClientCaEnabled int
    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
    ClientCertRevocationList string
    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.
    ClientCrlEnabled int
    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
    ConnectionStringPrefix string

    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 ~!#%^&*=+|{};:'",<>/?

    DbInstanceIpArrayAttribute string

    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).

    DbInstanceIpArrayName string

    The name of the IP address whitelist. Default value: Default.

    NOTE: A maximum of 200 IP address whitelists can be configured for each instance.

    DbInstanceStorageType string

    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.

    DeletionProtection bool

    The switch of delete protection. Valid values:

    • true: delete protect.
    • false: no delete protect.

    NOTE: deletion_protection is valid only when attribute payment_type is set to PayAsYouGo, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.

    EffectiveTime 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.
    EncryptionKey string
    The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
    ForceRestart bool
    Set it to true to make some parameter efficient when modifying them. Default to false.
    FreshWhiteListReadins string
    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.
    HaConfig 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.

    InstanceName string
    The name of DB instance. It a string of 2 to 256 characters.
    MaintainTime string
    Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
    ManualHaTime string

    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.

    ModifyMode 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.
    MonitoringPeriod int
    The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
    Parameters []DdrInstanceParameterArgs
    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 running pulumi up will not effect the resource.

    PgHbaConfs []DdrInstancePgHbaConfArgs
    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.
    PrivateIpAddress string
    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.
    ReleasedKeepPolicy string

    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.

    ReplicationAcl 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)
    ResourceGroupId string
    The ID of resource group which the DB instance belongs.
    RestoreTime 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.
    SecurityGroupIds []string
    ) The list IDs to join ECS Security Group. At most supports three security groups.
    SecurityIpMode string
    Valid values are normal, safety, Default to normal. support safety switch to high security access mode.
    SecurityIpType string
    The type of IP address in the IP address whitelist.
    SecurityIps []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]).
    ServerCert 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.
    ServerKey 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.
    SourceDbInstanceName string
    The ID of the source instance if you want to restore data to a point in time.
    SourceRegion string
    The region ID of the source instance if you want to restore data to a point in time.
    SqlCollectorConfigValue int
    The sql collector keep time of the instance. Valid values are 30, 180, 365, 1095, 1825, Default to 30.
    SqlCollectorStatus string
    The sql collector status of the instance. Valid values are Enabled, Disabled, Default to Disabled.
    SslAction 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.
    StorageAutoScale string

    Automatic storage space expansion switch. Valid values:

    • Enable
    • Disable

    NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.

    StorageThreshold 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.

    StorageUpperBound int

    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.

    SwitchTime 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.

    Tags map[string]interface{}
    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.
    TargetMinorVersion string

    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.

    TcpConnectionType string
    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.
    TdeStatus string
    The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
    UpgradeDbInstanceKernelVersion bool
    Whether to upgrade a minor version of the kernel. Valid values:

    • true: upgrade
    • false: not to upgrade
    UpgradeTime 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.
    VpcId 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.

    VswitchId string
    The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
    WhitelistNetworkType string

    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.

    ZoneId 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 setting multi to "true" in the data source alicloud.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.

    engineVersion String
    Database version. Value options can refer to the latest docs CreateDdrInstance EngineVersion.
    instanceStorage 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.

    instanceType String

    DB Instance type.

    NOTE: When storage_auto_scale="Enable", do not perform instance_storage check. when storage_auto_scale="Disable", if the instance itself instance_storagehas changed. You need to manually revise the instance_storage in the template value.

    paymentType String
    Valid values are Subscription, PayAsYouGo, Default to PayAsYouGo.
    restoreType 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)
    autoRenew Boolean
    Whether to renewal a DB instance automatically or not. It is valid when payment_type is Subscription. Default to false.
    autoRenewPeriod Integer
    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.
    autoUpgradeMinorVersion String

    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.

    backupSetId String
    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.
    caType 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
    clientCaCert String
    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.
    clientCaEnabled Integer
    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
    clientCertRevocationList String
    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.
    clientCrlEnabled Integer
    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
    connectionStringPrefix String

    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 ~!#%^&*=+|{};:'",<>/?

    dbInstanceIpArrayAttribute String

    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).

    dbInstanceIpArrayName String

    The name of the IP address whitelist. Default value: Default.

    NOTE: A maximum of 200 IP address whitelists can be configured for each instance.

    dbInstanceStorageType String

    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.

    deletionProtection Boolean

    The switch of delete protection. Valid values:

    • true: delete protect.
    • false: no delete protect.

    NOTE: deletion_protection is valid only when attribute payment_type is set to PayAsYouGo, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.

    effectiveTime 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.
    encryptionKey String
    The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
    forceRestart Boolean
    Set it to true to make some parameter efficient when modifying them. Default to false.
    freshWhiteListReadins String
    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.
    haConfig 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.

    instanceName String
    The name of DB instance. It a string of 2 to 256 characters.
    maintainTime String
    Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
    manualHaTime String

    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.

    modifyMode 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.
    monitoringPeriod Integer
    The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
    parameters List<DdrInstanceParameter>
    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 running pulumi up will not effect the resource.

    pgHbaConfs List<DdrInstancePgHbaConf>
    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.
    privateIpAddress String
    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.
    releasedKeepPolicy String

    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.

    replicationAcl 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)
    resourceGroupId String
    The ID of resource group which the DB instance belongs.
    restoreTime 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.
    securityGroupIds List<String>
    ) The list IDs to join ECS Security Group. At most supports three security groups.
    securityIpMode String
    Valid values are normal, safety, Default to normal. support safety switch to high security access mode.
    securityIpType String
    The type of IP address in the IP address whitelist.
    securityIps 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]).
    serverCert 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.
    serverKey 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.
    sourceDbInstanceName String
    The ID of the source instance if you want to restore data to a point in time.
    sourceRegion String
    The region ID of the source instance if you want to restore data to a point in time.
    sqlCollectorConfigValue Integer
    The sql collector keep time of the instance. Valid values are 30, 180, 365, 1095, 1825, Default to 30.
    sqlCollectorStatus String
    The sql collector status of the instance. Valid values are Enabled, Disabled, Default to Disabled.
    sslAction 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.
    storageAutoScale String

    Automatic storage space expansion switch. Valid values:

    • Enable
    • Disable

    NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.

    storageThreshold 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.

    storageUpperBound Integer

    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.

    switchTime 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.

    tags Map<String,Object>
    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.
    targetMinorVersion String

    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.

    tcpConnectionType String
    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.
    tdeStatus String
    The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
    upgradeDbInstanceKernelVersion Boolean
    Whether to upgrade a minor version of the kernel. Valid values:

    • true: upgrade
    • false: not to upgrade
    upgradeTime 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.
    vpcId 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.

    vswitchId String
    The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
    whitelistNetworkType String

    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.

    zoneId 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 setting multi to "true" in the data source alicloud.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.

    engineVersion string
    Database version. Value options can refer to the latest docs CreateDdrInstance EngineVersion.
    instanceStorage 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.

    instanceType string

    DB Instance type.

    NOTE: When storage_auto_scale="Enable", do not perform instance_storage check. when storage_auto_scale="Disable", if the instance itself instance_storagehas changed. You need to manually revise the instance_storage in the template value.

    paymentType string
    Valid values are Subscription, PayAsYouGo, Default to PayAsYouGo.
    restoreType 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)
    autoRenew boolean
    Whether to renewal a DB instance automatically or not. It is valid when payment_type is Subscription. Default to false.
    autoRenewPeriod number
    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.
    autoUpgradeMinorVersion string

    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.

    backupSetId string
    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.
    caType 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
    clientCaCert string
    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.
    clientCaEnabled number
    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
    clientCertRevocationList string
    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.
    clientCrlEnabled number
    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
    connectionStringPrefix string

    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 ~!#%^&*=+|{};:'",<>/?

    dbInstanceIpArrayAttribute string

    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).

    dbInstanceIpArrayName string

    The name of the IP address whitelist. Default value: Default.

    NOTE: A maximum of 200 IP address whitelists can be configured for each instance.

    dbInstanceStorageType string

    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.

    deletionProtection boolean

    The switch of delete protection. Valid values:

    • true: delete protect.
    • false: no delete protect.

    NOTE: deletion_protection is valid only when attribute payment_type is set to PayAsYouGo, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.

    effectiveTime 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.
    encryptionKey string
    The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
    forceRestart boolean
    Set it to true to make some parameter efficient when modifying them. Default to false.
    freshWhiteListReadins string
    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.
    haConfig 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.

    instanceName string
    The name of DB instance. It a string of 2 to 256 characters.
    maintainTime string
    Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
    manualHaTime string

    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.

    modifyMode 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.
    monitoringPeriod number
    The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
    parameters DdrInstanceParameter[]
    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 running pulumi up will not effect the resource.

    pgHbaConfs DdrInstancePgHbaConf[]
    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.
    privateIpAddress string
    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.
    releasedKeepPolicy string

    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.

    replicationAcl 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)
    resourceGroupId string
    The ID of resource group which the DB instance belongs.
    restoreTime 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.
    securityGroupIds string[]
    ) The list IDs to join ECS Security Group. At most supports three security groups.
    securityIpMode string
    Valid values are normal, safety, Default to normal. support safety switch to high security access mode.
    securityIpType string
    The type of IP address in the IP address whitelist.
    securityIps 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]).
    serverCert 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.
    serverKey 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.
    sourceDbInstanceName string
    The ID of the source instance if you want to restore data to a point in time.
    sourceRegion string
    The region ID of the source instance if you want to restore data to a point in time.
    sqlCollectorConfigValue number
    The sql collector keep time of the instance. Valid values are 30, 180, 365, 1095, 1825, Default to 30.
    sqlCollectorStatus string
    The sql collector status of the instance. Valid values are Enabled, Disabled, Default to Disabled.
    sslAction 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.
    storageAutoScale string

    Automatic storage space expansion switch. Valid values:

    • Enable
    • Disable

    NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.

    storageThreshold 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.

    storageUpperBound number

    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.

    switchTime 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.

    tags {[key: string]: any}
    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.
    targetMinorVersion string

    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.

    tcpConnectionType string
    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.
    tdeStatus string
    The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
    upgradeDbInstanceKernelVersion boolean
    Whether to upgrade a minor version of the kernel. Valid values:

    • true: upgrade
    • false: not to upgrade
    upgradeTime 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.
    vpcId 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.

    vswitchId string
    The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
    whitelistNetworkType string

    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.

    zoneId 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 setting multi to "true" in the data source alicloud.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 perform instance_storage check. when storage_auto_scale="Disable", if the instance itself instance_storagehas changed. You need to manually revise the instance_storage in the template value.

    payment_type str
    Valid values are Subscription, PayAsYouGo, Default to PayAsYouGo.
    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 to false.
    auto_renew_period int
    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_minor_version str

    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_id str
    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_cert str
    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_enabled int
    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_revocation_list str
    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_enabled int
    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_prefix str

    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_ip_array_attribute str

    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_ip_array_name str

    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_storage_type str

    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 attribute payment_type is set to PayAsYouGo, 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_list_readins str
    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_time str

    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[DdrInstanceParameterArgs]
    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 running pulumi up will not effect the resource.

    pg_hba_confs Sequence[DdrInstancePgHbaConfArgs]
    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_address str
    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_policy str

    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_id str
    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_ids Sequence[str]
    ) The list IDs to join ECS Security Group. At most supports three security groups.
    security_ip_mode str
    Valid values are normal, safety, Default to normal. support safety switch to high security access mode.
    security_ip_type str
    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_instance_name str
    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_config_value int
    The sql collector keep time of the instance. Valid values are 30, 180, 365, 1095, 1825, Default to 30.
    sql_collector_status str
    The sql collector status of the instance. Valid values are Enabled, Disabled, Default to Disabled.
    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_scale str

    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_bound int

    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.

    tags Mapping[str, Any]
    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_version str

    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_type str
    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_instance_kernel_version bool
    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_type str

    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 setting multi to "true" in the data source alicloud.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.

    engineVersion String
    Database version. Value options can refer to the latest docs CreateDdrInstance EngineVersion.
    instanceStorage 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.

    instanceType String

    DB Instance type.

    NOTE: When storage_auto_scale="Enable", do not perform instance_storage check. when storage_auto_scale="Disable", if the instance itself instance_storagehas changed. You need to manually revise the instance_storage in the template value.

    paymentType String
    Valid values are Subscription, PayAsYouGo, Default to PayAsYouGo.
    restoreType 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)
    autoRenew Boolean
    Whether to renewal a DB instance automatically or not. It is valid when payment_type is Subscription. Default to false.
    autoRenewPeriod Number
    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.
    autoUpgradeMinorVersion String

    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.

    backupSetId String
    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.
    caType 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
    clientCaCert String
    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.
    clientCaEnabled Number
    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
    clientCertRevocationList String
    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.
    clientCrlEnabled Number
    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
    connectionStringPrefix String

    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 ~!#%^&*=+|{};:'",<>/?

    dbInstanceIpArrayAttribute String

    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).

    dbInstanceIpArrayName String

    The name of the IP address whitelist. Default value: Default.

    NOTE: A maximum of 200 IP address whitelists can be configured for each instance.

    dbInstanceStorageType String

    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.

    deletionProtection Boolean

    The switch of delete protection. Valid values:

    • true: delete protect.
    • false: no delete protect.

    NOTE: deletion_protection is valid only when attribute payment_type is set to PayAsYouGo, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.

    effectiveTime 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.
    encryptionKey String
    The key id of the KMS. Used for encrypting a disk if not null. Only for PostgreSQL, MySQL and SQLServer.
    forceRestart Boolean
    Set it to true to make some parameter efficient when modifying them. Default to false.
    freshWhiteListReadins String
    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.
    haConfig 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.

    instanceName String
    The name of DB instance. It a string of 2 to 256 characters.
    maintainTime String
    Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
    manualHaTime String

    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.

    modifyMode 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.
    monitoringPeriod 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 running pulumi up will not effect the resource.

    pgHbaConfs List<Property Map>
    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.
    privateIpAddress String
    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.
    releasedKeepPolicy String

    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.

    replicationAcl 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)
    resourceGroupId String
    The ID of resource group which the DB instance belongs.
    restoreTime 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.
    securityGroupIds List<String>
    ) The list IDs to join ECS Security Group. At most supports three security groups.
    securityIpMode String
    Valid values are normal, safety, Default to normal. support safety switch to high security access mode.
    securityIpType String
    The type of IP address in the IP address whitelist.
    securityIps 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]).
    serverCert 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.
    serverKey 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.
    sourceDbInstanceName String
    The ID of the source instance if you want to restore data to a point in time.
    sourceRegion String
    The region ID of the source instance if you want to restore data to a point in time.
    sqlCollectorConfigValue Number
    The sql collector keep time of the instance. Valid values are 30, 180, 365, 1095, 1825, Default to 30.
    sqlCollectorStatus String
    The sql collector status of the instance. Valid values are Enabled, Disabled, Default to Disabled.
    sslAction 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.
    storageAutoScale String

    Automatic storage space expansion switch. Valid values:

    • Enable
    • Disable

    NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.

    storageThreshold 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.

    storageUpperBound Number

    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.

    switchTime 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.

    tags Map<Any>
    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.
    targetMinorVersion String

    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.

    tcpConnectionType String
    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.
    tdeStatus String
    The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
    upgradeDbInstanceKernelVersion Boolean
    Whether to upgrade a minor version of the kernel. Valid values:

    • true: upgrade
    • false: not to upgrade
    upgradeTime 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.
    vpcId 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.

    vswitchId String
    The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
    whitelistNetworkType String

    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.

    zoneId 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 setting multi to "true" in the data source alicloud.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.
    ConnectionString string
    RDS database connection string.
    Id string
    The provider-assigned unique ID for this managed resource.
    SslStatus string
    Status of the SSL feature. Yes: SSL is turned on; No: SSL is turned off.
    ZoneIdSlaveA string
    The region ID of the secondary instance if you create a secondary instance.
    ZoneIdSlaveB string
    The region ID of the log instance if you create a log instance.
    Category string
    The RDS edition of the instance.
    ConnectionString string
    RDS database connection string.
    Id string
    The provider-assigned unique ID for this managed resource.
    SslStatus string
    Status of the SSL feature. Yes: SSL is turned on; No: SSL is turned off.
    ZoneIdSlaveA string
    The region ID of the secondary instance if you create a secondary instance.
    ZoneIdSlaveB string
    The region ID of the log instance if you create a log instance.
    category String
    The RDS edition of the instance.
    connectionString String
    RDS database connection string.
    id String
    The provider-assigned unique ID for this managed resource.
    sslStatus String
    Status of the SSL feature. Yes: SSL is turned on; No: SSL is turned off.
    zoneIdSlaveA String
    The region ID of the secondary instance if you create a secondary instance.
    zoneIdSlaveB String
    The region ID of the log instance if you create a log instance.
    category string
    The RDS edition of the instance.
    connectionString string
    RDS database connection string.
    id string
    The provider-assigned unique ID for this managed resource.
    sslStatus string
    Status of the SSL feature. Yes: SSL is turned on; No: SSL is turned off.
    zoneIdSlaveA string
    The region ID of the secondary instance if you create a secondary instance.
    zoneIdSlaveB string
    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_slave_a str
    The region ID of the secondary instance if you create a secondary instance.
    zone_id_slave_b str
    The region ID of the log instance if you create a log instance.
    category String
    The RDS edition of the instance.
    connectionString String
    RDS database connection string.
    id String
    The provider-assigned unique ID for this managed resource.
    sslStatus String
    Status of the SSL feature. Yes: SSL is turned on; No: SSL is turned off.
    zoneIdSlaveA String
    The region ID of the secondary instance if you create a secondary instance.
    zoneIdSlaveB String
    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, Any]] = 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.
    The following state arguments are supported:
    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)
    AutoRenew bool
    Whether to renewal a DB instance automatically or not. It is valid when payment_type is Subscription. Default to false.
    AutoRenewPeriod int
    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.
    AutoUpgradeMinorVersion string

    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.

    BackupSetId string
    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.
    CaType 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.
    ClientCaCert string
    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.
    ClientCaEnabled int
    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
    ClientCertRevocationList string
    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.
    ClientCrlEnabled int
    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
    ConnectionString string
    RDS database connection string.
    ConnectionStringPrefix string

    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 ~!#%^&*=+|{};:'",<>/?

    DbInstanceIpArrayAttribute string

    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).

    DbInstanceIpArrayName string

    The name of the IP address whitelist. Default value: Default.

    NOTE: A maximum of 200 IP address whitelists can be configured for each instance.

    DbInstanceStorageType string

    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.

    DeletionProtection bool

    The switch of delete protection. Valid values:

    • true: delete protect.
    • false: no delete protect.

    NOTE: deletion_protection is valid only when attribute payment_type is set to PayAsYouGo, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.

    EffectiveTime 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.
    EncryptionKey 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.

    EngineVersion string
    Database version. Value options can refer to the latest docs CreateDdrInstance EngineVersion.
    ForceRestart bool
    Set it to true to make some parameter efficient when modifying them. Default to false.
    FreshWhiteListReadins string
    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.
    HaConfig 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.

    InstanceName string
    The name of DB instance. It a string of 2 to 256 characters.
    InstanceStorage 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.

    InstanceType string

    DB Instance type.

    NOTE: When storage_auto_scale="Enable", do not perform instance_storage check. when storage_auto_scale="Disable", if the instance itself instance_storagehas changed. You need to manually revise the instance_storage in the template value.

    MaintainTime string
    Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
    ManualHaTime string

    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.

    ModifyMode 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.
    MonitoringPeriod int
    The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
    Parameters List<Pulumi.AliCloud.Rds.Inputs.DdrInstanceParameter>
    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.
    PaymentType string
    Valid values are Subscription, PayAsYouGo, Default to PayAsYouGo.
    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 running pulumi up will not effect the resource.

    PgHbaConfs List<Pulumi.AliCloud.Rds.Inputs.DdrInstancePgHbaConf>
    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.
    PrivateIpAddress string
    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.
    ReleasedKeepPolicy string

    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.

    ReplicationAcl 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)
    ResourceGroupId string
    The ID of resource group which the DB instance belongs.
    RestoreTime 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.
    RestoreType 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.
    SecurityGroupIds List<string>
    ) The list IDs to join ECS Security Group. At most supports three security groups.
    SecurityIpMode string
    Valid values are normal, safety, Default to normal. support safety switch to high security access mode.
    SecurityIpType string
    The type of IP address in the IP address whitelist.
    SecurityIps 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]).
    ServerCert 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.
    ServerKey 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.
    SourceDbInstanceName string
    The ID of the source instance if you want to restore data to a point in time.
    SourceRegion string
    The region ID of the source instance if you want to restore data to a point in time.
    SqlCollectorConfigValue int
    The sql collector keep time of the instance. Valid values are 30, 180, 365, 1095, 1825, Default to 30.
    SqlCollectorStatus string
    The sql collector status of the instance. Valid values are Enabled, Disabled, Default to Disabled.
    SslAction 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.
    SslStatus string
    Status of the SSL feature. Yes: SSL is turned on; No: SSL is turned off.
    StorageAutoScale string

    Automatic storage space expansion switch. Valid values:

    • Enable
    • Disable

    NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.

    StorageThreshold 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.

    StorageUpperBound int

    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.

    SwitchTime 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.

    Tags Dictionary<string, object>
    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.
    TargetMinorVersion string

    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.

    TcpConnectionType string
    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.
    TdeStatus string
    The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
    UpgradeDbInstanceKernelVersion bool
    Whether to upgrade a minor version of the kernel. Valid values:

    • true: upgrade
    • false: not to upgrade
    UpgradeTime 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.
    VpcId 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.

    VswitchId string
    The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
    WhitelistNetworkType string

    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.

    ZoneId 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 setting multi to "true" in the data source alicloud.getZones.
    ZoneIdSlaveA string
    The region ID of the secondary instance if you create a secondary instance.
    ZoneIdSlaveB string
    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)
    AutoRenew bool
    Whether to renewal a DB instance automatically or not. It is valid when payment_type is Subscription. Default to false.
    AutoRenewPeriod int
    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.
    AutoUpgradeMinorVersion string

    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.

    BackupSetId string
    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.
    CaType 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.
    ClientCaCert string
    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.
    ClientCaEnabled int
    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
    ClientCertRevocationList string
    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.
    ClientCrlEnabled int
    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
    ConnectionString string
    RDS database connection string.
    ConnectionStringPrefix string

    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 ~!#%^&*=+|{};:'",<>/?

    DbInstanceIpArrayAttribute string

    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).

    DbInstanceIpArrayName string

    The name of the IP address whitelist. Default value: Default.

    NOTE: A maximum of 200 IP address whitelists can be configured for each instance.

    DbInstanceStorageType string

    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.

    DeletionProtection bool

    The switch of delete protection. Valid values:

    • true: delete protect.
    • false: no delete protect.

    NOTE: deletion_protection is valid only when attribute payment_type is set to PayAsYouGo, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.

    EffectiveTime 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.
    EncryptionKey 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.

    EngineVersion string
    Database version. Value options can refer to the latest docs CreateDdrInstance EngineVersion.
    ForceRestart bool
    Set it to true to make some parameter efficient when modifying them. Default to false.
    FreshWhiteListReadins string
    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.
    HaConfig 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.

    InstanceName string
    The name of DB instance. It a string of 2 to 256 characters.
    InstanceStorage 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.

    InstanceType string

    DB Instance type.

    NOTE: When storage_auto_scale="Enable", do not perform instance_storage check. when storage_auto_scale="Disable", if the instance itself instance_storagehas changed. You need to manually revise the instance_storage in the template value.

    MaintainTime string
    Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
    ManualHaTime string

    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.

    ModifyMode 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.
    MonitoringPeriod int
    The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
    Parameters []DdrInstanceParameterArgs
    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.
    PaymentType string
    Valid values are Subscription, PayAsYouGo, Default to PayAsYouGo.
    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 running pulumi up will not effect the resource.

    PgHbaConfs []DdrInstancePgHbaConfArgs
    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.
    PrivateIpAddress string
    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.
    ReleasedKeepPolicy string

    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.

    ReplicationAcl 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)
    ResourceGroupId string
    The ID of resource group which the DB instance belongs.
    RestoreTime 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.
    RestoreType 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.
    SecurityGroupIds []string
    ) The list IDs to join ECS Security Group. At most supports three security groups.
    SecurityIpMode string
    Valid values are normal, safety, Default to normal. support safety switch to high security access mode.
    SecurityIpType string
    The type of IP address in the IP address whitelist.
    SecurityIps []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]).
    ServerCert 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.
    ServerKey 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.
    SourceDbInstanceName string
    The ID of the source instance if you want to restore data to a point in time.
    SourceRegion string
    The region ID of the source instance if you want to restore data to a point in time.
    SqlCollectorConfigValue int
    The sql collector keep time of the instance. Valid values are 30, 180, 365, 1095, 1825, Default to 30.
    SqlCollectorStatus string
    The sql collector status of the instance. Valid values are Enabled, Disabled, Default to Disabled.
    SslAction 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.
    SslStatus string
    Status of the SSL feature. Yes: SSL is turned on; No: SSL is turned off.
    StorageAutoScale string

    Automatic storage space expansion switch. Valid values:

    • Enable
    • Disable

    NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.

    StorageThreshold 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.

    StorageUpperBound int

    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.

    SwitchTime 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.

    Tags map[string]interface{}
    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.
    TargetMinorVersion string

    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.

    TcpConnectionType string
    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.
    TdeStatus string
    The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
    UpgradeDbInstanceKernelVersion bool
    Whether to upgrade a minor version of the kernel. Valid values:

    • true: upgrade
    • false: not to upgrade
    UpgradeTime 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.
    VpcId 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.

    VswitchId string
    The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
    WhitelistNetworkType string

    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.

    ZoneId 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 setting multi to "true" in the data source alicloud.getZones.
    ZoneIdSlaveA string
    The region ID of the secondary instance if you create a secondary instance.
    ZoneIdSlaveB string
    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)
    autoRenew Boolean
    Whether to renewal a DB instance automatically or not. It is valid when payment_type is Subscription. Default to false.
    autoRenewPeriod Integer
    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.
    autoUpgradeMinorVersion String

    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.

    backupSetId String
    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.
    caType 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.
    clientCaCert String
    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.
    clientCaEnabled Integer
    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
    clientCertRevocationList String
    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.
    clientCrlEnabled Integer
    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
    connectionString String
    RDS database connection string.
    connectionStringPrefix String

    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 ~!#%^&*=+|{};:'",<>/?

    dbInstanceIpArrayAttribute String

    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).

    dbInstanceIpArrayName String

    The name of the IP address whitelist. Default value: Default.

    NOTE: A maximum of 200 IP address whitelists can be configured for each instance.

    dbInstanceStorageType String

    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.

    deletionProtection Boolean

    The switch of delete protection. Valid values:

    • true: delete protect.
    • false: no delete protect.

    NOTE: deletion_protection is valid only when attribute payment_type is set to PayAsYouGo, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.

    effectiveTime 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.
    encryptionKey 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.

    engineVersion String
    Database version. Value options can refer to the latest docs CreateDdrInstance EngineVersion.
    forceRestart Boolean
    Set it to true to make some parameter efficient when modifying them. Default to false.
    freshWhiteListReadins String
    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.
    haConfig 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.

    instanceName String
    The name of DB instance. It a string of 2 to 256 characters.
    instanceStorage 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.

    instanceType String

    DB Instance type.

    NOTE: When storage_auto_scale="Enable", do not perform instance_storage check. when storage_auto_scale="Disable", if the instance itself instance_storagehas changed. You need to manually revise the instance_storage in the template value.

    maintainTime String
    Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
    manualHaTime String

    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.

    modifyMode 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.
    monitoringPeriod Integer
    The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
    parameters List<DdrInstanceParameter>
    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.
    paymentType String
    Valid values are Subscription, PayAsYouGo, Default to PayAsYouGo.
    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 running pulumi up will not effect the resource.

    pgHbaConfs List<DdrInstancePgHbaConf>
    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.
    privateIpAddress String
    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.
    releasedKeepPolicy String

    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.

    replicationAcl 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)
    resourceGroupId String
    The ID of resource group which the DB instance belongs.
    restoreTime 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.
    restoreType 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.
    securityGroupIds List<String>
    ) The list IDs to join ECS Security Group. At most supports three security groups.
    securityIpMode String
    Valid values are normal, safety, Default to normal. support safety switch to high security access mode.
    securityIpType String
    The type of IP address in the IP address whitelist.
    securityIps 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]).
    serverCert 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.
    serverKey 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.
    sourceDbInstanceName String
    The ID of the source instance if you want to restore data to a point in time.
    sourceRegion String
    The region ID of the source instance if you want to restore data to a point in time.
    sqlCollectorConfigValue Integer
    The sql collector keep time of the instance. Valid values are 30, 180, 365, 1095, 1825, Default to 30.
    sqlCollectorStatus String
    The sql collector status of the instance. Valid values are Enabled, Disabled, Default to Disabled.
    sslAction 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.
    sslStatus String
    Status of the SSL feature. Yes: SSL is turned on; No: SSL is turned off.
    storageAutoScale String

    Automatic storage space expansion switch. Valid values:

    • Enable
    • Disable

    NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.

    storageThreshold 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.

    storageUpperBound Integer

    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.

    switchTime 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.

    tags Map<String,Object>
    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.
    targetMinorVersion String

    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.

    tcpConnectionType String
    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.
    tdeStatus String
    The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
    upgradeDbInstanceKernelVersion Boolean
    Whether to upgrade a minor version of the kernel. Valid values:

    • true: upgrade
    • false: not to upgrade
    upgradeTime 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.
    vpcId 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.

    vswitchId String
    The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
    whitelistNetworkType String

    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.

    zoneId 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 setting multi to "true" in the data source alicloud.getZones.
    zoneIdSlaveA String
    The region ID of the secondary instance if you create a secondary instance.
    zoneIdSlaveB String
    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)
    autoRenew boolean
    Whether to renewal a DB instance automatically or not. It is valid when payment_type is Subscription. Default to false.
    autoRenewPeriod number
    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.
    autoUpgradeMinorVersion string

    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.

    backupSetId string
    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.
    caType 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.
    clientCaCert string
    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.
    clientCaEnabled number
    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
    clientCertRevocationList string
    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.
    clientCrlEnabled number
    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
    connectionString string
    RDS database connection string.
    connectionStringPrefix string

    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 ~!#%^&*=+|{};:'",<>/?

    dbInstanceIpArrayAttribute string

    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).

    dbInstanceIpArrayName string

    The name of the IP address whitelist. Default value: Default.

    NOTE: A maximum of 200 IP address whitelists can be configured for each instance.

    dbInstanceStorageType string

    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.

    deletionProtection boolean

    The switch of delete protection. Valid values:

    • true: delete protect.
    • false: no delete protect.

    NOTE: deletion_protection is valid only when attribute payment_type is set to PayAsYouGo, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.

    effectiveTime 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.
    encryptionKey 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.

    engineVersion string
    Database version. Value options can refer to the latest docs CreateDdrInstance EngineVersion.
    forceRestart boolean
    Set it to true to make some parameter efficient when modifying them. Default to false.
    freshWhiteListReadins string
    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.
    haConfig 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.

    instanceName string
    The name of DB instance. It a string of 2 to 256 characters.
    instanceStorage 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.

    instanceType string

    DB Instance type.

    NOTE: When storage_auto_scale="Enable", do not perform instance_storage check. when storage_auto_scale="Disable", if the instance itself instance_storagehas changed. You need to manually revise the instance_storage in the template value.

    maintainTime string
    Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
    manualHaTime string

    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.

    modifyMode 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.
    monitoringPeriod number
    The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
    parameters DdrInstanceParameter[]
    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.
    paymentType string
    Valid values are Subscription, PayAsYouGo, Default to PayAsYouGo.
    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 running pulumi up will not effect the resource.

    pgHbaConfs DdrInstancePgHbaConf[]
    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.
    privateIpAddress string
    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.
    releasedKeepPolicy string

    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.

    replicationAcl 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)
    resourceGroupId string
    The ID of resource group which the DB instance belongs.
    restoreTime 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.
    restoreType 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.
    securityGroupIds string[]
    ) The list IDs to join ECS Security Group. At most supports three security groups.
    securityIpMode string
    Valid values are normal, safety, Default to normal. support safety switch to high security access mode.
    securityIpType string
    The type of IP address in the IP address whitelist.
    securityIps 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]).
    serverCert 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.
    serverKey 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.
    sourceDbInstanceName string
    The ID of the source instance if you want to restore data to a point in time.
    sourceRegion string
    The region ID of the source instance if you want to restore data to a point in time.
    sqlCollectorConfigValue number
    The sql collector keep time of the instance. Valid values are 30, 180, 365, 1095, 1825, Default to 30.
    sqlCollectorStatus string
    The sql collector status of the instance. Valid values are Enabled, Disabled, Default to Disabled.
    sslAction 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.
    sslStatus string
    Status of the SSL feature. Yes: SSL is turned on; No: SSL is turned off.
    storageAutoScale string

    Automatic storage space expansion switch. Valid values:

    • Enable
    • Disable

    NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.

    storageThreshold 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.

    storageUpperBound number

    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.

    switchTime 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.

    tags {[key: string]: any}
    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.
    targetMinorVersion string

    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.

    tcpConnectionType string
    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.
    tdeStatus string
    The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
    upgradeDbInstanceKernelVersion boolean
    Whether to upgrade a minor version of the kernel. Valid values:

    • true: upgrade
    • false: not to upgrade
    upgradeTime 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.
    vpcId 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.

    vswitchId string
    The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
    whitelistNetworkType string

    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.

    zoneId 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 setting multi to "true" in the data source alicloud.getZones.
    zoneIdSlaveA string
    The region ID of the secondary instance if you create a secondary instance.
    zoneIdSlaveB string
    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 to false.
    auto_renew_period int
    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_minor_version str

    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_id str
    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_cert str
    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_enabled int
    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_revocation_list str
    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_enabled int
    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_prefix str

    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_ip_array_attribute str

    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_ip_array_name str

    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_storage_type str

    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 attribute payment_type is set to PayAsYouGo, 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_list_readins str
    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 perform instance_storage check. when storage_auto_scale="Disable", if the instance itself instance_storagehas changed. You need to manually revise the instance_storage in the template value.

    maintain_time str
    Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
    manual_ha_time str

    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[DdrInstanceParameterArgs]
    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 to PayAsYouGo.
    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 running pulumi up will not effect the resource.

    pg_hba_confs Sequence[DdrInstancePgHbaConfArgs]
    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_address str
    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_policy str

    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_id str
    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_ids Sequence[str]
    ) The list IDs to join ECS Security Group. At most supports three security groups.
    security_ip_mode str
    Valid values are normal, safety, Default to normal. support safety switch to high security access mode.
    security_ip_type str
    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_instance_name str
    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_config_value int
    The sql collector keep time of the instance. Valid values are 30, 180, 365, 1095, 1825, Default to 30.
    sql_collector_status str
    The sql collector status of the instance. Valid values are Enabled, Disabled, Default to Disabled.
    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_scale str

    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_bound int

    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.

    tags Mapping[str, Any]
    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_version str

    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_type str
    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_instance_kernel_version bool
    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_type str

    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 setting multi to "true" in the data source alicloud.getZones.
    zone_id_slave_a str
    The region ID of the secondary instance if you create a secondary instance.
    zone_id_slave_b str
    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)
    autoRenew Boolean
    Whether to renewal a DB instance automatically or not. It is valid when payment_type is Subscription. Default to false.
    autoRenewPeriod Number
    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.
    autoUpgradeMinorVersion String

    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.

    backupSetId String
    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.
    caType 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.
    clientCaCert String
    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.
    clientCaEnabled Number
    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
    clientCertRevocationList String
    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.
    clientCrlEnabled Number
    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
    connectionString String
    RDS database connection string.
    connectionStringPrefix String

    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 ~!#%^&*=+|{};:'",<>/?

    dbInstanceIpArrayAttribute String

    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).

    dbInstanceIpArrayName String

    The name of the IP address whitelist. Default value: Default.

    NOTE: A maximum of 200 IP address whitelists can be configured for each instance.

    dbInstanceStorageType String

    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.

    deletionProtection Boolean

    The switch of delete protection. Valid values:

    • true: delete protect.
    • false: no delete protect.

    NOTE: deletion_protection is valid only when attribute payment_type is set to PayAsYouGo, supported engine type: MySQL, PostgreSQL, MariaDB, MSSQL.

    effectiveTime 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.
    encryptionKey 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.

    engineVersion String
    Database version. Value options can refer to the latest docs CreateDdrInstance EngineVersion.
    forceRestart Boolean
    Set it to true to make some parameter efficient when modifying them. Default to false.
    freshWhiteListReadins String
    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.
    haConfig 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.

    instanceName String
    The name of DB instance. It a string of 2 to 256 characters.
    instanceStorage 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.

    instanceType String

    DB Instance type.

    NOTE: When storage_auto_scale="Enable", do not perform instance_storage check. when storage_auto_scale="Disable", if the instance itself instance_storagehas changed. You need to manually revise the instance_storage in the template value.

    maintainTime String
    Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
    manualHaTime String

    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.

    modifyMode 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.
    monitoringPeriod 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.
    paymentType String
    Valid values are Subscription, PayAsYouGo, Default to PayAsYouGo.
    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 running pulumi up will not effect the resource.

    pgHbaConfs List<Property Map>
    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.
    privateIpAddress String
    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.
    releasedKeepPolicy String

    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.

    replicationAcl 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)
    resourceGroupId String
    The ID of resource group which the DB instance belongs.
    restoreTime 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.
    restoreType 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.
    securityGroupIds List<String>
    ) The list IDs to join ECS Security Group. At most supports three security groups.
    securityIpMode String
    Valid values are normal, safety, Default to normal. support safety switch to high security access mode.
    securityIpType String
    The type of IP address in the IP address whitelist.
    securityIps 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]).
    serverCert 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.
    serverKey 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.
    sourceDbInstanceName String
    The ID of the source instance if you want to restore data to a point in time.
    sourceRegion String
    The region ID of the source instance if you want to restore data to a point in time.
    sqlCollectorConfigValue Number
    The sql collector keep time of the instance. Valid values are 30, 180, 365, 1095, 1825, Default to 30.
    sqlCollectorStatus String
    The sql collector status of the instance. Valid values are Enabled, Disabled, Default to Disabled.
    sslAction 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.
    sslStatus String
    Status of the SSL feature. Yes: SSL is turned on; No: SSL is turned off.
    storageAutoScale String

    Automatic storage space expansion switch. Valid values:

    • Enable
    • Disable

    NOTE: This parameter only takes effect when the StorageAutoScale parameter is set to Enable.

    storageThreshold 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.

    storageUpperBound Number

    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.

    switchTime 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.

    tags Map<Any>
    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.
    targetMinorVersion String

    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.

    tcpConnectionType String
    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.
    tdeStatus String
    The TDE(Transparent Data Encryption) status. See more engine and engineVersion limitation.
    upgradeDbInstanceKernelVersion Boolean
    Whether to upgrade a minor version of the kernel. Valid values:

    • true: upgrade
    • false: not to upgrade
    upgradeTime 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.
    vpcId 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.

    vswitchId String
    The virtual switch ID to launch DB instances in one VPC. If there are multiple vswitches, separate them with commas.
    whitelistNetworkType String

    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.

    zoneId 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 setting multi to "true" in the data source alicloud.getZones.
    zoneIdSlaveA String
    The region ID of the secondary instance if you create a secondary instance.
    zoneIdSlaveB String
    The region ID of the log instance if you create a log instance.

    Supporting Types

    DdrInstanceParameter, DdrInstanceParameterArgs

    Name string
    The parameter name.
    Value string
    The parameter value.
    Name string
    The parameter name.
    Value string
    The parameter value.
    name String
    The parameter name.
    value String
    The parameter value.
    name string
    The parameter name.
    value string
    The parameter value.
    name str
    The parameter name.
    value str
    The parameter value.
    name String
    The parameter name.
    value String
    The parameter value.

    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.
    PriorityId 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.
    PriorityId 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.
    priorityId 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.
    priorityId 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.
    priorityId 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.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi