1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. RdsInstanceV3
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.RdsInstanceV3

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manage RDS instance resource within FlexibleEngine.

    Example Usage

    create a single db instance

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
    const exampleSubnet = new flexibleengine.VpcSubnetV1("exampleSubnet", {
        cidr: "192.168.0.0/24",
        gatewayIp: "192.168.0.1",
        vpcId: exampleVpc.vpcV1Id,
    });
    const exampleSecgroup = new flexibleengine.NetworkingSecgroupV2("exampleSecgroup", {description: "terraform security group acceptance test"});
    const instance = new flexibleengine.RdsInstanceV3("instance", {
        flavor: "rds.pg.s3.medium.4",
        availabilityZones: [_var.primary_az],
        securityGroupId: exampleSecgroup.networkingSecgroupV2Id,
        vpcId: exampleVpc.vpcV1Id,
        subnetId: exampleSubnet.vpcSubnetV1Id,
        db: {
            type: "PostgreSQL",
            version: "11",
            password: _var.db_password,
            port: 8635,
        },
        volume: {
            type: "COMMON",
            size: 100,
        },
        backupStrategy: {
            startTime: "08:00-09:00",
            keepDays: 1,
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
    example_subnet = flexibleengine.VpcSubnetV1("exampleSubnet",
        cidr="192.168.0.0/24",
        gateway_ip="192.168.0.1",
        vpc_id=example_vpc.vpc_v1_id)
    example_secgroup = flexibleengine.NetworkingSecgroupV2("exampleSecgroup", description="terraform security group acceptance test")
    instance = flexibleengine.RdsInstanceV3("instance",
        flavor="rds.pg.s3.medium.4",
        availability_zones=[var["primary_az"]],
        security_group_id=example_secgroup.networking_secgroup_v2_id,
        vpc_id=example_vpc.vpc_v1_id,
        subnet_id=example_subnet.vpc_subnet_v1_id,
        db={
            "type": "PostgreSQL",
            "version": "11",
            "password": var["db_password"],
            "port": 8635,
        },
        volume={
            "type": "COMMON",
            "size": 100,
        },
        backup_strategy={
            "start_time": "08:00-09:00",
            "keep_days": 1,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
    			Cidr: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSubnet, err := flexibleengine.NewVpcSubnetV1(ctx, "exampleSubnet", &flexibleengine.VpcSubnetV1Args{
    			Cidr:      pulumi.String("192.168.0.0/24"),
    			GatewayIp: pulumi.String("192.168.0.1"),
    			VpcId:     exampleVpc.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		exampleSecgroup, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "exampleSecgroup", &flexibleengine.NetworkingSecgroupV2Args{
    			Description: pulumi.String("terraform security group acceptance test"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewRdsInstanceV3(ctx, "instance", &flexibleengine.RdsInstanceV3Args{
    			Flavor: pulumi.String("rds.pg.s3.medium.4"),
    			AvailabilityZones: pulumi.StringArray{
    				_var.Primary_az,
    			},
    			SecurityGroupId: exampleSecgroup.NetworkingSecgroupV2Id,
    			VpcId:           exampleVpc.VpcV1Id,
    			SubnetId:        exampleSubnet.VpcSubnetV1Id,
    			Db: &flexibleengine.RdsInstanceV3DbArgs{
    				Type:     pulumi.String("PostgreSQL"),
    				Version:  pulumi.String("11"),
    				Password: pulumi.Any(_var.Db_password),
    				Port:     pulumi.Float64(8635),
    			},
    			Volume: &flexibleengine.RdsInstanceV3VolumeArgs{
    				Type: pulumi.String("COMMON"),
    				Size: pulumi.Float64(100),
    			},
    			BackupStrategy: &flexibleengine.RdsInstanceV3BackupStrategyArgs{
    				StartTime: pulumi.String("08:00-09:00"),
    				KeepDays:  pulumi.Float64(1),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
        {
            Cidr = "192.168.0.0/16",
        });
    
        var exampleSubnet = new Flexibleengine.VpcSubnetV1("exampleSubnet", new()
        {
            Cidr = "192.168.0.0/24",
            GatewayIp = "192.168.0.1",
            VpcId = exampleVpc.VpcV1Id,
        });
    
        var exampleSecgroup = new Flexibleengine.NetworkingSecgroupV2("exampleSecgroup", new()
        {
            Description = "terraform security group acceptance test",
        });
    
        var instance = new Flexibleengine.RdsInstanceV3("instance", new()
        {
            Flavor = "rds.pg.s3.medium.4",
            AvailabilityZones = new[]
            {
                @var.Primary_az,
            },
            SecurityGroupId = exampleSecgroup.NetworkingSecgroupV2Id,
            VpcId = exampleVpc.VpcV1Id,
            SubnetId = exampleSubnet.VpcSubnetV1Id,
            Db = new Flexibleengine.Inputs.RdsInstanceV3DbArgs
            {
                Type = "PostgreSQL",
                Version = "11",
                Password = @var.Db_password,
                Port = 8635,
            },
            Volume = new Flexibleengine.Inputs.RdsInstanceV3VolumeArgs
            {
                Type = "COMMON",
                Size = 100,
            },
            BackupStrategy = new Flexibleengine.Inputs.RdsInstanceV3BackupStrategyArgs
            {
                StartTime = "08:00-09:00",
                KeepDays = 1,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.VpcV1;
    import com.pulumi.flexibleengine.VpcV1Args;
    import com.pulumi.flexibleengine.VpcSubnetV1;
    import com.pulumi.flexibleengine.VpcSubnetV1Args;
    import com.pulumi.flexibleengine.NetworkingSecgroupV2;
    import com.pulumi.flexibleengine.NetworkingSecgroupV2Args;
    import com.pulumi.flexibleengine.RdsInstanceV3;
    import com.pulumi.flexibleengine.RdsInstanceV3Args;
    import com.pulumi.flexibleengine.inputs.RdsInstanceV3DbArgs;
    import com.pulumi.flexibleengine.inputs.RdsInstanceV3VolumeArgs;
    import com.pulumi.flexibleengine.inputs.RdsInstanceV3BackupStrategyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
                .cidr("192.168.0.0/16")
                .build());
    
            var exampleSubnet = new VpcSubnetV1("exampleSubnet", VpcSubnetV1Args.builder()
                .cidr("192.168.0.0/24")
                .gatewayIp("192.168.0.1")
                .vpcId(exampleVpc.vpcV1Id())
                .build());
    
            var exampleSecgroup = new NetworkingSecgroupV2("exampleSecgroup", NetworkingSecgroupV2Args.builder()
                .description("terraform security group acceptance test")
                .build());
    
            var instance = new RdsInstanceV3("instance", RdsInstanceV3Args.builder()
                .flavor("rds.pg.s3.medium.4")
                .availabilityZones(var_.primary_az())
                .securityGroupId(exampleSecgroup.networkingSecgroupV2Id())
                .vpcId(exampleVpc.vpcV1Id())
                .subnetId(exampleSubnet.vpcSubnetV1Id())
                .db(RdsInstanceV3DbArgs.builder()
                    .type("PostgreSQL")
                    .version("11")
                    .password(var_.db_password())
                    .port("8635")
                    .build())
                .volume(RdsInstanceV3VolumeArgs.builder()
                    .type("COMMON")
                    .size(100)
                    .build())
                .backupStrategy(RdsInstanceV3BackupStrategyArgs.builder()
                    .startTime("08:00-09:00")
                    .keepDays(1)
                    .build())
                .build());
    
        }
    }
    
    resources:
      exampleVpc:
        type: flexibleengine:VpcV1
        properties:
          cidr: 192.168.0.0/16
      exampleSubnet:
        type: flexibleengine:VpcSubnetV1
        properties:
          cidr: 192.168.0.0/24
          gatewayIp: 192.168.0.1
          vpcId: ${exampleVpc.vpcV1Id}
      exampleSecgroup:
        type: flexibleengine:NetworkingSecgroupV2
        properties:
          description: terraform security group acceptance test
      instance:
        type: flexibleengine:RdsInstanceV3
        properties:
          flavor: rds.pg.s3.medium.4
          availabilityZones:
            - ${var.primary_az}
          securityGroupId: ${exampleSecgroup.networkingSecgroupV2Id}
          vpcId: ${exampleVpc.vpcV1Id}
          subnetId: ${exampleSubnet.vpcSubnetV1Id}
          db:
            type: PostgreSQL
            version: '11'
            password: ${var.db_password}
            port: '8635'
          volume:
            type: COMMON
            size: 100
          backupStrategy:
            startTime: 08:00-09:00
            keepDays: 1
    

    create a primary/standby db instance

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
    const exampleSubnet = new flexibleengine.VpcSubnetV1("exampleSubnet", {
        cidr: "192.168.0.0/24",
        gatewayIp: "192.168.0.1",
        vpcId: exampleVpc.vpcV1Id,
    });
    const exampleSecgroup = new flexibleengine.NetworkingSecgroupV2("exampleSecgroup", {description: "terraform security group acceptance test"});
    const instance = new flexibleengine.RdsInstanceV3("instance", {
        flavor: "rds.pg.s3.large.4.ha",
        haReplicationMode: "async",
        availabilityZones: [
            _var.primary_az,
            _var.standby_az,
        ],
        securityGroupId: exampleSecgroup.networkingSecgroupV2Id,
        vpcId: exampleVpc.vpcV1Id,
        subnetId: exampleSubnet.vpcSubnetV1Id,
        db: {
            type: "PostgreSQL",
            version: "11",
            password: _var.db_password,
            port: 8635,
        },
        volume: {
            type: "COMMON",
            size: 100,
        },
        backupStrategy: {
            startTime: "08:00-09:00",
            keepDays: 1,
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
    example_subnet = flexibleengine.VpcSubnetV1("exampleSubnet",
        cidr="192.168.0.0/24",
        gateway_ip="192.168.0.1",
        vpc_id=example_vpc.vpc_v1_id)
    example_secgroup = flexibleengine.NetworkingSecgroupV2("exampleSecgroup", description="terraform security group acceptance test")
    instance = flexibleengine.RdsInstanceV3("instance",
        flavor="rds.pg.s3.large.4.ha",
        ha_replication_mode="async",
        availability_zones=[
            var["primary_az"],
            var["standby_az"],
        ],
        security_group_id=example_secgroup.networking_secgroup_v2_id,
        vpc_id=example_vpc.vpc_v1_id,
        subnet_id=example_subnet.vpc_subnet_v1_id,
        db={
            "type": "PostgreSQL",
            "version": "11",
            "password": var["db_password"],
            "port": 8635,
        },
        volume={
            "type": "COMMON",
            "size": 100,
        },
        backup_strategy={
            "start_time": "08:00-09:00",
            "keep_days": 1,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
    			Cidr: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSubnet, err := flexibleengine.NewVpcSubnetV1(ctx, "exampleSubnet", &flexibleengine.VpcSubnetV1Args{
    			Cidr:      pulumi.String("192.168.0.0/24"),
    			GatewayIp: pulumi.String("192.168.0.1"),
    			VpcId:     exampleVpc.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		exampleSecgroup, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "exampleSecgroup", &flexibleengine.NetworkingSecgroupV2Args{
    			Description: pulumi.String("terraform security group acceptance test"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewRdsInstanceV3(ctx, "instance", &flexibleengine.RdsInstanceV3Args{
    			Flavor:            pulumi.String("rds.pg.s3.large.4.ha"),
    			HaReplicationMode: pulumi.String("async"),
    			AvailabilityZones: pulumi.StringArray{
    				_var.Primary_az,
    				_var.Standby_az,
    			},
    			SecurityGroupId: exampleSecgroup.NetworkingSecgroupV2Id,
    			VpcId:           exampleVpc.VpcV1Id,
    			SubnetId:        exampleSubnet.VpcSubnetV1Id,
    			Db: &flexibleengine.RdsInstanceV3DbArgs{
    				Type:     pulumi.String("PostgreSQL"),
    				Version:  pulumi.String("11"),
    				Password: pulumi.Any(_var.Db_password),
    				Port:     pulumi.Float64(8635),
    			},
    			Volume: &flexibleengine.RdsInstanceV3VolumeArgs{
    				Type: pulumi.String("COMMON"),
    				Size: pulumi.Float64(100),
    			},
    			BackupStrategy: &flexibleengine.RdsInstanceV3BackupStrategyArgs{
    				StartTime: pulumi.String("08:00-09:00"),
    				KeepDays:  pulumi.Float64(1),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
        {
            Cidr = "192.168.0.0/16",
        });
    
        var exampleSubnet = new Flexibleengine.VpcSubnetV1("exampleSubnet", new()
        {
            Cidr = "192.168.0.0/24",
            GatewayIp = "192.168.0.1",
            VpcId = exampleVpc.VpcV1Id,
        });
    
        var exampleSecgroup = new Flexibleengine.NetworkingSecgroupV2("exampleSecgroup", new()
        {
            Description = "terraform security group acceptance test",
        });
    
        var instance = new Flexibleengine.RdsInstanceV3("instance", new()
        {
            Flavor = "rds.pg.s3.large.4.ha",
            HaReplicationMode = "async",
            AvailabilityZones = new[]
            {
                @var.Primary_az,
                @var.Standby_az,
            },
            SecurityGroupId = exampleSecgroup.NetworkingSecgroupV2Id,
            VpcId = exampleVpc.VpcV1Id,
            SubnetId = exampleSubnet.VpcSubnetV1Id,
            Db = new Flexibleengine.Inputs.RdsInstanceV3DbArgs
            {
                Type = "PostgreSQL",
                Version = "11",
                Password = @var.Db_password,
                Port = 8635,
            },
            Volume = new Flexibleengine.Inputs.RdsInstanceV3VolumeArgs
            {
                Type = "COMMON",
                Size = 100,
            },
            BackupStrategy = new Flexibleengine.Inputs.RdsInstanceV3BackupStrategyArgs
            {
                StartTime = "08:00-09:00",
                KeepDays = 1,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.VpcV1;
    import com.pulumi.flexibleengine.VpcV1Args;
    import com.pulumi.flexibleengine.VpcSubnetV1;
    import com.pulumi.flexibleengine.VpcSubnetV1Args;
    import com.pulumi.flexibleengine.NetworkingSecgroupV2;
    import com.pulumi.flexibleengine.NetworkingSecgroupV2Args;
    import com.pulumi.flexibleengine.RdsInstanceV3;
    import com.pulumi.flexibleengine.RdsInstanceV3Args;
    import com.pulumi.flexibleengine.inputs.RdsInstanceV3DbArgs;
    import com.pulumi.flexibleengine.inputs.RdsInstanceV3VolumeArgs;
    import com.pulumi.flexibleengine.inputs.RdsInstanceV3BackupStrategyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
                .cidr("192.168.0.0/16")
                .build());
    
            var exampleSubnet = new VpcSubnetV1("exampleSubnet", VpcSubnetV1Args.builder()
                .cidr("192.168.0.0/24")
                .gatewayIp("192.168.0.1")
                .vpcId(exampleVpc.vpcV1Id())
                .build());
    
            var exampleSecgroup = new NetworkingSecgroupV2("exampleSecgroup", NetworkingSecgroupV2Args.builder()
                .description("terraform security group acceptance test")
                .build());
    
            var instance = new RdsInstanceV3("instance", RdsInstanceV3Args.builder()
                .flavor("rds.pg.s3.large.4.ha")
                .haReplicationMode("async")
                .availabilityZones(            
                    var_.primary_az(),
                    var_.standby_az())
                .securityGroupId(exampleSecgroup.networkingSecgroupV2Id())
                .vpcId(exampleVpc.vpcV1Id())
                .subnetId(exampleSubnet.vpcSubnetV1Id())
                .db(RdsInstanceV3DbArgs.builder()
                    .type("PostgreSQL")
                    .version("11")
                    .password(var_.db_password())
                    .port("8635")
                    .build())
                .volume(RdsInstanceV3VolumeArgs.builder()
                    .type("COMMON")
                    .size(100)
                    .build())
                .backupStrategy(RdsInstanceV3BackupStrategyArgs.builder()
                    .startTime("08:00-09:00")
                    .keepDays(1)
                    .build())
                .build());
    
        }
    }
    
    resources:
      exampleVpc:
        type: flexibleengine:VpcV1
        properties:
          cidr: 192.168.0.0/16
      exampleSubnet:
        type: flexibleengine:VpcSubnetV1
        properties:
          cidr: 192.168.0.0/24
          gatewayIp: 192.168.0.1
          vpcId: ${exampleVpc.vpcV1Id}
      exampleSecgroup:
        type: flexibleengine:NetworkingSecgroupV2
        properties:
          description: terraform security group acceptance test
      instance:
        type: flexibleengine:RdsInstanceV3
        properties:
          flavor: rds.pg.s3.large.4.ha
          haReplicationMode: async
          availabilityZones:
            - ${var.primary_az}
            - ${var.standby_az}
          securityGroupId: ${exampleSecgroup.networkingSecgroupV2Id}
          vpcId: ${exampleVpc.vpcV1Id}
          subnetId: ${exampleSubnet.vpcSubnetV1Id}
          db:
            type: PostgreSQL
            version: '11'
            password: ${var.db_password}
            port: '8635'
          volume:
            type: COMMON
            size: 100
          backupStrategy:
            startTime: 08:00-09:00
            keepDays: 1
    

    create a single db instance with encrypted volume

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const key = new flexibleengine.KmsKeyV1("key", {
        keyAlias: "key_1",
        keyDescription: "first test key",
        isEnabled: true,
    });
    const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
    const exampleSubnet = new flexibleengine.VpcSubnetV1("exampleSubnet", {
        cidr: "192.168.0.0/24",
        gatewayIp: "192.168.0.1",
        vpcId: exampleVpc.vpcV1Id,
    });
    const exampleSecgroup = new flexibleengine.NetworkingSecgroupV2("exampleSecgroup", {description: "terraform security group acceptance test"});
    const instance = new flexibleengine.RdsInstanceV3("instance", {
        flavor: "rds.pg.s3.medium.4",
        availabilityZones: [_var.primary_az],
        securityGroupId: exampleSecgroup.networkingSecgroupV2Id,
        vpcId: exampleVpc.vpcV1Id,
        subnetId: exampleSubnet.vpcSubnetV1Id,
        db: {
            type: "PostgreSQL",
            version: "11",
            password: _var.db_password,
            port: 8635,
        },
        volume: {
            diskEncryptionId: key.kmsKeyV1Id,
            type: "COMMON",
            size: 100,
        },
        backupStrategy: {
            startTime: "08:00-09:00",
            keepDays: 1,
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    key = flexibleengine.KmsKeyV1("key",
        key_alias="key_1",
        key_description="first test key",
        is_enabled=True)
    example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
    example_subnet = flexibleengine.VpcSubnetV1("exampleSubnet",
        cidr="192.168.0.0/24",
        gateway_ip="192.168.0.1",
        vpc_id=example_vpc.vpc_v1_id)
    example_secgroup = flexibleengine.NetworkingSecgroupV2("exampleSecgroup", description="terraform security group acceptance test")
    instance = flexibleengine.RdsInstanceV3("instance",
        flavor="rds.pg.s3.medium.4",
        availability_zones=[var["primary_az"]],
        security_group_id=example_secgroup.networking_secgroup_v2_id,
        vpc_id=example_vpc.vpc_v1_id,
        subnet_id=example_subnet.vpc_subnet_v1_id,
        db={
            "type": "PostgreSQL",
            "version": "11",
            "password": var["db_password"],
            "port": 8635,
        },
        volume={
            "disk_encryption_id": key.kms_key_v1_id,
            "type": "COMMON",
            "size": 100,
        },
        backup_strategy={
            "start_time": "08:00-09:00",
            "keep_days": 1,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		key, err := flexibleengine.NewKmsKeyV1(ctx, "key", &flexibleengine.KmsKeyV1Args{
    			KeyAlias:       pulumi.String("key_1"),
    			KeyDescription: pulumi.String("first test key"),
    			IsEnabled:      pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
    			Cidr: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSubnet, err := flexibleengine.NewVpcSubnetV1(ctx, "exampleSubnet", &flexibleengine.VpcSubnetV1Args{
    			Cidr:      pulumi.String("192.168.0.0/24"),
    			GatewayIp: pulumi.String("192.168.0.1"),
    			VpcId:     exampleVpc.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		exampleSecgroup, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "exampleSecgroup", &flexibleengine.NetworkingSecgroupV2Args{
    			Description: pulumi.String("terraform security group acceptance test"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewRdsInstanceV3(ctx, "instance", &flexibleengine.RdsInstanceV3Args{
    			Flavor: pulumi.String("rds.pg.s3.medium.4"),
    			AvailabilityZones: pulumi.StringArray{
    				_var.Primary_az,
    			},
    			SecurityGroupId: exampleSecgroup.NetworkingSecgroupV2Id,
    			VpcId:           exampleVpc.VpcV1Id,
    			SubnetId:        exampleSubnet.VpcSubnetV1Id,
    			Db: &flexibleengine.RdsInstanceV3DbArgs{
    				Type:     pulumi.String("PostgreSQL"),
    				Version:  pulumi.String("11"),
    				Password: pulumi.Any(_var.Db_password),
    				Port:     pulumi.Float64(8635),
    			},
    			Volume: &flexibleengine.RdsInstanceV3VolumeArgs{
    				DiskEncryptionId: key.KmsKeyV1Id,
    				Type:             pulumi.String("COMMON"),
    				Size:             pulumi.Float64(100),
    			},
    			BackupStrategy: &flexibleengine.RdsInstanceV3BackupStrategyArgs{
    				StartTime: pulumi.String("08:00-09:00"),
    				KeepDays:  pulumi.Float64(1),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var key = new Flexibleengine.KmsKeyV1("key", new()
        {
            KeyAlias = "key_1",
            KeyDescription = "first test key",
            IsEnabled = true,
        });
    
        var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
        {
            Cidr = "192.168.0.0/16",
        });
    
        var exampleSubnet = new Flexibleengine.VpcSubnetV1("exampleSubnet", new()
        {
            Cidr = "192.168.0.0/24",
            GatewayIp = "192.168.0.1",
            VpcId = exampleVpc.VpcV1Id,
        });
    
        var exampleSecgroup = new Flexibleengine.NetworkingSecgroupV2("exampleSecgroup", new()
        {
            Description = "terraform security group acceptance test",
        });
    
        var instance = new Flexibleengine.RdsInstanceV3("instance", new()
        {
            Flavor = "rds.pg.s3.medium.4",
            AvailabilityZones = new[]
            {
                @var.Primary_az,
            },
            SecurityGroupId = exampleSecgroup.NetworkingSecgroupV2Id,
            VpcId = exampleVpc.VpcV1Id,
            SubnetId = exampleSubnet.VpcSubnetV1Id,
            Db = new Flexibleengine.Inputs.RdsInstanceV3DbArgs
            {
                Type = "PostgreSQL",
                Version = "11",
                Password = @var.Db_password,
                Port = 8635,
            },
            Volume = new Flexibleengine.Inputs.RdsInstanceV3VolumeArgs
            {
                DiskEncryptionId = key.KmsKeyV1Id,
                Type = "COMMON",
                Size = 100,
            },
            BackupStrategy = new Flexibleengine.Inputs.RdsInstanceV3BackupStrategyArgs
            {
                StartTime = "08:00-09:00",
                KeepDays = 1,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.KmsKeyV1;
    import com.pulumi.flexibleengine.KmsKeyV1Args;
    import com.pulumi.flexibleengine.VpcV1;
    import com.pulumi.flexibleengine.VpcV1Args;
    import com.pulumi.flexibleengine.VpcSubnetV1;
    import com.pulumi.flexibleengine.VpcSubnetV1Args;
    import com.pulumi.flexibleengine.NetworkingSecgroupV2;
    import com.pulumi.flexibleengine.NetworkingSecgroupV2Args;
    import com.pulumi.flexibleengine.RdsInstanceV3;
    import com.pulumi.flexibleengine.RdsInstanceV3Args;
    import com.pulumi.flexibleengine.inputs.RdsInstanceV3DbArgs;
    import com.pulumi.flexibleengine.inputs.RdsInstanceV3VolumeArgs;
    import com.pulumi.flexibleengine.inputs.RdsInstanceV3BackupStrategyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var key = new KmsKeyV1("key", KmsKeyV1Args.builder()
                .keyAlias("key_1")
                .keyDescription("first test key")
                .isEnabled(true)
                .build());
    
            var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
                .cidr("192.168.0.0/16")
                .build());
    
            var exampleSubnet = new VpcSubnetV1("exampleSubnet", VpcSubnetV1Args.builder()
                .cidr("192.168.0.0/24")
                .gatewayIp("192.168.0.1")
                .vpcId(exampleVpc.vpcV1Id())
                .build());
    
            var exampleSecgroup = new NetworkingSecgroupV2("exampleSecgroup", NetworkingSecgroupV2Args.builder()
                .description("terraform security group acceptance test")
                .build());
    
            var instance = new RdsInstanceV3("instance", RdsInstanceV3Args.builder()
                .flavor("rds.pg.s3.medium.4")
                .availabilityZones(var_.primary_az())
                .securityGroupId(exampleSecgroup.networkingSecgroupV2Id())
                .vpcId(exampleVpc.vpcV1Id())
                .subnetId(exampleSubnet.vpcSubnetV1Id())
                .db(RdsInstanceV3DbArgs.builder()
                    .type("PostgreSQL")
                    .version("11")
                    .password(var_.db_password())
                    .port("8635")
                    .build())
                .volume(RdsInstanceV3VolumeArgs.builder()
                    .diskEncryptionId(key.kmsKeyV1Id())
                    .type("COMMON")
                    .size(100)
                    .build())
                .backupStrategy(RdsInstanceV3BackupStrategyArgs.builder()
                    .startTime("08:00-09:00")
                    .keepDays(1)
                    .build())
                .build());
    
        }
    }
    
    resources:
      key:
        type: flexibleengine:KmsKeyV1
        properties:
          keyAlias: key_1
          keyDescription: first test key
          isEnabled: true
      exampleVpc:
        type: flexibleengine:VpcV1
        properties:
          cidr: 192.168.0.0/16
      exampleSubnet:
        type: flexibleengine:VpcSubnetV1
        properties:
          cidr: 192.168.0.0/24
          gatewayIp: 192.168.0.1
          vpcId: ${exampleVpc.vpcV1Id}
      exampleSecgroup:
        type: flexibleengine:NetworkingSecgroupV2
        properties:
          description: terraform security group acceptance test
      instance:
        type: flexibleengine:RdsInstanceV3
        properties:
          flavor: rds.pg.s3.medium.4
          availabilityZones:
            - ${var.primary_az}
          securityGroupId: ${exampleSecgroup.networkingSecgroupV2Id}
          vpcId: ${exampleVpc.vpcV1Id}
          subnetId: ${exampleSubnet.vpcSubnetV1Id}
          db:
            type: PostgreSQL
            version: '11'
            password: ${var.db_password}
            port: '8635'
          volume:
            diskEncryptionId: ${key.kmsKeyV1Id}
            type: COMMON
            size: 100
          backupStrategy:
            startTime: 08:00-09:00
            keepDays: 1
    

    Create RdsInstanceV3 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RdsInstanceV3(name: string, args: RdsInstanceV3Args, opts?: CustomResourceOptions);
    @overload
    def RdsInstanceV3(resource_name: str,
                      args: RdsInstanceV3Args,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def RdsInstanceV3(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      flavor: Optional[str] = None,
                      vpc_id: Optional[str] = None,
                      availability_zones: Optional[Sequence[str]] = None,
                      volume: Optional[RdsInstanceV3VolumeArgs] = None,
                      subnet_id: Optional[str] = None,
                      security_group_id: Optional[str] = None,
                      db: Optional[RdsInstanceV3DbArgs] = None,
                      name: Optional[str] = None,
                      period_unit: Optional[str] = None,
                      enterprise_project_id: Optional[str] = None,
                      fixed_ip: Optional[str] = None,
                      description: Optional[str] = None,
                      ha_replication_mode: Optional[str] = None,
                      lower_case_table_names: Optional[str] = None,
                      auto_pay: Optional[str] = None,
                      param_group_id: Optional[str] = None,
                      parameters: Optional[Sequence[RdsInstanceV3ParameterArgs]] = None,
                      period: Optional[float] = None,
                      dss_pool_id: Optional[str] = None,
                      rds_instance_v3_id: Optional[str] = None,
                      region: Optional[str] = None,
                      restore: Optional[RdsInstanceV3RestoreArgs] = None,
                      collation: Optional[str] = None,
                      ssl_enable: Optional[bool] = None,
                      charging_mode: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      time_zone: Optional[str] = None,
                      timeouts: Optional[RdsInstanceV3TimeoutsArgs] = None,
                      backup_strategy: Optional[RdsInstanceV3BackupStrategyArgs] = None,
                      auto_renew: Optional[str] = None)
    func NewRdsInstanceV3(ctx *Context, name string, args RdsInstanceV3Args, opts ...ResourceOption) (*RdsInstanceV3, error)
    public RdsInstanceV3(string name, RdsInstanceV3Args args, CustomResourceOptions? opts = null)
    public RdsInstanceV3(String name, RdsInstanceV3Args args)
    public RdsInstanceV3(String name, RdsInstanceV3Args args, CustomResourceOptions options)
    
    type: flexibleengine:RdsInstanceV3
    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 RdsInstanceV3Args
    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 RdsInstanceV3Args
    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 RdsInstanceV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RdsInstanceV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RdsInstanceV3Args
    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 rdsInstanceV3Resource = new Flexibleengine.RdsInstanceV3("rdsInstanceV3Resource", new()
    {
        Flavor = "string",
        VpcId = "string",
        AvailabilityZones = new[]
        {
            "string",
        },
        Volume = new Flexibleengine.Inputs.RdsInstanceV3VolumeArgs
        {
            Size = 0,
            Type = "string",
            DiskEncryptionId = "string",
            LimitSize = 0,
            TriggerThreshold = 0,
        },
        SubnetId = "string",
        SecurityGroupId = "string",
        Db = new Flexibleengine.Inputs.RdsInstanceV3DbArgs
        {
            Type = "string",
            Version = "string",
            Password = "string",
            Port = 0,
            UserName = "string",
        },
        Name = "string",
        PeriodUnit = "string",
        EnterpriseProjectId = "string",
        FixedIp = "string",
        Description = "string",
        HaReplicationMode = "string",
        LowerCaseTableNames = "string",
        ParamGroupId = "string",
        Parameters = new[]
        {
            new Flexibleengine.Inputs.RdsInstanceV3ParameterArgs
            {
                Name = "string",
                Value = "string",
            },
        },
        Period = 0,
        DssPoolId = "string",
        RdsInstanceV3Id = "string",
        Region = "string",
        Restore = new Flexibleengine.Inputs.RdsInstanceV3RestoreArgs
        {
            BackupId = "string",
            InstanceId = "string",
            DatabaseName = 
            {
                { "string", "string" },
            },
        },
        Collation = "string",
        SslEnable = false,
        ChargingMode = "string",
        Tags = 
        {
            { "string", "string" },
        },
        TimeZone = "string",
        Timeouts = new Flexibleengine.Inputs.RdsInstanceV3TimeoutsArgs
        {
            Create = "string",
            Default = "string",
            Delete = "string",
            Update = "string",
        },
        BackupStrategy = new Flexibleengine.Inputs.RdsInstanceV3BackupStrategyArgs
        {
            StartTime = "string",
            KeepDays = 0,
            Period = "string",
        },
        AutoRenew = "string",
    });
    
    example, err := flexibleengine.NewRdsInstanceV3(ctx, "rdsInstanceV3Resource", &flexibleengine.RdsInstanceV3Args{
    	Flavor: pulumi.String("string"),
    	VpcId:  pulumi.String("string"),
    	AvailabilityZones: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Volume: &flexibleengine.RdsInstanceV3VolumeArgs{
    		Size:             pulumi.Float64(0),
    		Type:             pulumi.String("string"),
    		DiskEncryptionId: pulumi.String("string"),
    		LimitSize:        pulumi.Float64(0),
    		TriggerThreshold: pulumi.Float64(0),
    	},
    	SubnetId:        pulumi.String("string"),
    	SecurityGroupId: pulumi.String("string"),
    	Db: &flexibleengine.RdsInstanceV3DbArgs{
    		Type:     pulumi.String("string"),
    		Version:  pulumi.String("string"),
    		Password: pulumi.String("string"),
    		Port:     pulumi.Float64(0),
    		UserName: pulumi.String("string"),
    	},
    	Name:                pulumi.String("string"),
    	PeriodUnit:          pulumi.String("string"),
    	EnterpriseProjectId: pulumi.String("string"),
    	FixedIp:             pulumi.String("string"),
    	Description:         pulumi.String("string"),
    	HaReplicationMode:   pulumi.String("string"),
    	LowerCaseTableNames: pulumi.String("string"),
    	ParamGroupId:        pulumi.String("string"),
    	Parameters: flexibleengine.RdsInstanceV3ParameterArray{
    		&flexibleengine.RdsInstanceV3ParameterArgs{
    			Name:  pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	Period:          pulumi.Float64(0),
    	DssPoolId:       pulumi.String("string"),
    	RdsInstanceV3Id: pulumi.String("string"),
    	Region:          pulumi.String("string"),
    	Restore: &flexibleengine.RdsInstanceV3RestoreArgs{
    		BackupId:   pulumi.String("string"),
    		InstanceId: pulumi.String("string"),
    		DatabaseName: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    	Collation:    pulumi.String("string"),
    	SslEnable:    pulumi.Bool(false),
    	ChargingMode: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TimeZone: pulumi.String("string"),
    	Timeouts: &flexibleengine.RdsInstanceV3TimeoutsArgs{
    		Create:  pulumi.String("string"),
    		Default: pulumi.String("string"),
    		Delete:  pulumi.String("string"),
    		Update:  pulumi.String("string"),
    	},
    	BackupStrategy: &flexibleengine.RdsInstanceV3BackupStrategyArgs{
    		StartTime: pulumi.String("string"),
    		KeepDays:  pulumi.Float64(0),
    		Period:    pulumi.String("string"),
    	},
    	AutoRenew: pulumi.String("string"),
    })
    
    var rdsInstanceV3Resource = new RdsInstanceV3("rdsInstanceV3Resource", RdsInstanceV3Args.builder()
        .flavor("string")
        .vpcId("string")
        .availabilityZones("string")
        .volume(RdsInstanceV3VolumeArgs.builder()
            .size(0)
            .type("string")
            .diskEncryptionId("string")
            .limitSize(0)
            .triggerThreshold(0)
            .build())
        .subnetId("string")
        .securityGroupId("string")
        .db(RdsInstanceV3DbArgs.builder()
            .type("string")
            .version("string")
            .password("string")
            .port(0)
            .userName("string")
            .build())
        .name("string")
        .periodUnit("string")
        .enterpriseProjectId("string")
        .fixedIp("string")
        .description("string")
        .haReplicationMode("string")
        .lowerCaseTableNames("string")
        .paramGroupId("string")
        .parameters(RdsInstanceV3ParameterArgs.builder()
            .name("string")
            .value("string")
            .build())
        .period(0)
        .dssPoolId("string")
        .rdsInstanceV3Id("string")
        .region("string")
        .restore(RdsInstanceV3RestoreArgs.builder()
            .backupId("string")
            .instanceId("string")
            .databaseName(Map.of("string", "string"))
            .build())
        .collation("string")
        .sslEnable(false)
        .chargingMode("string")
        .tags(Map.of("string", "string"))
        .timeZone("string")
        .timeouts(RdsInstanceV3TimeoutsArgs.builder()
            .create("string")
            .default_("string")
            .delete("string")
            .update("string")
            .build())
        .backupStrategy(RdsInstanceV3BackupStrategyArgs.builder()
            .startTime("string")
            .keepDays(0)
            .period("string")
            .build())
        .autoRenew("string")
        .build());
    
    rds_instance_v3_resource = flexibleengine.RdsInstanceV3("rdsInstanceV3Resource",
        flavor="string",
        vpc_id="string",
        availability_zones=["string"],
        volume={
            "size": 0,
            "type": "string",
            "disk_encryption_id": "string",
            "limit_size": 0,
            "trigger_threshold": 0,
        },
        subnet_id="string",
        security_group_id="string",
        db={
            "type": "string",
            "version": "string",
            "password": "string",
            "port": 0,
            "user_name": "string",
        },
        name="string",
        period_unit="string",
        enterprise_project_id="string",
        fixed_ip="string",
        description="string",
        ha_replication_mode="string",
        lower_case_table_names="string",
        param_group_id="string",
        parameters=[{
            "name": "string",
            "value": "string",
        }],
        period=0,
        dss_pool_id="string",
        rds_instance_v3_id="string",
        region="string",
        restore={
            "backup_id": "string",
            "instance_id": "string",
            "database_name": {
                "string": "string",
            },
        },
        collation="string",
        ssl_enable=False,
        charging_mode="string",
        tags={
            "string": "string",
        },
        time_zone="string",
        timeouts={
            "create": "string",
            "default": "string",
            "delete": "string",
            "update": "string",
        },
        backup_strategy={
            "start_time": "string",
            "keep_days": 0,
            "period": "string",
        },
        auto_renew="string")
    
    const rdsInstanceV3Resource = new flexibleengine.RdsInstanceV3("rdsInstanceV3Resource", {
        flavor: "string",
        vpcId: "string",
        availabilityZones: ["string"],
        volume: {
            size: 0,
            type: "string",
            diskEncryptionId: "string",
            limitSize: 0,
            triggerThreshold: 0,
        },
        subnetId: "string",
        securityGroupId: "string",
        db: {
            type: "string",
            version: "string",
            password: "string",
            port: 0,
            userName: "string",
        },
        name: "string",
        periodUnit: "string",
        enterpriseProjectId: "string",
        fixedIp: "string",
        description: "string",
        haReplicationMode: "string",
        lowerCaseTableNames: "string",
        paramGroupId: "string",
        parameters: [{
            name: "string",
            value: "string",
        }],
        period: 0,
        dssPoolId: "string",
        rdsInstanceV3Id: "string",
        region: "string",
        restore: {
            backupId: "string",
            instanceId: "string",
            databaseName: {
                string: "string",
            },
        },
        collation: "string",
        sslEnable: false,
        chargingMode: "string",
        tags: {
            string: "string",
        },
        timeZone: "string",
        timeouts: {
            create: "string",
            "default": "string",
            "delete": "string",
            update: "string",
        },
        backupStrategy: {
            startTime: "string",
            keepDays: 0,
            period: "string",
        },
        autoRenew: "string",
    });
    
    type: flexibleengine:RdsInstanceV3
    properties:
        autoRenew: string
        availabilityZones:
            - string
        backupStrategy:
            keepDays: 0
            period: string
            startTime: string
        chargingMode: string
        collation: string
        db:
            password: string
            port: 0
            type: string
            userName: string
            version: string
        description: string
        dssPoolId: string
        enterpriseProjectId: string
        fixedIp: string
        flavor: string
        haReplicationMode: string
        lowerCaseTableNames: string
        name: string
        paramGroupId: string
        parameters:
            - name: string
              value: string
        period: 0
        periodUnit: string
        rdsInstanceV3Id: string
        region: string
        restore:
            backupId: string
            databaseName:
                string: string
            instanceId: string
        securityGroupId: string
        sslEnable: false
        subnetId: string
        tags:
            string: string
        timeZone: string
        timeouts:
            create: string
            default: string
            delete: string
            update: string
        volume:
            diskEncryptionId: string
            limitSize: 0
            size: 0
            triggerThreshold: 0
            type: string
        vpcId: string
    

    RdsInstanceV3 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RdsInstanceV3 resource accepts the following input properties:

    AvailabilityZones List<string>
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    Db RdsInstanceV3Db
    Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
    Flavor string

    Specifies the specification code.

    NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.

    SecurityGroupId string
    Specifies the security group which the RDS DB instance belongs to.
    SubnetId string
    Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
    Volume RdsInstanceV3Volume
    Specifies the volume information. The volume object structure is documented below.
    VpcId string
    Specifies the VPC ID. Changing this parameter will create a new resource.
    AutoPay string

    Deprecated: Deprecated

    AutoRenew string
    BackupStrategy RdsInstanceV3BackupStrategy
    Specifies the advanced backup policy. The backup_strategy object structure is documented below.
    ChargingMode string
    Collation string
    Description string
    Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
    DssPoolId string
    EnterpriseProjectId string
    FixedIp string
    Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
    HaReplicationMode string

    Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.

    • For MySQL, the value is async or semisync.
    • For PostgreSQL, the value is async or sync.
    • For SQLServer, the value is sync.
    • For MariaDB, the value is async or semisync.

    NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.

    LowerCaseTableNames string
    Name string
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    ParamGroupId string
    Specifies the parameter group ID. Changing this parameter will create a new resource.
    Parameters List<RdsInstanceV3Parameter>

    Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.

    The db block supports:

    Period double
    PeriodUnit string
    RdsInstanceV3Id string
    Indicates the node ID.
    Region string
    Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
    Restore RdsInstanceV3Restore
    SslEnable bool
    Specifies whether to enable the SSL for MySQL database.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
    TimeZone string
    Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
    Timeouts RdsInstanceV3Timeouts
    AvailabilityZones []string
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    Db RdsInstanceV3DbArgs
    Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
    Flavor string

    Specifies the specification code.

    NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.

    SecurityGroupId string
    Specifies the security group which the RDS DB instance belongs to.
    SubnetId string
    Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
    Volume RdsInstanceV3VolumeArgs
    Specifies the volume information. The volume object structure is documented below.
    VpcId string
    Specifies the VPC ID. Changing this parameter will create a new resource.
    AutoPay string

    Deprecated: Deprecated

    AutoRenew string
    BackupStrategy RdsInstanceV3BackupStrategyArgs
    Specifies the advanced backup policy. The backup_strategy object structure is documented below.
    ChargingMode string
    Collation string
    Description string
    Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
    DssPoolId string
    EnterpriseProjectId string
    FixedIp string
    Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
    HaReplicationMode string

    Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.

    • For MySQL, the value is async or semisync.
    • For PostgreSQL, the value is async or sync.
    • For SQLServer, the value is sync.
    • For MariaDB, the value is async or semisync.

    NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.

    LowerCaseTableNames string
    Name string
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    ParamGroupId string
    Specifies the parameter group ID. Changing this parameter will create a new resource.
    Parameters []RdsInstanceV3ParameterArgs

    Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.

    The db block supports:

    Period float64
    PeriodUnit string
    RdsInstanceV3Id string
    Indicates the node ID.
    Region string
    Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
    Restore RdsInstanceV3RestoreArgs
    SslEnable bool
    Specifies whether to enable the SSL for MySQL database.
    Tags map[string]string
    A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
    TimeZone string
    Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
    Timeouts RdsInstanceV3TimeoutsArgs
    availabilityZones List<String>
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    db RdsInstanceV3Db
    Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
    flavor String

    Specifies the specification code.

    NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.

    securityGroupId String
    Specifies the security group which the RDS DB instance belongs to.
    subnetId String
    Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
    volume RdsInstanceV3Volume
    Specifies the volume information. The volume object structure is documented below.
    vpcId String
    Specifies the VPC ID. Changing this parameter will create a new resource.
    autoPay String

    Deprecated: Deprecated

    autoRenew String
    backupStrategy RdsInstanceV3BackupStrategy
    Specifies the advanced backup policy. The backup_strategy object structure is documented below.
    chargingMode String
    collation String
    description String
    Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
    dssPoolId String
    enterpriseProjectId String
    fixedIp String
    Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
    haReplicationMode String

    Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.

    • For MySQL, the value is async or semisync.
    • For PostgreSQL, the value is async or sync.
    • For SQLServer, the value is sync.
    • For MariaDB, the value is async or semisync.

    NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.

    lowerCaseTableNames String
    name String
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    paramGroupId String
    Specifies the parameter group ID. Changing this parameter will create a new resource.
    parameters List<RdsInstanceV3Parameter>

    Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.

    The db block supports:

    period Double
    periodUnit String
    rdsInstanceV3Id String
    Indicates the node ID.
    region String
    Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
    restore RdsInstanceV3Restore
    sslEnable Boolean
    Specifies whether to enable the SSL for MySQL database.
    tags Map<String,String>
    A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
    timeZone String
    Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
    timeouts RdsInstanceV3Timeouts
    availabilityZones string[]
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    db RdsInstanceV3Db
    Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
    flavor string

    Specifies the specification code.

    NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.

    securityGroupId string
    Specifies the security group which the RDS DB instance belongs to.
    subnetId string
    Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
    volume RdsInstanceV3Volume
    Specifies the volume information. The volume object structure is documented below.
    vpcId string
    Specifies the VPC ID. Changing this parameter will create a new resource.
    autoPay string

    Deprecated: Deprecated

    autoRenew string
    backupStrategy RdsInstanceV3BackupStrategy
    Specifies the advanced backup policy. The backup_strategy object structure is documented below.
    chargingMode string
    collation string
    description string
    Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
    dssPoolId string
    enterpriseProjectId string
    fixedIp string
    Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
    haReplicationMode string

    Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.

    • For MySQL, the value is async or semisync.
    • For PostgreSQL, the value is async or sync.
    • For SQLServer, the value is sync.
    • For MariaDB, the value is async or semisync.

    NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.

    lowerCaseTableNames string
    name string
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    paramGroupId string
    Specifies the parameter group ID. Changing this parameter will create a new resource.
    parameters RdsInstanceV3Parameter[]

    Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.

    The db block supports:

    period number
    periodUnit string
    rdsInstanceV3Id string
    Indicates the node ID.
    region string
    Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
    restore RdsInstanceV3Restore
    sslEnable boolean
    Specifies whether to enable the SSL for MySQL database.
    tags {[key: string]: string}
    A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
    timeZone string
    Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
    timeouts RdsInstanceV3Timeouts
    availability_zones Sequence[str]
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    db RdsInstanceV3DbArgs
    Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
    flavor str

    Specifies the specification code.

    NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.

    security_group_id str
    Specifies the security group which the RDS DB instance belongs to.
    subnet_id str
    Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
    volume RdsInstanceV3VolumeArgs
    Specifies the volume information. The volume object structure is documented below.
    vpc_id str
    Specifies the VPC ID. Changing this parameter will create a new resource.
    auto_pay str

    Deprecated: Deprecated

    auto_renew str
    backup_strategy RdsInstanceV3BackupStrategyArgs
    Specifies the advanced backup policy. The backup_strategy object structure is documented below.
    charging_mode str
    collation str
    description str
    Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
    dss_pool_id str
    enterprise_project_id str
    fixed_ip str
    Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
    ha_replication_mode str

    Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.

    • For MySQL, the value is async or semisync.
    • For PostgreSQL, the value is async or sync.
    • For SQLServer, the value is sync.
    • For MariaDB, the value is async or semisync.

    NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.

    lower_case_table_names str
    name str
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    param_group_id str
    Specifies the parameter group ID. Changing this parameter will create a new resource.
    parameters Sequence[RdsInstanceV3ParameterArgs]

    Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.

    The db block supports:

    period float
    period_unit str
    rds_instance_v3_id str
    Indicates the node ID.
    region str
    Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
    restore RdsInstanceV3RestoreArgs
    ssl_enable bool
    Specifies whether to enable the SSL for MySQL database.
    tags Mapping[str, str]
    A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
    time_zone str
    Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
    timeouts RdsInstanceV3TimeoutsArgs
    availabilityZones List<String>
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    db Property Map
    Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
    flavor String

    Specifies the specification code.

    NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.

    securityGroupId String
    Specifies the security group which the RDS DB instance belongs to.
    subnetId String
    Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
    volume Property Map
    Specifies the volume information. The volume object structure is documented below.
    vpcId String
    Specifies the VPC ID. Changing this parameter will create a new resource.
    autoPay String

    Deprecated: Deprecated

    autoRenew String
    backupStrategy Property Map
    Specifies the advanced backup policy. The backup_strategy object structure is documented below.
    chargingMode String
    collation String
    description String
    Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
    dssPoolId String
    enterpriseProjectId String
    fixedIp String
    Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
    haReplicationMode String

    Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.

    • For MySQL, the value is async or semisync.
    • For PostgreSQL, the value is async or sync.
    • For SQLServer, the value is sync.
    • For MariaDB, the value is async or semisync.

    NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.

    lowerCaseTableNames String
    name String
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    paramGroupId String
    Specifies the parameter group ID. Changing this parameter will create a new resource.
    parameters List<Property Map>

    Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.

    The db block supports:

    period Number
    periodUnit String
    rdsInstanceV3Id String
    Indicates the node ID.
    region String
    Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
    restore Property Map
    sslEnable Boolean
    Specifies whether to enable the SSL for MySQL database.
    tags Map<String>
    A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
    timeZone String
    Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RdsInstanceV3 resource produces the following output properties:

    Created string
    Indicates the creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Nodes List<RdsInstanceV3Node>
    Indicates the instance nodes information. The nodes object structure is documented below.
    PrivateIps List<string>
    Indicates the private IP address list. It is a blank string until an ECS is created.
    PublicIps List<string>
    Indicates the public IP address list.
    Status string
    Indicates the node status.
    Created string
    Indicates the creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Nodes []RdsInstanceV3Node
    Indicates the instance nodes information. The nodes object structure is documented below.
    PrivateIps []string
    Indicates the private IP address list. It is a blank string until an ECS is created.
    PublicIps []string
    Indicates the public IP address list.
    Status string
    Indicates the node status.
    created String
    Indicates the creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    nodes List<RdsInstanceV3Node>
    Indicates the instance nodes information. The nodes object structure is documented below.
    privateIps List<String>
    Indicates the private IP address list. It is a blank string until an ECS is created.
    publicIps List<String>
    Indicates the public IP address list.
    status String
    Indicates the node status.
    created string
    Indicates the creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    nodes RdsInstanceV3Node[]
    Indicates the instance nodes information. The nodes object structure is documented below.
    privateIps string[]
    Indicates the private IP address list. It is a blank string until an ECS is created.
    publicIps string[]
    Indicates the public IP address list.
    status string
    Indicates the node status.
    created str
    Indicates the creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    nodes Sequence[RdsInstanceV3Node]
    Indicates the instance nodes information. The nodes object structure is documented below.
    private_ips Sequence[str]
    Indicates the private IP address list. It is a blank string until an ECS is created.
    public_ips Sequence[str]
    Indicates the public IP address list.
    status str
    Indicates the node status.
    created String
    Indicates the creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    nodes List<Property Map>
    Indicates the instance nodes information. The nodes object structure is documented below.
    privateIps List<String>
    Indicates the private IP address list. It is a blank string until an ECS is created.
    publicIps List<String>
    Indicates the public IP address list.
    status String
    Indicates the node status.

    Look up Existing RdsInstanceV3 Resource

    Get an existing RdsInstanceV3 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?: RdsInstanceV3State, opts?: CustomResourceOptions): RdsInstanceV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_pay: Optional[str] = None,
            auto_renew: Optional[str] = None,
            availability_zones: Optional[Sequence[str]] = None,
            backup_strategy: Optional[RdsInstanceV3BackupStrategyArgs] = None,
            charging_mode: Optional[str] = None,
            collation: Optional[str] = None,
            created: Optional[str] = None,
            db: Optional[RdsInstanceV3DbArgs] = None,
            description: Optional[str] = None,
            dss_pool_id: Optional[str] = None,
            enterprise_project_id: Optional[str] = None,
            fixed_ip: Optional[str] = None,
            flavor: Optional[str] = None,
            ha_replication_mode: Optional[str] = None,
            lower_case_table_names: Optional[str] = None,
            name: Optional[str] = None,
            nodes: Optional[Sequence[RdsInstanceV3NodeArgs]] = None,
            param_group_id: Optional[str] = None,
            parameters: Optional[Sequence[RdsInstanceV3ParameterArgs]] = None,
            period: Optional[float] = None,
            period_unit: Optional[str] = None,
            private_ips: Optional[Sequence[str]] = None,
            public_ips: Optional[Sequence[str]] = None,
            rds_instance_v3_id: Optional[str] = None,
            region: Optional[str] = None,
            restore: Optional[RdsInstanceV3RestoreArgs] = None,
            security_group_id: Optional[str] = None,
            ssl_enable: Optional[bool] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            time_zone: Optional[str] = None,
            timeouts: Optional[RdsInstanceV3TimeoutsArgs] = None,
            volume: Optional[RdsInstanceV3VolumeArgs] = None,
            vpc_id: Optional[str] = None) -> RdsInstanceV3
    func GetRdsInstanceV3(ctx *Context, name string, id IDInput, state *RdsInstanceV3State, opts ...ResourceOption) (*RdsInstanceV3, error)
    public static RdsInstanceV3 Get(string name, Input<string> id, RdsInstanceV3State? state, CustomResourceOptions? opts = null)
    public static RdsInstanceV3 get(String name, Output<String> id, RdsInstanceV3State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:RdsInstanceV3    get:      id: ${id}
    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:
    AutoPay string

    Deprecated: Deprecated

    AutoRenew string
    AvailabilityZones List<string>
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    BackupStrategy RdsInstanceV3BackupStrategy
    Specifies the advanced backup policy. The backup_strategy object structure is documented below.
    ChargingMode string
    Collation string
    Created string
    Indicates the creation time.
    Db RdsInstanceV3Db
    Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
    Description string
    Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
    DssPoolId string
    EnterpriseProjectId string
    FixedIp string
    Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
    Flavor string

    Specifies the specification code.

    NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.

    HaReplicationMode string

    Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.

    • For MySQL, the value is async or semisync.
    • For PostgreSQL, the value is async or sync.
    • For SQLServer, the value is sync.
    • For MariaDB, the value is async or semisync.

    NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.

    LowerCaseTableNames string
    Name string
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    Nodes List<RdsInstanceV3Node>
    Indicates the instance nodes information. The nodes object structure is documented below.
    ParamGroupId string
    Specifies the parameter group ID. Changing this parameter will create a new resource.
    Parameters List<RdsInstanceV3Parameter>

    Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.

    The db block supports:

    Period double
    PeriodUnit string
    PrivateIps List<string>
    Indicates the private IP address list. It is a blank string until an ECS is created.
    PublicIps List<string>
    Indicates the public IP address list.
    RdsInstanceV3Id string
    Indicates the node ID.
    Region string
    Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
    Restore RdsInstanceV3Restore
    SecurityGroupId string
    Specifies the security group which the RDS DB instance belongs to.
    SslEnable bool
    Specifies whether to enable the SSL for MySQL database.
    Status string
    Indicates the node status.
    SubnetId string
    Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
    TimeZone string
    Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
    Timeouts RdsInstanceV3Timeouts
    Volume RdsInstanceV3Volume
    Specifies the volume information. The volume object structure is documented below.
    VpcId string
    Specifies the VPC ID. Changing this parameter will create a new resource.
    AutoPay string

    Deprecated: Deprecated

    AutoRenew string
    AvailabilityZones []string
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    BackupStrategy RdsInstanceV3BackupStrategyArgs
    Specifies the advanced backup policy. The backup_strategy object structure is documented below.
    ChargingMode string
    Collation string
    Created string
    Indicates the creation time.
    Db RdsInstanceV3DbArgs
    Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
    Description string
    Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
    DssPoolId string
    EnterpriseProjectId string
    FixedIp string
    Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
    Flavor string

    Specifies the specification code.

    NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.

    HaReplicationMode string

    Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.

    • For MySQL, the value is async or semisync.
    • For PostgreSQL, the value is async or sync.
    • For SQLServer, the value is sync.
    • For MariaDB, the value is async or semisync.

    NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.

    LowerCaseTableNames string
    Name string
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    Nodes []RdsInstanceV3NodeArgs
    Indicates the instance nodes information. The nodes object structure is documented below.
    ParamGroupId string
    Specifies the parameter group ID. Changing this parameter will create a new resource.
    Parameters []RdsInstanceV3ParameterArgs

    Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.

    The db block supports:

    Period float64
    PeriodUnit string
    PrivateIps []string
    Indicates the private IP address list. It is a blank string until an ECS is created.
    PublicIps []string
    Indicates the public IP address list.
    RdsInstanceV3Id string
    Indicates the node ID.
    Region string
    Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
    Restore RdsInstanceV3RestoreArgs
    SecurityGroupId string
    Specifies the security group which the RDS DB instance belongs to.
    SslEnable bool
    Specifies whether to enable the SSL for MySQL database.
    Status string
    Indicates the node status.
    SubnetId string
    Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
    Tags map[string]string
    A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
    TimeZone string
    Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
    Timeouts RdsInstanceV3TimeoutsArgs
    Volume RdsInstanceV3VolumeArgs
    Specifies the volume information. The volume object structure is documented below.
    VpcId string
    Specifies the VPC ID. Changing this parameter will create a new resource.
    autoPay String

    Deprecated: Deprecated

    autoRenew String
    availabilityZones List<String>
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    backupStrategy RdsInstanceV3BackupStrategy
    Specifies the advanced backup policy. The backup_strategy object structure is documented below.
    chargingMode String
    collation String
    created String
    Indicates the creation time.
    db RdsInstanceV3Db
    Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
    description String
    Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
    dssPoolId String
    enterpriseProjectId String
    fixedIp String
    Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
    flavor String

    Specifies the specification code.

    NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.

    haReplicationMode String

    Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.

    • For MySQL, the value is async or semisync.
    • For PostgreSQL, the value is async or sync.
    • For SQLServer, the value is sync.
    • For MariaDB, the value is async or semisync.

    NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.

    lowerCaseTableNames String
    name String
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    nodes List<RdsInstanceV3Node>
    Indicates the instance nodes information. The nodes object structure is documented below.
    paramGroupId String
    Specifies the parameter group ID. Changing this parameter will create a new resource.
    parameters List<RdsInstanceV3Parameter>

    Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.

    The db block supports:

    period Double
    periodUnit String
    privateIps List<String>
    Indicates the private IP address list. It is a blank string until an ECS is created.
    publicIps List<String>
    Indicates the public IP address list.
    rdsInstanceV3Id String
    Indicates the node ID.
    region String
    Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
    restore RdsInstanceV3Restore
    securityGroupId String
    Specifies the security group which the RDS DB instance belongs to.
    sslEnable Boolean
    Specifies whether to enable the SSL for MySQL database.
    status String
    Indicates the node status.
    subnetId String
    Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
    tags Map<String,String>
    A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
    timeZone String
    Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
    timeouts RdsInstanceV3Timeouts
    volume RdsInstanceV3Volume
    Specifies the volume information. The volume object structure is documented below.
    vpcId String
    Specifies the VPC ID. Changing this parameter will create a new resource.
    autoPay string

    Deprecated: Deprecated

    autoRenew string
    availabilityZones string[]
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    backupStrategy RdsInstanceV3BackupStrategy
    Specifies the advanced backup policy. The backup_strategy object structure is documented below.
    chargingMode string
    collation string
    created string
    Indicates the creation time.
    db RdsInstanceV3Db
    Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
    description string
    Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
    dssPoolId string
    enterpriseProjectId string
    fixedIp string
    Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
    flavor string

    Specifies the specification code.

    NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.

    haReplicationMode string

    Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.

    • For MySQL, the value is async or semisync.
    • For PostgreSQL, the value is async or sync.
    • For SQLServer, the value is sync.
    • For MariaDB, the value is async or semisync.

    NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.

    lowerCaseTableNames string
    name string
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    nodes RdsInstanceV3Node[]
    Indicates the instance nodes information. The nodes object structure is documented below.
    paramGroupId string
    Specifies the parameter group ID. Changing this parameter will create a new resource.
    parameters RdsInstanceV3Parameter[]

    Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.

    The db block supports:

    period number
    periodUnit string
    privateIps string[]
    Indicates the private IP address list. It is a blank string until an ECS is created.
    publicIps string[]
    Indicates the public IP address list.
    rdsInstanceV3Id string
    Indicates the node ID.
    region string
    Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
    restore RdsInstanceV3Restore
    securityGroupId string
    Specifies the security group which the RDS DB instance belongs to.
    sslEnable boolean
    Specifies whether to enable the SSL for MySQL database.
    status string
    Indicates the node status.
    subnetId string
    Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
    tags {[key: string]: string}
    A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
    timeZone string
    Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
    timeouts RdsInstanceV3Timeouts
    volume RdsInstanceV3Volume
    Specifies the volume information. The volume object structure is documented below.
    vpcId string
    Specifies the VPC ID. Changing this parameter will create a new resource.
    auto_pay str

    Deprecated: Deprecated

    auto_renew str
    availability_zones Sequence[str]
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    backup_strategy RdsInstanceV3BackupStrategyArgs
    Specifies the advanced backup policy. The backup_strategy object structure is documented below.
    charging_mode str
    collation str
    created str
    Indicates the creation time.
    db RdsInstanceV3DbArgs
    Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
    description str
    Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
    dss_pool_id str
    enterprise_project_id str
    fixed_ip str
    Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
    flavor str

    Specifies the specification code.

    NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.

    ha_replication_mode str

    Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.

    • For MySQL, the value is async or semisync.
    • For PostgreSQL, the value is async or sync.
    • For SQLServer, the value is sync.
    • For MariaDB, the value is async or semisync.

    NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.

    lower_case_table_names str
    name str
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    nodes Sequence[RdsInstanceV3NodeArgs]
    Indicates the instance nodes information. The nodes object structure is documented below.
    param_group_id str
    Specifies the parameter group ID. Changing this parameter will create a new resource.
    parameters Sequence[RdsInstanceV3ParameterArgs]

    Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.

    The db block supports:

    period float
    period_unit str
    private_ips Sequence[str]
    Indicates the private IP address list. It is a blank string until an ECS is created.
    public_ips Sequence[str]
    Indicates the public IP address list.
    rds_instance_v3_id str
    Indicates the node ID.
    region str
    Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
    restore RdsInstanceV3RestoreArgs
    security_group_id str
    Specifies the security group which the RDS DB instance belongs to.
    ssl_enable bool
    Specifies whether to enable the SSL for MySQL database.
    status str
    Indicates the node status.
    subnet_id str
    Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
    tags Mapping[str, str]
    A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
    time_zone str
    Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
    timeouts RdsInstanceV3TimeoutsArgs
    volume RdsInstanceV3VolumeArgs
    Specifies the volume information. The volume object structure is documented below.
    vpc_id str
    Specifies the VPC ID. Changing this parameter will create a new resource.
    autoPay String

    Deprecated: Deprecated

    autoRenew String
    availabilityZones List<String>
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    backupStrategy Property Map
    Specifies the advanced backup policy. The backup_strategy object structure is documented below.
    chargingMode String
    collation String
    created String
    Indicates the creation time.
    db Property Map
    Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
    description String
    Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
    dssPoolId String
    enterpriseProjectId String
    fixedIp String
    Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
    flavor String

    Specifies the specification code.

    NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.

    haReplicationMode String

    Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.

    • For MySQL, the value is async or semisync.
    • For PostgreSQL, the value is async or sync.
    • For SQLServer, the value is sync.
    • For MariaDB, the value is async or semisync.

    NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.

    lowerCaseTableNames String
    name String
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    nodes List<Property Map>
    Indicates the instance nodes information. The nodes object structure is documented below.
    paramGroupId String
    Specifies the parameter group ID. Changing this parameter will create a new resource.
    parameters List<Property Map>

    Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.

    The db block supports:

    period Number
    periodUnit String
    privateIps List<String>
    Indicates the private IP address list. It is a blank string until an ECS is created.
    publicIps List<String>
    Indicates the public IP address list.
    rdsInstanceV3Id String
    Indicates the node ID.
    region String
    Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
    restore Property Map
    securityGroupId String
    Specifies the security group which the RDS DB instance belongs to.
    sslEnable Boolean
    Specifies whether to enable the SSL for MySQL database.
    status String
    Indicates the node status.
    subnetId String
    Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
    tags Map<String>
    A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
    timeZone String
    Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
    timeouts Property Map
    volume Property Map
    Specifies the volume information. The volume object structure is documented below.
    vpcId String
    Specifies the VPC ID. Changing this parameter will create a new resource.

    Supporting Types

    RdsInstanceV3BackupStrategy, RdsInstanceV3BackupStrategyArgs

    StartTime string

    Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the hh:mm-HH:MM format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to any of the following: 00, 15, 30, or 45. Example value: 08:15-09:15 23:00-00:00.

    The parameters block supports:

    KeepDays double

    Specifies the retention days for specific backup files. The value range is from 0 to 732. If this parameter is not specified or set to 0, the automated backup policy is disabled.

    NOTE: Primary/standby DB instances of Microsoft SQL Server do not support disabling the automated backup policy.

    Period string
    StartTime string

    Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the hh:mm-HH:MM format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to any of the following: 00, 15, 30, or 45. Example value: 08:15-09:15 23:00-00:00.

    The parameters block supports:

    KeepDays float64

    Specifies the retention days for specific backup files. The value range is from 0 to 732. If this parameter is not specified or set to 0, the automated backup policy is disabled.

    NOTE: Primary/standby DB instances of Microsoft SQL Server do not support disabling the automated backup policy.

    Period string
    startTime String

    Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the hh:mm-HH:MM format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to any of the following: 00, 15, 30, or 45. Example value: 08:15-09:15 23:00-00:00.

    The parameters block supports:

    keepDays Double

    Specifies the retention days for specific backup files. The value range is from 0 to 732. If this parameter is not specified or set to 0, the automated backup policy is disabled.

    NOTE: Primary/standby DB instances of Microsoft SQL Server do not support disabling the automated backup policy.

    period String
    startTime string

    Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the hh:mm-HH:MM format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to any of the following: 00, 15, 30, or 45. Example value: 08:15-09:15 23:00-00:00.

    The parameters block supports:

    keepDays number

    Specifies the retention days for specific backup files. The value range is from 0 to 732. If this parameter is not specified or set to 0, the automated backup policy is disabled.

    NOTE: Primary/standby DB instances of Microsoft SQL Server do not support disabling the automated backup policy.

    period string
    start_time str

    Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the hh:mm-HH:MM format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to any of the following: 00, 15, 30, or 45. Example value: 08:15-09:15 23:00-00:00.

    The parameters block supports:

    keep_days float

    Specifies the retention days for specific backup files. The value range is from 0 to 732. If this parameter is not specified or set to 0, the automated backup policy is disabled.

    NOTE: Primary/standby DB instances of Microsoft SQL Server do not support disabling the automated backup policy.

    period str
    startTime String

    Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the hh:mm-HH:MM format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to any of the following: 00, 15, 30, or 45. Example value: 08:15-09:15 23:00-00:00.

    The parameters block supports:

    keepDays Number

    Specifies the retention days for specific backup files. The value range is from 0 to 732. If this parameter is not specified or set to 0, the automated backup policy is disabled.

    NOTE: Primary/standby DB instances of Microsoft SQL Server do not support disabling the automated backup policy.

    period String

    RdsInstanceV3Db, RdsInstanceV3DbArgs

    Type string

    Specifies the volume type. Its value can be any of the following and is case-sensitive:

    • COMMON: indicates the SATA type.
    • ULTRAHIGH: indicates the SSD type.
    • CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.

    Changing this parameter will create a new resource.

    Version string

    Specifies the database version. The supported versions of each database are as follows:

    • MySQL: MySQL databases support 5.6, 5.7 and 8.0.
    • PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
    • SQLServer: SQLServer databases support 2014 SE and 2014 EE.
    • MariaDB: MariaDB databases support 10.5.

    Changing this parameter will create a new resource.

    Password string
    Specifies the database password. The value cannot be empty and should contain 8 to 32 characters, including uppercase and lowercase letters, digits, and the following special characters: ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking. Changing this parameter will create a new resource.
    Port double

    Specifies the database port.

    • The MySQL database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
    • The PostgreSQL database port ranges from 2100 to 9500. The default value is 5432.
    • The Microsoft SQL Server database port can be 1433 or ranges from 2100 to 9500, excluding 5355 and 5985. The default value is 1433.
    • The MariaDB database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.

    The volume block supports:

    UserName string
    Indicates the default username of database.
    Type string

    Specifies the volume type. Its value can be any of the following and is case-sensitive:

    • COMMON: indicates the SATA type.
    • ULTRAHIGH: indicates the SSD type.
    • CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.

    Changing this parameter will create a new resource.

    Version string

    Specifies the database version. The supported versions of each database are as follows:

    • MySQL: MySQL databases support 5.6, 5.7 and 8.0.
    • PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
    • SQLServer: SQLServer databases support 2014 SE and 2014 EE.
    • MariaDB: MariaDB databases support 10.5.

    Changing this parameter will create a new resource.

    Password string
    Specifies the database password. The value cannot be empty and should contain 8 to 32 characters, including uppercase and lowercase letters, digits, and the following special characters: ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking. Changing this parameter will create a new resource.
    Port float64

    Specifies the database port.

    • The MySQL database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
    • The PostgreSQL database port ranges from 2100 to 9500. The default value is 5432.
    • The Microsoft SQL Server database port can be 1433 or ranges from 2100 to 9500, excluding 5355 and 5985. The default value is 1433.
    • The MariaDB database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.

    The volume block supports:

    UserName string
    Indicates the default username of database.
    type String

    Specifies the volume type. Its value can be any of the following and is case-sensitive:

    • COMMON: indicates the SATA type.
    • ULTRAHIGH: indicates the SSD type.
    • CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.

    Changing this parameter will create a new resource.

    version String

    Specifies the database version. The supported versions of each database are as follows:

    • MySQL: MySQL databases support 5.6, 5.7 and 8.0.
    • PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
    • SQLServer: SQLServer databases support 2014 SE and 2014 EE.
    • MariaDB: MariaDB databases support 10.5.

    Changing this parameter will create a new resource.

    password String
    Specifies the database password. The value cannot be empty and should contain 8 to 32 characters, including uppercase and lowercase letters, digits, and the following special characters: ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking. Changing this parameter will create a new resource.
    port Double

    Specifies the database port.

    • The MySQL database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
    • The PostgreSQL database port ranges from 2100 to 9500. The default value is 5432.
    • The Microsoft SQL Server database port can be 1433 or ranges from 2100 to 9500, excluding 5355 and 5985. The default value is 1433.
    • The MariaDB database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.

    The volume block supports:

    userName String
    Indicates the default username of database.
    type string

    Specifies the volume type. Its value can be any of the following and is case-sensitive:

    • COMMON: indicates the SATA type.
    • ULTRAHIGH: indicates the SSD type.
    • CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.

    Changing this parameter will create a new resource.

    version string

    Specifies the database version. The supported versions of each database are as follows:

    • MySQL: MySQL databases support 5.6, 5.7 and 8.0.
    • PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
    • SQLServer: SQLServer databases support 2014 SE and 2014 EE.
    • MariaDB: MariaDB databases support 10.5.

    Changing this parameter will create a new resource.

    password string
    Specifies the database password. The value cannot be empty and should contain 8 to 32 characters, including uppercase and lowercase letters, digits, and the following special characters: ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking. Changing this parameter will create a new resource.
    port number

    Specifies the database port.

    • The MySQL database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
    • The PostgreSQL database port ranges from 2100 to 9500. The default value is 5432.
    • The Microsoft SQL Server database port can be 1433 or ranges from 2100 to 9500, excluding 5355 and 5985. The default value is 1433.
    • The MariaDB database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.

    The volume block supports:

    userName string
    Indicates the default username of database.
    type str

    Specifies the volume type. Its value can be any of the following and is case-sensitive:

    • COMMON: indicates the SATA type.
    • ULTRAHIGH: indicates the SSD type.
    • CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.

    Changing this parameter will create a new resource.

    version str

    Specifies the database version. The supported versions of each database are as follows:

    • MySQL: MySQL databases support 5.6, 5.7 and 8.0.
    • PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
    • SQLServer: SQLServer databases support 2014 SE and 2014 EE.
    • MariaDB: MariaDB databases support 10.5.

    Changing this parameter will create a new resource.

    password str
    Specifies the database password. The value cannot be empty and should contain 8 to 32 characters, including uppercase and lowercase letters, digits, and the following special characters: ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking. Changing this parameter will create a new resource.
    port float

    Specifies the database port.

    • The MySQL database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
    • The PostgreSQL database port ranges from 2100 to 9500. The default value is 5432.
    • The Microsoft SQL Server database port can be 1433 or ranges from 2100 to 9500, excluding 5355 and 5985. The default value is 1433.
    • The MariaDB database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.

    The volume block supports:

    user_name str
    Indicates the default username of database.
    type String

    Specifies the volume type. Its value can be any of the following and is case-sensitive:

    • COMMON: indicates the SATA type.
    • ULTRAHIGH: indicates the SSD type.
    • CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.

    Changing this parameter will create a new resource.

    version String

    Specifies the database version. The supported versions of each database are as follows:

    • MySQL: MySQL databases support 5.6, 5.7 and 8.0.
    • PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
    • SQLServer: SQLServer databases support 2014 SE and 2014 EE.
    • MariaDB: MariaDB databases support 10.5.

    Changing this parameter will create a new resource.

    password String
    Specifies the database password. The value cannot be empty and should contain 8 to 32 characters, including uppercase and lowercase letters, digits, and the following special characters: ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking. Changing this parameter will create a new resource.
    port Number

    Specifies the database port.

    • The MySQL database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
    • The PostgreSQL database port ranges from 2100 to 9500. The default value is 5432.
    • The Microsoft SQL Server database port can be 1433 or ranges from 2100 to 9500, excluding 5355 and 5985. The default value is 1433.
    • The MariaDB database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.

    The volume block supports:

    userName String
    Indicates the default username of database.

    RdsInstanceV3Node, RdsInstanceV3NodeArgs

    AvailabilityZone string
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    Id string
    Indicates the node ID.
    Name string
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    Role string
    Indicates the node type. The value can be master or slave, indicating the primary node or standby node respectively.
    Status string
    Indicates the node status.
    AvailabilityZone string
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    Id string
    Indicates the node ID.
    Name string
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    Role string
    Indicates the node type. The value can be master or slave, indicating the primary node or standby node respectively.
    Status string
    Indicates the node status.
    availabilityZone String
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    id String
    Indicates the node ID.
    name String
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    role String
    Indicates the node type. The value can be master or slave, indicating the primary node or standby node respectively.
    status String
    Indicates the node status.
    availabilityZone string
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    id string
    Indicates the node ID.
    name string
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    role string
    Indicates the node type. The value can be master or slave, indicating the primary node or standby node respectively.
    status string
    Indicates the node status.
    availability_zone str
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    id str
    Indicates the node ID.
    name str
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    role str
    Indicates the node type. The value can be master or slave, indicating the primary node or standby node respectively.
    status str
    Indicates the node status.
    availabilityZone String
    Specifies the list of AZ name. Changing this parameter will create a new resource.
    id String
    Indicates the node ID.
    name String
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    role String
    Indicates the node type. The value can be master or slave, indicating the primary node or standby node respectively.
    status String
    Indicates the node status.

    RdsInstanceV3Parameter, RdsInstanceV3ParameterArgs

    Name string
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    Value string
    Specifies the parameter value.
    Name string
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    Value string
    Specifies the parameter value.
    name String
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    value String
    Specifies the parameter value.
    name string
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    value string
    Specifies the parameter value.
    name str
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    value str
    Specifies the parameter value.
    name String
    Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
    value String
    Specifies the parameter value.

    RdsInstanceV3Restore, RdsInstanceV3RestoreArgs

    BackupId string
    InstanceId string
    DatabaseName Dictionary<string, string>
    BackupId string
    InstanceId string
    DatabaseName map[string]string
    backupId String
    instanceId String
    databaseName Map<String,String>
    backupId string
    instanceId string
    databaseName {[key: string]: string}
    backup_id str
    instance_id str
    database_name Mapping[str, str]
    backupId String
    instanceId String
    databaseName Map<String>

    RdsInstanceV3Timeouts, RdsInstanceV3TimeoutsArgs

    Create string
    Default string
    Delete string
    Update string
    Create string
    Default string
    Delete string
    Update string
    create String
    default_ String
    delete String
    update String
    create string
    default string
    delete string
    update string
    create String
    default String
    delete String
    update String

    RdsInstanceV3Volume, RdsInstanceV3VolumeArgs

    Size double
    Specifies the volume size. Its value range is from 40 GB to 4000 GB. The value must be a multiple of 10 and greater than the original size.
    Type string

    Specifies the volume type. Its value can be any of the following and is case-sensitive:

    • COMMON: indicates the SATA type.
    • ULTRAHIGH: indicates the SSD type.
    • CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.

    Changing this parameter will create a new resource.

    DiskEncryptionId string

    Specifies the key ID for disk encryption. Changing this parameter will create a new resource.

    The backup_strategy block supports:

    LimitSize double
    TriggerThreshold double
    Size float64
    Specifies the volume size. Its value range is from 40 GB to 4000 GB. The value must be a multiple of 10 and greater than the original size.
    Type string

    Specifies the volume type. Its value can be any of the following and is case-sensitive:

    • COMMON: indicates the SATA type.
    • ULTRAHIGH: indicates the SSD type.
    • CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.

    Changing this parameter will create a new resource.

    DiskEncryptionId string

    Specifies the key ID for disk encryption. Changing this parameter will create a new resource.

    The backup_strategy block supports:

    LimitSize float64
    TriggerThreshold float64
    size Double
    Specifies the volume size. Its value range is from 40 GB to 4000 GB. The value must be a multiple of 10 and greater than the original size.
    type String

    Specifies the volume type. Its value can be any of the following and is case-sensitive:

    • COMMON: indicates the SATA type.
    • ULTRAHIGH: indicates the SSD type.
    • CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.

    Changing this parameter will create a new resource.

    diskEncryptionId String

    Specifies the key ID for disk encryption. Changing this parameter will create a new resource.

    The backup_strategy block supports:

    limitSize Double
    triggerThreshold Double
    size number
    Specifies the volume size. Its value range is from 40 GB to 4000 GB. The value must be a multiple of 10 and greater than the original size.
    type string

    Specifies the volume type. Its value can be any of the following and is case-sensitive:

    • COMMON: indicates the SATA type.
    • ULTRAHIGH: indicates the SSD type.
    • CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.

    Changing this parameter will create a new resource.

    diskEncryptionId string

    Specifies the key ID for disk encryption. Changing this parameter will create a new resource.

    The backup_strategy block supports:

    limitSize number
    triggerThreshold number
    size float
    Specifies the volume size. Its value range is from 40 GB to 4000 GB. The value must be a multiple of 10 and greater than the original size.
    type str

    Specifies the volume type. Its value can be any of the following and is case-sensitive:

    • COMMON: indicates the SATA type.
    • ULTRAHIGH: indicates the SSD type.
    • CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.

    Changing this parameter will create a new resource.

    disk_encryption_id str

    Specifies the key ID for disk encryption. Changing this parameter will create a new resource.

    The backup_strategy block supports:

    limit_size float
    trigger_threshold float
    size Number
    Specifies the volume size. Its value range is from 40 GB to 4000 GB. The value must be a multiple of 10 and greater than the original size.
    type String

    Specifies the volume type. Its value can be any of the following and is case-sensitive:

    • COMMON: indicates the SATA type.
    • ULTRAHIGH: indicates the SSD type.
    • CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.

    Changing this parameter will create a new resource.

    diskEncryptionId String

    Specifies the key ID for disk encryption. Changing this parameter will create a new resource.

    The backup_strategy block supports:

    limitSize Number
    triggerThreshold Number

    Import

    RDS instance can be imported using the id, e.g.

    $ pulumi import flexibleengine:index/rdsInstanceV3:RdsInstanceV3 instance_1 7117d38e-4c8f-4624-a505-bd96b97d024c
    

    But due to some attributes missing from the API response, it’s required to ignore changes as below.

    hcl

    resource “flexibleengine_rds_instance_v3” “instance_1” {

    lifecycle {

    ignore_changes = [
    
      "db",
    
    ]
    

    }

    }

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud