flexibleengine.RdsInstanceV3
Explore with Pulumi AI
Manage RDS instance resource within FlexibleEngine.
Example Usage
create a single db instance
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
const exampleSubnet = new flexibleengine.VpcSubnetV1("exampleSubnet", {
cidr: "192.168.0.0/24",
gatewayIp: "192.168.0.1",
vpcId: exampleVpc.vpcV1Id,
});
const exampleSecgroup = new flexibleengine.NetworkingSecgroupV2("exampleSecgroup", {description: "terraform security group acceptance test"});
const instance = new flexibleengine.RdsInstanceV3("instance", {
flavor: "rds.pg.s3.medium.4",
availabilityZones: [_var.primary_az],
securityGroupId: exampleSecgroup.networkingSecgroupV2Id,
vpcId: exampleVpc.vpcV1Id,
subnetId: exampleSubnet.vpcSubnetV1Id,
db: {
type: "PostgreSQL",
version: "11",
password: _var.db_password,
port: 8635,
},
volume: {
type: "COMMON",
size: 100,
},
backupStrategy: {
startTime: "08:00-09:00",
keepDays: 1,
},
});
import pulumi
import pulumi_flexibleengine as flexibleengine
example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
example_subnet = flexibleengine.VpcSubnetV1("exampleSubnet",
cidr="192.168.0.0/24",
gateway_ip="192.168.0.1",
vpc_id=example_vpc.vpc_v1_id)
example_secgroup = flexibleengine.NetworkingSecgroupV2("exampleSecgroup", description="terraform security group acceptance test")
instance = flexibleengine.RdsInstanceV3("instance",
flavor="rds.pg.s3.medium.4",
availability_zones=[var["primary_az"]],
security_group_id=example_secgroup.networking_secgroup_v2_id,
vpc_id=example_vpc.vpc_v1_id,
subnet_id=example_subnet.vpc_subnet_v1_id,
db={
"type": "PostgreSQL",
"version": "11",
"password": var["db_password"],
"port": 8635,
},
volume={
"type": "COMMON",
"size": 100,
},
backup_strategy={
"start_time": "08:00-09:00",
"keep_days": 1,
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
Cidr: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
exampleSubnet, err := flexibleengine.NewVpcSubnetV1(ctx, "exampleSubnet", &flexibleengine.VpcSubnetV1Args{
Cidr: pulumi.String("192.168.0.0/24"),
GatewayIp: pulumi.String("192.168.0.1"),
VpcId: exampleVpc.VpcV1Id,
})
if err != nil {
return err
}
exampleSecgroup, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "exampleSecgroup", &flexibleengine.NetworkingSecgroupV2Args{
Description: pulumi.String("terraform security group acceptance test"),
})
if err != nil {
return err
}
_, err = flexibleengine.NewRdsInstanceV3(ctx, "instance", &flexibleengine.RdsInstanceV3Args{
Flavor: pulumi.String("rds.pg.s3.medium.4"),
AvailabilityZones: pulumi.StringArray{
_var.Primary_az,
},
SecurityGroupId: exampleSecgroup.NetworkingSecgroupV2Id,
VpcId: exampleVpc.VpcV1Id,
SubnetId: exampleSubnet.VpcSubnetV1Id,
Db: &flexibleengine.RdsInstanceV3DbArgs{
Type: pulumi.String("PostgreSQL"),
Version: pulumi.String("11"),
Password: pulumi.Any(_var.Db_password),
Port: pulumi.Float64(8635),
},
Volume: &flexibleengine.RdsInstanceV3VolumeArgs{
Type: pulumi.String("COMMON"),
Size: pulumi.Float64(100),
},
BackupStrategy: &flexibleengine.RdsInstanceV3BackupStrategyArgs{
StartTime: pulumi.String("08:00-09:00"),
KeepDays: pulumi.Float64(1),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
{
Cidr = "192.168.0.0/16",
});
var exampleSubnet = new Flexibleengine.VpcSubnetV1("exampleSubnet", new()
{
Cidr = "192.168.0.0/24",
GatewayIp = "192.168.0.1",
VpcId = exampleVpc.VpcV1Id,
});
var exampleSecgroup = new Flexibleengine.NetworkingSecgroupV2("exampleSecgroup", new()
{
Description = "terraform security group acceptance test",
});
var instance = new Flexibleengine.RdsInstanceV3("instance", new()
{
Flavor = "rds.pg.s3.medium.4",
AvailabilityZones = new[]
{
@var.Primary_az,
},
SecurityGroupId = exampleSecgroup.NetworkingSecgroupV2Id,
VpcId = exampleVpc.VpcV1Id,
SubnetId = exampleSubnet.VpcSubnetV1Id,
Db = new Flexibleengine.Inputs.RdsInstanceV3DbArgs
{
Type = "PostgreSQL",
Version = "11",
Password = @var.Db_password,
Port = 8635,
},
Volume = new Flexibleengine.Inputs.RdsInstanceV3VolumeArgs
{
Type = "COMMON",
Size = 100,
},
BackupStrategy = new Flexibleengine.Inputs.RdsInstanceV3BackupStrategyArgs
{
StartTime = "08:00-09:00",
KeepDays = 1,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.VpcV1;
import com.pulumi.flexibleengine.VpcV1Args;
import com.pulumi.flexibleengine.VpcSubnetV1;
import com.pulumi.flexibleengine.VpcSubnetV1Args;
import com.pulumi.flexibleengine.NetworkingSecgroupV2;
import com.pulumi.flexibleengine.NetworkingSecgroupV2Args;
import com.pulumi.flexibleengine.RdsInstanceV3;
import com.pulumi.flexibleengine.RdsInstanceV3Args;
import com.pulumi.flexibleengine.inputs.RdsInstanceV3DbArgs;
import com.pulumi.flexibleengine.inputs.RdsInstanceV3VolumeArgs;
import com.pulumi.flexibleengine.inputs.RdsInstanceV3BackupStrategyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
.cidr("192.168.0.0/16")
.build());
var exampleSubnet = new VpcSubnetV1("exampleSubnet", VpcSubnetV1Args.builder()
.cidr("192.168.0.0/24")
.gatewayIp("192.168.0.1")
.vpcId(exampleVpc.vpcV1Id())
.build());
var exampleSecgroup = new NetworkingSecgroupV2("exampleSecgroup", NetworkingSecgroupV2Args.builder()
.description("terraform security group acceptance test")
.build());
var instance = new RdsInstanceV3("instance", RdsInstanceV3Args.builder()
.flavor("rds.pg.s3.medium.4")
.availabilityZones(var_.primary_az())
.securityGroupId(exampleSecgroup.networkingSecgroupV2Id())
.vpcId(exampleVpc.vpcV1Id())
.subnetId(exampleSubnet.vpcSubnetV1Id())
.db(RdsInstanceV3DbArgs.builder()
.type("PostgreSQL")
.version("11")
.password(var_.db_password())
.port("8635")
.build())
.volume(RdsInstanceV3VolumeArgs.builder()
.type("COMMON")
.size(100)
.build())
.backupStrategy(RdsInstanceV3BackupStrategyArgs.builder()
.startTime("08:00-09:00")
.keepDays(1)
.build())
.build());
}
}
resources:
exampleVpc:
type: flexibleengine:VpcV1
properties:
cidr: 192.168.0.0/16
exampleSubnet:
type: flexibleengine:VpcSubnetV1
properties:
cidr: 192.168.0.0/24
gatewayIp: 192.168.0.1
vpcId: ${exampleVpc.vpcV1Id}
exampleSecgroup:
type: flexibleengine:NetworkingSecgroupV2
properties:
description: terraform security group acceptance test
instance:
type: flexibleengine:RdsInstanceV3
properties:
flavor: rds.pg.s3.medium.4
availabilityZones:
- ${var.primary_az}
securityGroupId: ${exampleSecgroup.networkingSecgroupV2Id}
vpcId: ${exampleVpc.vpcV1Id}
subnetId: ${exampleSubnet.vpcSubnetV1Id}
db:
type: PostgreSQL
version: '11'
password: ${var.db_password}
port: '8635'
volume:
type: COMMON
size: 100
backupStrategy:
startTime: 08:00-09:00
keepDays: 1
create a primary/standby db instance
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
const exampleSubnet = new flexibleengine.VpcSubnetV1("exampleSubnet", {
cidr: "192.168.0.0/24",
gatewayIp: "192.168.0.1",
vpcId: exampleVpc.vpcV1Id,
});
const exampleSecgroup = new flexibleengine.NetworkingSecgroupV2("exampleSecgroup", {description: "terraform security group acceptance test"});
const instance = new flexibleengine.RdsInstanceV3("instance", {
flavor: "rds.pg.s3.large.4.ha",
haReplicationMode: "async",
availabilityZones: [
_var.primary_az,
_var.standby_az,
],
securityGroupId: exampleSecgroup.networkingSecgroupV2Id,
vpcId: exampleVpc.vpcV1Id,
subnetId: exampleSubnet.vpcSubnetV1Id,
db: {
type: "PostgreSQL",
version: "11",
password: _var.db_password,
port: 8635,
},
volume: {
type: "COMMON",
size: 100,
},
backupStrategy: {
startTime: "08:00-09:00",
keepDays: 1,
},
});
import pulumi
import pulumi_flexibleengine as flexibleengine
example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
example_subnet = flexibleengine.VpcSubnetV1("exampleSubnet",
cidr="192.168.0.0/24",
gateway_ip="192.168.0.1",
vpc_id=example_vpc.vpc_v1_id)
example_secgroup = flexibleengine.NetworkingSecgroupV2("exampleSecgroup", description="terraform security group acceptance test")
instance = flexibleengine.RdsInstanceV3("instance",
flavor="rds.pg.s3.large.4.ha",
ha_replication_mode="async",
availability_zones=[
var["primary_az"],
var["standby_az"],
],
security_group_id=example_secgroup.networking_secgroup_v2_id,
vpc_id=example_vpc.vpc_v1_id,
subnet_id=example_subnet.vpc_subnet_v1_id,
db={
"type": "PostgreSQL",
"version": "11",
"password": var["db_password"],
"port": 8635,
},
volume={
"type": "COMMON",
"size": 100,
},
backup_strategy={
"start_time": "08:00-09:00",
"keep_days": 1,
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
Cidr: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
exampleSubnet, err := flexibleengine.NewVpcSubnetV1(ctx, "exampleSubnet", &flexibleengine.VpcSubnetV1Args{
Cidr: pulumi.String("192.168.0.0/24"),
GatewayIp: pulumi.String("192.168.0.1"),
VpcId: exampleVpc.VpcV1Id,
})
if err != nil {
return err
}
exampleSecgroup, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "exampleSecgroup", &flexibleengine.NetworkingSecgroupV2Args{
Description: pulumi.String("terraform security group acceptance test"),
})
if err != nil {
return err
}
_, err = flexibleengine.NewRdsInstanceV3(ctx, "instance", &flexibleengine.RdsInstanceV3Args{
Flavor: pulumi.String("rds.pg.s3.large.4.ha"),
HaReplicationMode: pulumi.String("async"),
AvailabilityZones: pulumi.StringArray{
_var.Primary_az,
_var.Standby_az,
},
SecurityGroupId: exampleSecgroup.NetworkingSecgroupV2Id,
VpcId: exampleVpc.VpcV1Id,
SubnetId: exampleSubnet.VpcSubnetV1Id,
Db: &flexibleengine.RdsInstanceV3DbArgs{
Type: pulumi.String("PostgreSQL"),
Version: pulumi.String("11"),
Password: pulumi.Any(_var.Db_password),
Port: pulumi.Float64(8635),
},
Volume: &flexibleengine.RdsInstanceV3VolumeArgs{
Type: pulumi.String("COMMON"),
Size: pulumi.Float64(100),
},
BackupStrategy: &flexibleengine.RdsInstanceV3BackupStrategyArgs{
StartTime: pulumi.String("08:00-09:00"),
KeepDays: pulumi.Float64(1),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
{
Cidr = "192.168.0.0/16",
});
var exampleSubnet = new Flexibleengine.VpcSubnetV1("exampleSubnet", new()
{
Cidr = "192.168.0.0/24",
GatewayIp = "192.168.0.1",
VpcId = exampleVpc.VpcV1Id,
});
var exampleSecgroup = new Flexibleengine.NetworkingSecgroupV2("exampleSecgroup", new()
{
Description = "terraform security group acceptance test",
});
var instance = new Flexibleengine.RdsInstanceV3("instance", new()
{
Flavor = "rds.pg.s3.large.4.ha",
HaReplicationMode = "async",
AvailabilityZones = new[]
{
@var.Primary_az,
@var.Standby_az,
},
SecurityGroupId = exampleSecgroup.NetworkingSecgroupV2Id,
VpcId = exampleVpc.VpcV1Id,
SubnetId = exampleSubnet.VpcSubnetV1Id,
Db = new Flexibleengine.Inputs.RdsInstanceV3DbArgs
{
Type = "PostgreSQL",
Version = "11",
Password = @var.Db_password,
Port = 8635,
},
Volume = new Flexibleengine.Inputs.RdsInstanceV3VolumeArgs
{
Type = "COMMON",
Size = 100,
},
BackupStrategy = new Flexibleengine.Inputs.RdsInstanceV3BackupStrategyArgs
{
StartTime = "08:00-09:00",
KeepDays = 1,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.VpcV1;
import com.pulumi.flexibleengine.VpcV1Args;
import com.pulumi.flexibleengine.VpcSubnetV1;
import com.pulumi.flexibleengine.VpcSubnetV1Args;
import com.pulumi.flexibleengine.NetworkingSecgroupV2;
import com.pulumi.flexibleengine.NetworkingSecgroupV2Args;
import com.pulumi.flexibleengine.RdsInstanceV3;
import com.pulumi.flexibleengine.RdsInstanceV3Args;
import com.pulumi.flexibleengine.inputs.RdsInstanceV3DbArgs;
import com.pulumi.flexibleengine.inputs.RdsInstanceV3VolumeArgs;
import com.pulumi.flexibleengine.inputs.RdsInstanceV3BackupStrategyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
.cidr("192.168.0.0/16")
.build());
var exampleSubnet = new VpcSubnetV1("exampleSubnet", VpcSubnetV1Args.builder()
.cidr("192.168.0.0/24")
.gatewayIp("192.168.0.1")
.vpcId(exampleVpc.vpcV1Id())
.build());
var exampleSecgroup = new NetworkingSecgroupV2("exampleSecgroup", NetworkingSecgroupV2Args.builder()
.description("terraform security group acceptance test")
.build());
var instance = new RdsInstanceV3("instance", RdsInstanceV3Args.builder()
.flavor("rds.pg.s3.large.4.ha")
.haReplicationMode("async")
.availabilityZones(
var_.primary_az(),
var_.standby_az())
.securityGroupId(exampleSecgroup.networkingSecgroupV2Id())
.vpcId(exampleVpc.vpcV1Id())
.subnetId(exampleSubnet.vpcSubnetV1Id())
.db(RdsInstanceV3DbArgs.builder()
.type("PostgreSQL")
.version("11")
.password(var_.db_password())
.port("8635")
.build())
.volume(RdsInstanceV3VolumeArgs.builder()
.type("COMMON")
.size(100)
.build())
.backupStrategy(RdsInstanceV3BackupStrategyArgs.builder()
.startTime("08:00-09:00")
.keepDays(1)
.build())
.build());
}
}
resources:
exampleVpc:
type: flexibleengine:VpcV1
properties:
cidr: 192.168.0.0/16
exampleSubnet:
type: flexibleengine:VpcSubnetV1
properties:
cidr: 192.168.0.0/24
gatewayIp: 192.168.0.1
vpcId: ${exampleVpc.vpcV1Id}
exampleSecgroup:
type: flexibleengine:NetworkingSecgroupV2
properties:
description: terraform security group acceptance test
instance:
type: flexibleengine:RdsInstanceV3
properties:
flavor: rds.pg.s3.large.4.ha
haReplicationMode: async
availabilityZones:
- ${var.primary_az}
- ${var.standby_az}
securityGroupId: ${exampleSecgroup.networkingSecgroupV2Id}
vpcId: ${exampleVpc.vpcV1Id}
subnetId: ${exampleSubnet.vpcSubnetV1Id}
db:
type: PostgreSQL
version: '11'
password: ${var.db_password}
port: '8635'
volume:
type: COMMON
size: 100
backupStrategy:
startTime: 08:00-09:00
keepDays: 1
create a single db instance with encrypted volume
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const key = new flexibleengine.KmsKeyV1("key", {
keyAlias: "key_1",
keyDescription: "first test key",
isEnabled: true,
});
const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
const exampleSubnet = new flexibleengine.VpcSubnetV1("exampleSubnet", {
cidr: "192.168.0.0/24",
gatewayIp: "192.168.0.1",
vpcId: exampleVpc.vpcV1Id,
});
const exampleSecgroup = new flexibleengine.NetworkingSecgroupV2("exampleSecgroup", {description: "terraform security group acceptance test"});
const instance = new flexibleengine.RdsInstanceV3("instance", {
flavor: "rds.pg.s3.medium.4",
availabilityZones: [_var.primary_az],
securityGroupId: exampleSecgroup.networkingSecgroupV2Id,
vpcId: exampleVpc.vpcV1Id,
subnetId: exampleSubnet.vpcSubnetV1Id,
db: {
type: "PostgreSQL",
version: "11",
password: _var.db_password,
port: 8635,
},
volume: {
diskEncryptionId: key.kmsKeyV1Id,
type: "COMMON",
size: 100,
},
backupStrategy: {
startTime: "08:00-09:00",
keepDays: 1,
},
});
import pulumi
import pulumi_flexibleengine as flexibleengine
key = flexibleengine.KmsKeyV1("key",
key_alias="key_1",
key_description="first test key",
is_enabled=True)
example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
example_subnet = flexibleengine.VpcSubnetV1("exampleSubnet",
cidr="192.168.0.0/24",
gateway_ip="192.168.0.1",
vpc_id=example_vpc.vpc_v1_id)
example_secgroup = flexibleengine.NetworkingSecgroupV2("exampleSecgroup", description="terraform security group acceptance test")
instance = flexibleengine.RdsInstanceV3("instance",
flavor="rds.pg.s3.medium.4",
availability_zones=[var["primary_az"]],
security_group_id=example_secgroup.networking_secgroup_v2_id,
vpc_id=example_vpc.vpc_v1_id,
subnet_id=example_subnet.vpc_subnet_v1_id,
db={
"type": "PostgreSQL",
"version": "11",
"password": var["db_password"],
"port": 8635,
},
volume={
"disk_encryption_id": key.kms_key_v1_id,
"type": "COMMON",
"size": 100,
},
backup_strategy={
"start_time": "08:00-09:00",
"keep_days": 1,
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
key, err := flexibleengine.NewKmsKeyV1(ctx, "key", &flexibleengine.KmsKeyV1Args{
KeyAlias: pulumi.String("key_1"),
KeyDescription: pulumi.String("first test key"),
IsEnabled: pulumi.Bool(true),
})
if err != nil {
return err
}
exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
Cidr: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
exampleSubnet, err := flexibleengine.NewVpcSubnetV1(ctx, "exampleSubnet", &flexibleengine.VpcSubnetV1Args{
Cidr: pulumi.String("192.168.0.0/24"),
GatewayIp: pulumi.String("192.168.0.1"),
VpcId: exampleVpc.VpcV1Id,
})
if err != nil {
return err
}
exampleSecgroup, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "exampleSecgroup", &flexibleengine.NetworkingSecgroupV2Args{
Description: pulumi.String("terraform security group acceptance test"),
})
if err != nil {
return err
}
_, err = flexibleengine.NewRdsInstanceV3(ctx, "instance", &flexibleengine.RdsInstanceV3Args{
Flavor: pulumi.String("rds.pg.s3.medium.4"),
AvailabilityZones: pulumi.StringArray{
_var.Primary_az,
},
SecurityGroupId: exampleSecgroup.NetworkingSecgroupV2Id,
VpcId: exampleVpc.VpcV1Id,
SubnetId: exampleSubnet.VpcSubnetV1Id,
Db: &flexibleengine.RdsInstanceV3DbArgs{
Type: pulumi.String("PostgreSQL"),
Version: pulumi.String("11"),
Password: pulumi.Any(_var.Db_password),
Port: pulumi.Float64(8635),
},
Volume: &flexibleengine.RdsInstanceV3VolumeArgs{
DiskEncryptionId: key.KmsKeyV1Id,
Type: pulumi.String("COMMON"),
Size: pulumi.Float64(100),
},
BackupStrategy: &flexibleengine.RdsInstanceV3BackupStrategyArgs{
StartTime: pulumi.String("08:00-09:00"),
KeepDays: pulumi.Float64(1),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var key = new Flexibleengine.KmsKeyV1("key", new()
{
KeyAlias = "key_1",
KeyDescription = "first test key",
IsEnabled = true,
});
var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
{
Cidr = "192.168.0.0/16",
});
var exampleSubnet = new Flexibleengine.VpcSubnetV1("exampleSubnet", new()
{
Cidr = "192.168.0.0/24",
GatewayIp = "192.168.0.1",
VpcId = exampleVpc.VpcV1Id,
});
var exampleSecgroup = new Flexibleengine.NetworkingSecgroupV2("exampleSecgroup", new()
{
Description = "terraform security group acceptance test",
});
var instance = new Flexibleengine.RdsInstanceV3("instance", new()
{
Flavor = "rds.pg.s3.medium.4",
AvailabilityZones = new[]
{
@var.Primary_az,
},
SecurityGroupId = exampleSecgroup.NetworkingSecgroupV2Id,
VpcId = exampleVpc.VpcV1Id,
SubnetId = exampleSubnet.VpcSubnetV1Id,
Db = new Flexibleengine.Inputs.RdsInstanceV3DbArgs
{
Type = "PostgreSQL",
Version = "11",
Password = @var.Db_password,
Port = 8635,
},
Volume = new Flexibleengine.Inputs.RdsInstanceV3VolumeArgs
{
DiskEncryptionId = key.KmsKeyV1Id,
Type = "COMMON",
Size = 100,
},
BackupStrategy = new Flexibleengine.Inputs.RdsInstanceV3BackupStrategyArgs
{
StartTime = "08:00-09:00",
KeepDays = 1,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.KmsKeyV1;
import com.pulumi.flexibleengine.KmsKeyV1Args;
import com.pulumi.flexibleengine.VpcV1;
import com.pulumi.flexibleengine.VpcV1Args;
import com.pulumi.flexibleengine.VpcSubnetV1;
import com.pulumi.flexibleengine.VpcSubnetV1Args;
import com.pulumi.flexibleengine.NetworkingSecgroupV2;
import com.pulumi.flexibleengine.NetworkingSecgroupV2Args;
import com.pulumi.flexibleengine.RdsInstanceV3;
import com.pulumi.flexibleengine.RdsInstanceV3Args;
import com.pulumi.flexibleengine.inputs.RdsInstanceV3DbArgs;
import com.pulumi.flexibleengine.inputs.RdsInstanceV3VolumeArgs;
import com.pulumi.flexibleengine.inputs.RdsInstanceV3BackupStrategyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var key = new KmsKeyV1("key", KmsKeyV1Args.builder()
.keyAlias("key_1")
.keyDescription("first test key")
.isEnabled(true)
.build());
var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
.cidr("192.168.0.0/16")
.build());
var exampleSubnet = new VpcSubnetV1("exampleSubnet", VpcSubnetV1Args.builder()
.cidr("192.168.0.0/24")
.gatewayIp("192.168.0.1")
.vpcId(exampleVpc.vpcV1Id())
.build());
var exampleSecgroup = new NetworkingSecgroupV2("exampleSecgroup", NetworkingSecgroupV2Args.builder()
.description("terraform security group acceptance test")
.build());
var instance = new RdsInstanceV3("instance", RdsInstanceV3Args.builder()
.flavor("rds.pg.s3.medium.4")
.availabilityZones(var_.primary_az())
.securityGroupId(exampleSecgroup.networkingSecgroupV2Id())
.vpcId(exampleVpc.vpcV1Id())
.subnetId(exampleSubnet.vpcSubnetV1Id())
.db(RdsInstanceV3DbArgs.builder()
.type("PostgreSQL")
.version("11")
.password(var_.db_password())
.port("8635")
.build())
.volume(RdsInstanceV3VolumeArgs.builder()
.diskEncryptionId(key.kmsKeyV1Id())
.type("COMMON")
.size(100)
.build())
.backupStrategy(RdsInstanceV3BackupStrategyArgs.builder()
.startTime("08:00-09:00")
.keepDays(1)
.build())
.build());
}
}
resources:
key:
type: flexibleengine:KmsKeyV1
properties:
keyAlias: key_1
keyDescription: first test key
isEnabled: true
exampleVpc:
type: flexibleengine:VpcV1
properties:
cidr: 192.168.0.0/16
exampleSubnet:
type: flexibleengine:VpcSubnetV1
properties:
cidr: 192.168.0.0/24
gatewayIp: 192.168.0.1
vpcId: ${exampleVpc.vpcV1Id}
exampleSecgroup:
type: flexibleengine:NetworkingSecgroupV2
properties:
description: terraform security group acceptance test
instance:
type: flexibleengine:RdsInstanceV3
properties:
flavor: rds.pg.s3.medium.4
availabilityZones:
- ${var.primary_az}
securityGroupId: ${exampleSecgroup.networkingSecgroupV2Id}
vpcId: ${exampleVpc.vpcV1Id}
subnetId: ${exampleSubnet.vpcSubnetV1Id}
db:
type: PostgreSQL
version: '11'
password: ${var.db_password}
port: '8635'
volume:
diskEncryptionId: ${key.kmsKeyV1Id}
type: COMMON
size: 100
backupStrategy:
startTime: 08:00-09:00
keepDays: 1
Create RdsInstanceV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RdsInstanceV3(name: string, args: RdsInstanceV3Args, opts?: CustomResourceOptions);
@overload
def RdsInstanceV3(resource_name: str,
args: RdsInstanceV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def RdsInstanceV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
flavor: Optional[str] = None,
vpc_id: Optional[str] = None,
availability_zones: Optional[Sequence[str]] = None,
volume: Optional[RdsInstanceV3VolumeArgs] = None,
subnet_id: Optional[str] = None,
security_group_id: Optional[str] = None,
db: Optional[RdsInstanceV3DbArgs] = None,
name: Optional[str] = None,
period_unit: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
fixed_ip: Optional[str] = None,
description: Optional[str] = None,
ha_replication_mode: Optional[str] = None,
lower_case_table_names: Optional[str] = None,
auto_pay: Optional[str] = None,
param_group_id: Optional[str] = None,
parameters: Optional[Sequence[RdsInstanceV3ParameterArgs]] = None,
period: Optional[float] = None,
dss_pool_id: Optional[str] = None,
rds_instance_v3_id: Optional[str] = None,
region: Optional[str] = None,
restore: Optional[RdsInstanceV3RestoreArgs] = None,
collation: Optional[str] = None,
ssl_enable: Optional[bool] = None,
charging_mode: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
time_zone: Optional[str] = None,
timeouts: Optional[RdsInstanceV3TimeoutsArgs] = None,
backup_strategy: Optional[RdsInstanceV3BackupStrategyArgs] = None,
auto_renew: Optional[str] = None)
func NewRdsInstanceV3(ctx *Context, name string, args RdsInstanceV3Args, opts ...ResourceOption) (*RdsInstanceV3, error)
public RdsInstanceV3(string name, RdsInstanceV3Args args, CustomResourceOptions? opts = null)
public RdsInstanceV3(String name, RdsInstanceV3Args args)
public RdsInstanceV3(String name, RdsInstanceV3Args args, CustomResourceOptions options)
type: flexibleengine:RdsInstanceV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RdsInstanceV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RdsInstanceV3Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RdsInstanceV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RdsInstanceV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RdsInstanceV3Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var rdsInstanceV3Resource = new Flexibleengine.RdsInstanceV3("rdsInstanceV3Resource", new()
{
Flavor = "string",
VpcId = "string",
AvailabilityZones = new[]
{
"string",
},
Volume = new Flexibleengine.Inputs.RdsInstanceV3VolumeArgs
{
Size = 0,
Type = "string",
DiskEncryptionId = "string",
LimitSize = 0,
TriggerThreshold = 0,
},
SubnetId = "string",
SecurityGroupId = "string",
Db = new Flexibleengine.Inputs.RdsInstanceV3DbArgs
{
Type = "string",
Version = "string",
Password = "string",
Port = 0,
UserName = "string",
},
Name = "string",
PeriodUnit = "string",
EnterpriseProjectId = "string",
FixedIp = "string",
Description = "string",
HaReplicationMode = "string",
LowerCaseTableNames = "string",
ParamGroupId = "string",
Parameters = new[]
{
new Flexibleengine.Inputs.RdsInstanceV3ParameterArgs
{
Name = "string",
Value = "string",
},
},
Period = 0,
DssPoolId = "string",
RdsInstanceV3Id = "string",
Region = "string",
Restore = new Flexibleengine.Inputs.RdsInstanceV3RestoreArgs
{
BackupId = "string",
InstanceId = "string",
DatabaseName =
{
{ "string", "string" },
},
},
Collation = "string",
SslEnable = false,
ChargingMode = "string",
Tags =
{
{ "string", "string" },
},
TimeZone = "string",
Timeouts = new Flexibleengine.Inputs.RdsInstanceV3TimeoutsArgs
{
Create = "string",
Default = "string",
Delete = "string",
Update = "string",
},
BackupStrategy = new Flexibleengine.Inputs.RdsInstanceV3BackupStrategyArgs
{
StartTime = "string",
KeepDays = 0,
Period = "string",
},
AutoRenew = "string",
});
example, err := flexibleengine.NewRdsInstanceV3(ctx, "rdsInstanceV3Resource", &flexibleengine.RdsInstanceV3Args{
Flavor: pulumi.String("string"),
VpcId: pulumi.String("string"),
AvailabilityZones: pulumi.StringArray{
pulumi.String("string"),
},
Volume: &flexibleengine.RdsInstanceV3VolumeArgs{
Size: pulumi.Float64(0),
Type: pulumi.String("string"),
DiskEncryptionId: pulumi.String("string"),
LimitSize: pulumi.Float64(0),
TriggerThreshold: pulumi.Float64(0),
},
SubnetId: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
Db: &flexibleengine.RdsInstanceV3DbArgs{
Type: pulumi.String("string"),
Version: pulumi.String("string"),
Password: pulumi.String("string"),
Port: pulumi.Float64(0),
UserName: pulumi.String("string"),
},
Name: pulumi.String("string"),
PeriodUnit: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
FixedIp: pulumi.String("string"),
Description: pulumi.String("string"),
HaReplicationMode: pulumi.String("string"),
LowerCaseTableNames: pulumi.String("string"),
ParamGroupId: pulumi.String("string"),
Parameters: flexibleengine.RdsInstanceV3ParameterArray{
&flexibleengine.RdsInstanceV3ParameterArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Period: pulumi.Float64(0),
DssPoolId: pulumi.String("string"),
RdsInstanceV3Id: pulumi.String("string"),
Region: pulumi.String("string"),
Restore: &flexibleengine.RdsInstanceV3RestoreArgs{
BackupId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
DatabaseName: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Collation: pulumi.String("string"),
SslEnable: pulumi.Bool(false),
ChargingMode: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TimeZone: pulumi.String("string"),
Timeouts: &flexibleengine.RdsInstanceV3TimeoutsArgs{
Create: pulumi.String("string"),
Default: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
BackupStrategy: &flexibleengine.RdsInstanceV3BackupStrategyArgs{
StartTime: pulumi.String("string"),
KeepDays: pulumi.Float64(0),
Period: pulumi.String("string"),
},
AutoRenew: pulumi.String("string"),
})
var rdsInstanceV3Resource = new RdsInstanceV3("rdsInstanceV3Resource", RdsInstanceV3Args.builder()
.flavor("string")
.vpcId("string")
.availabilityZones("string")
.volume(RdsInstanceV3VolumeArgs.builder()
.size(0)
.type("string")
.diskEncryptionId("string")
.limitSize(0)
.triggerThreshold(0)
.build())
.subnetId("string")
.securityGroupId("string")
.db(RdsInstanceV3DbArgs.builder()
.type("string")
.version("string")
.password("string")
.port(0)
.userName("string")
.build())
.name("string")
.periodUnit("string")
.enterpriseProjectId("string")
.fixedIp("string")
.description("string")
.haReplicationMode("string")
.lowerCaseTableNames("string")
.paramGroupId("string")
.parameters(RdsInstanceV3ParameterArgs.builder()
.name("string")
.value("string")
.build())
.period(0)
.dssPoolId("string")
.rdsInstanceV3Id("string")
.region("string")
.restore(RdsInstanceV3RestoreArgs.builder()
.backupId("string")
.instanceId("string")
.databaseName(Map.of("string", "string"))
.build())
.collation("string")
.sslEnable(false)
.chargingMode("string")
.tags(Map.of("string", "string"))
.timeZone("string")
.timeouts(RdsInstanceV3TimeoutsArgs.builder()
.create("string")
.default_("string")
.delete("string")
.update("string")
.build())
.backupStrategy(RdsInstanceV3BackupStrategyArgs.builder()
.startTime("string")
.keepDays(0)
.period("string")
.build())
.autoRenew("string")
.build());
rds_instance_v3_resource = flexibleengine.RdsInstanceV3("rdsInstanceV3Resource",
flavor="string",
vpc_id="string",
availability_zones=["string"],
volume={
"size": 0,
"type": "string",
"disk_encryption_id": "string",
"limit_size": 0,
"trigger_threshold": 0,
},
subnet_id="string",
security_group_id="string",
db={
"type": "string",
"version": "string",
"password": "string",
"port": 0,
"user_name": "string",
},
name="string",
period_unit="string",
enterprise_project_id="string",
fixed_ip="string",
description="string",
ha_replication_mode="string",
lower_case_table_names="string",
param_group_id="string",
parameters=[{
"name": "string",
"value": "string",
}],
period=0,
dss_pool_id="string",
rds_instance_v3_id="string",
region="string",
restore={
"backup_id": "string",
"instance_id": "string",
"database_name": {
"string": "string",
},
},
collation="string",
ssl_enable=False,
charging_mode="string",
tags={
"string": "string",
},
time_zone="string",
timeouts={
"create": "string",
"default": "string",
"delete": "string",
"update": "string",
},
backup_strategy={
"start_time": "string",
"keep_days": 0,
"period": "string",
},
auto_renew="string")
const rdsInstanceV3Resource = new flexibleengine.RdsInstanceV3("rdsInstanceV3Resource", {
flavor: "string",
vpcId: "string",
availabilityZones: ["string"],
volume: {
size: 0,
type: "string",
diskEncryptionId: "string",
limitSize: 0,
triggerThreshold: 0,
},
subnetId: "string",
securityGroupId: "string",
db: {
type: "string",
version: "string",
password: "string",
port: 0,
userName: "string",
},
name: "string",
periodUnit: "string",
enterpriseProjectId: "string",
fixedIp: "string",
description: "string",
haReplicationMode: "string",
lowerCaseTableNames: "string",
paramGroupId: "string",
parameters: [{
name: "string",
value: "string",
}],
period: 0,
dssPoolId: "string",
rdsInstanceV3Id: "string",
region: "string",
restore: {
backupId: "string",
instanceId: "string",
databaseName: {
string: "string",
},
},
collation: "string",
sslEnable: false,
chargingMode: "string",
tags: {
string: "string",
},
timeZone: "string",
timeouts: {
create: "string",
"default": "string",
"delete": "string",
update: "string",
},
backupStrategy: {
startTime: "string",
keepDays: 0,
period: "string",
},
autoRenew: "string",
});
type: flexibleengine:RdsInstanceV3
properties:
autoRenew: string
availabilityZones:
- string
backupStrategy:
keepDays: 0
period: string
startTime: string
chargingMode: string
collation: string
db:
password: string
port: 0
type: string
userName: string
version: string
description: string
dssPoolId: string
enterpriseProjectId: string
fixedIp: string
flavor: string
haReplicationMode: string
lowerCaseTableNames: string
name: string
paramGroupId: string
parameters:
- name: string
value: string
period: 0
periodUnit: string
rdsInstanceV3Id: string
region: string
restore:
backupId: string
databaseName:
string: string
instanceId: string
securityGroupId: string
sslEnable: false
subnetId: string
tags:
string: string
timeZone: string
timeouts:
create: string
default: string
delete: string
update: string
volume:
diskEncryptionId: string
limitSize: 0
size: 0
triggerThreshold: 0
type: string
vpcId: string
RdsInstanceV3 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RdsInstanceV3 resource accepts the following input properties:
- Availability
Zones List<string> - Specifies the list of AZ name. Changing this parameter will create a new resource.
- Db
Rds
Instance V3Db - Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
- Flavor string
Specifies the specification code.
NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.
- Security
Group stringId - Specifies the security group which the RDS DB instance belongs to.
- Subnet
Id string - Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
- Volume
Rds
Instance V3Volume - Specifies the volume information. The volume object structure is documented below.
- Vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- Auto
Pay string - Auto
Renew string - Backup
Strategy RdsInstance V3Backup Strategy - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- Charging
Mode string - Collation string
- Description string
- Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
- Dss
Pool stringId - Enterprise
Project stringId - Fixed
Ip string - Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
- Ha
Replication stringMode Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.
- For MySQL, the value is async or semisync.
- For PostgreSQL, the value is async or sync.
- For SQLServer, the value is sync.
- For MariaDB, the value is async or semisync.
NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.
- Lower
Case stringTable Names - Name string
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- Param
Group stringId - Specifies the parameter group ID. Changing this parameter will create a new resource.
- Parameters
List<Rds
Instance V3Parameter> Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.
The
db
block supports:- Period double
- Period
Unit string - Rds
Instance stringV3Id - Indicates the node ID.
- Region string
- Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
- Restore
Rds
Instance V3Restore - Ssl
Enable bool - Specifies whether to enable the SSL for MySQL database.
- Dictionary<string, string>
- A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
- Time
Zone string - Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
- Timeouts
Rds
Instance V3Timeouts
- Availability
Zones []string - Specifies the list of AZ name. Changing this parameter will create a new resource.
- Db
Rds
Instance V3Db Args - Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
- Flavor string
Specifies the specification code.
NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.
- Security
Group stringId - Specifies the security group which the RDS DB instance belongs to.
- Subnet
Id string - Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
- Volume
Rds
Instance V3Volume Args - Specifies the volume information. The volume object structure is documented below.
- Vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- Auto
Pay string - Auto
Renew string - Backup
Strategy RdsInstance V3Backup Strategy Args - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- Charging
Mode string - Collation string
- Description string
- Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
- Dss
Pool stringId - Enterprise
Project stringId - Fixed
Ip string - Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
- Ha
Replication stringMode Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.
- For MySQL, the value is async or semisync.
- For PostgreSQL, the value is async or sync.
- For SQLServer, the value is sync.
- For MariaDB, the value is async or semisync.
NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.
- Lower
Case stringTable Names - Name string
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- Param
Group stringId - Specifies the parameter group ID. Changing this parameter will create a new resource.
- Parameters
[]Rds
Instance V3Parameter Args Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.
The
db
block supports:- Period float64
- Period
Unit string - Rds
Instance stringV3Id - Indicates the node ID.
- Region string
- Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
- Restore
Rds
Instance V3Restore Args - Ssl
Enable bool - Specifies whether to enable the SSL for MySQL database.
- map[string]string
- A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
- Time
Zone string - Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
- Timeouts
Rds
Instance V3Timeouts Args
- availability
Zones List<String> - Specifies the list of AZ name. Changing this parameter will create a new resource.
- db
Rds
Instance V3Db - Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
- flavor String
Specifies the specification code.
NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.
- security
Group StringId - Specifies the security group which the RDS DB instance belongs to.
- subnet
Id String - Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
- volume
Rds
Instance V3Volume - Specifies the volume information. The volume object structure is documented below.
- vpc
Id String - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto
Pay String - auto
Renew String - backup
Strategy RdsInstance V3Backup Strategy - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging
Mode String - collation String
- description String
- Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
- dss
Pool StringId - enterprise
Project StringId - fixed
Ip String - Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
- ha
Replication StringMode Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.
- For MySQL, the value is async or semisync.
- For PostgreSQL, the value is async or sync.
- For SQLServer, the value is sync.
- For MariaDB, the value is async or semisync.
NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.
- lower
Case StringTable Names - name String
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- param
Group StringId - Specifies the parameter group ID. Changing this parameter will create a new resource.
- parameters
List<Rds
Instance V3Parameter> Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.
The
db
block supports:- period Double
- period
Unit String - rds
Instance StringV3Id - Indicates the node ID.
- region String
- Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
- restore
Rds
Instance V3Restore - ssl
Enable Boolean - Specifies whether to enable the SSL for MySQL database.
- Map<String,String>
- A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
- time
Zone String - Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
- timeouts
Rds
Instance V3Timeouts
- availability
Zones string[] - Specifies the list of AZ name. Changing this parameter will create a new resource.
- db
Rds
Instance V3Db - Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
- flavor string
Specifies the specification code.
NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.
- security
Group stringId - Specifies the security group which the RDS DB instance belongs to.
- subnet
Id string - Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
- volume
Rds
Instance V3Volume - Specifies the volume information. The volume object structure is documented below.
- vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto
Pay string - auto
Renew string - backup
Strategy RdsInstance V3Backup Strategy - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging
Mode string - collation string
- description string
- Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
- dss
Pool stringId - enterprise
Project stringId - fixed
Ip string - Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
- ha
Replication stringMode Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.
- For MySQL, the value is async or semisync.
- For PostgreSQL, the value is async or sync.
- For SQLServer, the value is sync.
- For MariaDB, the value is async or semisync.
NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.
- lower
Case stringTable Names - name string
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- param
Group stringId - Specifies the parameter group ID. Changing this parameter will create a new resource.
- parameters
Rds
Instance V3Parameter[] Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.
The
db
block supports:- period number
- period
Unit string - rds
Instance stringV3Id - Indicates the node ID.
- region string
- Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
- restore
Rds
Instance V3Restore - ssl
Enable boolean - Specifies whether to enable the SSL for MySQL database.
- {[key: string]: string}
- A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
- time
Zone string - Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
- timeouts
Rds
Instance V3Timeouts
- availability_
zones Sequence[str] - Specifies the list of AZ name. Changing this parameter will create a new resource.
- db
Rds
Instance V3Db Args - Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
- flavor str
Specifies the specification code.
NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.
- security_
group_ strid - Specifies the security group which the RDS DB instance belongs to.
- subnet_
id str - Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
- volume
Rds
Instance V3Volume Args - Specifies the volume information. The volume object structure is documented below.
- vpc_
id str - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto_
pay str - auto_
renew str - backup_
strategy RdsInstance V3Backup Strategy Args - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging_
mode str - collation str
- description str
- Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
- dss_
pool_ strid - enterprise_
project_ strid - fixed_
ip str - Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
- ha_
replication_ strmode Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.
- For MySQL, the value is async or semisync.
- For PostgreSQL, the value is async or sync.
- For SQLServer, the value is sync.
- For MariaDB, the value is async or semisync.
NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.
- lower_
case_ strtable_ names - name str
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- param_
group_ strid - Specifies the parameter group ID. Changing this parameter will create a new resource.
- parameters
Sequence[Rds
Instance V3Parameter Args] Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.
The
db
block supports:- period float
- period_
unit str - rds_
instance_ strv3_ id - Indicates the node ID.
- region str
- Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
- restore
Rds
Instance V3Restore Args - ssl_
enable bool - Specifies whether to enable the SSL for MySQL database.
- Mapping[str, str]
- A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
- time_
zone str - Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
- timeouts
Rds
Instance V3Timeouts Args
- availability
Zones List<String> - Specifies the list of AZ name. Changing this parameter will create a new resource.
- db Property Map
- Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
- flavor String
Specifies the specification code.
NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.
- security
Group StringId - Specifies the security group which the RDS DB instance belongs to.
- subnet
Id String - Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
- volume Property Map
- Specifies the volume information. The volume object structure is documented below.
- vpc
Id String - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto
Pay String - auto
Renew String - backup
Strategy Property Map - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging
Mode String - collation String
- description String
- Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
- dss
Pool StringId - enterprise
Project StringId - fixed
Ip String - Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
- ha
Replication StringMode Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.
- For MySQL, the value is async or semisync.
- For PostgreSQL, the value is async or sync.
- For SQLServer, the value is sync.
- For MariaDB, the value is async or semisync.
NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.
- lower
Case StringTable Names - name String
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- param
Group StringId - Specifies the parameter group ID. Changing this parameter will create a new resource.
- parameters List<Property Map>
Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.
The
db
block supports:- period Number
- period
Unit String - rds
Instance StringV3Id - Indicates the node ID.
- region String
- Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
- restore Property Map
- ssl
Enable Boolean - Specifies whether to enable the SSL for MySQL database.
- Map<String>
- A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
- time
Zone String - Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the RdsInstanceV3 resource produces the following output properties:
- Created string
- Indicates the creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
List<Rds
Instance V3Node> - Indicates the instance nodes information. The nodes object structure is documented below.
- Private
Ips List<string> - Indicates the private IP address list. It is a blank string until an ECS is created.
- Public
Ips List<string> - Indicates the public IP address list.
- Status string
- Indicates the node status.
- Created string
- Indicates the creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
[]Rds
Instance V3Node - Indicates the instance nodes information. The nodes object structure is documented below.
- Private
Ips []string - Indicates the private IP address list. It is a blank string until an ECS is created.
- Public
Ips []string - Indicates the public IP address list.
- Status string
- Indicates the node status.
- created String
- Indicates the creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- nodes
List<Rds
Instance V3Node> - Indicates the instance nodes information. The nodes object structure is documented below.
- private
Ips List<String> - Indicates the private IP address list. It is a blank string until an ECS is created.
- public
Ips List<String> - Indicates the public IP address list.
- status String
- Indicates the node status.
- created string
- Indicates the creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- nodes
Rds
Instance V3Node[] - Indicates the instance nodes information. The nodes object structure is documented below.
- private
Ips string[] - Indicates the private IP address list. It is a blank string until an ECS is created.
- public
Ips string[] - Indicates the public IP address list.
- status string
- Indicates the node status.
- created str
- Indicates the creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- nodes
Sequence[Rds
Instance V3Node] - Indicates the instance nodes information. The nodes object structure is documented below.
- private_
ips Sequence[str] - Indicates the private IP address list. It is a blank string until an ECS is created.
- public_
ips Sequence[str] - Indicates the public IP address list.
- status str
- Indicates the node status.
- created String
- Indicates the creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- nodes List<Property Map>
- Indicates the instance nodes information. The nodes object structure is documented below.
- private
Ips List<String> - Indicates the private IP address list. It is a blank string until an ECS is created.
- public
Ips List<String> - Indicates the public IP address list.
- status String
- Indicates the node status.
Look up Existing RdsInstanceV3 Resource
Get an existing RdsInstanceV3 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RdsInstanceV3State, opts?: CustomResourceOptions): RdsInstanceV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_pay: Optional[str] = None,
auto_renew: Optional[str] = None,
availability_zones: Optional[Sequence[str]] = None,
backup_strategy: Optional[RdsInstanceV3BackupStrategyArgs] = None,
charging_mode: Optional[str] = None,
collation: Optional[str] = None,
created: Optional[str] = None,
db: Optional[RdsInstanceV3DbArgs] = None,
description: Optional[str] = None,
dss_pool_id: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
fixed_ip: Optional[str] = None,
flavor: Optional[str] = None,
ha_replication_mode: Optional[str] = None,
lower_case_table_names: Optional[str] = None,
name: Optional[str] = None,
nodes: Optional[Sequence[RdsInstanceV3NodeArgs]] = None,
param_group_id: Optional[str] = None,
parameters: Optional[Sequence[RdsInstanceV3ParameterArgs]] = None,
period: Optional[float] = None,
period_unit: Optional[str] = None,
private_ips: Optional[Sequence[str]] = None,
public_ips: Optional[Sequence[str]] = None,
rds_instance_v3_id: Optional[str] = None,
region: Optional[str] = None,
restore: Optional[RdsInstanceV3RestoreArgs] = None,
security_group_id: Optional[str] = None,
ssl_enable: Optional[bool] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
time_zone: Optional[str] = None,
timeouts: Optional[RdsInstanceV3TimeoutsArgs] = None,
volume: Optional[RdsInstanceV3VolumeArgs] = None,
vpc_id: Optional[str] = None) -> RdsInstanceV3
func GetRdsInstanceV3(ctx *Context, name string, id IDInput, state *RdsInstanceV3State, opts ...ResourceOption) (*RdsInstanceV3, error)
public static RdsInstanceV3 Get(string name, Input<string> id, RdsInstanceV3State? state, CustomResourceOptions? opts = null)
public static RdsInstanceV3 get(String name, Output<String> id, RdsInstanceV3State state, CustomResourceOptions options)
resources: _: type: flexibleengine:RdsInstanceV3 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Pay string - Auto
Renew string - Availability
Zones List<string> - Specifies the list of AZ name. Changing this parameter will create a new resource.
- Backup
Strategy RdsInstance V3Backup Strategy - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- Charging
Mode string - Collation string
- Created string
- Indicates the creation time.
- Db
Rds
Instance V3Db - Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
- Description string
- Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
- Dss
Pool stringId - Enterprise
Project stringId - Fixed
Ip string - Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
- Flavor string
Specifies the specification code.
NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.
- Ha
Replication stringMode Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.
- For MySQL, the value is async or semisync.
- For PostgreSQL, the value is async or sync.
- For SQLServer, the value is sync.
- For MariaDB, the value is async or semisync.
NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.
- Lower
Case stringTable Names - Name string
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- Nodes
List<Rds
Instance V3Node> - Indicates the instance nodes information. The nodes object structure is documented below.
- Param
Group stringId - Specifies the parameter group ID. Changing this parameter will create a new resource.
- Parameters
List<Rds
Instance V3Parameter> Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.
The
db
block supports:- Period double
- Period
Unit string - Private
Ips List<string> - Indicates the private IP address list. It is a blank string until an ECS is created.
- Public
Ips List<string> - Indicates the public IP address list.
- Rds
Instance stringV3Id - Indicates the node ID.
- Region string
- Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
- Restore
Rds
Instance V3Restore - Security
Group stringId - Specifies the security group which the RDS DB instance belongs to.
- Ssl
Enable bool - Specifies whether to enable the SSL for MySQL database.
- Status string
- Indicates the node status.
- Subnet
Id string - Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
- Dictionary<string, string>
- A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
- Time
Zone string - Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
- Timeouts
Rds
Instance V3Timeouts - Volume
Rds
Instance V3Volume - Specifies the volume information. The volume object structure is documented below.
- Vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- Auto
Pay string - Auto
Renew string - Availability
Zones []string - Specifies the list of AZ name. Changing this parameter will create a new resource.
- Backup
Strategy RdsInstance V3Backup Strategy Args - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- Charging
Mode string - Collation string
- Created string
- Indicates the creation time.
- Db
Rds
Instance V3Db Args - Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
- Description string
- Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
- Dss
Pool stringId - Enterprise
Project stringId - Fixed
Ip string - Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
- Flavor string
Specifies the specification code.
NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.
- Ha
Replication stringMode Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.
- For MySQL, the value is async or semisync.
- For PostgreSQL, the value is async or sync.
- For SQLServer, the value is sync.
- For MariaDB, the value is async or semisync.
NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.
- Lower
Case stringTable Names - Name string
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- Nodes
[]Rds
Instance V3Node Args - Indicates the instance nodes information. The nodes object structure is documented below.
- Param
Group stringId - Specifies the parameter group ID. Changing this parameter will create a new resource.
- Parameters
[]Rds
Instance V3Parameter Args Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.
The
db
block supports:- Period float64
- Period
Unit string - Private
Ips []string - Indicates the private IP address list. It is a blank string until an ECS is created.
- Public
Ips []string - Indicates the public IP address list.
- Rds
Instance stringV3Id - Indicates the node ID.
- Region string
- Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
- Restore
Rds
Instance V3Restore Args - Security
Group stringId - Specifies the security group which the RDS DB instance belongs to.
- Ssl
Enable bool - Specifies whether to enable the SSL for MySQL database.
- Status string
- Indicates the node status.
- Subnet
Id string - Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
- map[string]string
- A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
- Time
Zone string - Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
- Timeouts
Rds
Instance V3Timeouts Args - Volume
Rds
Instance V3Volume Args - Specifies the volume information. The volume object structure is documented below.
- Vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto
Pay String - auto
Renew String - availability
Zones List<String> - Specifies the list of AZ name. Changing this parameter will create a new resource.
- backup
Strategy RdsInstance V3Backup Strategy - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging
Mode String - collation String
- created String
- Indicates the creation time.
- db
Rds
Instance V3Db - Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
- description String
- Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
- dss
Pool StringId - enterprise
Project StringId - fixed
Ip String - Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
- flavor String
Specifies the specification code.
NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.
- ha
Replication StringMode Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.
- For MySQL, the value is async or semisync.
- For PostgreSQL, the value is async or sync.
- For SQLServer, the value is sync.
- For MariaDB, the value is async or semisync.
NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.
- lower
Case StringTable Names - name String
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- nodes
List<Rds
Instance V3Node> - Indicates the instance nodes information. The nodes object structure is documented below.
- param
Group StringId - Specifies the parameter group ID. Changing this parameter will create a new resource.
- parameters
List<Rds
Instance V3Parameter> Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.
The
db
block supports:- period Double
- period
Unit String - private
Ips List<String> - Indicates the private IP address list. It is a blank string until an ECS is created.
- public
Ips List<String> - Indicates the public IP address list.
- rds
Instance StringV3Id - Indicates the node ID.
- region String
- Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
- restore
Rds
Instance V3Restore - security
Group StringId - Specifies the security group which the RDS DB instance belongs to.
- ssl
Enable Boolean - Specifies whether to enable the SSL for MySQL database.
- status String
- Indicates the node status.
- subnet
Id String - Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
- Map<String,String>
- A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
- time
Zone String - Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
- timeouts
Rds
Instance V3Timeouts - volume
Rds
Instance V3Volume - Specifies the volume information. The volume object structure is documented below.
- vpc
Id String - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto
Pay string - auto
Renew string - availability
Zones string[] - Specifies the list of AZ name. Changing this parameter will create a new resource.
- backup
Strategy RdsInstance V3Backup Strategy - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging
Mode string - collation string
- created string
- Indicates the creation time.
- db
Rds
Instance V3Db - Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
- description string
- Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
- dss
Pool stringId - enterprise
Project stringId - fixed
Ip string - Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
- flavor string
Specifies the specification code.
NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.
- ha
Replication stringMode Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.
- For MySQL, the value is async or semisync.
- For PostgreSQL, the value is async or sync.
- For SQLServer, the value is sync.
- For MariaDB, the value is async or semisync.
NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.
- lower
Case stringTable Names - name string
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- nodes
Rds
Instance V3Node[] - Indicates the instance nodes information. The nodes object structure is documented below.
- param
Group stringId - Specifies the parameter group ID. Changing this parameter will create a new resource.
- parameters
Rds
Instance V3Parameter[] Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.
The
db
block supports:- period number
- period
Unit string - private
Ips string[] - Indicates the private IP address list. It is a blank string until an ECS is created.
- public
Ips string[] - Indicates the public IP address list.
- rds
Instance stringV3Id - Indicates the node ID.
- region string
- Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
- restore
Rds
Instance V3Restore - security
Group stringId - Specifies the security group which the RDS DB instance belongs to.
- ssl
Enable boolean - Specifies whether to enable the SSL for MySQL database.
- status string
- Indicates the node status.
- subnet
Id string - Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
- {[key: string]: string}
- A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
- time
Zone string - Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
- timeouts
Rds
Instance V3Timeouts - volume
Rds
Instance V3Volume - Specifies the volume information. The volume object structure is documented below.
- vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto_
pay str - auto_
renew str - availability_
zones Sequence[str] - Specifies the list of AZ name. Changing this parameter will create a new resource.
- backup_
strategy RdsInstance V3Backup Strategy Args - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging_
mode str - collation str
- created str
- Indicates the creation time.
- db
Rds
Instance V3Db Args - Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
- description str
- Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
- dss_
pool_ strid - enterprise_
project_ strid - fixed_
ip str - Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
- flavor str
Specifies the specification code.
NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.
- ha_
replication_ strmode Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.
- For MySQL, the value is async or semisync.
- For PostgreSQL, the value is async or sync.
- For SQLServer, the value is sync.
- For MariaDB, the value is async or semisync.
NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.
- lower_
case_ strtable_ names - name str
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- nodes
Sequence[Rds
Instance V3Node Args] - Indicates the instance nodes information. The nodes object structure is documented below.
- param_
group_ strid - Specifies the parameter group ID. Changing this parameter will create a new resource.
- parameters
Sequence[Rds
Instance V3Parameter Args] Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.
The
db
block supports:- period float
- period_
unit str - private_
ips Sequence[str] - Indicates the private IP address list. It is a blank string until an ECS is created.
- public_
ips Sequence[str] - Indicates the public IP address list.
- rds_
instance_ strv3_ id - Indicates the node ID.
- region str
- Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
- restore
Rds
Instance V3Restore Args - security_
group_ strid - Specifies the security group which the RDS DB instance belongs to.
- ssl_
enable bool - Specifies whether to enable the SSL for MySQL database.
- status str
- Indicates the node status.
- subnet_
id str - Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
- Mapping[str, str]
- A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
- time_
zone str - Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
- timeouts
Rds
Instance V3Timeouts Args - volume
Rds
Instance V3Volume Args - Specifies the volume information. The volume object structure is documented below.
- vpc_
id str - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto
Pay String - auto
Renew String - availability
Zones List<String> - Specifies the list of AZ name. Changing this parameter will create a new resource.
- backup
Strategy Property Map - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging
Mode String - collation String
- created String
- Indicates the creation time.
- db Property Map
- Specifies the database information. The db object structure is documented below. Changing this parameter will create a new resource.
- description String
- Specifies the description of the instance. The value consists of 0 to 64 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).
- dss
Pool StringId - enterprise
Project StringId - fixed
Ip String - Specifies an intranet IP address of RDS DB instance. Changing this parameter will create a new resource.
- flavor String
Specifies the specification code.
NOTE: Services will be interrupted for 5 to 10 minutes when you change RDS instance flavor.
- ha
Replication StringMode Specifies the replication mode for the standby DB instance. Changing this parameter will create a new resource.
- For MySQL, the value is async or semisync.
- For PostgreSQL, the value is async or sync.
- For SQLServer, the value is sync.
- For MariaDB, the value is async or semisync.
NOTE: async indicates the asynchronous replication mode. semisync indicates the semi-synchronous replication mode. sync indicates the synchronous replication mode.
- lower
Case StringTable Names - name String
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- nodes List<Property Map>
- Indicates the instance nodes information. The nodes object structure is documented below.
- param
Group StringId - Specifies the parameter group ID. Changing this parameter will create a new resource.
- parameters List<Property Map>
Specify an array of one or more parameters to be set to the RDS instance after launched. You can check on console to see which parameters supported. The parameters object structure is documented below.
The
db
block supports:- period Number
- period
Unit String - private
Ips List<String> - Indicates the private IP address list. It is a blank string until an ECS is created.
- public
Ips List<String> - Indicates the public IP address list.
- rds
Instance StringV3Id - Indicates the node ID.
- region String
- Specifies the region in which to create the RDS instance resource. If omitted, the provider-level region will be used. Changing this will create a new RDS instance resource.
- restore Property Map
- security
Group StringId - Specifies the security group which the RDS DB instance belongs to.
- ssl
Enable Boolean - Specifies whether to enable the SSL for MySQL database.
- status String
- Indicates the node status.
- subnet
Id String - Specifies the ID of the VPC Subnet. Changing this parameter will create a new resource.
- Map<String>
- A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value pair.
- time
Zone String - Specifies the UTC time zone. The value ranges from UTC-12:00 to UTC+12:00 at the full hour, and defaults to UTC. Changing this parameter will create a new resource.
- timeouts Property Map
- volume Property Map
- Specifies the volume information. The volume object structure is documented below.
- vpc
Id String - Specifies the VPC ID. Changing this parameter will create a new resource.
Supporting Types
RdsInstanceV3BackupStrategy, RdsInstanceV3BackupStrategyArgs
- Start
Time string Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the hh:mm-HH:MM format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to any of the following: 00, 15, 30, or 45. Example value: 08:15-09:15 23:00-00:00.
The
parameters
block supports:- Keep
Days double Specifies the retention days for specific backup files. The value range is from 0 to 732. If this parameter is not specified or set to 0, the automated backup policy is disabled.
NOTE: Primary/standby DB instances of Microsoft SQL Server do not support disabling the automated backup policy.
- Period string
- Start
Time string Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the hh:mm-HH:MM format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to any of the following: 00, 15, 30, or 45. Example value: 08:15-09:15 23:00-00:00.
The
parameters
block supports:- Keep
Days float64 Specifies the retention days for specific backup files. The value range is from 0 to 732. If this parameter is not specified or set to 0, the automated backup policy is disabled.
NOTE: Primary/standby DB instances of Microsoft SQL Server do not support disabling the automated backup policy.
- Period string
- start
Time String Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the hh:mm-HH:MM format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to any of the following: 00, 15, 30, or 45. Example value: 08:15-09:15 23:00-00:00.
The
parameters
block supports:- keep
Days Double Specifies the retention days for specific backup files. The value range is from 0 to 732. If this parameter is not specified or set to 0, the automated backup policy is disabled.
NOTE: Primary/standby DB instances of Microsoft SQL Server do not support disabling the automated backup policy.
- period String
- start
Time string Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the hh:mm-HH:MM format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to any of the following: 00, 15, 30, or 45. Example value: 08:15-09:15 23:00-00:00.
The
parameters
block supports:- keep
Days number Specifies the retention days for specific backup files. The value range is from 0 to 732. If this parameter is not specified or set to 0, the automated backup policy is disabled.
NOTE: Primary/standby DB instances of Microsoft SQL Server do not support disabling the automated backup policy.
- period string
- start_
time str Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the hh:mm-HH:MM format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to any of the following: 00, 15, 30, or 45. Example value: 08:15-09:15 23:00-00:00.
The
parameters
block supports:- keep_
days float Specifies the retention days for specific backup files. The value range is from 0 to 732. If this parameter is not specified or set to 0, the automated backup policy is disabled.
NOTE: Primary/standby DB instances of Microsoft SQL Server do not support disabling the automated backup policy.
- period str
- start
Time String Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the hh:mm-HH:MM format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to any of the following: 00, 15, 30, or 45. Example value: 08:15-09:15 23:00-00:00.
The
parameters
block supports:- keep
Days Number Specifies the retention days for specific backup files. The value range is from 0 to 732. If this parameter is not specified or set to 0, the automated backup policy is disabled.
NOTE: Primary/standby DB instances of Microsoft SQL Server do not support disabling the automated backup policy.
- period String
RdsInstanceV3Db, RdsInstanceV3DbArgs
- Type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- COMMON: indicates the SATA type.
- ULTRAHIGH: indicates the SSD type.
- CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.
Changing this parameter will create a new resource.
- Version string
Specifies the database version. The supported versions of each database are as follows:
- MySQL: MySQL databases support 5.6, 5.7 and 8.0.
- PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
- SQLServer: SQLServer databases support 2014 SE and 2014 EE.
- MariaDB: MariaDB databases support 10.5.
Changing this parameter will create a new resource.
- Password string
- Specifies the database password. The value cannot be empty and should contain 8 to 32 characters, including uppercase and lowercase letters, digits, and the following special characters: ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking. Changing this parameter will create a new resource.
- Port double
Specifies the database port.
- The MySQL database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
- The PostgreSQL database port ranges from 2100 to 9500. The default value is 5432.
- The Microsoft SQL Server database port can be 1433 or ranges from 2100 to 9500, excluding 5355 and 5985. The default value is 1433.
- The MariaDB database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
The
volume
block supports:- User
Name string - Indicates the default username of database.
- Type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- COMMON: indicates the SATA type.
- ULTRAHIGH: indicates the SSD type.
- CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.
Changing this parameter will create a new resource.
- Version string
Specifies the database version. The supported versions of each database are as follows:
- MySQL: MySQL databases support 5.6, 5.7 and 8.0.
- PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
- SQLServer: SQLServer databases support 2014 SE and 2014 EE.
- MariaDB: MariaDB databases support 10.5.
Changing this parameter will create a new resource.
- Password string
- Specifies the database password. The value cannot be empty and should contain 8 to 32 characters, including uppercase and lowercase letters, digits, and the following special characters: ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking. Changing this parameter will create a new resource.
- Port float64
Specifies the database port.
- The MySQL database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
- The PostgreSQL database port ranges from 2100 to 9500. The default value is 5432.
- The Microsoft SQL Server database port can be 1433 or ranges from 2100 to 9500, excluding 5355 and 5985. The default value is 1433.
- The MariaDB database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
The
volume
block supports:- User
Name string - Indicates the default username of database.
- type String
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- COMMON: indicates the SATA type.
- ULTRAHIGH: indicates the SSD type.
- CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.
Changing this parameter will create a new resource.
- version String
Specifies the database version. The supported versions of each database are as follows:
- MySQL: MySQL databases support 5.6, 5.7 and 8.0.
- PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
- SQLServer: SQLServer databases support 2014 SE and 2014 EE.
- MariaDB: MariaDB databases support 10.5.
Changing this parameter will create a new resource.
- password String
- Specifies the database password. The value cannot be empty and should contain 8 to 32 characters, including uppercase and lowercase letters, digits, and the following special characters: ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking. Changing this parameter will create a new resource.
- port Double
Specifies the database port.
- The MySQL database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
- The PostgreSQL database port ranges from 2100 to 9500. The default value is 5432.
- The Microsoft SQL Server database port can be 1433 or ranges from 2100 to 9500, excluding 5355 and 5985. The default value is 1433.
- The MariaDB database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
The
volume
block supports:- user
Name String - Indicates the default username of database.
- type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- COMMON: indicates the SATA type.
- ULTRAHIGH: indicates the SSD type.
- CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.
Changing this parameter will create a new resource.
- version string
Specifies the database version. The supported versions of each database are as follows:
- MySQL: MySQL databases support 5.6, 5.7 and 8.0.
- PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
- SQLServer: SQLServer databases support 2014 SE and 2014 EE.
- MariaDB: MariaDB databases support 10.5.
Changing this parameter will create a new resource.
- password string
- Specifies the database password. The value cannot be empty and should contain 8 to 32 characters, including uppercase and lowercase letters, digits, and the following special characters: ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking. Changing this parameter will create a new resource.
- port number
Specifies the database port.
- The MySQL database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
- The PostgreSQL database port ranges from 2100 to 9500. The default value is 5432.
- The Microsoft SQL Server database port can be 1433 or ranges from 2100 to 9500, excluding 5355 and 5985. The default value is 1433.
- The MariaDB database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
The
volume
block supports:- user
Name string - Indicates the default username of database.
- type str
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- COMMON: indicates the SATA type.
- ULTRAHIGH: indicates the SSD type.
- CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.
Changing this parameter will create a new resource.
- version str
Specifies the database version. The supported versions of each database are as follows:
- MySQL: MySQL databases support 5.6, 5.7 and 8.0.
- PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
- SQLServer: SQLServer databases support 2014 SE and 2014 EE.
- MariaDB: MariaDB databases support 10.5.
Changing this parameter will create a new resource.
- password str
- Specifies the database password. The value cannot be empty and should contain 8 to 32 characters, including uppercase and lowercase letters, digits, and the following special characters: ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking. Changing this parameter will create a new resource.
- port float
Specifies the database port.
- The MySQL database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
- The PostgreSQL database port ranges from 2100 to 9500. The default value is 5432.
- The Microsoft SQL Server database port can be 1433 or ranges from 2100 to 9500, excluding 5355 and 5985. The default value is 1433.
- The MariaDB database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
The
volume
block supports:- user_
name str - Indicates the default username of database.
- type String
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- COMMON: indicates the SATA type.
- ULTRAHIGH: indicates the SSD type.
- CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.
Changing this parameter will create a new resource.
- version String
Specifies the database version. The supported versions of each database are as follows:
- MySQL: MySQL databases support 5.6, 5.7 and 8.0.
- PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
- SQLServer: SQLServer databases support 2014 SE and 2014 EE.
- MariaDB: MariaDB databases support 10.5.
Changing this parameter will create a new resource.
- password String
- Specifies the database password. The value cannot be empty and should contain 8 to 32 characters, including uppercase and lowercase letters, digits, and the following special characters: ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking. Changing this parameter will create a new resource.
- port Number
Specifies the database port.
- The MySQL database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
- The PostgreSQL database port ranges from 2100 to 9500. The default value is 5432.
- The Microsoft SQL Server database port can be 1433 or ranges from 2100 to 9500, excluding 5355 and 5985. The default value is 1433.
- The MariaDB database port ranges from 1024 to 65535 (excluding 12017 and 33071, which are occupied by the RDS system and cannot be used). The default value is 3306.
The
volume
block supports:- user
Name String - Indicates the default username of database.
RdsInstanceV3Node, RdsInstanceV3NodeArgs
- Availability
Zone string - Specifies the list of AZ name. Changing this parameter will create a new resource.
- Id string
- Indicates the node ID.
- Name string
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- Role string
- Indicates the node type. The value can be master or slave, indicating the primary node or standby node respectively.
- Status string
- Indicates the node status.
- Availability
Zone string - Specifies the list of AZ name. Changing this parameter will create a new resource.
- Id string
- Indicates the node ID.
- Name string
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- Role string
- Indicates the node type. The value can be master or slave, indicating the primary node or standby node respectively.
- Status string
- Indicates the node status.
- availability
Zone String - Specifies the list of AZ name. Changing this parameter will create a new resource.
- id String
- Indicates the node ID.
- name String
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- role String
- Indicates the node type. The value can be master or slave, indicating the primary node or standby node respectively.
- status String
- Indicates the node status.
- availability
Zone string - Specifies the list of AZ name. Changing this parameter will create a new resource.
- id string
- Indicates the node ID.
- name string
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- role string
- Indicates the node type. The value can be master or slave, indicating the primary node or standby node respectively.
- status string
- Indicates the node status.
- availability_
zone str - Specifies the list of AZ name. Changing this parameter will create a new resource.
- id str
- Indicates the node ID.
- name str
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- role str
- Indicates the node type. The value can be master or slave, indicating the primary node or standby node respectively.
- status str
- Indicates the node status.
- availability
Zone String - Specifies the list of AZ name. Changing this parameter will create a new resource.
- id String
- Indicates the node ID.
- name String
- Specifies the parameter name. Some of them needs the instance to be restarted to take effect.
- role String
- Indicates the node type. The value can be master or slave, indicating the primary node or standby node respectively.
- status String
- Indicates the node status.
RdsInstanceV3Parameter, RdsInstanceV3ParameterArgs
RdsInstanceV3Restore, RdsInstanceV3RestoreArgs
- Backup
Id string - Instance
Id string - Database
Name Dictionary<string, string>
- Backup
Id string - Instance
Id string - Database
Name map[string]string
- backup
Id String - instance
Id String - database
Name Map<String,String>
- backup
Id string - instance
Id string - database
Name {[key: string]: string}
- backup_
id str - instance_
id str - database_
name Mapping[str, str]
- backup
Id String - instance
Id String - database
Name Map<String>
RdsInstanceV3Timeouts, RdsInstanceV3TimeoutsArgs
RdsInstanceV3Volume, RdsInstanceV3VolumeArgs
- Size double
- Specifies the volume size. Its value range is from 40 GB to 4000 GB. The value must be a multiple of 10 and greater than the original size.
- Type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- COMMON: indicates the SATA type.
- ULTRAHIGH: indicates the SSD type.
- CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.
Changing this parameter will create a new resource.
- Disk
Encryption stringId Specifies the key ID for disk encryption. Changing this parameter will create a new resource.
The
backup_strategy
block supports:- Limit
Size double - Trigger
Threshold double
- Size float64
- Specifies the volume size. Its value range is from 40 GB to 4000 GB. The value must be a multiple of 10 and greater than the original size.
- Type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- COMMON: indicates the SATA type.
- ULTRAHIGH: indicates the SSD type.
- CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.
Changing this parameter will create a new resource.
- Disk
Encryption stringId Specifies the key ID for disk encryption. Changing this parameter will create a new resource.
The
backup_strategy
block supports:- Limit
Size float64 - Trigger
Threshold float64
- size Double
- Specifies the volume size. Its value range is from 40 GB to 4000 GB. The value must be a multiple of 10 and greater than the original size.
- type String
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- COMMON: indicates the SATA type.
- ULTRAHIGH: indicates the SSD type.
- CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.
Changing this parameter will create a new resource.
- disk
Encryption StringId Specifies the key ID for disk encryption. Changing this parameter will create a new resource.
The
backup_strategy
block supports:- limit
Size Double - trigger
Threshold Double
- size number
- Specifies the volume size. Its value range is from 40 GB to 4000 GB. The value must be a multiple of 10 and greater than the original size.
- type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- COMMON: indicates the SATA type.
- ULTRAHIGH: indicates the SSD type.
- CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.
Changing this parameter will create a new resource.
- disk
Encryption stringId Specifies the key ID for disk encryption. Changing this parameter will create a new resource.
The
backup_strategy
block supports:- limit
Size number - trigger
Threshold number
- size float
- Specifies the volume size. Its value range is from 40 GB to 4000 GB. The value must be a multiple of 10 and greater than the original size.
- type str
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- COMMON: indicates the SATA type.
- ULTRAHIGH: indicates the SSD type.
- CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.
Changing this parameter will create a new resource.
- disk_
encryption_ strid Specifies the key ID for disk encryption. Changing this parameter will create a new resource.
The
backup_strategy
block supports:- limit_
size float - trigger_
threshold float
- size Number
- Specifies the volume size. Its value range is from 40 GB to 4000 GB. The value must be a multiple of 10 and greater than the original size.
- type String
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- COMMON: indicates the SATA type.
- ULTRAHIGH: indicates the SSD type.
- CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated DB instances.
Changing this parameter will create a new resource.
- disk
Encryption StringId Specifies the key ID for disk encryption. Changing this parameter will create a new resource.
The
backup_strategy
block supports:- limit
Size Number - trigger
Threshold Number
Import
RDS instance can be imported using the id
, e.g.
$ pulumi import flexibleengine:index/rdsInstanceV3:RdsInstanceV3 instance_1 7117d38e-4c8f-4624-a505-bd96b97d024c
But due to some attributes missing from the API response, it’s required to ignore changes as below.
hcl
resource “flexibleengine_rds_instance_v3” “instance_1” {
…
lifecycle {
ignore_changes = [
"db",
]
}
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.