volcengine.rds_v2.RdsInstanceV2
Explore with Pulumi AI
(Deprecated! Recommend use volcengine_rds_mysql_*** replace) Provides a resource to manage rds instance v2
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooZones = volcengine.ecs.Zones({});
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
vpcName: "acc-test-vpc",
cidrBlock: "172.16.0.0/16",
});
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
subnetName: "acc-test-subnet",
cidrBlock: "172.16.0.0/24",
zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
vpcId: fooVpc.id,
});
const fooRdsInstanceV2 = new volcengine.rds_v2.RdsInstanceV2("fooRdsInstanceV2", {
dbEngineVersion: "MySQL_5_7",
nodeInfos: [
{
nodeType: "Primary",
nodeSpec: "rds.mysql.2c4g",
zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
},
{
nodeType: "Secondary",
nodeSpec: "rds.mysql.2c4g",
zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
},
],
storageType: "LocalSSD",
storageSpace: 100,
vpcId: fooVpc.id,
subnetId: fooSubnet.id,
instanceName: "tf-test-v2",
lowerCaseTableNames: "1",
chargeInfo: {
chargeType: "PostPaid",
},
});
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.ecs.zones()
foo_vpc = volcengine.vpc.Vpc("fooVpc",
vpc_name="acc-test-vpc",
cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
subnet_name="acc-test-subnet",
cidr_block="172.16.0.0/24",
zone_id=foo_zones.zones[0].id,
vpc_id=foo_vpc.id)
foo_rds_instance_v2 = volcengine.rds_v2.RdsInstanceV2("fooRdsInstanceV2",
db_engine_version="MySQL_5_7",
node_infos=[
volcengine.rds_v2.RdsInstanceV2NodeInfoArgs(
node_type="Primary",
node_spec="rds.mysql.2c4g",
zone_id=foo_zones.zones[0].id,
),
volcengine.rds_v2.RdsInstanceV2NodeInfoArgs(
node_type="Secondary",
node_spec="rds.mysql.2c4g",
zone_id=foo_zones.zones[0].id,
),
],
storage_type="LocalSSD",
storage_space=100,
vpc_id=foo_vpc.id,
subnet_id=foo_subnet.id,
instance_name="tf-test-v2",
lower_case_table_names="1",
charge_info=volcengine.rds_v2.RdsInstanceV2ChargeInfoArgs(
charge_type="PostPaid",
))
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_v2"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooZones, err := ecs.Zones(ctx, nil, nil)
if err != nil {
return err
}
fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
VpcName: pulumi.String("acc-test-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet"),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String(fooZones.Zones[0].Id),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
_, err = rds_v2.NewRdsInstanceV2(ctx, "fooRdsInstanceV2", &rds_v2.RdsInstanceV2Args{
DbEngineVersion: pulumi.String("MySQL_5_7"),
NodeInfos: rds_v2.RdsInstanceV2NodeInfoArray{
&rds_v2.RdsInstanceV2NodeInfoArgs{
NodeType: pulumi.String("Primary"),
NodeSpec: pulumi.String("rds.mysql.2c4g"),
ZoneId: pulumi.String(fooZones.Zones[0].Id),
},
&rds_v2.RdsInstanceV2NodeInfoArgs{
NodeType: pulumi.String("Secondary"),
NodeSpec: pulumi.String("rds.mysql.2c4g"),
ZoneId: pulumi.String(fooZones.Zones[0].Id),
},
},
StorageType: pulumi.String("LocalSSD"),
StorageSpace: pulumi.Int(100),
VpcId: fooVpc.ID(),
SubnetId: fooSubnet.ID(),
InstanceName: pulumi.String("tf-test-v2"),
LowerCaseTableNames: pulumi.String("1"),
ChargeInfo: &rds_v2.RdsInstanceV2ChargeInfoArgs{
ChargeType: pulumi.String("PostPaid"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooZones = Volcengine.Ecs.Zones.Invoke();
var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
{
VpcName = "acc-test-vpc",
CidrBlock = "172.16.0.0/16",
});
var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
{
SubnetName = "acc-test-subnet",
CidrBlock = "172.16.0.0/24",
ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
VpcId = fooVpc.Id,
});
var fooRdsInstanceV2 = new Volcengine.Rds_v2.RdsInstanceV2("fooRdsInstanceV2", new()
{
DbEngineVersion = "MySQL_5_7",
NodeInfos = new[]
{
new Volcengine.Rds_v2.Inputs.RdsInstanceV2NodeInfoArgs
{
NodeType = "Primary",
NodeSpec = "rds.mysql.2c4g",
ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
},
new Volcengine.Rds_v2.Inputs.RdsInstanceV2NodeInfoArgs
{
NodeType = "Secondary",
NodeSpec = "rds.mysql.2c4g",
ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
},
},
StorageType = "LocalSSD",
StorageSpace = 100,
VpcId = fooVpc.Id,
SubnetId = fooSubnet.Id,
InstanceName = "tf-test-v2",
LowerCaseTableNames = "1",
ChargeInfo = new Volcengine.Rds_v2.Inputs.RdsInstanceV2ChargeInfoArgs
{
ChargeType = "PostPaid",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.rds_v2.RdsInstanceV2;
import com.pulumi.volcengine.rds_v2.RdsInstanceV2Args;
import com.pulumi.volcengine.rds_v2.inputs.RdsInstanceV2NodeInfoArgs;
import com.pulumi.volcengine.rds_v2.inputs.RdsInstanceV2ChargeInfoArgs;
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) {
final var fooZones = EcsFunctions.Zones();
var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.vpcName("acc-test-vpc")
.cidrBlock("172.16.0.0/16")
.build());
var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
.subnetName("acc-test-subnet")
.cidrBlock("172.16.0.0/24")
.zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
.vpcId(fooVpc.id())
.build());
var fooRdsInstanceV2 = new RdsInstanceV2("fooRdsInstanceV2", RdsInstanceV2Args.builder()
.dbEngineVersion("MySQL_5_7")
.nodeInfos(
RdsInstanceV2NodeInfoArgs.builder()
.nodeType("Primary")
.nodeSpec("rds.mysql.2c4g")
.zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
.build(),
RdsInstanceV2NodeInfoArgs.builder()
.nodeType("Secondary")
.nodeSpec("rds.mysql.2c4g")
.zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
.build())
.storageType("LocalSSD")
.storageSpace(100)
.vpcId(fooVpc.id())
.subnetId(fooSubnet.id())
.instanceName("tf-test-v2")
.lowerCaseTableNames("1")
.chargeInfo(RdsInstanceV2ChargeInfoArgs.builder()
.chargeType("PostPaid")
.build())
.build());
}
}
resources:
fooVpc:
type: volcengine:vpc:Vpc
properties:
vpcName: acc-test-vpc
cidrBlock: 172.16.0.0/16
fooSubnet:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-test-subnet
cidrBlock: 172.16.0.0/24
zoneId: ${fooZones.zones[0].id}
vpcId: ${fooVpc.id}
fooRdsInstanceV2:
type: volcengine:rds_v2:RdsInstanceV2
properties:
dbEngineVersion: MySQL_5_7
nodeInfos:
- nodeType: Primary
nodeSpec: rds.mysql.2c4g
zoneId: ${fooZones.zones[0].id}
- nodeType: Secondary
nodeSpec: rds.mysql.2c4g
zoneId: ${fooZones.zones[0].id}
storageType: LocalSSD
storageSpace: 100
vpcId: ${fooVpc.id}
subnetId: ${fooSubnet.id}
instanceName: tf-test-v2
lowerCaseTableNames: '1'
chargeInfo:
chargeType: PostPaid
variables:
fooZones:
fn::invoke:
Function: volcengine:ecs:Zones
Arguments: {}
Create RdsInstanceV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RdsInstanceV2(name: string, args: RdsInstanceV2Args, opts?: CustomResourceOptions);
@overload
def RdsInstanceV2(resource_name: str,
args: RdsInstanceV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def RdsInstanceV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
charge_info: Optional[RdsInstanceV2ChargeInfoArgs] = None,
db_engine_version: Optional[str] = None,
vpc_id: Optional[str] = None,
subnet_id: Optional[str] = None,
storage_type: Optional[str] = None,
node_infos: Optional[Sequence[RdsInstanceV2NodeInfoArgs]] = None,
lower_case_table_names: Optional[str] = None,
instance_type: Optional[str] = None,
project_name: Optional[str] = None,
storage_space: Optional[int] = None,
instance_name: Optional[str] = None,
db_time_zone: Optional[str] = None,
db_param_group_id: Optional[str] = None)
func NewRdsInstanceV2(ctx *Context, name string, args RdsInstanceV2Args, opts ...ResourceOption) (*RdsInstanceV2, error)
public RdsInstanceV2(string name, RdsInstanceV2Args args, CustomResourceOptions? opts = null)
public RdsInstanceV2(String name, RdsInstanceV2Args args)
public RdsInstanceV2(String name, RdsInstanceV2Args args, CustomResourceOptions options)
type: volcengine:rds_v2:RdsInstanceV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. RdsInstanceV2Args - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. RdsInstanceV2Args - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. RdsInstanceV2Args - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. RdsInstanceV2Args - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. RdsInstanceV2Args - 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 rdsInstanceV2Resource = new Volcengine.Rds_v2.RdsInstanceV2("rdsInstanceV2Resource", new()
{
ChargeInfo = new Volcengine.Rds_v2.Inputs.RdsInstanceV2ChargeInfoArgs
{
ChargeType = "string",
AutoRenew = false,
Period = 0,
PeriodUnit = "string",
},
DbEngineVersion = "string",
VpcId = "string",
SubnetId = "string",
StorageType = "string",
NodeInfos = new[]
{
new Volcengine.Rds_v2.Inputs.RdsInstanceV2NodeInfoArgs
{
NodeSpec = "string",
NodeType = "string",
ZoneId = "string",
NodeId = "string",
},
},
LowerCaseTableNames = "string",
ProjectName = "string",
StorageSpace = 0,
InstanceName = "string",
DbTimeZone = "string",
DbParamGroupId = "string",
});
example, err := rds_v2.NewRdsInstanceV2(ctx, "rdsInstanceV2Resource", &rds_v2.RdsInstanceV2Args{
ChargeInfo: &rds_v2.RdsInstanceV2ChargeInfoArgs{
ChargeType: pulumi.String("string"),
AutoRenew: pulumi.Bool(false),
Period: pulumi.Int(0),
PeriodUnit: pulumi.String("string"),
},
DbEngineVersion: pulumi.String("string"),
VpcId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
StorageType: pulumi.String("string"),
NodeInfos: rds_v2.RdsInstanceV2NodeInfoArray{
&rds_v2.RdsInstanceV2NodeInfoArgs{
NodeSpec: pulumi.String("string"),
NodeType: pulumi.String("string"),
ZoneId: pulumi.String("string"),
NodeId: pulumi.String("string"),
},
},
LowerCaseTableNames: pulumi.String("string"),
ProjectName: pulumi.String("string"),
StorageSpace: pulumi.Int(0),
InstanceName: pulumi.String("string"),
DbTimeZone: pulumi.String("string"),
DbParamGroupId: pulumi.String("string"),
})
var rdsInstanceV2Resource = new RdsInstanceV2("rdsInstanceV2Resource", RdsInstanceV2Args.builder()
.chargeInfo(RdsInstanceV2ChargeInfoArgs.builder()
.chargeType("string")
.autoRenew(false)
.period(0)
.periodUnit("string")
.build())
.dbEngineVersion("string")
.vpcId("string")
.subnetId("string")
.storageType("string")
.nodeInfos(RdsInstanceV2NodeInfoArgs.builder()
.nodeSpec("string")
.nodeType("string")
.zoneId("string")
.nodeId("string")
.build())
.lowerCaseTableNames("string")
.projectName("string")
.storageSpace(0)
.instanceName("string")
.dbTimeZone("string")
.dbParamGroupId("string")
.build());
rds_instance_v2_resource = volcengine.rds_v2.RdsInstanceV2("rdsInstanceV2Resource",
charge_info={
"charge_type": "string",
"auto_renew": False,
"period": 0,
"period_unit": "string",
},
db_engine_version="string",
vpc_id="string",
subnet_id="string",
storage_type="string",
node_infos=[{
"node_spec": "string",
"node_type": "string",
"zone_id": "string",
"node_id": "string",
}],
lower_case_table_names="string",
project_name="string",
storage_space=0,
instance_name="string",
db_time_zone="string",
db_param_group_id="string")
const rdsInstanceV2Resource = new volcengine.rds_v2.RdsInstanceV2("rdsInstanceV2Resource", {
chargeInfo: {
chargeType: "string",
autoRenew: false,
period: 0,
periodUnit: "string",
},
dbEngineVersion: "string",
vpcId: "string",
subnetId: "string",
storageType: "string",
nodeInfos: [{
nodeSpec: "string",
nodeType: "string",
zoneId: "string",
nodeId: "string",
}],
lowerCaseTableNames: "string",
projectName: "string",
storageSpace: 0,
instanceName: "string",
dbTimeZone: "string",
dbParamGroupId: "string",
});
type: volcengine:rds_v2:RdsInstanceV2
properties:
chargeInfo:
autoRenew: false
chargeType: string
period: 0
periodUnit: string
dbEngineVersion: string
dbParamGroupId: string
dbTimeZone: string
instanceName: string
lowerCaseTableNames: string
nodeInfos:
- nodeId: string
nodeSpec: string
nodeType: string
zoneId: string
projectName: string
storageSpace: 0
storageType: string
subnetId: string
vpcId: string
RdsInstanceV2 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 RdsInstanceV2 resource accepts the following input properties:
- Charge
Info This property is required. Changes to this property will trigger replacement.
Instance V2Charge Info - Payment methods.
- Db
Engine Version This property is required. Changes to this property will trigger replacement.
- Instance type. Value: MySQL_5_7 MySQL_8_0.
- Node
Infos This property is required. List<RdsInstance V2Node Info> - Instance specification configuration. This parameter is required for RDS for MySQL, RDS for PostgreSQL and MySQL Sharding. There is one and only one Primary node, one and only one Secondary node, and 0-10 Read-Only nodes.
- Storage
Type This property is required. string - Instance storage type. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, the value is: LocalSSD - local SSD disk When the database type is veDB_MySQL/veDB_PostgreSQL, the value is: DistributedStorage - Distributed Storage.
- Subnet
Id This property is required. Changes to this property will trigger replacement.
- Subnet ID.
- Vpc
Id This property is required. Changes to this property will trigger replacement.
- Private network (VPC) ID. You can call the DescribeVpcs query and use this parameter to specify the VPC where the instance is to be created.
- Db
Param Group Id Changes to this property will trigger replacement.
- Parameter template ID. It only takes effect when the database type is MySQL/PostgreSQL/SQL_Server. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Db
Time Zone Changes to this property will trigger replacement.
- Time zone. Support UTC -12:00 ~ +13:00. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Instance
Name Changes to this property will trigger replacement.
- Instance name. Cannot start with a number or a dash Can only contain Chinese characters, letters, numbers, underscores and dashes The length is limited between 1 ~ 128.
- Instance
Type string - The field instance_type is no longer support. The type of Instance.
- Lower
Case Table Names Changes to this property will trigger replacement.
- Whether the table name is case sensitive, the default value is 1. Ranges: 0: Table names are stored as fixed and table names are case-sensitive. 1: Table names will be stored in lowercase and table names are not case sensitive.
- Project
Name string - Subordinate to the project.
- Storage
Space int - Instance storage space. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, value range: [20, 3000], unit: GB, increments every 100GB. When the database type is veDB_MySQL/veDB_PostgreSQL, this parameter does not need to be passed.
- Charge
Info This property is required. Changes to this property will trigger replacement.
Instance V2Charge Info Args - Payment methods.
- Db
Engine Version This property is required. Changes to this property will trigger replacement.
- Instance type. Value: MySQL_5_7 MySQL_8_0.
- Node
Infos This property is required. []RdsInstance V2Node Info Args - Instance specification configuration. This parameter is required for RDS for MySQL, RDS for PostgreSQL and MySQL Sharding. There is one and only one Primary node, one and only one Secondary node, and 0-10 Read-Only nodes.
- Storage
Type This property is required. string - Instance storage type. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, the value is: LocalSSD - local SSD disk When the database type is veDB_MySQL/veDB_PostgreSQL, the value is: DistributedStorage - Distributed Storage.
- Subnet
Id This property is required. Changes to this property will trigger replacement.
- Subnet ID.
- Vpc
Id This property is required. Changes to this property will trigger replacement.
- Private network (VPC) ID. You can call the DescribeVpcs query and use this parameter to specify the VPC where the instance is to be created.
- Db
Param Group Id Changes to this property will trigger replacement.
- Parameter template ID. It only takes effect when the database type is MySQL/PostgreSQL/SQL_Server. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Db
Time Zone Changes to this property will trigger replacement.
- Time zone. Support UTC -12:00 ~ +13:00. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Instance
Name Changes to this property will trigger replacement.
- Instance name. Cannot start with a number or a dash Can only contain Chinese characters, letters, numbers, underscores and dashes The length is limited between 1 ~ 128.
- Instance
Type string - The field instance_type is no longer support. The type of Instance.
- Lower
Case Table Names Changes to this property will trigger replacement.
- Whether the table name is case sensitive, the default value is 1. Ranges: 0: Table names are stored as fixed and table names are case-sensitive. 1: Table names will be stored in lowercase and table names are not case sensitive.
- Project
Name string - Subordinate to the project.
- Storage
Space int - Instance storage space. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, value range: [20, 3000], unit: GB, increments every 100GB. When the database type is veDB_MySQL/veDB_PostgreSQL, this parameter does not need to be passed.
- charge
Info This property is required. Changes to this property will trigger replacement.
Instance V2Charge Info - Payment methods.
- db
Engine Version This property is required. Changes to this property will trigger replacement.
- Instance type. Value: MySQL_5_7 MySQL_8_0.
- node
Infos This property is required. List<RdsInstance V2Node Info> - Instance specification configuration. This parameter is required for RDS for MySQL, RDS for PostgreSQL and MySQL Sharding. There is one and only one Primary node, one and only one Secondary node, and 0-10 Read-Only nodes.
- storage
Type This property is required. String - Instance storage type. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, the value is: LocalSSD - local SSD disk When the database type is veDB_MySQL/veDB_PostgreSQL, the value is: DistributedStorage - Distributed Storage.
- subnet
Id This property is required. Changes to this property will trigger replacement.
- Subnet ID.
- vpc
Id This property is required. Changes to this property will trigger replacement.
- Private network (VPC) ID. You can call the DescribeVpcs query and use this parameter to specify the VPC where the instance is to be created.
- db
Param Group Id Changes to this property will trigger replacement.
- Parameter template ID. It only takes effect when the database type is MySQL/PostgreSQL/SQL_Server. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- db
Time Zone Changes to this property will trigger replacement.
- Time zone. Support UTC -12:00 ~ +13:00. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- instance
Name Changes to this property will trigger replacement.
- Instance name. Cannot start with a number or a dash Can only contain Chinese characters, letters, numbers, underscores and dashes The length is limited between 1 ~ 128.
- instance
Type String - The field instance_type is no longer support. The type of Instance.
- lower
Case Table Names Changes to this property will trigger replacement.
- Whether the table name is case sensitive, the default value is 1. Ranges: 0: Table names are stored as fixed and table names are case-sensitive. 1: Table names will be stored in lowercase and table names are not case sensitive.
- project
Name String - Subordinate to the project.
- storage
Space Integer - Instance storage space. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, value range: [20, 3000], unit: GB, increments every 100GB. When the database type is veDB_MySQL/veDB_PostgreSQL, this parameter does not need to be passed.
- charge
Info This property is required. Changes to this property will trigger replacement.
Instance V2Charge Info - Payment methods.
- db
Engine Version This property is required. Changes to this property will trigger replacement.
- Instance type. Value: MySQL_5_7 MySQL_8_0.
- node
Infos This property is required. RdsInstance V2Node Info[] - Instance specification configuration. This parameter is required for RDS for MySQL, RDS for PostgreSQL and MySQL Sharding. There is one and only one Primary node, one and only one Secondary node, and 0-10 Read-Only nodes.
- storage
Type This property is required. string - Instance storage type. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, the value is: LocalSSD - local SSD disk When the database type is veDB_MySQL/veDB_PostgreSQL, the value is: DistributedStorage - Distributed Storage.
- subnet
Id This property is required. Changes to this property will trigger replacement.
- Subnet ID.
- vpc
Id This property is required. Changes to this property will trigger replacement.
- Private network (VPC) ID. You can call the DescribeVpcs query and use this parameter to specify the VPC where the instance is to be created.
- db
Param Group Id Changes to this property will trigger replacement.
- Parameter template ID. It only takes effect when the database type is MySQL/PostgreSQL/SQL_Server. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- db
Time Zone Changes to this property will trigger replacement.
- Time zone. Support UTC -12:00 ~ +13:00. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- instance
Name Changes to this property will trigger replacement.
- Instance name. Cannot start with a number or a dash Can only contain Chinese characters, letters, numbers, underscores and dashes The length is limited between 1 ~ 128.
- instance
Type string - The field instance_type is no longer support. The type of Instance.
- lower
Case Table Names Changes to this property will trigger replacement.
- Whether the table name is case sensitive, the default value is 1. Ranges: 0: Table names are stored as fixed and table names are case-sensitive. 1: Table names will be stored in lowercase and table names are not case sensitive.
- project
Name string - Subordinate to the project.
- storage
Space number - Instance storage space. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, value range: [20, 3000], unit: GB, increments every 100GB. When the database type is veDB_MySQL/veDB_PostgreSQL, this parameter does not need to be passed.
- charge_
info This property is required. Changes to this property will trigger replacement.
Instance V2Charge Info Args - Payment methods.
- db_
engine_ version This property is required. Changes to this property will trigger replacement.
- Instance type. Value: MySQL_5_7 MySQL_8_0.
- node_
infos This property is required. Sequence[RdsInstance V2Node Info Args] - Instance specification configuration. This parameter is required for RDS for MySQL, RDS for PostgreSQL and MySQL Sharding. There is one and only one Primary node, one and only one Secondary node, and 0-10 Read-Only nodes.
- storage_
type This property is required. str - Instance storage type. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, the value is: LocalSSD - local SSD disk When the database type is veDB_MySQL/veDB_PostgreSQL, the value is: DistributedStorage - Distributed Storage.
- subnet_
id This property is required. Changes to this property will trigger replacement.
- Subnet ID.
- vpc_
id This property is required. Changes to this property will trigger replacement.
- Private network (VPC) ID. You can call the DescribeVpcs query and use this parameter to specify the VPC where the instance is to be created.
- db_
param_ group_ id Changes to this property will trigger replacement.
- Parameter template ID. It only takes effect when the database type is MySQL/PostgreSQL/SQL_Server. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- db_
time_ zone Changes to this property will trigger replacement.
- Time zone. Support UTC -12:00 ~ +13:00. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- instance_
name Changes to this property will trigger replacement.
- Instance name. Cannot start with a number or a dash Can only contain Chinese characters, letters, numbers, underscores and dashes The length is limited between 1 ~ 128.
- instance_
type str - The field instance_type is no longer support. The type of Instance.
- lower_
case_ table_ names Changes to this property will trigger replacement.
- Whether the table name is case sensitive, the default value is 1. Ranges: 0: Table names are stored as fixed and table names are case-sensitive. 1: Table names will be stored in lowercase and table names are not case sensitive.
- project_
name str - Subordinate to the project.
- storage_
space int - Instance storage space. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, value range: [20, 3000], unit: GB, increments every 100GB. When the database type is veDB_MySQL/veDB_PostgreSQL, this parameter does not need to be passed.
- charge
Info This property is required. Changes to this property will trigger replacement.
- Payment methods.
- db
Engine Version This property is required. Changes to this property will trigger replacement.
- Instance type. Value: MySQL_5_7 MySQL_8_0.
- node
Infos This property is required. List<Property Map> - Instance specification configuration. This parameter is required for RDS for MySQL, RDS for PostgreSQL and MySQL Sharding. There is one and only one Primary node, one and only one Secondary node, and 0-10 Read-Only nodes.
- storage
Type This property is required. String - Instance storage type. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, the value is: LocalSSD - local SSD disk When the database type is veDB_MySQL/veDB_PostgreSQL, the value is: DistributedStorage - Distributed Storage.
- subnet
Id This property is required. Changes to this property will trigger replacement.
- Subnet ID.
- vpc
Id This property is required. Changes to this property will trigger replacement.
- Private network (VPC) ID. You can call the DescribeVpcs query and use this parameter to specify the VPC where the instance is to be created.
- db
Param Group Id Changes to this property will trigger replacement.
- Parameter template ID. It only takes effect when the database type is MySQL/PostgreSQL/SQL_Server. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- db
Time Zone Changes to this property will trigger replacement.
- Time zone. Support UTC -12:00 ~ +13:00. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- instance
Name Changes to this property will trigger replacement.
- Instance name. Cannot start with a number or a dash Can only contain Chinese characters, letters, numbers, underscores and dashes The length is limited between 1 ~ 128.
- instance
Type String - The field instance_type is no longer support. The type of Instance.
- lower
Case Table Names Changes to this property will trigger replacement.
- Whether the table name is case sensitive, the default value is 1. Ranges: 0: Table names are stored as fixed and table names are case-sensitive. 1: Table names will be stored in lowercase and table names are not case sensitive.
- project
Name String - Subordinate to the project.
- storage
Space Number - Instance storage space. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, value range: [20, 3000], unit: GB, increments every 100GB. When the database type is veDB_MySQL/veDB_PostgreSQL, this parameter does not need to be passed.
Outputs
All input properties are implicitly available as output properties. Additionally, the RdsInstanceV2 resource produces the following output properties:
- Connection
Infos List<RdsInstance V2Connection Info> - The connection info ot the RDS instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Connection
Infos []RdsInstance V2Connection Info - The connection info ot the RDS instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- connection
Infos List<RdsInstance V2Connection Info> - The connection info ot the RDS instance.
- id String
- The provider-assigned unique ID for this managed resource.
- connection
Infos RdsInstance V2Connection Info[] - The connection info ot the RDS instance.
- id string
- The provider-assigned unique ID for this managed resource.
- connection_
infos Sequence[RdsInstance V2Connection Info] - The connection info ot the RDS instance.
- id str
- The provider-assigned unique ID for this managed resource.
- connection
Infos List<Property Map> - The connection info ot the RDS instance.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing RdsInstanceV2 Resource
Get an existing RdsInstanceV2 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?: RdsInstanceV2State, opts?: CustomResourceOptions): RdsInstanceV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
charge_info: Optional[RdsInstanceV2ChargeInfoArgs] = None,
connection_infos: Optional[Sequence[RdsInstanceV2ConnectionInfoArgs]] = None,
db_engine_version: Optional[str] = None,
db_param_group_id: Optional[str] = None,
db_time_zone: Optional[str] = None,
instance_name: Optional[str] = None,
instance_type: Optional[str] = None,
lower_case_table_names: Optional[str] = None,
node_infos: Optional[Sequence[RdsInstanceV2NodeInfoArgs]] = None,
project_name: Optional[str] = None,
storage_space: Optional[int] = None,
storage_type: Optional[str] = None,
subnet_id: Optional[str] = None,
vpc_id: Optional[str] = None) -> RdsInstanceV2
func GetRdsInstanceV2(ctx *Context, name string, id IDInput, state *RdsInstanceV2State, opts ...ResourceOption) (*RdsInstanceV2, error)
public static RdsInstanceV2 Get(string name, Input<string> id, RdsInstanceV2State? state, CustomResourceOptions? opts = null)
public static RdsInstanceV2 get(String name, Output<String> id, RdsInstanceV2State state, CustomResourceOptions options)
resources: _: type: volcengine:rds_v2:RdsInstanceV2 get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Charge
Info Changes to this property will trigger replacement.
Instance V2Charge Info - Payment methods.
- Connection
Infos List<RdsInstance V2Connection Info> - The connection info ot the RDS instance.
- Db
Engine Version Changes to this property will trigger replacement.
- Instance type. Value: MySQL_5_7 MySQL_8_0.
- Db
Param Group Id Changes to this property will trigger replacement.
- Parameter template ID. It only takes effect when the database type is MySQL/PostgreSQL/SQL_Server. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Db
Time Zone Changes to this property will trigger replacement.
- Time zone. Support UTC -12:00 ~ +13:00. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Instance
Name Changes to this property will trigger replacement.
- Instance name. Cannot start with a number or a dash Can only contain Chinese characters, letters, numbers, underscores and dashes The length is limited between 1 ~ 128.
- Instance
Type string - The field instance_type is no longer support. The type of Instance.
- Lower
Case Table Names Changes to this property will trigger replacement.
- Whether the table name is case sensitive, the default value is 1. Ranges: 0: Table names are stored as fixed and table names are case-sensitive. 1: Table names will be stored in lowercase and table names are not case sensitive.
- Node
Infos List<RdsInstance V2Node Info> - Instance specification configuration. This parameter is required for RDS for MySQL, RDS for PostgreSQL and MySQL Sharding. There is one and only one Primary node, one and only one Secondary node, and 0-10 Read-Only nodes.
- Project
Name string - Subordinate to the project.
- Storage
Space int - Instance storage space. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, value range: [20, 3000], unit: GB, increments every 100GB. When the database type is veDB_MySQL/veDB_PostgreSQL, this parameter does not need to be passed.
- Storage
Type string - Instance storage type. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, the value is: LocalSSD - local SSD disk When the database type is veDB_MySQL/veDB_PostgreSQL, the value is: DistributedStorage - Distributed Storage.
- Subnet
Id Changes to this property will trigger replacement.
- Subnet ID.
- Vpc
Id Changes to this property will trigger replacement.
- Private network (VPC) ID. You can call the DescribeVpcs query and use this parameter to specify the VPC where the instance is to be created.
- Charge
Info Changes to this property will trigger replacement.
Instance V2Charge Info Args - Payment methods.
- Connection
Infos []RdsInstance V2Connection Info Args - The connection info ot the RDS instance.
- Db
Engine Version Changes to this property will trigger replacement.
- Instance type. Value: MySQL_5_7 MySQL_8_0.
- Db
Param Group Id Changes to this property will trigger replacement.
- Parameter template ID. It only takes effect when the database type is MySQL/PostgreSQL/SQL_Server. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Db
Time Zone Changes to this property will trigger replacement.
- Time zone. Support UTC -12:00 ~ +13:00. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Instance
Name Changes to this property will trigger replacement.
- Instance name. Cannot start with a number or a dash Can only contain Chinese characters, letters, numbers, underscores and dashes The length is limited between 1 ~ 128.
- Instance
Type string - The field instance_type is no longer support. The type of Instance.
- Lower
Case Table Names Changes to this property will trigger replacement.
- Whether the table name is case sensitive, the default value is 1. Ranges: 0: Table names are stored as fixed and table names are case-sensitive. 1: Table names will be stored in lowercase and table names are not case sensitive.
- Node
Infos []RdsInstance V2Node Info Args - Instance specification configuration. This parameter is required for RDS for MySQL, RDS for PostgreSQL and MySQL Sharding. There is one and only one Primary node, one and only one Secondary node, and 0-10 Read-Only nodes.
- Project
Name string - Subordinate to the project.
- Storage
Space int - Instance storage space. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, value range: [20, 3000], unit: GB, increments every 100GB. When the database type is veDB_MySQL/veDB_PostgreSQL, this parameter does not need to be passed.
- Storage
Type string - Instance storage type. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, the value is: LocalSSD - local SSD disk When the database type is veDB_MySQL/veDB_PostgreSQL, the value is: DistributedStorage - Distributed Storage.
- Subnet
Id Changes to this property will trigger replacement.
- Subnet ID.
- Vpc
Id Changes to this property will trigger replacement.
- Private network (VPC) ID. You can call the DescribeVpcs query and use this parameter to specify the VPC where the instance is to be created.
- charge
Info Changes to this property will trigger replacement.
Instance V2Charge Info - Payment methods.
- connection
Infos List<RdsInstance V2Connection Info> - The connection info ot the RDS instance.
- db
Engine Version Changes to this property will trigger replacement.
- Instance type. Value: MySQL_5_7 MySQL_8_0.
- db
Param Group Id Changes to this property will trigger replacement.
- Parameter template ID. It only takes effect when the database type is MySQL/PostgreSQL/SQL_Server. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- db
Time Zone Changes to this property will trigger replacement.
- Time zone. Support UTC -12:00 ~ +13:00. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- instance
Name Changes to this property will trigger replacement.
- Instance name. Cannot start with a number or a dash Can only contain Chinese characters, letters, numbers, underscores and dashes The length is limited between 1 ~ 128.
- instance
Type String - The field instance_type is no longer support. The type of Instance.
- lower
Case Table Names Changes to this property will trigger replacement.
- Whether the table name is case sensitive, the default value is 1. Ranges: 0: Table names are stored as fixed and table names are case-sensitive. 1: Table names will be stored in lowercase and table names are not case sensitive.
- node
Infos List<RdsInstance V2Node Info> - Instance specification configuration. This parameter is required for RDS for MySQL, RDS for PostgreSQL and MySQL Sharding. There is one and only one Primary node, one and only one Secondary node, and 0-10 Read-Only nodes.
- project
Name String - Subordinate to the project.
- storage
Space Integer - Instance storage space. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, value range: [20, 3000], unit: GB, increments every 100GB. When the database type is veDB_MySQL/veDB_PostgreSQL, this parameter does not need to be passed.
- storage
Type String - Instance storage type. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, the value is: LocalSSD - local SSD disk When the database type is veDB_MySQL/veDB_PostgreSQL, the value is: DistributedStorage - Distributed Storage.
- subnet
Id Changes to this property will trigger replacement.
- Subnet ID.
- vpc
Id Changes to this property will trigger replacement.
- Private network (VPC) ID. You can call the DescribeVpcs query and use this parameter to specify the VPC where the instance is to be created.
- charge
Info Changes to this property will trigger replacement.
Instance V2Charge Info - Payment methods.
- connection
Infos RdsInstance V2Connection Info[] - The connection info ot the RDS instance.
- db
Engine Version Changes to this property will trigger replacement.
- Instance type. Value: MySQL_5_7 MySQL_8_0.
- db
Param Group Id Changes to this property will trigger replacement.
- Parameter template ID. It only takes effect when the database type is MySQL/PostgreSQL/SQL_Server. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- db
Time Zone Changes to this property will trigger replacement.
- Time zone. Support UTC -12:00 ~ +13:00. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- instance
Name Changes to this property will trigger replacement.
- Instance name. Cannot start with a number or a dash Can only contain Chinese characters, letters, numbers, underscores and dashes The length is limited between 1 ~ 128.
- instance
Type string - The field instance_type is no longer support. The type of Instance.
- lower
Case Table Names Changes to this property will trigger replacement.
- Whether the table name is case sensitive, the default value is 1. Ranges: 0: Table names are stored as fixed and table names are case-sensitive. 1: Table names will be stored in lowercase and table names are not case sensitive.
- node
Infos RdsInstance V2Node Info[] - Instance specification configuration. This parameter is required for RDS for MySQL, RDS for PostgreSQL and MySQL Sharding. There is one and only one Primary node, one and only one Secondary node, and 0-10 Read-Only nodes.
- project
Name string - Subordinate to the project.
- storage
Space number - Instance storage space. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, value range: [20, 3000], unit: GB, increments every 100GB. When the database type is veDB_MySQL/veDB_PostgreSQL, this parameter does not need to be passed.
- storage
Type string - Instance storage type. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, the value is: LocalSSD - local SSD disk When the database type is veDB_MySQL/veDB_PostgreSQL, the value is: DistributedStorage - Distributed Storage.
- subnet
Id Changes to this property will trigger replacement.
- Subnet ID.
- vpc
Id Changes to this property will trigger replacement.
- Private network (VPC) ID. You can call the DescribeVpcs query and use this parameter to specify the VPC where the instance is to be created.
- charge_
info Changes to this property will trigger replacement.
Instance V2Charge Info Args - Payment methods.
- connection_
infos Sequence[RdsInstance V2Connection Info Args] - The connection info ot the RDS instance.
- db_
engine_ version Changes to this property will trigger replacement.
- Instance type. Value: MySQL_5_7 MySQL_8_0.
- db_
param_ group_ id Changes to this property will trigger replacement.
- Parameter template ID. It only takes effect when the database type is MySQL/PostgreSQL/SQL_Server. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- db_
time_ zone Changes to this property will trigger replacement.
- Time zone. Support UTC -12:00 ~ +13:00. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- instance_
name Changes to this property will trigger replacement.
- Instance name. Cannot start with a number or a dash Can only contain Chinese characters, letters, numbers, underscores and dashes The length is limited between 1 ~ 128.
- instance_
type str - The field instance_type is no longer support. The type of Instance.
- lower_
case_ table_ names Changes to this property will trigger replacement.
- Whether the table name is case sensitive, the default value is 1. Ranges: 0: Table names are stored as fixed and table names are case-sensitive. 1: Table names will be stored in lowercase and table names are not case sensitive.
- node_
infos Sequence[RdsInstance V2Node Info Args] - Instance specification configuration. This parameter is required for RDS for MySQL, RDS for PostgreSQL and MySQL Sharding. There is one and only one Primary node, one and only one Secondary node, and 0-10 Read-Only nodes.
- project_
name str - Subordinate to the project.
- storage_
space int - Instance storage space. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, value range: [20, 3000], unit: GB, increments every 100GB. When the database type is veDB_MySQL/veDB_PostgreSQL, this parameter does not need to be passed.
- storage_
type str - Instance storage type. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, the value is: LocalSSD - local SSD disk When the database type is veDB_MySQL/veDB_PostgreSQL, the value is: DistributedStorage - Distributed Storage.
- subnet_
id Changes to this property will trigger replacement.
- Subnet ID.
- vpc_
id Changes to this property will trigger replacement.
- Private network (VPC) ID. You can call the DescribeVpcs query and use this parameter to specify the VPC where the instance is to be created.
- charge
Info Changes to this property will trigger replacement.
- Payment methods.
- connection
Infos List<Property Map> - The connection info ot the RDS instance.
- db
Engine Version Changes to this property will trigger replacement.
- Instance type. Value: MySQL_5_7 MySQL_8_0.
- db
Param Group Id Changes to this property will trigger replacement.
- Parameter template ID. It only takes effect when the database type is MySQL/PostgreSQL/SQL_Server. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- db
Time Zone Changes to this property will trigger replacement.
- Time zone. Support UTC -12:00 ~ +13:00. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- instance
Name Changes to this property will trigger replacement.
- Instance name. Cannot start with a number or a dash Can only contain Chinese characters, letters, numbers, underscores and dashes The length is limited between 1 ~ 128.
- instance
Type String - The field instance_type is no longer support. The type of Instance.
- lower
Case Table Names Changes to this property will trigger replacement.
- Whether the table name is case sensitive, the default value is 1. Ranges: 0: Table names are stored as fixed and table names are case-sensitive. 1: Table names will be stored in lowercase and table names are not case sensitive.
- node
Infos List<Property Map> - Instance specification configuration. This parameter is required for RDS for MySQL, RDS for PostgreSQL and MySQL Sharding. There is one and only one Primary node, one and only one Secondary node, and 0-10 Read-Only nodes.
- project
Name String - Subordinate to the project.
- storage
Space Number - Instance storage space. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, value range: [20, 3000], unit: GB, increments every 100GB. When the database type is veDB_MySQL/veDB_PostgreSQL, this parameter does not need to be passed.
- storage
Type String - Instance storage type. When the database type is MySQL/PostgreSQL/SQL_Server/MySQL Sharding, the value is: LocalSSD - local SSD disk When the database type is veDB_MySQL/veDB_PostgreSQL, the value is: DistributedStorage - Distributed Storage.
- subnet
Id Changes to this property will trigger replacement.
- Subnet ID.
- vpc
Id Changes to this property will trigger replacement.
- Private network (VPC) ID. You can call the DescribeVpcs query and use this parameter to specify the VPC where the instance is to be created.
Supporting Types
RdsInstanceV2ChargeInfo, RdsInstanceV2ChargeInfoArgs
- Charge
Type This property is required. Changes to this property will trigger replacement.
- Payment type. Value: PostPaid - Pay-As-You-Go PrePaid - Yearly and monthly (default).
- Auto
Renew Changes to this property will trigger replacement.
- Whether to automatically renew in prepaid scenarios.
- Period
Changes to this property will trigger replacement.
- Purchase duration in prepaid scenarios. Default: 1.
- Period
Unit Changes to this property will trigger replacement.
- The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- Charge
Type This property is required. Changes to this property will trigger replacement.
- Payment type. Value: PostPaid - Pay-As-You-Go PrePaid - Yearly and monthly (default).
- Auto
Renew Changes to this property will trigger replacement.
- Whether to automatically renew in prepaid scenarios.
- Period
Changes to this property will trigger replacement.
- Purchase duration in prepaid scenarios. Default: 1.
- Period
Unit Changes to this property will trigger replacement.
- The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- charge
Type This property is required. Changes to this property will trigger replacement.
- Payment type. Value: PostPaid - Pay-As-You-Go PrePaid - Yearly and monthly (default).
- auto
Renew Changes to this property will trigger replacement.
- Whether to automatically renew in prepaid scenarios.
- period
Changes to this property will trigger replacement.
- Purchase duration in prepaid scenarios. Default: 1.
- period
Unit Changes to this property will trigger replacement.
- The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- charge
Type This property is required. Changes to this property will trigger replacement.
- Payment type. Value: PostPaid - Pay-As-You-Go PrePaid - Yearly and monthly (default).
- auto
Renew Changes to this property will trigger replacement.
- Whether to automatically renew in prepaid scenarios.
- period
Changes to this property will trigger replacement.
- Purchase duration in prepaid scenarios. Default: 1.
- period
Unit Changes to this property will trigger replacement.
- The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- charge_
type This property is required. Changes to this property will trigger replacement.
- Payment type. Value: PostPaid - Pay-As-You-Go PrePaid - Yearly and monthly (default).
- auto_
renew Changes to this property will trigger replacement.
- Whether to automatically renew in prepaid scenarios.
- period
Changes to this property will trigger replacement.
- Purchase duration in prepaid scenarios. Default: 1.
- period_
unit Changes to this property will trigger replacement.
- The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- charge
Type This property is required. Changes to this property will trigger replacement.
- Payment type. Value: PostPaid - Pay-As-You-Go PrePaid - Yearly and monthly (default).
- auto
Renew Changes to this property will trigger replacement.
- Whether to automatically renew in prepaid scenarios.
- period
Changes to this property will trigger replacement.
- Purchase duration in prepaid scenarios. Default: 1.
- period
Unit Changes to this property will trigger replacement.
- The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
RdsInstanceV2ConnectionInfo, RdsInstanceV2ConnectionInfoArgs
- Addresses
List<Rds
Instance V2Connection Info Address> - Address list.
- Auto
Add stringNew Nodes - When the terminal type is read-write terminal or read-only terminal, it supports setting whether new nodes are automatically added.
- Description string
- Address description.
- Enable
Read stringOnly - Whether global read-only is enabled, value: Enable: Enable. Disable: Disabled.
- Enable
Read stringWrite Splitting - Whether read-write separation is enabled, value: Enable: Enable. Disable: Disabled.
- Endpoint
Id string - Instance connection terminal ID.
- Endpoint
Name string - The instance connection terminal name.
- Endpoint
Type string - Terminal type: Cluster: The default terminal. (created by default) Primary: Primary node terminal. Custom: Custom terminal. Direct: Direct connection to the terminal. (Only the operation and maintenance side) AllNode: All node terminals. (Only the operation and maintenance side).
- Read
Only List<RdsNode Weights Instance V2Connection Info Read Only Node Weight> - The list of nodes configured by the connection terminal and the corresponding read-only weights.
- Read
Write stringMode - Read and write mode: ReadWrite: read and write ReadOnly: read only (default).
- Addresses
[]Rds
Instance V2Connection Info Address - Address list.
- Auto
Add stringNew Nodes - When the terminal type is read-write terminal or read-only terminal, it supports setting whether new nodes are automatically added.
- Description string
- Address description.
- Enable
Read stringOnly - Whether global read-only is enabled, value: Enable: Enable. Disable: Disabled.
- Enable
Read stringWrite Splitting - Whether read-write separation is enabled, value: Enable: Enable. Disable: Disabled.
- Endpoint
Id string - Instance connection terminal ID.
- Endpoint
Name string - The instance connection terminal name.
- Endpoint
Type string - Terminal type: Cluster: The default terminal. (created by default) Primary: Primary node terminal. Custom: Custom terminal. Direct: Direct connection to the terminal. (Only the operation and maintenance side) AllNode: All node terminals. (Only the operation and maintenance side).
- Read
Only []RdsNode Weights Instance V2Connection Info Read Only Node Weight - The list of nodes configured by the connection terminal and the corresponding read-only weights.
- Read
Write stringMode - Read and write mode: ReadWrite: read and write ReadOnly: read only (default).
- addresses
List<Rds
Instance V2Connection Info Address> - Address list.
- auto
Add StringNew Nodes - When the terminal type is read-write terminal or read-only terminal, it supports setting whether new nodes are automatically added.
- description String
- Address description.
- enable
Read StringOnly - Whether global read-only is enabled, value: Enable: Enable. Disable: Disabled.
- enable
Read StringWrite Splitting - Whether read-write separation is enabled, value: Enable: Enable. Disable: Disabled.
- endpoint
Id String - Instance connection terminal ID.
- endpoint
Name String - The instance connection terminal name.
- endpoint
Type String - Terminal type: Cluster: The default terminal. (created by default) Primary: Primary node terminal. Custom: Custom terminal. Direct: Direct connection to the terminal. (Only the operation and maintenance side) AllNode: All node terminals. (Only the operation and maintenance side).
- read
Only List<RdsNode Weights Instance V2Connection Info Read Only Node Weight> - The list of nodes configured by the connection terminal and the corresponding read-only weights.
- read
Write StringMode - Read and write mode: ReadWrite: read and write ReadOnly: read only (default).
- addresses
Rds
Instance V2Connection Info Address[] - Address list.
- auto
Add stringNew Nodes - When the terminal type is read-write terminal or read-only terminal, it supports setting whether new nodes are automatically added.
- description string
- Address description.
- enable
Read stringOnly - Whether global read-only is enabled, value: Enable: Enable. Disable: Disabled.
- enable
Read stringWrite Splitting - Whether read-write separation is enabled, value: Enable: Enable. Disable: Disabled.
- endpoint
Id string - Instance connection terminal ID.
- endpoint
Name string - The instance connection terminal name.
- endpoint
Type string - Terminal type: Cluster: The default terminal. (created by default) Primary: Primary node terminal. Custom: Custom terminal. Direct: Direct connection to the terminal. (Only the operation and maintenance side) AllNode: All node terminals. (Only the operation and maintenance side).
- read
Only RdsNode Weights Instance V2Connection Info Read Only Node Weight[] - The list of nodes configured by the connection terminal and the corresponding read-only weights.
- read
Write stringMode - Read and write mode: ReadWrite: read and write ReadOnly: read only (default).
- addresses
Sequence[Rds
Instance V2Connection Info Address] - Address list.
- auto_
add_ strnew_ nodes - When the terminal type is read-write terminal or read-only terminal, it supports setting whether new nodes are automatically added.
- description str
- Address description.
- enable_
read_ stronly - Whether global read-only is enabled, value: Enable: Enable. Disable: Disabled.
- enable_
read_ strwrite_ splitting - Whether read-write separation is enabled, value: Enable: Enable. Disable: Disabled.
- endpoint_
id str - Instance connection terminal ID.
- endpoint_
name str - The instance connection terminal name.
- endpoint_
type str - Terminal type: Cluster: The default terminal. (created by default) Primary: Primary node terminal. Custom: Custom terminal. Direct: Direct connection to the terminal. (Only the operation and maintenance side) AllNode: All node terminals. (Only the operation and maintenance side).
- read_
only_ Sequence[Rdsnode_ weights Instance V2Connection Info Read Only Node Weight] - The list of nodes configured by the connection terminal and the corresponding read-only weights.
- read_
write_ strmode - Read and write mode: ReadWrite: read and write ReadOnly: read only (default).
- addresses List<Property Map>
- Address list.
- auto
Add StringNew Nodes - When the terminal type is read-write terminal or read-only terminal, it supports setting whether new nodes are automatically added.
- description String
- Address description.
- enable
Read StringOnly - Whether global read-only is enabled, value: Enable: Enable. Disable: Disabled.
- enable
Read StringWrite Splitting - Whether read-write separation is enabled, value: Enable: Enable. Disable: Disabled.
- endpoint
Id String - Instance connection terminal ID.
- endpoint
Name String - The instance connection terminal name.
- endpoint
Type String - Terminal type: Cluster: The default terminal. (created by default) Primary: Primary node terminal. Custom: Custom terminal. Direct: Direct connection to the terminal. (Only the operation and maintenance side) AllNode: All node terminals. (Only the operation and maintenance side).
- read
Only List<Property Map>Node Weights - The list of nodes configured by the connection terminal and the corresponding read-only weights.
- read
Write StringMode - Read and write mode: ReadWrite: read and write ReadOnly: read only (default).
RdsInstanceV2ConnectionInfoAddress, RdsInstanceV2ConnectionInfoAddressArgs
- domain str
- Connect domain name.
- eip_
id str - The ID of the EIP, only valid for Public addresses.
- ip_
address str - The IP Address.
- network_
type str - Network address type, temporarily Private, Public, PublicService.
- port str
- The Port.
- subnet_
id str - Subnet ID.
RdsInstanceV2ConnectionInfoReadOnlyNodeWeight, RdsInstanceV2ConnectionInfoReadOnlyNodeWeightArgs
RdsInstanceV2NodeInfo, RdsInstanceV2NodeInfoArgs
- Node
Spec This property is required. string - Masternode specs. Pass DescribeDBInstanceSpecs Query the instance specifications that can be sold.
- Node
Type This property is required. string - Node type, the value is "Primary", "Secondary", "ReadOnly".
- Zone
Id This property is required. string - Zone ID.
- Node
Id string - The ID of the node.
- Node
Spec This property is required. string - Masternode specs. Pass DescribeDBInstanceSpecs Query the instance specifications that can be sold.
- Node
Type This property is required. string - Node type, the value is "Primary", "Secondary", "ReadOnly".
- Zone
Id This property is required. string - Zone ID.
- Node
Id string - The ID of the node.
- node
Spec This property is required. String - Masternode specs. Pass DescribeDBInstanceSpecs Query the instance specifications that can be sold.
- node
Type This property is required. String - Node type, the value is "Primary", "Secondary", "ReadOnly".
- zone
Id This property is required. String - Zone ID.
- node
Id String - The ID of the node.
- node
Spec This property is required. string - Masternode specs. Pass DescribeDBInstanceSpecs Query the instance specifications that can be sold.
- node
Type This property is required. string - Node type, the value is "Primary", "Secondary", "ReadOnly".
- zone
Id This property is required. string - Zone ID.
- node
Id string - The ID of the node.
- node_
spec This property is required. str - Masternode specs. Pass DescribeDBInstanceSpecs Query the instance specifications that can be sold.
- node_
type This property is required. str - Node type, the value is "Primary", "Secondary", "ReadOnly".
- zone_
id This property is required. str - Zone ID.
- node_
id str - The ID of the node.
- node
Spec This property is required. String - Masternode specs. Pass DescribeDBInstanceSpecs Query the instance specifications that can be sold.
- node
Type This property is required. String - Node type, the value is "Primary", "Secondary", "ReadOnly".
- zone
Id This property is required. String - Zone ID.
- node
Id String - The ID of the node.
Import
RDS Instance can be imported using the id, e.g.
$ pulumi import volcengine:rds_v2/rdsInstanceV2:RdsInstanceV2 default mysql-42b38c769c4b
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.