Provides a resource to manage rds postgresql instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooZones = volcengine.rds_postgresql.getZones({});
// create vpc
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
vpcName: "acc-test-vpc",
cidrBlock: "172.16.0.0/16",
dnsServers: [
"8.8.8.8",
"114.114.114.114",
],
projectName: "default",
});
// create subnet
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
subnetName: "acc-test-subnet",
cidrBlock: "172.16.0.0/24",
zoneId: data.volcengine_zones.foo.zones[0].id,
vpcId: fooVpc.id,
});
// create postgresql instance
const fooInstance = new volcengine.rds_postgresql.Instance("fooInstance", {
dbEngineVersion: "PostgreSQL_12",
nodeSpec: "rds.postgres.1c2g",
primaryZoneId: data.volcengine_zones.foo.zones[0].id,
secondaryZoneId: data.volcengine_zones.foo.zones[0].id,
storageSpace: 40,
subnetId: fooSubnet.id,
instanceName: "acc-test-postgresql-instance",
chargeInfo: {
chargeType: "PostPaid",
},
projectName: "default",
tags: [{
key: "tfk1",
value: "tfv1",
}],
parameters: [
{
name: "auto_explain.log_analyze",
value: "off",
},
{
name: "auto_explain.log_format",
value: "text",
},
],
});
// create postgresql instance readonly node
const fooInstanceReadonlyNode = new volcengine.rds_postgresql.InstanceReadonlyNode("fooInstanceReadonlyNode", {
instanceId: fooInstance.id,
nodeSpec: "rds.postgres.1c2g",
zoneId: data.volcengine_zones.foo.zones[0].id,
});
// create postgresql allow list
const fooAllowlist = new volcengine.rds_postgresql.Allowlist("fooAllowlist", {
allowListName: "acc-test-allowlist",
allowListDesc: "acc-test",
allowListType: "IPv4",
allowLists: [
"192.168.0.0/24",
"192.168.1.0/24",
],
});
// associate postgresql allow list to postgresql instance
const fooAllowlistAssociate = new volcengine.rds_postgresql.AllowlistAssociate("fooAllowlistAssociate", {
instanceId: fooInstance.id,
allowListId: fooAllowlist.id,
});
// create postgresql database
const fooDatabase = new volcengine.rds_postgresql.Database("fooDatabase", {
dbName: "acc-test-database",
instanceId: fooInstance.id,
cType: "C",
collate: "zh_CN.utf8",
});
// create postgresql account
const fooAccount = new volcengine.rds_postgresql.Account("fooAccount", {
accountName: "acc-test-account",
accountPassword: "9wc@********12",
accountType: "Normal",
instanceId: fooInstance.id,
accountPrivileges: "Inherit,Login,CreateRole,CreateDB",
});
// create postgresql schema
const fooSchema = new volcengine.rds_postgresql.Schema("fooSchema", {
dbName: fooDatabase.dbName,
instanceId: fooInstance.id,
owner: fooAccount.accountName,
schemaName: "acc-test-schema",
});
// Restore the backup to a new instance
const example = new volcengine.rds_postgresql.Instance("example", {
srcInstanceId: "postgres-faa4921fdde4",
backupId: "20251215-215628F",
dbEngineVersion: "PostgreSQL_12",
nodeSpec: "rds.postgres.1c2g",
subnetId: fooSubnet.id,
instanceName: "acc-test-postgresql-instance-restore",
chargeInfo: {
chargeType: "PostPaid",
number: 1,
},
primaryZoneId: data.volcengine_zones.foo.zones[0].id,
secondaryZoneId: data.volcengine_zones.foo.zones[0].id,
});
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.rds_postgresql.get_zones()
# create vpc
foo_vpc = volcengine.vpc.Vpc("fooVpc",
vpc_name="acc-test-vpc",
cidr_block="172.16.0.0/16",
dns_servers=[
"8.8.8.8",
"114.114.114.114",
],
project_name="default")
# create subnet
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
subnet_name="acc-test-subnet",
cidr_block="172.16.0.0/24",
zone_id=data["volcengine_zones"]["foo"]["zones"][0]["id"],
vpc_id=foo_vpc.id)
# create postgresql instance
foo_instance = volcengine.rds_postgresql.Instance("fooInstance",
db_engine_version="PostgreSQL_12",
node_spec="rds.postgres.1c2g",
primary_zone_id=data["volcengine_zones"]["foo"]["zones"][0]["id"],
secondary_zone_id=data["volcengine_zones"]["foo"]["zones"][0]["id"],
storage_space=40,
subnet_id=foo_subnet.id,
instance_name="acc-test-postgresql-instance",
charge_info=volcengine.rds_postgresql.InstanceChargeInfoArgs(
charge_type="PostPaid",
),
project_name="default",
tags=[volcengine.rds_postgresql.InstanceTagArgs(
key="tfk1",
value="tfv1",
)],
parameters=[
volcengine.rds_postgresql.InstanceParameterArgs(
name="auto_explain.log_analyze",
value="off",
),
volcengine.rds_postgresql.InstanceParameterArgs(
name="auto_explain.log_format",
value="text",
),
])
# create postgresql instance readonly node
foo_instance_readonly_node = volcengine.rds_postgresql.InstanceReadonlyNode("fooInstanceReadonlyNode",
instance_id=foo_instance.id,
node_spec="rds.postgres.1c2g",
zone_id=data["volcengine_zones"]["foo"]["zones"][0]["id"])
# create postgresql allow list
foo_allowlist = volcengine.rds_postgresql.Allowlist("fooAllowlist",
allow_list_name="acc-test-allowlist",
allow_list_desc="acc-test",
allow_list_type="IPv4",
allow_lists=[
"192.168.0.0/24",
"192.168.1.0/24",
])
# associate postgresql allow list to postgresql instance
foo_allowlist_associate = volcengine.rds_postgresql.AllowlistAssociate("fooAllowlistAssociate",
instance_id=foo_instance.id,
allow_list_id=foo_allowlist.id)
# create postgresql database
foo_database = volcengine.rds_postgresql.Database("fooDatabase",
db_name="acc-test-database",
instance_id=foo_instance.id,
c_type="C",
collate="zh_CN.utf8")
# create postgresql account
foo_account = volcengine.rds_postgresql.Account("fooAccount",
account_name="acc-test-account",
account_password="9wc@********12",
account_type="Normal",
instance_id=foo_instance.id,
account_privileges="Inherit,Login,CreateRole,CreateDB")
# create postgresql schema
foo_schema = volcengine.rds_postgresql.Schema("fooSchema",
db_name=foo_database.db_name,
instance_id=foo_instance.id,
owner=foo_account.account_name,
schema_name="acc-test-schema")
# Restore the backup to a new instance
example = volcengine.rds_postgresql.Instance("example",
src_instance_id="postgres-faa4921fdde4",
backup_id="20251215-215628F",
db_engine_version="PostgreSQL_12",
node_spec="rds.postgres.1c2g",
subnet_id=foo_subnet.id,
instance_name="acc-test-postgresql-instance-restore",
charge_info=volcengine.rds_postgresql.InstanceChargeInfoArgs(
charge_type="PostPaid",
number=1,
),
primary_zone_id=data["volcengine_zones"]["foo"]["zones"][0]["id"],
secondary_zone_id=data["volcengine_zones"]["foo"]["zones"][0]["id"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_postgresql"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds_postgresql.GetZones(ctx, nil, nil)
if err != nil {
return err
}
// create vpc
fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
VpcName: pulumi.String("acc-test-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
DnsServers: pulumi.StringArray{
pulumi.String("8.8.8.8"),
pulumi.String("114.114.114.114"),
},
ProjectName: pulumi.String("default"),
})
if err != nil {
return err
}
// create subnet
fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet"),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.Any(data.Volcengine_zones.Foo.Zones[0].Id),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
// create postgresql instance
fooInstance, err := rds_postgresql.NewInstance(ctx, "fooInstance", &rds_postgresql.InstanceArgs{
DbEngineVersion: pulumi.String("PostgreSQL_12"),
NodeSpec: pulumi.String("rds.postgres.1c2g"),
PrimaryZoneId: pulumi.Any(data.Volcengine_zones.Foo.Zones[0].Id),
SecondaryZoneId: pulumi.Any(data.Volcengine_zones.Foo.Zones[0].Id),
StorageSpace: pulumi.Int(40),
SubnetId: fooSubnet.ID(),
InstanceName: pulumi.String("acc-test-postgresql-instance"),
ChargeInfo: &rds_postgresql.InstanceChargeInfoArgs{
ChargeType: pulumi.String("PostPaid"),
},
ProjectName: pulumi.String("default"),
Tags: rds_postgresql.InstanceTagArray{
&rds_postgresql.InstanceTagArgs{
Key: pulumi.String("tfk1"),
Value: pulumi.String("tfv1"),
},
},
Parameters: rds_postgresql.InstanceParameterArray{
&rds_postgresql.InstanceParameterArgs{
Name: pulumi.String("auto_explain.log_analyze"),
Value: pulumi.String("off"),
},
&rds_postgresql.InstanceParameterArgs{
Name: pulumi.String("auto_explain.log_format"),
Value: pulumi.String("text"),
},
},
})
if err != nil {
return err
}
// create postgresql instance readonly node
_, err = rds_postgresql.NewInstanceReadonlyNode(ctx, "fooInstanceReadonlyNode", &rds_postgresql.InstanceReadonlyNodeArgs{
InstanceId: fooInstance.ID(),
NodeSpec: pulumi.String("rds.postgres.1c2g"),
ZoneId: pulumi.Any(data.Volcengine_zones.Foo.Zones[0].Id),
})
if err != nil {
return err
}
// create postgresql allow list
fooAllowlist, err := rds_postgresql.NewAllowlist(ctx, "fooAllowlist", &rds_postgresql.AllowlistArgs{
AllowListName: pulumi.String("acc-test-allowlist"),
AllowListDesc: pulumi.String("acc-test"),
AllowListType: pulumi.String("IPv4"),
AllowLists: pulumi.StringArray{
pulumi.String("192.168.0.0/24"),
pulumi.String("192.168.1.0/24"),
},
})
if err != nil {
return err
}
// associate postgresql allow list to postgresql instance
_, err = rds_postgresql.NewAllowlistAssociate(ctx, "fooAllowlistAssociate", &rds_postgresql.AllowlistAssociateArgs{
InstanceId: fooInstance.ID(),
AllowListId: fooAllowlist.ID(),
})
if err != nil {
return err
}
// create postgresql database
fooDatabase, err := rds_postgresql.NewDatabase(ctx, "fooDatabase", &rds_postgresql.DatabaseArgs{
DbName: pulumi.String("acc-test-database"),
InstanceId: fooInstance.ID(),
CType: pulumi.String("C"),
Collate: pulumi.String("zh_CN.utf8"),
})
if err != nil {
return err
}
// create postgresql account
fooAccount, err := rds_postgresql.NewAccount(ctx, "fooAccount", &rds_postgresql.AccountArgs{
AccountName: pulumi.String("acc-test-account"),
AccountPassword: pulumi.String("9wc@********12"),
AccountType: pulumi.String("Normal"),
InstanceId: fooInstance.ID(),
AccountPrivileges: pulumi.String("Inherit,Login,CreateRole,CreateDB"),
})
if err != nil {
return err
}
// create postgresql schema
_, err = rds_postgresql.NewSchema(ctx, "fooSchema", &rds_postgresql.SchemaArgs{
DbName: fooDatabase.DbName,
InstanceId: fooInstance.ID(),
Owner: fooAccount.AccountName,
SchemaName: pulumi.String("acc-test-schema"),
})
if err != nil {
return err
}
_, err = rds_postgresql.NewInstance(ctx, "example", &rds_postgresql.InstanceArgs{
SrcInstanceId: pulumi.String("postgres-faa4921fdde4"),
BackupId: pulumi.String("20251215-215628F"),
DbEngineVersion: pulumi.String("PostgreSQL_12"),
NodeSpec: pulumi.String("rds.postgres.1c2g"),
SubnetId: fooSubnet.ID(),
InstanceName: pulumi.String("acc-test-postgresql-instance-restore"),
ChargeInfo: &rds_postgresql.InstanceChargeInfoArgs{
ChargeType: pulumi.String("PostPaid"),
Number: pulumi.Int(1),
},
PrimaryZoneId: pulumi.Any(data.Volcengine_zones.Foo.Zones[0].Id),
SecondaryZoneId: pulumi.Any(data.Volcengine_zones.Foo.Zones[0].Id),
})
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.Rds_postgresql.GetZones.Invoke();
// create vpc
var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
{
VpcName = "acc-test-vpc",
CidrBlock = "172.16.0.0/16",
DnsServers = new[]
{
"8.8.8.8",
"114.114.114.114",
},
ProjectName = "default",
});
// create subnet
var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
{
SubnetName = "acc-test-subnet",
CidrBlock = "172.16.0.0/24",
ZoneId = data.Volcengine_zones.Foo.Zones[0].Id,
VpcId = fooVpc.Id,
});
// create postgresql instance
var fooInstance = new Volcengine.Rds_postgresql.Instance("fooInstance", new()
{
DbEngineVersion = "PostgreSQL_12",
NodeSpec = "rds.postgres.1c2g",
PrimaryZoneId = data.Volcengine_zones.Foo.Zones[0].Id,
SecondaryZoneId = data.Volcengine_zones.Foo.Zones[0].Id,
StorageSpace = 40,
SubnetId = fooSubnet.Id,
InstanceName = "acc-test-postgresql-instance",
ChargeInfo = new Volcengine.Rds_postgresql.Inputs.InstanceChargeInfoArgs
{
ChargeType = "PostPaid",
},
ProjectName = "default",
Tags = new[]
{
new Volcengine.Rds_postgresql.Inputs.InstanceTagArgs
{
Key = "tfk1",
Value = "tfv1",
},
},
Parameters = new[]
{
new Volcengine.Rds_postgresql.Inputs.InstanceParameterArgs
{
Name = "auto_explain.log_analyze",
Value = "off",
},
new Volcengine.Rds_postgresql.Inputs.InstanceParameterArgs
{
Name = "auto_explain.log_format",
Value = "text",
},
},
});
// create postgresql instance readonly node
var fooInstanceReadonlyNode = new Volcengine.Rds_postgresql.InstanceReadonlyNode("fooInstanceReadonlyNode", new()
{
InstanceId = fooInstance.Id,
NodeSpec = "rds.postgres.1c2g",
ZoneId = data.Volcengine_zones.Foo.Zones[0].Id,
});
// create postgresql allow list
var fooAllowlist = new Volcengine.Rds_postgresql.Allowlist("fooAllowlist", new()
{
AllowListName = "acc-test-allowlist",
AllowListDesc = "acc-test",
AllowListType = "IPv4",
AllowLists = new[]
{
"192.168.0.0/24",
"192.168.1.0/24",
},
});
// associate postgresql allow list to postgresql instance
var fooAllowlistAssociate = new Volcengine.Rds_postgresql.AllowlistAssociate("fooAllowlistAssociate", new()
{
InstanceId = fooInstance.Id,
AllowListId = fooAllowlist.Id,
});
// create postgresql database
var fooDatabase = new Volcengine.Rds_postgresql.Database("fooDatabase", new()
{
DbName = "acc-test-database",
InstanceId = fooInstance.Id,
CType = "C",
Collate = "zh_CN.utf8",
});
// create postgresql account
var fooAccount = new Volcengine.Rds_postgresql.Account("fooAccount", new()
{
AccountName = "acc-test-account",
AccountPassword = "9wc@********12",
AccountType = "Normal",
InstanceId = fooInstance.Id,
AccountPrivileges = "Inherit,Login,CreateRole,CreateDB",
});
// create postgresql schema
var fooSchema = new Volcengine.Rds_postgresql.Schema("fooSchema", new()
{
DbName = fooDatabase.DbName,
InstanceId = fooInstance.Id,
Owner = fooAccount.AccountName,
SchemaName = "acc-test-schema",
});
// Restore the backup to a new instance
var example = new Volcengine.Rds_postgresql.Instance("example", new()
{
SrcInstanceId = "postgres-faa4921fdde4",
BackupId = "20251215-215628F",
DbEngineVersion = "PostgreSQL_12",
NodeSpec = "rds.postgres.1c2g",
SubnetId = fooSubnet.Id,
InstanceName = "acc-test-postgresql-instance-restore",
ChargeInfo = new Volcengine.Rds_postgresql.Inputs.InstanceChargeInfoArgs
{
ChargeType = "PostPaid",
Number = 1,
},
PrimaryZoneId = data.Volcengine_zones.Foo.Zones[0].Id,
SecondaryZoneId = data.Volcengine_zones.Foo.Zones[0].Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.rds_postgresql.Rds_postgresqlFunctions;
import com.pulumi.volcengine.rds_postgresql.inputs.GetZonesArgs;
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_postgresql.Instance;
import com.pulumi.volcengine.rds_postgresql.InstanceArgs;
import com.pulumi.volcengine.rds_postgresql.inputs.InstanceChargeInfoArgs;
import com.pulumi.volcengine.rds_postgresql.inputs.InstanceTagArgs;
import com.pulumi.volcengine.rds_postgresql.inputs.InstanceParameterArgs;
import com.pulumi.volcengine.rds_postgresql.InstanceReadonlyNode;
import com.pulumi.volcengine.rds_postgresql.InstanceReadonlyNodeArgs;
import com.pulumi.volcengine.rds_postgresql.Allowlist;
import com.pulumi.volcengine.rds_postgresql.AllowlistArgs;
import com.pulumi.volcengine.rds_postgresql.AllowlistAssociate;
import com.pulumi.volcengine.rds_postgresql.AllowlistAssociateArgs;
import com.pulumi.volcengine.rds_postgresql.Database;
import com.pulumi.volcengine.rds_postgresql.DatabaseArgs;
import com.pulumi.volcengine.rds_postgresql.Account;
import com.pulumi.volcengine.rds_postgresql.AccountArgs;
import com.pulumi.volcengine.rds_postgresql.Schema;
import com.pulumi.volcengine.rds_postgresql.SchemaArgs;
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 = Rds_postgresqlFunctions.getZones();
// create vpc
var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.vpcName("acc-test-vpc")
.cidrBlock("172.16.0.0/16")
.dnsServers(
"8.8.8.8",
"114.114.114.114")
.projectName("default")
.build());
// create subnet
var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
.subnetName("acc-test-subnet")
.cidrBlock("172.16.0.0/24")
.zoneId(data.volcengine_zones().foo().zones()[0].id())
.vpcId(fooVpc.id())
.build());
// create postgresql instance
var fooInstance = new Instance("fooInstance", InstanceArgs.builder()
.dbEngineVersion("PostgreSQL_12")
.nodeSpec("rds.postgres.1c2g")
.primaryZoneId(data.volcengine_zones().foo().zones()[0].id())
.secondaryZoneId(data.volcengine_zones().foo().zones()[0].id())
.storageSpace(40)
.subnetId(fooSubnet.id())
.instanceName("acc-test-postgresql-instance")
.chargeInfo(InstanceChargeInfoArgs.builder()
.chargeType("PostPaid")
.build())
.projectName("default")
.tags(InstanceTagArgs.builder()
.key("tfk1")
.value("tfv1")
.build())
.parameters(
InstanceParameterArgs.builder()
.name("auto_explain.log_analyze")
.value("off")
.build(),
InstanceParameterArgs.builder()
.name("auto_explain.log_format")
.value("text")
.build())
.build());
// create postgresql instance readonly node
var fooInstanceReadonlyNode = new InstanceReadonlyNode("fooInstanceReadonlyNode", InstanceReadonlyNodeArgs.builder()
.instanceId(fooInstance.id())
.nodeSpec("rds.postgres.1c2g")
.zoneId(data.volcengine_zones().foo().zones()[0].id())
.build());
// create postgresql allow list
var fooAllowlist = new Allowlist("fooAllowlist", AllowlistArgs.builder()
.allowListName("acc-test-allowlist")
.allowListDesc("acc-test")
.allowListType("IPv4")
.allowLists(
"192.168.0.0/24",
"192.168.1.0/24")
.build());
// associate postgresql allow list to postgresql instance
var fooAllowlistAssociate = new AllowlistAssociate("fooAllowlistAssociate", AllowlistAssociateArgs.builder()
.instanceId(fooInstance.id())
.allowListId(fooAllowlist.id())
.build());
// create postgresql database
var fooDatabase = new Database("fooDatabase", DatabaseArgs.builder()
.dbName("acc-test-database")
.instanceId(fooInstance.id())
.cType("C")
.collate("zh_CN.utf8")
.build());
// create postgresql account
var fooAccount = new Account("fooAccount", AccountArgs.builder()
.accountName("acc-test-account")
.accountPassword("9wc@********12")
.accountType("Normal")
.instanceId(fooInstance.id())
.accountPrivileges("Inherit,Login,CreateRole,CreateDB")
.build());
// create postgresql schema
var fooSchema = new Schema("fooSchema", SchemaArgs.builder()
.dbName(fooDatabase.dbName())
.instanceId(fooInstance.id())
.owner(fooAccount.accountName())
.schemaName("acc-test-schema")
.build());
// Restore the backup to a new instance
var example = new Instance("example", InstanceArgs.builder()
.srcInstanceId("postgres-faa4921fdde4")
.backupId("20251215-215628F")
.dbEngineVersion("PostgreSQL_12")
.nodeSpec("rds.postgres.1c2g")
.subnetId(fooSubnet.id())
.instanceName("acc-test-postgresql-instance-restore")
.chargeInfo(InstanceChargeInfoArgs.builder()
.chargeType("PostPaid")
.number(1)
.build())
.primaryZoneId(data.volcengine_zones().foo().zones()[0].id())
.secondaryZoneId(data.volcengine_zones().foo().zones()[0].id())
.build());
}
}
resources:
# create vpc
fooVpc:
type: volcengine:vpc:Vpc
properties:
vpcName: acc-test-vpc
cidrBlock: 172.16.0.0/16
dnsServers:
- 8.8.8.8
- 114.114.114.114
projectName: default
# create subnet
fooSubnet:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-test-subnet
cidrBlock: 172.16.0.0/24
zoneId: ${data.volcengine_zones.foo.zones[0].id}
vpcId: ${fooVpc.id}
# create postgresql instance
fooInstance:
type: volcengine:rds_postgresql:Instance
properties:
dbEngineVersion: PostgreSQL_12
nodeSpec: rds.postgres.1c2g
primaryZoneId: ${data.volcengine_zones.foo.zones[0].id}
secondaryZoneId: ${data.volcengine_zones.foo.zones[0].id}
storageSpace: 40
subnetId: ${fooSubnet.id}
instanceName: acc-test-postgresql-instance
chargeInfo:
chargeType: PostPaid
projectName: default
tags:
- key: tfk1
value: tfv1
parameters:
- name: auto_explain.log_analyze
value: off
- name: auto_explain.log_format
value: text
# create postgresql instance readonly node
fooInstanceReadonlyNode:
type: volcengine:rds_postgresql:InstanceReadonlyNode
properties:
instanceId: ${fooInstance.id}
nodeSpec: rds.postgres.1c2g
zoneId: ${data.volcengine_zones.foo.zones[0].id}
# create postgresql allow list
fooAllowlist:
type: volcengine:rds_postgresql:Allowlist
properties:
allowListName: acc-test-allowlist
allowListDesc: acc-test
allowListType: IPv4
allowLists:
- 192.168.0.0/24
- 192.168.1.0/24
# associate postgresql allow list to postgresql instance
fooAllowlistAssociate:
type: volcengine:rds_postgresql:AllowlistAssociate
properties:
instanceId: ${fooInstance.id}
allowListId: ${fooAllowlist.id}
# create postgresql database
fooDatabase:
type: volcengine:rds_postgresql:Database
properties:
dbName: acc-test-database
instanceId: ${fooInstance.id}
cType: C
collate: zh_CN.utf8
# create postgresql account
fooAccount:
type: volcengine:rds_postgresql:Account
properties:
accountName: acc-test-account
accountPassword: 9wc@********12
accountType: Normal
instanceId: ${fooInstance.id}
accountPrivileges: Inherit,Login,CreateRole,CreateDB
# create postgresql schema
fooSchema: # Restore the backup to a new instance
type: volcengine:rds_postgresql:Schema
properties:
dbName: ${fooDatabase.dbName}
instanceId: ${fooInstance.id}
owner: ${fooAccount.accountName}
schemaName: acc-test-schema
example:
type: volcengine:rds_postgresql:Instance
properties:
srcInstanceId: postgres-faa4921fdde4
backupId: 20251215-215628F
dbEngineVersion: PostgreSQL_12
nodeSpec: rds.postgres.1c2g
subnetId: ${fooSubnet.id}
instanceName: acc-test-postgresql-instance-restore
chargeInfo:
chargeType: PostPaid
number: 1
primaryZoneId: ${data.volcengine_zones.foo.zones[0].id}
secondaryZoneId: ${data.volcengine_zones.foo.zones[0].id}
variables:
fooZones:
fn::invoke:
Function: volcengine:rds_postgresql:getZones
Arguments: {}
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
node_spec: Optional[str] = None,
subnet_id: Optional[str] = None,
charge_info: Optional[InstanceChargeInfoArgs] = None,
db_engine_version: Optional[str] = None,
secondary_zone_id: Optional[str] = None,
primary_zone_id: Optional[str] = None,
parameters: Optional[Sequence[InstanceParameterArgs]] = None,
modify_type: Optional[str] = None,
allow_list_ids: Optional[Sequence[str]] = None,
instance_name: Optional[str] = None,
project_name: Optional[str] = None,
restore_time: Optional[str] = None,
rollback_time: Optional[str] = None,
estimate_only: Optional[bool] = None,
src_instance_id: Optional[str] = None,
storage_space: Optional[int] = None,
backup_id: Optional[str] = None,
tags: Optional[Sequence[InstanceTagArgs]] = None,
zone_migrations: Optional[Sequence[InstanceZoneMigrationArgs]] = None)func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: volcengine:rds_postgresql:Instance
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 InstanceArgs
- 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 InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- 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 exampleinstanceResourceResourceFromRds_postgresqlinstance = new Volcengine.Rds_postgresql.Instance("exampleinstanceResourceResourceFromRds_postgresqlinstance", new()
{
NodeSpec = "string",
SubnetId = "string",
ChargeInfo = new Volcengine.Rds_postgresql.Inputs.InstanceChargeInfoArgs
{
ChargeType = "string",
AutoRenew = false,
Number = 0,
Period = 0,
PeriodUnit = "string",
},
DbEngineVersion = "string",
SecondaryZoneId = "string",
PrimaryZoneId = "string",
Parameters = new[]
{
new Volcengine.Rds_postgresql.Inputs.InstanceParameterArgs
{
Name = "string",
Value = "string",
},
},
ModifyType = "string",
AllowListIds = new[]
{
"string",
},
InstanceName = "string",
ProjectName = "string",
RestoreTime = "string",
RollbackTime = "string",
EstimateOnly = false,
SrcInstanceId = "string",
StorageSpace = 0,
BackupId = "string",
Tags = new[]
{
new Volcengine.Rds_postgresql.Inputs.InstanceTagArgs
{
Key = "string",
Value = "string",
},
},
ZoneMigrations = new[]
{
new Volcengine.Rds_postgresql.Inputs.InstanceZoneMigrationArgs
{
NodeId = "string",
ZoneId = "string",
NodeType = "string",
},
},
});
example, err := rds_postgresql.NewInstance(ctx, "exampleinstanceResourceResourceFromRds_postgresqlinstance", &rds_postgresql.InstanceArgs{
NodeSpec: pulumi.String("string"),
SubnetId: pulumi.String("string"),
ChargeInfo: &rds_postgresql.InstanceChargeInfoArgs{
ChargeType: pulumi.String("string"),
AutoRenew: pulumi.Bool(false),
Number: pulumi.Int(0),
Period: pulumi.Int(0),
PeriodUnit: pulumi.String("string"),
},
DbEngineVersion: pulumi.String("string"),
SecondaryZoneId: pulumi.String("string"),
PrimaryZoneId: pulumi.String("string"),
Parameters: rds_postgresql.InstanceParameterArray{
&rds_postgresql.InstanceParameterArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
ModifyType: pulumi.String("string"),
AllowListIds: pulumi.StringArray{
pulumi.String("string"),
},
InstanceName: pulumi.String("string"),
ProjectName: pulumi.String("string"),
RestoreTime: pulumi.String("string"),
RollbackTime: pulumi.String("string"),
EstimateOnly: pulumi.Bool(false),
SrcInstanceId: pulumi.String("string"),
StorageSpace: pulumi.Int(0),
BackupId: pulumi.String("string"),
Tags: rds_postgresql.InstanceTagArray{
&rds_postgresql.InstanceTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
ZoneMigrations: rds_postgresql.InstanceZoneMigrationArray{
&rds_postgresql.InstanceZoneMigrationArgs{
NodeId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
NodeType: pulumi.String("string"),
},
},
})
var exampleinstanceResourceResourceFromRds_postgresqlinstance = new com.pulumi.volcengine.rds_postgresql.Instance("exampleinstanceResourceResourceFromRds_postgresqlinstance", com.pulumi.volcengine.rds_postgresql.InstanceArgs.builder()
.nodeSpec("string")
.subnetId("string")
.chargeInfo(InstanceChargeInfoArgs.builder()
.chargeType("string")
.autoRenew(false)
.number(0)
.period(0)
.periodUnit("string")
.build())
.dbEngineVersion("string")
.secondaryZoneId("string")
.primaryZoneId("string")
.parameters(InstanceParameterArgs.builder()
.name("string")
.value("string")
.build())
.modifyType("string")
.allowListIds("string")
.instanceName("string")
.projectName("string")
.restoreTime("string")
.rollbackTime("string")
.estimateOnly(false)
.srcInstanceId("string")
.storageSpace(0)
.backupId("string")
.tags(InstanceTagArgs.builder()
.key("string")
.value("string")
.build())
.zoneMigrations(InstanceZoneMigrationArgs.builder()
.nodeId("string")
.zoneId("string")
.nodeType("string")
.build())
.build());
exampleinstance_resource_resource_from_rds_postgresqlinstance = volcengine.rds_postgresql.Instance("exampleinstanceResourceResourceFromRds_postgresqlinstance",
node_spec="string",
subnet_id="string",
charge_info={
"charge_type": "string",
"auto_renew": False,
"number": 0,
"period": 0,
"period_unit": "string",
},
db_engine_version="string",
secondary_zone_id="string",
primary_zone_id="string",
parameters=[{
"name": "string",
"value": "string",
}],
modify_type="string",
allow_list_ids=["string"],
instance_name="string",
project_name="string",
restore_time="string",
rollback_time="string",
estimate_only=False,
src_instance_id="string",
storage_space=0,
backup_id="string",
tags=[{
"key": "string",
"value": "string",
}],
zone_migrations=[{
"node_id": "string",
"zone_id": "string",
"node_type": "string",
}])
const exampleinstanceResourceResourceFromRds_postgresqlinstance = new volcengine.rds_postgresql.Instance("exampleinstanceResourceResourceFromRds_postgresqlinstance", {
nodeSpec: "string",
subnetId: "string",
chargeInfo: {
chargeType: "string",
autoRenew: false,
number: 0,
period: 0,
periodUnit: "string",
},
dbEngineVersion: "string",
secondaryZoneId: "string",
primaryZoneId: "string",
parameters: [{
name: "string",
value: "string",
}],
modifyType: "string",
allowListIds: ["string"],
instanceName: "string",
projectName: "string",
restoreTime: "string",
rollbackTime: "string",
estimateOnly: false,
srcInstanceId: "string",
storageSpace: 0,
backupId: "string",
tags: [{
key: "string",
value: "string",
}],
zoneMigrations: [{
nodeId: "string",
zoneId: "string",
nodeType: "string",
}],
});
type: volcengine:rds_postgresql:Instance
properties:
allowListIds:
- string
backupId: string
chargeInfo:
autoRenew: false
chargeType: string
number: 0
period: 0
periodUnit: string
dbEngineVersion: string
estimateOnly: false
instanceName: string
modifyType: string
nodeSpec: string
parameters:
- name: string
value: string
primaryZoneId: string
projectName: string
restoreTime: string
rollbackTime: string
secondaryZoneId: string
srcInstanceId: string
storageSpace: 0
subnetId: string
tags:
- key: string
value: string
zoneMigrations:
- nodeId: string
nodeType: string
zoneId: string
Instance 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 Instance resource accepts the following input properties:
- Charge
Info InstanceCharge Info - Payment methods.
- Db
Engine stringVersion - Instance type. Value: PostgreSQL_11, PostgreSQL_12, PostgreSQL_13, PostgreSQL_14, PostgreSQL_15, PostgreSQL_16, PostgreSQL_17.
- Node
Spec string - The specification of primary node and secondary node.
- Primary
Zone stringId - The available zone of primary node.
- Secondary
Zone stringId - The available zone of secondary node.
- Subnet
Id string - Subnet ID of the RDS PostgreSQL instance.
- Allow
List List<string>Ids - Allow list IDs to bind at creation.
- Backup
Id string - Backup ID (choose either this or restore_time; if both are set, backup_id shall prevail).
- Estimate
Only bool - Whether to initiate a configuration change assessment. Only estimate spec change impact without executing. Default value: false.
- Instance
Name string - 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.
- Modify
Type string - Spec change type. Usually(default) or Temporary.
- Parameters
List<Instance
Parameter> - Parameter of the RDS PostgreSQL instance. This field can only be added or modified. Deleting this field is invalid.
- Project
Name string - The project name of the RDS instance.
- Restore
Time string - The point in time to restore to, in UTC format yyyy-MM-ddTHH:mm:ssZ (choose either this or backup_id).
- Rollback
Time string - Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ.
- Src
Instance stringId - Source instance ID. After setting it, a new instance will be created by restoring from the backup/time point.
- Storage
Space int - Instance storage space. Value range: [20, 3000], unit: GB, step 10GB. Default value: 100.
-
List<Instance
Tag> - Tags.
- Zone
Migrations List<InstanceZone Migration> - Nodes to migrate AZ. Only Secondary or ReadOnly nodes are allowed. If you want to migrate the availability zone of the secondary node, you need to add the zone_migrations field. Modifying the secondary_zone_id directly will not work. Cross-AZ instance migration is not supported.
- Charge
Info InstanceCharge Info Args - Payment methods.
- Db
Engine stringVersion - Instance type. Value: PostgreSQL_11, PostgreSQL_12, PostgreSQL_13, PostgreSQL_14, PostgreSQL_15, PostgreSQL_16, PostgreSQL_17.
- Node
Spec string - The specification of primary node and secondary node.
- Primary
Zone stringId - The available zone of primary node.
- Secondary
Zone stringId - The available zone of secondary node.
- Subnet
Id string - Subnet ID of the RDS PostgreSQL instance.
- Allow
List []stringIds - Allow list IDs to bind at creation.
- Backup
Id string - Backup ID (choose either this or restore_time; if both are set, backup_id shall prevail).
- Estimate
Only bool - Whether to initiate a configuration change assessment. Only estimate spec change impact without executing. Default value: false.
- Instance
Name string - 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.
- Modify
Type string - Spec change type. Usually(default) or Temporary.
- Parameters
[]Instance
Parameter Args - Parameter of the RDS PostgreSQL instance. This field can only be added or modified. Deleting this field is invalid.
- Project
Name string - The project name of the RDS instance.
- Restore
Time string - The point in time to restore to, in UTC format yyyy-MM-ddTHH:mm:ssZ (choose either this or backup_id).
- Rollback
Time string - Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ.
- Src
Instance stringId - Source instance ID. After setting it, a new instance will be created by restoring from the backup/time point.
- Storage
Space int - Instance storage space. Value range: [20, 3000], unit: GB, step 10GB. Default value: 100.
-
[]Instance
Tag Args - Tags.
- Zone
Migrations []InstanceZone Migration Args - Nodes to migrate AZ. Only Secondary or ReadOnly nodes are allowed. If you want to migrate the availability zone of the secondary node, you need to add the zone_migrations field. Modifying the secondary_zone_id directly will not work. Cross-AZ instance migration is not supported.
- charge
Info InstanceCharge Info - Payment methods.
- db
Engine StringVersion - Instance type. Value: PostgreSQL_11, PostgreSQL_12, PostgreSQL_13, PostgreSQL_14, PostgreSQL_15, PostgreSQL_16, PostgreSQL_17.
- node
Spec String - The specification of primary node and secondary node.
- primary
Zone StringId - The available zone of primary node.
- secondary
Zone StringId - The available zone of secondary node.
- subnet
Id String - Subnet ID of the RDS PostgreSQL instance.
- allow
List List<String>Ids - Allow list IDs to bind at creation.
- backup
Id String - Backup ID (choose either this or restore_time; if both are set, backup_id shall prevail).
- estimate
Only Boolean - Whether to initiate a configuration change assessment. Only estimate spec change impact without executing. Default value: false.
- instance
Name String - 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.
- modify
Type String - Spec change type. Usually(default) or Temporary.
- parameters
List<Instance
Parameter> - Parameter of the RDS PostgreSQL instance. This field can only be added or modified. Deleting this field is invalid.
- project
Name String - The project name of the RDS instance.
- restore
Time String - The point in time to restore to, in UTC format yyyy-MM-ddTHH:mm:ssZ (choose either this or backup_id).
- rollback
Time String - Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ.
- src
Instance StringId - Source instance ID. After setting it, a new instance will be created by restoring from the backup/time point.
- storage
Space Integer - Instance storage space. Value range: [20, 3000], unit: GB, step 10GB. Default value: 100.
-
List<Instance
Tag> - Tags.
- zone
Migrations List<InstanceZone Migration> - Nodes to migrate AZ. Only Secondary or ReadOnly nodes are allowed. If you want to migrate the availability zone of the secondary node, you need to add the zone_migrations field. Modifying the secondary_zone_id directly will not work. Cross-AZ instance migration is not supported.
- charge
Info InstanceCharge Info - Payment methods.
- db
Engine stringVersion - Instance type. Value: PostgreSQL_11, PostgreSQL_12, PostgreSQL_13, PostgreSQL_14, PostgreSQL_15, PostgreSQL_16, PostgreSQL_17.
- node
Spec string - The specification of primary node and secondary node.
- primary
Zone stringId - The available zone of primary node.
- secondary
Zone stringId - The available zone of secondary node.
- subnet
Id string - Subnet ID of the RDS PostgreSQL instance.
- allow
List string[]Ids - Allow list IDs to bind at creation.
- backup
Id string - Backup ID (choose either this or restore_time; if both are set, backup_id shall prevail).
- estimate
Only boolean - Whether to initiate a configuration change assessment. Only estimate spec change impact without executing. Default value: false.
- instance
Name string - 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.
- modify
Type string - Spec change type. Usually(default) or Temporary.
- parameters
Instance
Parameter[] - Parameter of the RDS PostgreSQL instance. This field can only be added or modified. Deleting this field is invalid.
- project
Name string - The project name of the RDS instance.
- restore
Time string - The point in time to restore to, in UTC format yyyy-MM-ddTHH:mm:ssZ (choose either this or backup_id).
- rollback
Time string - Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ.
- src
Instance stringId - Source instance ID. After setting it, a new instance will be created by restoring from the backup/time point.
- storage
Space number - Instance storage space. Value range: [20, 3000], unit: GB, step 10GB. Default value: 100.
-
Instance
Tag[] - Tags.
- zone
Migrations InstanceZone Migration[] - Nodes to migrate AZ. Only Secondary or ReadOnly nodes are allowed. If you want to migrate the availability zone of the secondary node, you need to add the zone_migrations field. Modifying the secondary_zone_id directly will not work. Cross-AZ instance migration is not supported.
- charge_
info InstanceCharge Info Args - Payment methods.
- db_
engine_ strversion - Instance type. Value: PostgreSQL_11, PostgreSQL_12, PostgreSQL_13, PostgreSQL_14, PostgreSQL_15, PostgreSQL_16, PostgreSQL_17.
- node_
spec str - The specification of primary node and secondary node.
- primary_
zone_ strid - The available zone of primary node.
- secondary_
zone_ strid - The available zone of secondary node.
- subnet_
id str - Subnet ID of the RDS PostgreSQL instance.
- allow_
list_ Sequence[str]ids - Allow list IDs to bind at creation.
- backup_
id str - Backup ID (choose either this or restore_time; if both are set, backup_id shall prevail).
- estimate_
only bool - Whether to initiate a configuration change assessment. Only estimate spec change impact without executing. Default value: false.
- instance_
name str - 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.
- modify_
type str - Spec change type. Usually(default) or Temporary.
- parameters
Sequence[Instance
Parameter Args] - Parameter of the RDS PostgreSQL instance. This field can only be added or modified. Deleting this field is invalid.
- project_
name str - The project name of the RDS instance.
- restore_
time str - The point in time to restore to, in UTC format yyyy-MM-ddTHH:mm:ssZ (choose either this or backup_id).
- rollback_
time str - Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ.
- src_
instance_ strid - Source instance ID. After setting it, a new instance will be created by restoring from the backup/time point.
- storage_
space int - Instance storage space. Value range: [20, 3000], unit: GB, step 10GB. Default value: 100.
-
Sequence[Instance
Tag Args] - Tags.
- zone_
migrations Sequence[InstanceZone Migration Args] - Nodes to migrate AZ. Only Secondary or ReadOnly nodes are allowed. If you want to migrate the availability zone of the secondary node, you need to add the zone_migrations field. Modifying the secondary_zone_id directly will not work. Cross-AZ instance migration is not supported.
- charge
Info Property Map - Payment methods.
- db
Engine StringVersion - Instance type. Value: PostgreSQL_11, PostgreSQL_12, PostgreSQL_13, PostgreSQL_14, PostgreSQL_15, PostgreSQL_16, PostgreSQL_17.
- node
Spec String - The specification of primary node and secondary node.
- primary
Zone StringId - The available zone of primary node.
- secondary
Zone StringId - The available zone of secondary node.
- subnet
Id String - Subnet ID of the RDS PostgreSQL instance.
- allow
List List<String>Ids - Allow list IDs to bind at creation.
- backup
Id String - Backup ID (choose either this or restore_time; if both are set, backup_id shall prevail).
- estimate
Only Boolean - Whether to initiate a configuration change assessment. Only estimate spec change impact without executing. Default value: false.
- instance
Name String - 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.
- modify
Type String - Spec change type. Usually(default) or Temporary.
- parameters List<Property Map>
- Parameter of the RDS PostgreSQL instance. This field can only be added or modified. Deleting this field is invalid.
- project
Name String - The project name of the RDS instance.
- restore
Time String - The point in time to restore to, in UTC format yyyy-MM-ddTHH:mm:ssZ (choose either this or backup_id).
- rollback
Time String - Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ.
- src
Instance StringId - Source instance ID. After setting it, a new instance will be created by restoring from the backup/time point.
- storage
Space Number - Instance storage space. Value range: [20, 3000], unit: GB, step 10GB. Default value: 100.
- List<Property Map>
- Tags.
- zone
Migrations List<Property Map> - Nodes to migrate AZ. Only Secondary or ReadOnly nodes are allowed. If you want to migrate the availability zone of the secondary node, you need to add the zone_migrations field. Modifying the secondary_zone_id directly will not work. Cross-AZ instance migration is not supported.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Allow
List stringVersion - The allow list version of the RDS PostgreSQL instance.
- Backup
Use int - The instance has used backup space. Unit: GB.
- Charge
Details List<InstanceCharge Detail> - Payment methods.
- Create
Time string - Node creation local time.
- Data
Sync stringMode - Data synchronization mode.
- Endpoints
List<Instance
Endpoint> - The endpoint info of the RDS instance.
- Estimation
Results List<InstanceEstimation Result> - The estimated impact on the instance after the current configuration changes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Instance ID.
- Instance
Status string - The status of the RDS PostgreSQL instance.
- Instance
Type string - The instance type of the RDS PostgreSQL instance.
- Memory int
- Memory size in GB.
- Node
Number int - The number of nodes.
- Nodes
List<Instance
Node> - Instance node information.
- Region
Id string - The region of the RDS PostgreSQL instance.
- Storage
Data intUse - The instance's primary node has used storage space. Unit: Byte.
- Storage
Log intUse - The instance's primary node has used log storage space. Unit: Byte.
- Storage
Temp intUse - The instance's primary node has used temporary storage space. Unit: Byte.
- Storage
Type string - Instance storage type.
- Storage
Use int - The instance has used storage space. Unit: Byte.
- Storage
Wal intUse - The instance's primary node has used WAL storage space. Unit: Byte.
- Update
Time string - The update time of the RDS PostgreSQL instance.
- VCpu int
- CPU size.
- Vpc
Id string - The vpc ID of the RDS PostgreSQL instance.
- Zone
Id string - The available zone of the RDS PostgreSQL instance.
- Zone
Ids List<string> - ID of the availability zone where each instance is located.
- Allow
List stringVersion - The allow list version of the RDS PostgreSQL instance.
- Backup
Use int - The instance has used backup space. Unit: GB.
- Charge
Details []InstanceCharge Detail - Payment methods.
- Create
Time string - Node creation local time.
- Data
Sync stringMode - Data synchronization mode.
- Endpoints
[]Instance
Endpoint - The endpoint info of the RDS instance.
- Estimation
Results []InstanceEstimation Result - The estimated impact on the instance after the current configuration changes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Instance ID.
- Instance
Status string - The status of the RDS PostgreSQL instance.
- Instance
Type string - The instance type of the RDS PostgreSQL instance.
- Memory int
- Memory size in GB.
- Node
Number int - The number of nodes.
- Nodes
[]Instance
Node - Instance node information.
- Region
Id string - The region of the RDS PostgreSQL instance.
- Storage
Data intUse - The instance's primary node has used storage space. Unit: Byte.
- Storage
Log intUse - The instance's primary node has used log storage space. Unit: Byte.
- Storage
Temp intUse - The instance's primary node has used temporary storage space. Unit: Byte.
- Storage
Type string - Instance storage type.
- Storage
Use int - The instance has used storage space. Unit: Byte.
- Storage
Wal intUse - The instance's primary node has used WAL storage space. Unit: Byte.
- Update
Time string - The update time of the RDS PostgreSQL instance.
- VCpu int
- CPU size.
- Vpc
Id string - The vpc ID of the RDS PostgreSQL instance.
- Zone
Id string - The available zone of the RDS PostgreSQL instance.
- Zone
Ids []string - ID of the availability zone where each instance is located.
- allow
List StringVersion - The allow list version of the RDS PostgreSQL instance.
- backup
Use Integer - The instance has used backup space. Unit: GB.
- charge
Details List<InstanceCharge Detail> - Payment methods.
- create
Time String - Node creation local time.
- data
Sync StringMode - Data synchronization mode.
- endpoints
List<Instance
Endpoint> - The endpoint info of the RDS instance.
- estimation
Results List<InstanceEstimation Result> - The estimated impact on the instance after the current configuration changes.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - Instance ID.
- instance
Status String - The status of the RDS PostgreSQL instance.
- instance
Type String - The instance type of the RDS PostgreSQL instance.
- memory Integer
- Memory size in GB.
- node
Number Integer - The number of nodes.
- nodes
List<Instance
Node> - Instance node information.
- region
Id String - The region of the RDS PostgreSQL instance.
- storage
Data IntegerUse - The instance's primary node has used storage space. Unit: Byte.
- storage
Log IntegerUse - The instance's primary node has used log storage space. Unit: Byte.
- storage
Temp IntegerUse - The instance's primary node has used temporary storage space. Unit: Byte.
- storage
Type String - Instance storage type.
- storage
Use Integer - The instance has used storage space. Unit: Byte.
- storage
Wal IntegerUse - The instance's primary node has used WAL storage space. Unit: Byte.
- update
Time String - The update time of the RDS PostgreSQL instance.
- v
Cpu Integer - CPU size.
- vpc
Id String - The vpc ID of the RDS PostgreSQL instance.
- zone
Id String - The available zone of the RDS PostgreSQL instance.
- zone
Ids List<String> - ID of the availability zone where each instance is located.
- allow
List stringVersion - The allow list version of the RDS PostgreSQL instance.
- backup
Use number - The instance has used backup space. Unit: GB.
- charge
Details InstanceCharge Detail[] - Payment methods.
- create
Time string - Node creation local time.
- data
Sync stringMode - Data synchronization mode.
- endpoints
Instance
Endpoint[] - The endpoint info of the RDS instance.
- estimation
Results InstanceEstimation Result[] - The estimated impact on the instance after the current configuration changes.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - Instance ID.
- instance
Status string - The status of the RDS PostgreSQL instance.
- instance
Type string - The instance type of the RDS PostgreSQL instance.
- memory number
- Memory size in GB.
- node
Number number - The number of nodes.
- nodes
Instance
Node[] - Instance node information.
- region
Id string - The region of the RDS PostgreSQL instance.
- storage
Data numberUse - The instance's primary node has used storage space. Unit: Byte.
- storage
Log numberUse - The instance's primary node has used log storage space. Unit: Byte.
- storage
Temp numberUse - The instance's primary node has used temporary storage space. Unit: Byte.
- storage
Type string - Instance storage type.
- storage
Use number - The instance has used storage space. Unit: Byte.
- storage
Wal numberUse - The instance's primary node has used WAL storage space. Unit: Byte.
- update
Time string - The update time of the RDS PostgreSQL instance.
- v
Cpu number - CPU size.
- vpc
Id string - The vpc ID of the RDS PostgreSQL instance.
- zone
Id string - The available zone of the RDS PostgreSQL instance.
- zone
Ids string[] - ID of the availability zone where each instance is located.
- allow_
list_ strversion - The allow list version of the RDS PostgreSQL instance.
- backup_
use int - The instance has used backup space. Unit: GB.
- charge_
details Sequence[InstanceCharge Detail] - Payment methods.
- create_
time str - Node creation local time.
- data_
sync_ strmode - Data synchronization mode.
- endpoints
Sequence[Instance
Endpoint] - The endpoint info of the RDS instance.
- estimation_
results Sequence[InstanceEstimation Result] - The estimated impact on the instance after the current configuration changes.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - Instance ID.
- instance_
status str - The status of the RDS PostgreSQL instance.
- instance_
type str - The instance type of the RDS PostgreSQL instance.
- memory int
- Memory size in GB.
- node_
number int - The number of nodes.
- nodes
Sequence[Instance
Node] - Instance node information.
- region_
id str - The region of the RDS PostgreSQL instance.
- storage_
data_ intuse - The instance's primary node has used storage space. Unit: Byte.
- storage_
log_ intuse - The instance's primary node has used log storage space. Unit: Byte.
- storage_
temp_ intuse - The instance's primary node has used temporary storage space. Unit: Byte.
- storage_
type str - Instance storage type.
- storage_
use int - The instance has used storage space. Unit: Byte.
- storage_
wal_ intuse - The instance's primary node has used WAL storage space. Unit: Byte.
- update_
time str - The update time of the RDS PostgreSQL instance.
- v_
cpu int - CPU size.
- vpc_
id str - The vpc ID of the RDS PostgreSQL instance.
- zone_
id str - The available zone of the RDS PostgreSQL instance.
- zone_
ids Sequence[str] - ID of the availability zone where each instance is located.
- allow
List StringVersion - The allow list version of the RDS PostgreSQL instance.
- backup
Use Number - The instance has used backup space. Unit: GB.
- charge
Details List<Property Map> - Payment methods.
- create
Time String - Node creation local time.
- data
Sync StringMode - Data synchronization mode.
- endpoints List<Property Map>
- The endpoint info of the RDS instance.
- estimation
Results List<Property Map> - The estimated impact on the instance after the current configuration changes.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - Instance ID.
- instance
Status String - The status of the RDS PostgreSQL instance.
- instance
Type String - The instance type of the RDS PostgreSQL instance.
- memory Number
- Memory size in GB.
- node
Number Number - The number of nodes.
- nodes List<Property Map>
- Instance node information.
- region
Id String - The region of the RDS PostgreSQL instance.
- storage
Data NumberUse - The instance's primary node has used storage space. Unit: Byte.
- storage
Log NumberUse - The instance's primary node has used log storage space. Unit: Byte.
- storage
Temp NumberUse - The instance's primary node has used temporary storage space. Unit: Byte.
- storage
Type String - Instance storage type.
- storage
Use Number - The instance has used storage space. Unit: Byte.
- storage
Wal NumberUse - The instance's primary node has used WAL storage space. Unit: Byte.
- update
Time String - The update time of the RDS PostgreSQL instance.
- v
Cpu Number - CPU size.
- vpc
Id String - The vpc ID of the RDS PostgreSQL instance.
- zone
Id String - The available zone of the RDS PostgreSQL instance.
- zone
Ids List<String> - ID of the availability zone where each instance is located.
Look up Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_list_ids: Optional[Sequence[str]] = None,
allow_list_version: Optional[str] = None,
backup_id: Optional[str] = None,
backup_use: Optional[int] = None,
charge_details: Optional[Sequence[InstanceChargeDetailArgs]] = None,
charge_info: Optional[InstanceChargeInfoArgs] = None,
create_time: Optional[str] = None,
data_sync_mode: Optional[str] = None,
db_engine_version: Optional[str] = None,
endpoints: Optional[Sequence[InstanceEndpointArgs]] = None,
estimate_only: Optional[bool] = None,
estimation_results: Optional[Sequence[InstanceEstimationResultArgs]] = None,
instance_id: Optional[str] = None,
instance_name: Optional[str] = None,
instance_status: Optional[str] = None,
instance_type: Optional[str] = None,
memory: Optional[int] = None,
modify_type: Optional[str] = None,
node_number: Optional[int] = None,
node_spec: Optional[str] = None,
nodes: Optional[Sequence[InstanceNodeArgs]] = None,
parameters: Optional[Sequence[InstanceParameterArgs]] = None,
primary_zone_id: Optional[str] = None,
project_name: Optional[str] = None,
region_id: Optional[str] = None,
restore_time: Optional[str] = None,
rollback_time: Optional[str] = None,
secondary_zone_id: Optional[str] = None,
src_instance_id: Optional[str] = None,
storage_data_use: Optional[int] = None,
storage_log_use: Optional[int] = None,
storage_space: Optional[int] = None,
storage_temp_use: Optional[int] = None,
storage_type: Optional[str] = None,
storage_use: Optional[int] = None,
storage_wal_use: Optional[int] = None,
subnet_id: Optional[str] = None,
tags: Optional[Sequence[InstanceTagArgs]] = None,
update_time: Optional[str] = None,
v_cpu: Optional[int] = None,
vpc_id: Optional[str] = None,
zone_id: Optional[str] = None,
zone_ids: Optional[Sequence[str]] = None,
zone_migrations: Optional[Sequence[InstanceZoneMigrationArgs]] = None) -> Instancefunc GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)resources: _: type: volcengine:rds_postgresql:Instance 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.
- Allow
List List<string>Ids - Allow list IDs to bind at creation.
- Allow
List stringVersion - The allow list version of the RDS PostgreSQL instance.
- Backup
Id string - Backup ID (choose either this or restore_time; if both are set, backup_id shall prevail).
- Backup
Use int - The instance has used backup space. Unit: GB.
- Charge
Details List<InstanceCharge Detail> - Payment methods.
- Charge
Info InstanceCharge Info - Payment methods.
- Create
Time string - Node creation local time.
- Data
Sync stringMode - Data synchronization mode.
- Db
Engine stringVersion - Instance type. Value: PostgreSQL_11, PostgreSQL_12, PostgreSQL_13, PostgreSQL_14, PostgreSQL_15, PostgreSQL_16, PostgreSQL_17.
- Endpoints
List<Instance
Endpoint> - The endpoint info of the RDS instance.
- Estimate
Only bool - Whether to initiate a configuration change assessment. Only estimate spec change impact without executing. Default value: false.
- Estimation
Results List<InstanceEstimation Result> - The estimated impact on the instance after the current configuration changes.
- Instance
Id string - Instance ID.
- Instance
Name string - 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
Status string - The status of the RDS PostgreSQL instance.
- Instance
Type string - The instance type of the RDS PostgreSQL instance.
- Memory int
- Memory size in GB.
- Modify
Type string - Spec change type. Usually(default) or Temporary.
- Node
Number int - The number of nodes.
- Node
Spec string - The specification of primary node and secondary node.
- Nodes
List<Instance
Node> - Instance node information.
- Parameters
List<Instance
Parameter> - Parameter of the RDS PostgreSQL instance. This field can only be added or modified. Deleting this field is invalid.
- Primary
Zone stringId - The available zone of primary node.
- Project
Name string - The project name of the RDS instance.
- Region
Id string - The region of the RDS PostgreSQL instance.
- Restore
Time string - The point in time to restore to, in UTC format yyyy-MM-ddTHH:mm:ssZ (choose either this or backup_id).
- Rollback
Time string - Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ.
- Secondary
Zone stringId - The available zone of secondary node.
- Src
Instance stringId - Source instance ID. After setting it, a new instance will be created by restoring from the backup/time point.
- Storage
Data intUse - The instance's primary node has used storage space. Unit: Byte.
- Storage
Log intUse - The instance's primary node has used log storage space. Unit: Byte.
- Storage
Space int - Instance storage space. Value range: [20, 3000], unit: GB, step 10GB. Default value: 100.
- Storage
Temp intUse - The instance's primary node has used temporary storage space. Unit: Byte.
- Storage
Type string - Instance storage type.
- Storage
Use int - The instance has used storage space. Unit: Byte.
- Storage
Wal intUse - The instance's primary node has used WAL storage space. Unit: Byte.
- Subnet
Id string - Subnet ID of the RDS PostgreSQL instance.
-
List<Instance
Tag> - Tags.
- Update
Time string - The update time of the RDS PostgreSQL instance.
- VCpu int
- CPU size.
- Vpc
Id string - The vpc ID of the RDS PostgreSQL instance.
- Zone
Id string - The available zone of the RDS PostgreSQL instance.
- Zone
Ids List<string> - ID of the availability zone where each instance is located.
- Zone
Migrations List<InstanceZone Migration> - Nodes to migrate AZ. Only Secondary or ReadOnly nodes are allowed. If you want to migrate the availability zone of the secondary node, you need to add the zone_migrations field. Modifying the secondary_zone_id directly will not work. Cross-AZ instance migration is not supported.
- Allow
List []stringIds - Allow list IDs to bind at creation.
- Allow
List stringVersion - The allow list version of the RDS PostgreSQL instance.
- Backup
Id string - Backup ID (choose either this or restore_time; if both are set, backup_id shall prevail).
- Backup
Use int - The instance has used backup space. Unit: GB.
- Charge
Details []InstanceCharge Detail Args - Payment methods.
- Charge
Info InstanceCharge Info Args - Payment methods.
- Create
Time string - Node creation local time.
- Data
Sync stringMode - Data synchronization mode.
- Db
Engine stringVersion - Instance type. Value: PostgreSQL_11, PostgreSQL_12, PostgreSQL_13, PostgreSQL_14, PostgreSQL_15, PostgreSQL_16, PostgreSQL_17.
- Endpoints
[]Instance
Endpoint Args - The endpoint info of the RDS instance.
- Estimate
Only bool - Whether to initiate a configuration change assessment. Only estimate spec change impact without executing. Default value: false.
- Estimation
Results []InstanceEstimation Result Args - The estimated impact on the instance after the current configuration changes.
- Instance
Id string - Instance ID.
- Instance
Name string - 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
Status string - The status of the RDS PostgreSQL instance.
- Instance
Type string - The instance type of the RDS PostgreSQL instance.
- Memory int
- Memory size in GB.
- Modify
Type string - Spec change type. Usually(default) or Temporary.
- Node
Number int - The number of nodes.
- Node
Spec string - The specification of primary node and secondary node.
- Nodes
[]Instance
Node Args - Instance node information.
- Parameters
[]Instance
Parameter Args - Parameter of the RDS PostgreSQL instance. This field can only be added or modified. Deleting this field is invalid.
- Primary
Zone stringId - The available zone of primary node.
- Project
Name string - The project name of the RDS instance.
- Region
Id string - The region of the RDS PostgreSQL instance.
- Restore
Time string - The point in time to restore to, in UTC format yyyy-MM-ddTHH:mm:ssZ (choose either this or backup_id).
- Rollback
Time string - Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ.
- Secondary
Zone stringId - The available zone of secondary node.
- Src
Instance stringId - Source instance ID. After setting it, a new instance will be created by restoring from the backup/time point.
- Storage
Data intUse - The instance's primary node has used storage space. Unit: Byte.
- Storage
Log intUse - The instance's primary node has used log storage space. Unit: Byte.
- Storage
Space int - Instance storage space. Value range: [20, 3000], unit: GB, step 10GB. Default value: 100.
- Storage
Temp intUse - The instance's primary node has used temporary storage space. Unit: Byte.
- Storage
Type string - Instance storage type.
- Storage
Use int - The instance has used storage space. Unit: Byte.
- Storage
Wal intUse - The instance's primary node has used WAL storage space. Unit: Byte.
- Subnet
Id string - Subnet ID of the RDS PostgreSQL instance.
-
[]Instance
Tag Args - Tags.
- Update
Time string - The update time of the RDS PostgreSQL instance.
- VCpu int
- CPU size.
- Vpc
Id string - The vpc ID of the RDS PostgreSQL instance.
- Zone
Id string - The available zone of the RDS PostgreSQL instance.
- Zone
Ids []string - ID of the availability zone where each instance is located.
- Zone
Migrations []InstanceZone Migration Args - Nodes to migrate AZ. Only Secondary or ReadOnly nodes are allowed. If you want to migrate the availability zone of the secondary node, you need to add the zone_migrations field. Modifying the secondary_zone_id directly will not work. Cross-AZ instance migration is not supported.
- allow
List List<String>Ids - Allow list IDs to bind at creation.
- allow
List StringVersion - The allow list version of the RDS PostgreSQL instance.
- backup
Id String - Backup ID (choose either this or restore_time; if both are set, backup_id shall prevail).
- backup
Use Integer - The instance has used backup space. Unit: GB.
- charge
Details List<InstanceCharge Detail> - Payment methods.
- charge
Info InstanceCharge Info - Payment methods.
- create
Time String - Node creation local time.
- data
Sync StringMode - Data synchronization mode.
- db
Engine StringVersion - Instance type. Value: PostgreSQL_11, PostgreSQL_12, PostgreSQL_13, PostgreSQL_14, PostgreSQL_15, PostgreSQL_16, PostgreSQL_17.
- endpoints
List<Instance
Endpoint> - The endpoint info of the RDS instance.
- estimate
Only Boolean - Whether to initiate a configuration change assessment. Only estimate spec change impact without executing. Default value: false.
- estimation
Results List<InstanceEstimation Result> - The estimated impact on the instance after the current configuration changes.
- instance
Id String - Instance ID.
- instance
Name String - 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
Status String - The status of the RDS PostgreSQL instance.
- instance
Type String - The instance type of the RDS PostgreSQL instance.
- memory Integer
- Memory size in GB.
- modify
Type String - Spec change type. Usually(default) or Temporary.
- node
Number Integer - The number of nodes.
- node
Spec String - The specification of primary node and secondary node.
- nodes
List<Instance
Node> - Instance node information.
- parameters
List<Instance
Parameter> - Parameter of the RDS PostgreSQL instance. This field can only be added or modified. Deleting this field is invalid.
- primary
Zone StringId - The available zone of primary node.
- project
Name String - The project name of the RDS instance.
- region
Id String - The region of the RDS PostgreSQL instance.
- restore
Time String - The point in time to restore to, in UTC format yyyy-MM-ddTHH:mm:ssZ (choose either this or backup_id).
- rollback
Time String - Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ.
- secondary
Zone StringId - The available zone of secondary node.
- src
Instance StringId - Source instance ID. After setting it, a new instance will be created by restoring from the backup/time point.
- storage
Data IntegerUse - The instance's primary node has used storage space. Unit: Byte.
- storage
Log IntegerUse - The instance's primary node has used log storage space. Unit: Byte.
- storage
Space Integer - Instance storage space. Value range: [20, 3000], unit: GB, step 10GB. Default value: 100.
- storage
Temp IntegerUse - The instance's primary node has used temporary storage space. Unit: Byte.
- storage
Type String - Instance storage type.
- storage
Use Integer - The instance has used storage space. Unit: Byte.
- storage
Wal IntegerUse - The instance's primary node has used WAL storage space. Unit: Byte.
- subnet
Id String - Subnet ID of the RDS PostgreSQL instance.
-
List<Instance
Tag> - Tags.
- update
Time String - The update time of the RDS PostgreSQL instance.
- v
Cpu Integer - CPU size.
- vpc
Id String - The vpc ID of the RDS PostgreSQL instance.
- zone
Id String - The available zone of the RDS PostgreSQL instance.
- zone
Ids List<String> - ID of the availability zone where each instance is located.
- zone
Migrations List<InstanceZone Migration> - Nodes to migrate AZ. Only Secondary or ReadOnly nodes are allowed. If you want to migrate the availability zone of the secondary node, you need to add the zone_migrations field. Modifying the secondary_zone_id directly will not work. Cross-AZ instance migration is not supported.
- allow
List string[]Ids - Allow list IDs to bind at creation.
- allow
List stringVersion - The allow list version of the RDS PostgreSQL instance.
- backup
Id string - Backup ID (choose either this or restore_time; if both are set, backup_id shall prevail).
- backup
Use number - The instance has used backup space. Unit: GB.
- charge
Details InstanceCharge Detail[] - Payment methods.
- charge
Info InstanceCharge Info - Payment methods.
- create
Time string - Node creation local time.
- data
Sync stringMode - Data synchronization mode.
- db
Engine stringVersion - Instance type. Value: PostgreSQL_11, PostgreSQL_12, PostgreSQL_13, PostgreSQL_14, PostgreSQL_15, PostgreSQL_16, PostgreSQL_17.
- endpoints
Instance
Endpoint[] - The endpoint info of the RDS instance.
- estimate
Only boolean - Whether to initiate a configuration change assessment. Only estimate spec change impact without executing. Default value: false.
- estimation
Results InstanceEstimation Result[] - The estimated impact on the instance after the current configuration changes.
- instance
Id string - Instance ID.
- instance
Name string - 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
Status string - The status of the RDS PostgreSQL instance.
- instance
Type string - The instance type of the RDS PostgreSQL instance.
- memory number
- Memory size in GB.
- modify
Type string - Spec change type. Usually(default) or Temporary.
- node
Number number - The number of nodes.
- node
Spec string - The specification of primary node and secondary node.
- nodes
Instance
Node[] - Instance node information.
- parameters
Instance
Parameter[] - Parameter of the RDS PostgreSQL instance. This field can only be added or modified. Deleting this field is invalid.
- primary
Zone stringId - The available zone of primary node.
- project
Name string - The project name of the RDS instance.
- region
Id string - The region of the RDS PostgreSQL instance.
- restore
Time string - The point in time to restore to, in UTC format yyyy-MM-ddTHH:mm:ssZ (choose either this or backup_id).
- rollback
Time string - Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ.
- secondary
Zone stringId - The available zone of secondary node.
- src
Instance stringId - Source instance ID. After setting it, a new instance will be created by restoring from the backup/time point.
- storage
Data numberUse - The instance's primary node has used storage space. Unit: Byte.
- storage
Log numberUse - The instance's primary node has used log storage space. Unit: Byte.
- storage
Space number - Instance storage space. Value range: [20, 3000], unit: GB, step 10GB. Default value: 100.
- storage
Temp numberUse - The instance's primary node has used temporary storage space. Unit: Byte.
- storage
Type string - Instance storage type.
- storage
Use number - The instance has used storage space. Unit: Byte.
- storage
Wal numberUse - The instance's primary node has used WAL storage space. Unit: Byte.
- subnet
Id string - Subnet ID of the RDS PostgreSQL instance.
-
Instance
Tag[] - Tags.
- update
Time string - The update time of the RDS PostgreSQL instance.
- v
Cpu number - CPU size.
- vpc
Id string - The vpc ID of the RDS PostgreSQL instance.
- zone
Id string - The available zone of the RDS PostgreSQL instance.
- zone
Ids string[] - ID of the availability zone where each instance is located.
- zone
Migrations InstanceZone Migration[] - Nodes to migrate AZ. Only Secondary or ReadOnly nodes are allowed. If you want to migrate the availability zone of the secondary node, you need to add the zone_migrations field. Modifying the secondary_zone_id directly will not work. Cross-AZ instance migration is not supported.
- allow_
list_ Sequence[str]ids - Allow list IDs to bind at creation.
- allow_
list_ strversion - The allow list version of the RDS PostgreSQL instance.
- backup_
id str - Backup ID (choose either this or restore_time; if both are set, backup_id shall prevail).
- backup_
use int - The instance has used backup space. Unit: GB.
- charge_
details Sequence[InstanceCharge Detail Args] - Payment methods.
- charge_
info InstanceCharge Info Args - Payment methods.
- create_
time str - Node creation local time.
- data_
sync_ strmode - Data synchronization mode.
- db_
engine_ strversion - Instance type. Value: PostgreSQL_11, PostgreSQL_12, PostgreSQL_13, PostgreSQL_14, PostgreSQL_15, PostgreSQL_16, PostgreSQL_17.
- endpoints
Sequence[Instance
Endpoint Args] - The endpoint info of the RDS instance.
- estimate_
only bool - Whether to initiate a configuration change assessment. Only estimate spec change impact without executing. Default value: false.
- estimation_
results Sequence[InstanceEstimation Result Args] - The estimated impact on the instance after the current configuration changes.
- instance_
id str - Instance ID.
- instance_
name str - 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_
status str - The status of the RDS PostgreSQL instance.
- instance_
type str - The instance type of the RDS PostgreSQL instance.
- memory int
- Memory size in GB.
- modify_
type str - Spec change type. Usually(default) or Temporary.
- node_
number int - The number of nodes.
- node_
spec str - The specification of primary node and secondary node.
- nodes
Sequence[Instance
Node Args] - Instance node information.
- parameters
Sequence[Instance
Parameter Args] - Parameter of the RDS PostgreSQL instance. This field can only be added or modified. Deleting this field is invalid.
- primary_
zone_ strid - The available zone of primary node.
- project_
name str - The project name of the RDS instance.
- region_
id str - The region of the RDS PostgreSQL instance.
- restore_
time str - The point in time to restore to, in UTC format yyyy-MM-ddTHH:mm:ssZ (choose either this or backup_id).
- rollback_
time str - Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ.
- secondary_
zone_ strid - The available zone of secondary node.
- src_
instance_ strid - Source instance ID. After setting it, a new instance will be created by restoring from the backup/time point.
- storage_
data_ intuse - The instance's primary node has used storage space. Unit: Byte.
- storage_
log_ intuse - The instance's primary node has used log storage space. Unit: Byte.
- storage_
space int - Instance storage space. Value range: [20, 3000], unit: GB, step 10GB. Default value: 100.
- storage_
temp_ intuse - The instance's primary node has used temporary storage space. Unit: Byte.
- storage_
type str - Instance storage type.
- storage_
use int - The instance has used storage space. Unit: Byte.
- storage_
wal_ intuse - The instance's primary node has used WAL storage space. Unit: Byte.
- subnet_
id str - Subnet ID of the RDS PostgreSQL instance.
-
Sequence[Instance
Tag Args] - Tags.
- update_
time str - The update time of the RDS PostgreSQL instance.
- v_
cpu int - CPU size.
- vpc_
id str - The vpc ID of the RDS PostgreSQL instance.
- zone_
id str - The available zone of the RDS PostgreSQL instance.
- zone_
ids Sequence[str] - ID of the availability zone where each instance is located.
- zone_
migrations Sequence[InstanceZone Migration Args] - Nodes to migrate AZ. Only Secondary or ReadOnly nodes are allowed. If you want to migrate the availability zone of the secondary node, you need to add the zone_migrations field. Modifying the secondary_zone_id directly will not work. Cross-AZ instance migration is not supported.
- allow
List List<String>Ids - Allow list IDs to bind at creation.
- allow
List StringVersion - The allow list version of the RDS PostgreSQL instance.
- backup
Id String - Backup ID (choose either this or restore_time; if both are set, backup_id shall prevail).
- backup
Use Number - The instance has used backup space. Unit: GB.
- charge
Details List<Property Map> - Payment methods.
- charge
Info Property Map - Payment methods.
- create
Time String - Node creation local time.
- data
Sync StringMode - Data synchronization mode.
- db
Engine StringVersion - Instance type. Value: PostgreSQL_11, PostgreSQL_12, PostgreSQL_13, PostgreSQL_14, PostgreSQL_15, PostgreSQL_16, PostgreSQL_17.
- endpoints List<Property Map>
- The endpoint info of the RDS instance.
- estimate
Only Boolean - Whether to initiate a configuration change assessment. Only estimate spec change impact without executing. Default value: false.
- estimation
Results List<Property Map> - The estimated impact on the instance after the current configuration changes.
- instance
Id String - Instance ID.
- instance
Name String - 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
Status String - The status of the RDS PostgreSQL instance.
- instance
Type String - The instance type of the RDS PostgreSQL instance.
- memory Number
- Memory size in GB.
- modify
Type String - Spec change type. Usually(default) or Temporary.
- node
Number Number - The number of nodes.
- node
Spec String - The specification of primary node and secondary node.
- nodes List<Property Map>
- Instance node information.
- parameters List<Property Map>
- Parameter of the RDS PostgreSQL instance. This field can only be added or modified. Deleting this field is invalid.
- primary
Zone StringId - The available zone of primary node.
- project
Name String - The project name of the RDS instance.
- region
Id String - The region of the RDS PostgreSQL instance.
- restore
Time String - The point in time to restore to, in UTC format yyyy-MM-ddTHH:mm:ssZ (choose either this or backup_id).
- rollback
Time String - Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ.
- secondary
Zone StringId - The available zone of secondary node.
- src
Instance StringId - Source instance ID. After setting it, a new instance will be created by restoring from the backup/time point.
- storage
Data NumberUse - The instance's primary node has used storage space. Unit: Byte.
- storage
Log NumberUse - The instance's primary node has used log storage space. Unit: Byte.
- storage
Space Number - Instance storage space. Value range: [20, 3000], unit: GB, step 10GB. Default value: 100.
- storage
Temp NumberUse - The instance's primary node has used temporary storage space. Unit: Byte.
- storage
Type String - Instance storage type.
- storage
Use Number - The instance has used storage space. Unit: Byte.
- storage
Wal NumberUse - The instance's primary node has used WAL storage space. Unit: Byte.
- subnet
Id String - Subnet ID of the RDS PostgreSQL instance.
- List<Property Map>
- Tags.
- update
Time String - The update time of the RDS PostgreSQL instance.
- v
Cpu Number - CPU size.
- vpc
Id String - The vpc ID of the RDS PostgreSQL instance.
- zone
Id String - The available zone of the RDS PostgreSQL instance.
- zone
Ids List<String> - ID of the availability zone where each instance is located.
- zone
Migrations List<Property Map> - Nodes to migrate AZ. Only Secondary or ReadOnly nodes are allowed. If you want to migrate the availability zone of the secondary node, you need to add the zone_migrations field. Modifying the secondary_zone_id directly will not work. Cross-AZ instance migration is not supported.
Supporting Types
InstanceChargeDetail, InstanceChargeDetailArgs
- Auto
Renew bool - Whether to automatically renew in prepaid scenarios. Autorenew_Enable Autorenew_Disable (default).
- Charge
End stringTime - Billing expiry time (yearly and monthly only).
- Charge
Start stringTime - Billing start time (pay-as-you-go & monthly subscription).
- Charge
Status string - Pay status. Value: normal - normal overdue - overdue unpaid - unpaid.
- Charge
Type string - Payment type. Value: PostPaid - Pay-As-You-Go PrePaid - Yearly and monthly (default).
- Number int
- The number of the RDS PostgreSQL instance.
- Overdue
Reclaim stringTime - Estimated release time when arrears are closed (pay-as-you-go & monthly subscription).
- Overdue
Time string - Shutdown time in arrears (pay-as-you-go & monthly subscription).
- Period int
- Purchase duration in prepaid scenarios. Default: 1.
- Period
Unit string - The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- Temp
Modify stringEnd Time - Temporary upgrade of restoration time.
- Temp
Modify stringStart Time - Start time of temporary upgrade.
- Auto
Renew bool - Whether to automatically renew in prepaid scenarios. Autorenew_Enable Autorenew_Disable (default).
- Charge
End stringTime - Billing expiry time (yearly and monthly only).
- Charge
Start stringTime - Billing start time (pay-as-you-go & monthly subscription).
- Charge
Status string - Pay status. Value: normal - normal overdue - overdue unpaid - unpaid.
- Charge
Type string - Payment type. Value: PostPaid - Pay-As-You-Go PrePaid - Yearly and monthly (default).
- Number int
- The number of the RDS PostgreSQL instance.
- Overdue
Reclaim stringTime - Estimated release time when arrears are closed (pay-as-you-go & monthly subscription).
- Overdue
Time string - Shutdown time in arrears (pay-as-you-go & monthly subscription).
- Period int
- Purchase duration in prepaid scenarios. Default: 1.
- Period
Unit string - The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- Temp
Modify stringEnd Time - Temporary upgrade of restoration time.
- Temp
Modify stringStart Time - Start time of temporary upgrade.
- auto
Renew Boolean - Whether to automatically renew in prepaid scenarios. Autorenew_Enable Autorenew_Disable (default).
- charge
End StringTime - Billing expiry time (yearly and monthly only).
- charge
Start StringTime - Billing start time (pay-as-you-go & monthly subscription).
- charge
Status String - Pay status. Value: normal - normal overdue - overdue unpaid - unpaid.
- charge
Type String - Payment type. Value: PostPaid - Pay-As-You-Go PrePaid - Yearly and monthly (default).
- number Integer
- The number of the RDS PostgreSQL instance.
- overdue
Reclaim StringTime - Estimated release time when arrears are closed (pay-as-you-go & monthly subscription).
- overdue
Time String - Shutdown time in arrears (pay-as-you-go & monthly subscription).
- period Integer
- Purchase duration in prepaid scenarios. Default: 1.
- period
Unit String - The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- temp
Modify StringEnd Time - Temporary upgrade of restoration time.
- temp
Modify StringStart Time - Start time of temporary upgrade.
- auto
Renew boolean - Whether to automatically renew in prepaid scenarios. Autorenew_Enable Autorenew_Disable (default).
- charge
End stringTime - Billing expiry time (yearly and monthly only).
- charge
Start stringTime - Billing start time (pay-as-you-go & monthly subscription).
- charge
Status string - Pay status. Value: normal - normal overdue - overdue unpaid - unpaid.
- charge
Type string - Payment type. Value: PostPaid - Pay-As-You-Go PrePaid - Yearly and monthly (default).
- number number
- The number of the RDS PostgreSQL instance.
- overdue
Reclaim stringTime - Estimated release time when arrears are closed (pay-as-you-go & monthly subscription).
- overdue
Time string - Shutdown time in arrears (pay-as-you-go & monthly subscription).
- period number
- Purchase duration in prepaid scenarios. Default: 1.
- period
Unit string - The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- temp
Modify stringEnd Time - Temporary upgrade of restoration time.
- temp
Modify stringStart Time - Start time of temporary upgrade.
- auto_
renew bool - Whether to automatically renew in prepaid scenarios. Autorenew_Enable Autorenew_Disable (default).
- charge_
end_ strtime - Billing expiry time (yearly and monthly only).
- charge_
start_ strtime - Billing start time (pay-as-you-go & monthly subscription).
- charge_
status str - Pay status. Value: normal - normal overdue - overdue unpaid - unpaid.
- charge_
type str - Payment type. Value: PostPaid - Pay-As-You-Go PrePaid - Yearly and monthly (default).
- number int
- The number of the RDS PostgreSQL instance.
- overdue_
reclaim_ strtime - Estimated release time when arrears are closed (pay-as-you-go & monthly subscription).
- overdue_
time str - Shutdown time in arrears (pay-as-you-go & monthly subscription).
- period int
- Purchase duration in prepaid scenarios. Default: 1.
- period_
unit str - The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- temp_
modify_ strend_ time - Temporary upgrade of restoration time.
- temp_
modify_ strstart_ time - Start time of temporary upgrade.
- auto
Renew Boolean - Whether to automatically renew in prepaid scenarios. Autorenew_Enable Autorenew_Disable (default).
- charge
End StringTime - Billing expiry time (yearly and monthly only).
- charge
Start StringTime - Billing start time (pay-as-you-go & monthly subscription).
- charge
Status String - Pay status. Value: normal - normal overdue - overdue unpaid - unpaid.
- charge
Type String - Payment type. Value: PostPaid - Pay-As-You-Go PrePaid - Yearly and monthly (default).
- number Number
- The number of the RDS PostgreSQL instance.
- overdue
Reclaim StringTime - Estimated release time when arrears are closed (pay-as-you-go & monthly subscription).
- overdue
Time String - Shutdown time in arrears (pay-as-you-go & monthly subscription).
- period Number
- Purchase duration in prepaid scenarios. Default: 1.
- period
Unit String - The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- temp
Modify StringEnd Time - Temporary upgrade of restoration time.
- temp
Modify StringStart Time - Start time of temporary upgrade.
InstanceChargeInfo, InstanceChargeInfoArgs
- Charge
Type string - Auto
Renew bool - Whether to automatically renew in prepaid scenarios.
- Number int
- Purchase number of the RDS PostgreSQL instance. Range: [1, 20]. Default: 1.
- Period int
- Purchase duration in prepaid scenarios. Default: 1.
- Period
Unit string - The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- Charge
Type string - Auto
Renew bool - Whether to automatically renew in prepaid scenarios.
- Number int
- Purchase number of the RDS PostgreSQL instance. Range: [1, 20]. Default: 1.
- Period int
- Purchase duration in prepaid scenarios. Default: 1.
- Period
Unit string - The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- charge
Type String - auto
Renew Boolean - Whether to automatically renew in prepaid scenarios.
- number Integer
- Purchase number of the RDS PostgreSQL instance. Range: [1, 20]. Default: 1.
- period Integer
- Purchase duration in prepaid scenarios. Default: 1.
- period
Unit String - The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- charge
Type string - auto
Renew boolean - Whether to automatically renew in prepaid scenarios.
- number number
- Purchase number of the RDS PostgreSQL instance. Range: [1, 20]. Default: 1.
- period number
- Purchase duration in prepaid scenarios. Default: 1.
- period
Unit string - The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- charge_
type str - auto_
renew bool - Whether to automatically renew in prepaid scenarios.
- number int
- Purchase number of the RDS PostgreSQL instance. Range: [1, 20]. Default: 1.
- period int
- Purchase duration in prepaid scenarios. Default: 1.
- period_
unit str - The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
- charge
Type String - auto
Renew Boolean - Whether to automatically renew in prepaid scenarios.
- number Number
- Purchase number of the RDS PostgreSQL instance. Range: [1, 20]. Default: 1.
- period Number
- Purchase duration in prepaid scenarios. Default: 1.
- period
Unit String - The purchase cycle in the prepaid scenario. Month - monthly subscription (default) Year - Package year.
InstanceEndpoint, InstanceEndpointArgs
- Addresses
List<Instance
Endpoint 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 stringNode Distribution Type - The distribution type of the read-only nodes, value: Default: Default distribution. Custom: Custom distribution.
- Read
Only intNode Max Delay Time - Maximum latency threshold of read-only node. If the latency of a read-only node exceeds this value, reading traffic won't be routed to this node. Unit: seconds.Values: 0~3600.Default value: 30.
- Read
Only List<InstanceNode Weights Endpoint 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).
- Read
Write intProxy Connection - After the terminal enables read-write separation, the number of proxy connections set for the terminal. The lower limit of the number of proxy connections is 20. The upper limit of the number of proxy connections depends on the specifications of the instance master node.
- Write
Node boolHalt Writing - Whether the endpoint sends write requests to the write node (currently only the master node is a write node). Values: true: Yes(Default). false: No.
- Addresses
[]Instance
Endpoint 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 stringNode Distribution Type - The distribution type of the read-only nodes, value: Default: Default distribution. Custom: Custom distribution.
- Read
Only intNode Max Delay Time - Maximum latency threshold of read-only node. If the latency of a read-only node exceeds this value, reading traffic won't be routed to this node. Unit: seconds.Values: 0~3600.Default value: 30.
- Read
Only []InstanceNode Weights Endpoint 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).
- Read
Write intProxy Connection - After the terminal enables read-write separation, the number of proxy connections set for the terminal. The lower limit of the number of proxy connections is 20. The upper limit of the number of proxy connections depends on the specifications of the instance master node.
- Write
Node boolHalt Writing - Whether the endpoint sends write requests to the write node (currently only the master node is a write node). Values: true: Yes(Default). false: No.
- addresses
List<Instance
Endpoint 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 StringNode Distribution Type - The distribution type of the read-only nodes, value: Default: Default distribution. Custom: Custom distribution.
- read
Only IntegerNode Max Delay Time - Maximum latency threshold of read-only node. If the latency of a read-only node exceeds this value, reading traffic won't be routed to this node. Unit: seconds.Values: 0~3600.Default value: 30.
- read
Only List<InstanceNode Weights Endpoint 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).
- read
Write IntegerProxy Connection - After the terminal enables read-write separation, the number of proxy connections set for the terminal. The lower limit of the number of proxy connections is 20. The upper limit of the number of proxy connections depends on the specifications of the instance master node.
- write
Node BooleanHalt Writing - Whether the endpoint sends write requests to the write node (currently only the master node is a write node). Values: true: Yes(Default). false: No.
- addresses
Instance
Endpoint 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 stringNode Distribution Type - The distribution type of the read-only nodes, value: Default: Default distribution. Custom: Custom distribution.
- read
Only numberNode Max Delay Time - Maximum latency threshold of read-only node. If the latency of a read-only node exceeds this value, reading traffic won't be routed to this node. Unit: seconds.Values: 0~3600.Default value: 30.
- read
Only InstanceNode Weights Endpoint 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).
- read
Write numberProxy Connection - After the terminal enables read-write separation, the number of proxy connections set for the terminal. The lower limit of the number of proxy connections is 20. The upper limit of the number of proxy connections depends on the specifications of the instance master node.
- write
Node booleanHalt Writing - Whether the endpoint sends write requests to the write node (currently only the master node is a write node). Values: true: Yes(Default). false: No.
- addresses
Sequence[Instance
Endpoint 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_ strnode_ distribution_ type - The distribution type of the read-only nodes, value: Default: Default distribution. Custom: Custom distribution.
- read_
only_ intnode_ max_ delay_ time - Maximum latency threshold of read-only node. If the latency of a read-only node exceeds this value, reading traffic won't be routed to this node. Unit: seconds.Values: 0~3600.Default value: 30.
- read_
only_ Sequence[Instancenode_ weights Endpoint 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).
- read_
write_ intproxy_ connection - After the terminal enables read-write separation, the number of proxy connections set for the terminal. The lower limit of the number of proxy connections is 20. The upper limit of the number of proxy connections depends on the specifications of the instance master node.
- write_
node_ boolhalt_ writing - Whether the endpoint sends write requests to the write node (currently only the master node is a write node). Values: true: Yes(Default). false: No.
- 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 StringNode Distribution Type - The distribution type of the read-only nodes, value: Default: Default distribution. Custom: Custom distribution.
- read
Only NumberNode Max Delay Time - Maximum latency threshold of read-only node. If the latency of a read-only node exceeds this value, reading traffic won't be routed to this node. Unit: seconds.Values: 0~3600.Default value: 30.
- 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).
- read
Write NumberProxy Connection - After the terminal enables read-write separation, the number of proxy connections set for the terminal. The lower limit of the number of proxy connections is 20. The upper limit of the number of proxy connections depends on the specifications of the instance master node.
- write
Node BooleanHalt Writing - Whether the endpoint sends write requests to the write node (currently only the master node is a write node). Values: true: Yes(Default). false: No.
InstanceEndpointAddress, InstanceEndpointAddressArgs
- Cross
Region stringDomain - Address that can be accessed across regions.
- Dns
Visibility bool - Whether to enable public network resolution. Values: false: Default value. PrivateZone of Volcano Engine. true: Private and public network resolution of Volcano Engine.
- Domain string
- Connect domain name.
- Domain
Visibility stringSetting - The type of private network address. Values: LocalDomain: Local domain name. CrossRegionDomain: Domains accessible across regions.
- Eip
Id string - The ID of the EIP, only valid for Public addresses.
- Internet
Protocol string - Address IP protocol, IPv4 or IPv6.
- Ip
Address string - The IP Address.
- Ipv6Address string
- The IPv6 Address.
- Network
Type string - Network address type, temporarily Private, Public, PublicService.
- Port string
- The Port.
- Subnet
Id string - Subnet ID of the RDS PostgreSQL instance.
- Cross
Region stringDomain - Address that can be accessed across regions.
- Dns
Visibility bool - Whether to enable public network resolution. Values: false: Default value. PrivateZone of Volcano Engine. true: Private and public network resolution of Volcano Engine.
- Domain string
- Connect domain name.
- Domain
Visibility stringSetting - The type of private network address. Values: LocalDomain: Local domain name. CrossRegionDomain: Domains accessible across regions.
- Eip
Id string - The ID of the EIP, only valid for Public addresses.
- Internet
Protocol string - Address IP protocol, IPv4 or IPv6.
- Ip
Address string - The IP Address.
- Ipv6Address string
- The IPv6 Address.
- Network
Type string - Network address type, temporarily Private, Public, PublicService.
- Port string
- The Port.
- Subnet
Id string - Subnet ID of the RDS PostgreSQL instance.
- cross
Region StringDomain - Address that can be accessed across regions.
- dns
Visibility Boolean - Whether to enable public network resolution. Values: false: Default value. PrivateZone of Volcano Engine. true: Private and public network resolution of Volcano Engine.
- domain String
- Connect domain name.
- domain
Visibility StringSetting - The type of private network address. Values: LocalDomain: Local domain name. CrossRegionDomain: Domains accessible across regions.
- eip
Id String - The ID of the EIP, only valid for Public addresses.
- internet
Protocol String - Address IP protocol, IPv4 or IPv6.
- ip
Address String - The IP Address.
- ipv6Address String
- The IPv6 Address.
- network
Type String - Network address type, temporarily Private, Public, PublicService.
- port String
- The Port.
- subnet
Id String - Subnet ID of the RDS PostgreSQL instance.
- cross
Region stringDomain - Address that can be accessed across regions.
- dns
Visibility boolean - Whether to enable public network resolution. Values: false: Default value. PrivateZone of Volcano Engine. true: Private and public network resolution of Volcano Engine.
- domain string
- Connect domain name.
- domain
Visibility stringSetting - The type of private network address. Values: LocalDomain: Local domain name. CrossRegionDomain: Domains accessible across regions.
- eip
Id string - The ID of the EIP, only valid for Public addresses.
- internet
Protocol string - Address IP protocol, IPv4 or IPv6.
- ip
Address string - The IP Address.
- ipv6Address string
- The IPv6 Address.
- network
Type string - Network address type, temporarily Private, Public, PublicService.
- port string
- The Port.
- subnet
Id string - Subnet ID of the RDS PostgreSQL instance.
- cross_
region_ strdomain - Address that can be accessed across regions.
- dns_
visibility bool - Whether to enable public network resolution. Values: false: Default value. PrivateZone of Volcano Engine. true: Private and public network resolution of Volcano Engine.
- domain str
- Connect domain name.
- domain_
visibility_ strsetting - The type of private network address. Values: LocalDomain: Local domain name. CrossRegionDomain: Domains accessible across regions.
- eip_
id str - The ID of the EIP, only valid for Public addresses.
- internet_
protocol str - Address IP protocol, IPv4 or IPv6.
- ip_
address str - The IP Address.
- ipv6_
address str - The IPv6 Address.
- network_
type str - Network address type, temporarily Private, Public, PublicService.
- port str
- The Port.
- subnet_
id str - Subnet ID of the RDS PostgreSQL instance.
- cross
Region StringDomain - Address that can be accessed across regions.
- dns
Visibility Boolean - Whether to enable public network resolution. Values: false: Default value. PrivateZone of Volcano Engine. true: Private and public network resolution of Volcano Engine.
- domain String
- Connect domain name.
- domain
Visibility StringSetting - The type of private network address. Values: LocalDomain: Local domain name. CrossRegionDomain: Domains accessible across regions.
- eip
Id String - The ID of the EIP, only valid for Public addresses.
- internet
Protocol String - Address IP protocol, IPv4 or IPv6.
- ip
Address String - The IP Address.
- ipv6Address String
- The IPv6 Address.
- network
Type String - Network address type, temporarily Private, Public, PublicService.
- port String
- The Port.
- subnet
Id String - Subnet ID of the RDS PostgreSQL instance.
InstanceEndpointReadOnlyNodeWeight, InstanceEndpointReadOnlyNodeWeightArgs
InstanceEstimationResult, InstanceEstimationResultArgs
InstanceNode, InstanceNodeArgs
- Create
Time string - Node creation local time.
- Instance
Id string - Instance ID.
- Memory int
- Memory size in GB.
- Node
Id string - Node ID.
- Node
Spec string - The specification of primary node and secondary node.
- Node
Status string - Node state, value: aligned with instance state.
- Node
Type string - Node type. Value: Primary: Primary node. Secondary: Standby node. ReadOnly: Read-only node.
- Region
Id string - The region of the RDS PostgreSQL instance.
- Update
Time string - The update time of the RDS PostgreSQL instance.
- VCpu int
- CPU size.
- Zone
Id string - The available zone of the RDS PostgreSQL instance.
- Create
Time string - Node creation local time.
- Instance
Id string - Instance ID.
- Memory int
- Memory size in GB.
- Node
Id string - Node ID.
- Node
Spec string - The specification of primary node and secondary node.
- Node
Status string - Node state, value: aligned with instance state.
- Node
Type string - Node type. Value: Primary: Primary node. Secondary: Standby node. ReadOnly: Read-only node.
- Region
Id string - The region of the RDS PostgreSQL instance.
- Update
Time string - The update time of the RDS PostgreSQL instance.
- VCpu int
- CPU size.
- Zone
Id string - The available zone of the RDS PostgreSQL instance.
- create
Time String - Node creation local time.
- instance
Id String - Instance ID.
- memory Integer
- Memory size in GB.
- node
Id String - Node ID.
- node
Spec String - The specification of primary node and secondary node.
- node
Status String - Node state, value: aligned with instance state.
- node
Type String - Node type. Value: Primary: Primary node. Secondary: Standby node. ReadOnly: Read-only node.
- region
Id String - The region of the RDS PostgreSQL instance.
- update
Time String - The update time of the RDS PostgreSQL instance.
- v
Cpu Integer - CPU size.
- zone
Id String - The available zone of the RDS PostgreSQL instance.
- create
Time string - Node creation local time.
- instance
Id string - Instance ID.
- memory number
- Memory size in GB.
- node
Id string - Node ID.
- node
Spec string - The specification of primary node and secondary node.
- node
Status string - Node state, value: aligned with instance state.
- node
Type string - Node type. Value: Primary: Primary node. Secondary: Standby node. ReadOnly: Read-only node.
- region
Id string - The region of the RDS PostgreSQL instance.
- update
Time string - The update time of the RDS PostgreSQL instance.
- v
Cpu number - CPU size.
- zone
Id string - The available zone of the RDS PostgreSQL instance.
- create_
time str - Node creation local time.
- instance_
id str - Instance ID.
- memory int
- Memory size in GB.
- node_
id str - Node ID.
- node_
spec str - The specification of primary node and secondary node.
- node_
status str - Node state, value: aligned with instance state.
- node_
type str - Node type. Value: Primary: Primary node. Secondary: Standby node. ReadOnly: Read-only node.
- region_
id str - The region of the RDS PostgreSQL instance.
- update_
time str - The update time of the RDS PostgreSQL instance.
- v_
cpu int - CPU size.
- zone_
id str - The available zone of the RDS PostgreSQL instance.
- create
Time String - Node creation local time.
- instance
Id String - Instance ID.
- memory Number
- Memory size in GB.
- node
Id String - Node ID.
- node
Spec String - The specification of primary node and secondary node.
- node
Status String - Node state, value: aligned with instance state.
- node
Type String - Node type. Value: Primary: Primary node. Secondary: Standby node. ReadOnly: Read-only node.
- region
Id String - The region of the RDS PostgreSQL instance.
- update
Time String - The update time of the RDS PostgreSQL instance.
- v
Cpu Number - CPU size.
- zone
Id String - The available zone of the RDS PostgreSQL instance.
InstanceParameter, InstanceParameterArgs
InstanceTag, InstanceTagArgs
InstanceZoneMigration, InstanceZoneMigrationArgs
Import
RdsPostgresqlInstance can be imported using the id, e.g.
$ pulumi import volcengine:rds_postgresql/instance:Instance default postgres-21a3333b****
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
volcengineTerraform Provider.
