flexibleengine.RdsReadReplicaV3
Explore with Pulumi AI
RDS read replica management
Example Usage
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 instance1 = new flexibleengine.RdsInstanceV3("instance1", {
flavor: "rds.pg.s1.medium",
availabilityZones: [_var.primary_az],
securityGroupId: exampleSecgroup.networkingSecgroupV2Id,
vpcId: exampleVpc.vpcV1Id,
subnetId: exampleSubnet.vpcSubnetV1Id,
db: {
password: _var.db_password,
type: "PostgreSQL",
version: "11",
port: 8635,
},
volume: {
type: "ULTRAHIGH",
size: 100,
},
backupStrategy: {
startTime: "08:00-09:00",
keepDays: 1,
},
});
const instance2 = new flexibleengine.RdsReadReplicaV3("instance2", {
flavor: "rds.pg.c2.large.rr",
replicaOfId: instance1.rdsInstanceV3Id,
availabilityZone: _var.primary_az,
volume: {
type: "ULTRAHIGH",
},
});
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")
instance1 = flexibleengine.RdsInstanceV3("instance1",
flavor="rds.pg.s1.medium",
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={
"password": var["db_password"],
"type": "PostgreSQL",
"version": "11",
"port": 8635,
},
volume={
"type": "ULTRAHIGH",
"size": 100,
},
backup_strategy={
"start_time": "08:00-09:00",
"keep_days": 1,
})
instance2 = flexibleengine.RdsReadReplicaV3("instance2",
flavor="rds.pg.c2.large.rr",
replica_of_id=instance1.rds_instance_v3_id,
availability_zone=var["primary_az"],
volume={
"type": "ULTRAHIGH",
})
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
}
instance1, err := flexibleengine.NewRdsInstanceV3(ctx, "instance1", &flexibleengine.RdsInstanceV3Args{
Flavor: pulumi.String("rds.pg.s1.medium"),
AvailabilityZones: pulumi.StringArray{
_var.Primary_az,
},
SecurityGroupId: exampleSecgroup.NetworkingSecgroupV2Id,
VpcId: exampleVpc.VpcV1Id,
SubnetId: exampleSubnet.VpcSubnetV1Id,
Db: &flexibleengine.RdsInstanceV3DbArgs{
Password: pulumi.Any(_var.Db_password),
Type: pulumi.String("PostgreSQL"),
Version: pulumi.String("11"),
Port: pulumi.Float64(8635),
},
Volume: &flexibleengine.RdsInstanceV3VolumeArgs{
Type: pulumi.String("ULTRAHIGH"),
Size: pulumi.Float64(100),
},
BackupStrategy: &flexibleengine.RdsInstanceV3BackupStrategyArgs{
StartTime: pulumi.String("08:00-09:00"),
KeepDays: pulumi.Float64(1),
},
})
if err != nil {
return err
}
_, err = flexibleengine.NewRdsReadReplicaV3(ctx, "instance2", &flexibleengine.RdsReadReplicaV3Args{
Flavor: pulumi.String("rds.pg.c2.large.rr"),
ReplicaOfId: instance1.RdsInstanceV3Id,
AvailabilityZone: pulumi.Any(_var.Primary_az),
Volume: &flexibleengine.RdsReadReplicaV3VolumeArgs{
Type: pulumi.String("ULTRAHIGH"),
},
})
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 instance1 = new Flexibleengine.RdsInstanceV3("instance1", new()
{
Flavor = "rds.pg.s1.medium",
AvailabilityZones = new[]
{
@var.Primary_az,
},
SecurityGroupId = exampleSecgroup.NetworkingSecgroupV2Id,
VpcId = exampleVpc.VpcV1Id,
SubnetId = exampleSubnet.VpcSubnetV1Id,
Db = new Flexibleengine.Inputs.RdsInstanceV3DbArgs
{
Password = @var.Db_password,
Type = "PostgreSQL",
Version = "11",
Port = 8635,
},
Volume = new Flexibleengine.Inputs.RdsInstanceV3VolumeArgs
{
Type = "ULTRAHIGH",
Size = 100,
},
BackupStrategy = new Flexibleengine.Inputs.RdsInstanceV3BackupStrategyArgs
{
StartTime = "08:00-09:00",
KeepDays = 1,
},
});
var instance2 = new Flexibleengine.RdsReadReplicaV3("instance2", new()
{
Flavor = "rds.pg.c2.large.rr",
ReplicaOfId = instance1.RdsInstanceV3Id,
AvailabilityZone = @var.Primary_az,
Volume = new Flexibleengine.Inputs.RdsReadReplicaV3VolumeArgs
{
Type = "ULTRAHIGH",
},
});
});
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 com.pulumi.flexibleengine.RdsReadReplicaV3;
import com.pulumi.flexibleengine.RdsReadReplicaV3Args;
import com.pulumi.flexibleengine.inputs.RdsReadReplicaV3VolumeArgs;
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 instance1 = new RdsInstanceV3("instance1", RdsInstanceV3Args.builder()
.flavor("rds.pg.s1.medium")
.availabilityZones(var_.primary_az())
.securityGroupId(exampleSecgroup.networkingSecgroupV2Id())
.vpcId(exampleVpc.vpcV1Id())
.subnetId(exampleSubnet.vpcSubnetV1Id())
.db(RdsInstanceV3DbArgs.builder()
.password(var_.db_password())
.type("PostgreSQL")
.version("11")
.port("8635")
.build())
.volume(RdsInstanceV3VolumeArgs.builder()
.type("ULTRAHIGH")
.size(100)
.build())
.backupStrategy(RdsInstanceV3BackupStrategyArgs.builder()
.startTime("08:00-09:00")
.keepDays(1)
.build())
.build());
var instance2 = new RdsReadReplicaV3("instance2", RdsReadReplicaV3Args.builder()
.flavor("rds.pg.c2.large.rr")
.replicaOfId(instance1.rdsInstanceV3Id())
.availabilityZone(var_.primary_az())
.volume(RdsReadReplicaV3VolumeArgs.builder()
.type("ULTRAHIGH")
.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
instance1:
type: flexibleengine:RdsInstanceV3
properties:
flavor: rds.pg.s1.medium
availabilityZones:
- ${var.primary_az}
securityGroupId: ${exampleSecgroup.networkingSecgroupV2Id}
vpcId: ${exampleVpc.vpcV1Id}
subnetId: ${exampleSubnet.vpcSubnetV1Id}
db:
password: ${var.db_password}
type: PostgreSQL
version: '11'
port: '8635'
volume:
type: ULTRAHIGH
size: 100
backupStrategy:
startTime: 08:00-09:00
keepDays: 1
instance2:
type: flexibleengine:RdsReadReplicaV3
properties:
flavor: rds.pg.c2.large.rr
replicaOfId: ${instance1.rdsInstanceV3Id}
availabilityZone: ${var.primary_az}
volume:
type: ULTRAHIGH
Create RdsReadReplicaV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RdsReadReplicaV3(name: string, args: RdsReadReplicaV3Args, opts?: CustomResourceOptions);
@overload
def RdsReadReplicaV3(resource_name: str,
args: RdsReadReplicaV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def RdsReadReplicaV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
flavor: Optional[str] = None,
replica_of_id: Optional[str] = None,
volume: Optional[RdsReadReplicaV3VolumeArgs] = None,
name: Optional[str] = None,
rds_read_replica_v3_id: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[RdsReadReplicaV3TimeoutsArgs] = None)
func NewRdsReadReplicaV3(ctx *Context, name string, args RdsReadReplicaV3Args, opts ...ResourceOption) (*RdsReadReplicaV3, error)
public RdsReadReplicaV3(string name, RdsReadReplicaV3Args args, CustomResourceOptions? opts = null)
public RdsReadReplicaV3(String name, RdsReadReplicaV3Args args)
public RdsReadReplicaV3(String name, RdsReadReplicaV3Args args, CustomResourceOptions options)
type: flexibleengine:RdsReadReplicaV3
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 RdsReadReplicaV3Args
- 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 RdsReadReplicaV3Args
- 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 RdsReadReplicaV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RdsReadReplicaV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RdsReadReplicaV3Args
- 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 rdsReadReplicaV3Resource = new Flexibleengine.RdsReadReplicaV3("rdsReadReplicaV3Resource", new()
{
AvailabilityZone = "string",
Flavor = "string",
ReplicaOfId = "string",
Volume = new Flexibleengine.Inputs.RdsReadReplicaV3VolumeArgs
{
Type = "string",
DiskEncryptionId = "string",
Size = 0,
},
Name = "string",
RdsReadReplicaV3Id = "string",
Region = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Flexibleengine.Inputs.RdsReadReplicaV3TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := flexibleengine.NewRdsReadReplicaV3(ctx, "rdsReadReplicaV3Resource", &flexibleengine.RdsReadReplicaV3Args{
AvailabilityZone: pulumi.String("string"),
Flavor: pulumi.String("string"),
ReplicaOfId: pulumi.String("string"),
Volume: &flexibleengine.RdsReadReplicaV3VolumeArgs{
Type: pulumi.String("string"),
DiskEncryptionId: pulumi.String("string"),
Size: pulumi.Float64(0),
},
Name: pulumi.String("string"),
RdsReadReplicaV3Id: pulumi.String("string"),
Region: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &flexibleengine.RdsReadReplicaV3TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var rdsReadReplicaV3Resource = new RdsReadReplicaV3("rdsReadReplicaV3Resource", RdsReadReplicaV3Args.builder()
.availabilityZone("string")
.flavor("string")
.replicaOfId("string")
.volume(RdsReadReplicaV3VolumeArgs.builder()
.type("string")
.diskEncryptionId("string")
.size(0)
.build())
.name("string")
.rdsReadReplicaV3Id("string")
.region("string")
.tags(Map.of("string", "string"))
.timeouts(RdsReadReplicaV3TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
rds_read_replica_v3_resource = flexibleengine.RdsReadReplicaV3("rdsReadReplicaV3Resource",
availability_zone="string",
flavor="string",
replica_of_id="string",
volume={
"type": "string",
"disk_encryption_id": "string",
"size": 0,
},
name="string",
rds_read_replica_v3_id="string",
region="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
})
const rdsReadReplicaV3Resource = new flexibleengine.RdsReadReplicaV3("rdsReadReplicaV3Resource", {
availabilityZone: "string",
flavor: "string",
replicaOfId: "string",
volume: {
type: "string",
diskEncryptionId: "string",
size: 0,
},
name: "string",
rdsReadReplicaV3Id: "string",
region: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
});
type: flexibleengine:RdsReadReplicaV3
properties:
availabilityZone: string
flavor: string
name: string
rdsReadReplicaV3Id: string
region: string
replicaOfId: string
tags:
string: string
timeouts:
create: string
delete: string
volume:
diskEncryptionId: string
size: 0
type: string
RdsReadReplicaV3 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 RdsReadReplicaV3 resource accepts the following input properties:
- Availability
Zone string - Specifies the AZ name. Changing this parameter will create a new resource.
- Flavor string
- Specifies the specification code.
- Replica
Of stringId - Specifies the DB instance ID, which is used to create a read replica. Changing this parameter will create a new resource.
- Volume
Rds
Read Replica V3Volume - Specifies the volume information. The volume object structure is documented below. Changing this parameter will create a new resource.
- Name string
- Specifies the DB instance name. The DB instance name of the same type must be unique for the same tenant. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- Rds
Read stringReplica V3Id - Indicates the instance ID.
- Region string
- Specifies the region in which to create the RDS read replica resource. If omitted, the provider-level region will be used. Changing this will create a new RDS read replica resource. Currently, read replicas can be created only in the same region as that of the primary DB instance.
- Dictionary<string, string>
A mapping of tags to assign to the RDS read replica instance. Each tag is represented by one key-value pair.
The
volume
block supports:- Timeouts
Rds
Read Replica V3Timeouts
- Availability
Zone string - Specifies the AZ name. Changing this parameter will create a new resource.
- Flavor string
- Specifies the specification code.
- Replica
Of stringId - Specifies the DB instance ID, which is used to create a read replica. Changing this parameter will create a new resource.
- Volume
Rds
Read Replica V3Volume Args - Specifies the volume information. The volume object structure is documented below. Changing this parameter will create a new resource.
- Name string
- Specifies the DB instance name. The DB instance name of the same type must be unique for the same tenant. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- Rds
Read stringReplica V3Id - Indicates the instance ID.
- Region string
- Specifies the region in which to create the RDS read replica resource. If omitted, the provider-level region will be used. Changing this will create a new RDS read replica resource. Currently, read replicas can be created only in the same region as that of the primary DB instance.
- map[string]string
A mapping of tags to assign to the RDS read replica instance. Each tag is represented by one key-value pair.
The
volume
block supports:- Timeouts
Rds
Read Replica V3Timeouts Args
- availability
Zone String - Specifies the AZ name. Changing this parameter will create a new resource.
- flavor String
- Specifies the specification code.
- replica
Of StringId - Specifies the DB instance ID, which is used to create a read replica. Changing this parameter will create a new resource.
- volume
Rds
Read Replica V3Volume - Specifies the volume information. The volume object structure is documented below. Changing this parameter will create a new resource.
- name String
- Specifies the DB instance name. The DB instance name of the same type must be unique for the same tenant. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- rds
Read StringReplica V3Id - Indicates the instance ID.
- region String
- Specifies the region in which to create the RDS read replica resource. If omitted, the provider-level region will be used. Changing this will create a new RDS read replica resource. Currently, read replicas can be created only in the same region as that of the primary DB instance.
- Map<String,String>
A mapping of tags to assign to the RDS read replica instance. Each tag is represented by one key-value pair.
The
volume
block supports:- timeouts
Rds
Read Replica V3Timeouts
- availability
Zone string - Specifies the AZ name. Changing this parameter will create a new resource.
- flavor string
- Specifies the specification code.
- replica
Of stringId - Specifies the DB instance ID, which is used to create a read replica. Changing this parameter will create a new resource.
- volume
Rds
Read Replica V3Volume - Specifies the volume information. The volume object structure is documented below. Changing this parameter will create a new resource.
- name string
- Specifies the DB instance name. The DB instance name of the same type must be unique for the same tenant. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- rds
Read stringReplica V3Id - Indicates the instance ID.
- region string
- Specifies the region in which to create the RDS read replica resource. If omitted, the provider-level region will be used. Changing this will create a new RDS read replica resource. Currently, read replicas can be created only in the same region as that of the primary DB instance.
- {[key: string]: string}
A mapping of tags to assign to the RDS read replica instance. Each tag is represented by one key-value pair.
The
volume
block supports:- timeouts
Rds
Read Replica V3Timeouts
- availability_
zone str - Specifies the AZ name. Changing this parameter will create a new resource.
- flavor str
- Specifies the specification code.
- replica_
of_ strid - Specifies the DB instance ID, which is used to create a read replica. Changing this parameter will create a new resource.
- volume
Rds
Read Replica V3Volume Args - Specifies the volume information. The volume object structure is documented below. Changing this parameter will create a new resource.
- name str
- Specifies the DB instance name. The DB instance name of the same type must be unique for the same tenant. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- rds_
read_ strreplica_ v3_ id - Indicates the instance ID.
- region str
- Specifies the region in which to create the RDS read replica resource. If omitted, the provider-level region will be used. Changing this will create a new RDS read replica resource. Currently, read replicas can be created only in the same region as that of the primary DB instance.
- Mapping[str, str]
A mapping of tags to assign to the RDS read replica instance. Each tag is represented by one key-value pair.
The
volume
block supports:- timeouts
Rds
Read Replica V3Timeouts Args
- availability
Zone String - Specifies the AZ name. Changing this parameter will create a new resource.
- flavor String
- Specifies the specification code.
- replica
Of StringId - Specifies the DB instance ID, which is used to create a read replica. Changing this parameter will create a new resource.
- volume Property Map
- Specifies the volume information. The volume object structure is documented below. Changing this parameter will create a new resource.
- name String
- Specifies the DB instance name. The DB instance name of the same type must be unique for the same tenant. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- rds
Read StringReplica V3Id - Indicates the instance ID.
- region String
- Specifies the region in which to create the RDS read replica resource. If omitted, the provider-level region will be used. Changing this will create a new RDS read replica resource. Currently, read replicas can be created only in the same region as that of the primary DB instance.
- Map<String>
A mapping of tags to assign to the RDS read replica instance. Each tag is represented by one key-value pair.
The
volume
block supports:- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the RdsReadReplicaV3 resource produces the following output properties:
- Dbs
List<Rds
Read Replica V3Db> - Indicates the database information. The db object structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Ips List<string> - Indicates the private IP address list.
- Public
Ips List<string> - Indicates the public IP address list.
- Security
Group stringId - Indicates the security group which the RDS DB instance belongs to.
- Status string
- Indicates the instance status.
- Subnet
Id string - Indicates the subnet id.
- Type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- Vpc
Id string - Indicates the VPC ID.
- Dbs
[]Rds
Read Replica V3Db - Indicates the database information. The db object structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Ips []string - Indicates the private IP address list.
- Public
Ips []string - Indicates the public IP address list.
- Security
Group stringId - Indicates the security group which the RDS DB instance belongs to.
- Status string
- Indicates the instance status.
- Subnet
Id string - Indicates the subnet id.
- Type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- Vpc
Id string - Indicates the VPC ID.
- dbs
List<Rds
Read Replica V3Db> - Indicates the database information. The db object structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- private
Ips List<String> - Indicates the private IP address list.
- public
Ips List<String> - Indicates the public IP address list.
- security
Group StringId - Indicates the security group which the RDS DB instance belongs to.
- status String
- Indicates the instance status.
- subnet
Id String - Indicates the subnet id.
- type String
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- vpc
Id String - Indicates the VPC ID.
- dbs
Rds
Read Replica V3Db[] - Indicates the database information. The db object structure is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- private
Ips string[] - Indicates the private IP address list.
- public
Ips string[] - Indicates the public IP address list.
- security
Group stringId - Indicates the security group which the RDS DB instance belongs to.
- status string
- Indicates the instance status.
- subnet
Id string - Indicates the subnet id.
- type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- vpc
Id string - Indicates the VPC ID.
- dbs
Sequence[Rds
Read Replica V3Db] - Indicates the database information. The db object structure is documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- private_
ips Sequence[str] - Indicates the private IP address list.
- public_
ips Sequence[str] - Indicates the public IP address list.
- security_
group_ strid - Indicates the security group which the RDS DB instance belongs to.
- status str
- Indicates the instance status.
- subnet_
id str - Indicates the subnet id.
- type str
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- vpc_
id str - Indicates the VPC ID.
- dbs List<Property Map>
- Indicates the database information. The db object structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- private
Ips List<String> - Indicates the private IP address list.
- public
Ips List<String> - Indicates the public IP address list.
- security
Group StringId - Indicates the security group which the RDS DB instance belongs to.
- status String
- Indicates the instance status.
- subnet
Id String - Indicates the subnet id.
- type String
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- vpc
Id String - Indicates the VPC ID.
Look up Existing RdsReadReplicaV3 Resource
Get an existing RdsReadReplicaV3 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?: RdsReadReplicaV3State, opts?: CustomResourceOptions): RdsReadReplicaV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
dbs: Optional[Sequence[RdsReadReplicaV3DbArgs]] = None,
flavor: Optional[str] = None,
name: Optional[str] = None,
private_ips: Optional[Sequence[str]] = None,
public_ips: Optional[Sequence[str]] = None,
rds_read_replica_v3_id: Optional[str] = None,
region: Optional[str] = None,
replica_of_id: Optional[str] = None,
security_group_id: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[RdsReadReplicaV3TimeoutsArgs] = None,
type: Optional[str] = None,
volume: Optional[RdsReadReplicaV3VolumeArgs] = None,
vpc_id: Optional[str] = None) -> RdsReadReplicaV3
func GetRdsReadReplicaV3(ctx *Context, name string, id IDInput, state *RdsReadReplicaV3State, opts ...ResourceOption) (*RdsReadReplicaV3, error)
public static RdsReadReplicaV3 Get(string name, Input<string> id, RdsReadReplicaV3State? state, CustomResourceOptions? opts = null)
public static RdsReadReplicaV3 get(String name, Output<String> id, RdsReadReplicaV3State state, CustomResourceOptions options)
resources: _: type: flexibleengine:RdsReadReplicaV3 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.
- Availability
Zone string - Specifies the AZ name. Changing this parameter will create a new resource.
- Dbs
List<Rds
Read Replica V3Db> - Indicates the database information. The db object structure is documented below.
- Flavor string
- Specifies the specification code.
- Name string
- Specifies the DB instance name. The DB instance name of the same type must be unique for the same tenant. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- Private
Ips List<string> - Indicates the private IP address list.
- Public
Ips List<string> - Indicates the public IP address list.
- Rds
Read stringReplica V3Id - Indicates the instance ID.
- Region string
- Specifies the region in which to create the RDS read replica resource. If omitted, the provider-level region will be used. Changing this will create a new RDS read replica resource. Currently, read replicas can be created only in the same region as that of the primary DB instance.
- Replica
Of stringId - Specifies the DB instance ID, which is used to create a read replica. Changing this parameter will create a new resource.
- Security
Group stringId - Indicates the security group which the RDS DB instance belongs to.
- Status string
- Indicates the instance status.
- Subnet
Id string - Indicates the subnet id.
- Dictionary<string, string>
A mapping of tags to assign to the RDS read replica instance. Each tag is represented by one key-value pair.
The
volume
block supports:- Timeouts
Rds
Read Replica V3Timeouts - Type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- Volume
Rds
Read Replica V3Volume - Specifies the volume information. The volume object structure is documented below. Changing this parameter will create a new resource.
- Vpc
Id string - Indicates the VPC ID.
- Availability
Zone string - Specifies the AZ name. Changing this parameter will create a new resource.
- Dbs
[]Rds
Read Replica V3Db Args - Indicates the database information. The db object structure is documented below.
- Flavor string
- Specifies the specification code.
- Name string
- Specifies the DB instance name. The DB instance name of the same type must be unique for the same tenant. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- Private
Ips []string - Indicates the private IP address list.
- Public
Ips []string - Indicates the public IP address list.
- Rds
Read stringReplica V3Id - Indicates the instance ID.
- Region string
- Specifies the region in which to create the RDS read replica resource. If omitted, the provider-level region will be used. Changing this will create a new RDS read replica resource. Currently, read replicas can be created only in the same region as that of the primary DB instance.
- Replica
Of stringId - Specifies the DB instance ID, which is used to create a read replica. Changing this parameter will create a new resource.
- Security
Group stringId - Indicates the security group which the RDS DB instance belongs to.
- Status string
- Indicates the instance status.
- Subnet
Id string - Indicates the subnet id.
- map[string]string
A mapping of tags to assign to the RDS read replica instance. Each tag is represented by one key-value pair.
The
volume
block supports:- Timeouts
Rds
Read Replica V3Timeouts Args - Type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- Volume
Rds
Read Replica V3Volume Args - Specifies the volume information. The volume object structure is documented below. Changing this parameter will create a new resource.
- Vpc
Id string - Indicates the VPC ID.
- availability
Zone String - Specifies the AZ name. Changing this parameter will create a new resource.
- dbs
List<Rds
Read Replica V3Db> - Indicates the database information. The db object structure is documented below.
- flavor String
- Specifies the specification code.
- name String
- Specifies the DB instance name. The DB instance name of the same type must be unique for the same tenant. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- private
Ips List<String> - Indicates the private IP address list.
- public
Ips List<String> - Indicates the public IP address list.
- rds
Read StringReplica V3Id - Indicates the instance ID.
- region String
- Specifies the region in which to create the RDS read replica resource. If omitted, the provider-level region will be used. Changing this will create a new RDS read replica resource. Currently, read replicas can be created only in the same region as that of the primary DB instance.
- replica
Of StringId - Specifies the DB instance ID, which is used to create a read replica. Changing this parameter will create a new resource.
- security
Group StringId - Indicates the security group which the RDS DB instance belongs to.
- status String
- Indicates the instance status.
- subnet
Id String - Indicates the subnet id.
- Map<String,String>
A mapping of tags to assign to the RDS read replica instance. Each tag is represented by one key-value pair.
The
volume
block supports:- timeouts
Rds
Read Replica V3Timeouts - type String
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- volume
Rds
Read Replica V3Volume - Specifies the volume information. The volume object structure is documented below. Changing this parameter will create a new resource.
- vpc
Id String - Indicates the VPC ID.
- availability
Zone string - Specifies the AZ name. Changing this parameter will create a new resource.
- dbs
Rds
Read Replica V3Db[] - Indicates the database information. The db object structure is documented below.
- flavor string
- Specifies the specification code.
- name string
- Specifies the DB instance name. The DB instance name of the same type must be unique for the same tenant. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- private
Ips string[] - Indicates the private IP address list.
- public
Ips string[] - Indicates the public IP address list.
- rds
Read stringReplica V3Id - Indicates the instance ID.
- region string
- Specifies the region in which to create the RDS read replica resource. If omitted, the provider-level region will be used. Changing this will create a new RDS read replica resource. Currently, read replicas can be created only in the same region as that of the primary DB instance.
- replica
Of stringId - Specifies the DB instance ID, which is used to create a read replica. Changing this parameter will create a new resource.
- security
Group stringId - Indicates the security group which the RDS DB instance belongs to.
- status string
- Indicates the instance status.
- subnet
Id string - Indicates the subnet id.
- {[key: string]: string}
A mapping of tags to assign to the RDS read replica instance. Each tag is represented by one key-value pair.
The
volume
block supports:- timeouts
Rds
Read Replica V3Timeouts - type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- volume
Rds
Read Replica V3Volume - Specifies the volume information. The volume object structure is documented below. Changing this parameter will create a new resource.
- vpc
Id string - Indicates the VPC ID.
- availability_
zone str - Specifies the AZ name. Changing this parameter will create a new resource.
- dbs
Sequence[Rds
Read Replica V3Db Args] - Indicates the database information. The db object structure is documented below.
- flavor str
- Specifies the specification code.
- name str
- Specifies the DB instance name. The DB instance name of the same type must be unique for the same tenant. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- private_
ips Sequence[str] - Indicates the private IP address list.
- public_
ips Sequence[str] - Indicates the public IP address list.
- rds_
read_ strreplica_ v3_ id - Indicates the instance ID.
- region str
- Specifies the region in which to create the RDS read replica resource. If omitted, the provider-level region will be used. Changing this will create a new RDS read replica resource. Currently, read replicas can be created only in the same region as that of the primary DB instance.
- replica_
of_ strid - Specifies the DB instance ID, which is used to create a read replica. Changing this parameter will create a new resource.
- security_
group_ strid - Indicates the security group which the RDS DB instance belongs to.
- status str
- Indicates the instance status.
- subnet_
id str - Indicates the subnet id.
- Mapping[str, str]
A mapping of tags to assign to the RDS read replica instance. Each tag is represented by one key-value pair.
The
volume
block supports:- timeouts
Rds
Read Replica V3Timeouts Args - type str
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- volume
Rds
Read Replica V3Volume Args - Specifies the volume information. The volume object structure is documented below. Changing this parameter will create a new resource.
- vpc_
id str - Indicates the VPC ID.
- availability
Zone String - Specifies the AZ name. Changing this parameter will create a new resource.
- dbs List<Property Map>
- Indicates the database information. The db object structure is documented below.
- flavor String
- Specifies the specification code.
- name String
- Specifies the DB instance name. The DB instance name of the same type must be unique for the same tenant. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_). Changing this parameter will create a new resource.
- private
Ips List<String> - Indicates the private IP address list.
- public
Ips List<String> - Indicates the public IP address list.
- rds
Read StringReplica V3Id - Indicates the instance ID.
- region String
- Specifies the region in which to create the RDS read replica resource. If omitted, the provider-level region will be used. Changing this will create a new RDS read replica resource. Currently, read replicas can be created only in the same region as that of the primary DB instance.
- replica
Of StringId - Specifies the DB instance ID, which is used to create a read replica. Changing this parameter will create a new resource.
- security
Group StringId - Indicates the security group which the RDS DB instance belongs to.
- status String
- Indicates the instance status.
- subnet
Id String - Indicates the subnet id.
- Map<String>
A mapping of tags to assign to the RDS read replica instance. Each tag is represented by one key-value pair.
The
volume
block supports:- timeouts Property Map
- type String
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- volume Property Map
- Specifies the volume information. The volume object structure is documented below. Changing this parameter will create a new resource.
- vpc
Id String - Indicates the VPC ID.
Supporting Types
RdsReadReplicaV3Db, RdsReadReplicaV3DbArgs
- Port double
- Indicates the database port information.
- Type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- User
Name string - Indicates the default username of database.
- Version string
- Indicates the database version.
- Port float64
- Indicates the database port information.
- Type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- User
Name string - Indicates the default username of database.
- Version string
- Indicates the database version.
- port Double
- Indicates the database port information.
- type String
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- user
Name String - Indicates the default username of database.
- version String
- Indicates the database version.
- port number
- Indicates the database port information.
- type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- user
Name string - Indicates the default username of database.
- version string
- Indicates the database version.
- port float
- Indicates the database port information.
- type str
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- user_
name str - Indicates the default username of database.
- version str
- Indicates the database version.
- port Number
- Indicates the database port information.
- type String
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
Changing this parameter will create a new resource.
- user
Name String - Indicates the default username of database.
- version String
- Indicates the database version.
RdsReadReplicaV3Timeouts, RdsReadReplicaV3TimeoutsArgs
RdsReadReplicaV3Volume, RdsReadReplicaV3VolumeArgs
- Type string
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
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.
- 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:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
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.
- 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:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
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.
- 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:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
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.
- 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 str
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
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.
- 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 String
Specifies the volume type. Its value can be any of the following and is case-sensitive:
- ULTRAHIGH: indicates the SSD type.
- ULTRAHIGHPRO: indicates the ultra-high I/O.
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.
- 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.
Import
RDS instance can be imported using the id
, e.g.
$ pulumi import flexibleengine:index/rdsReadReplicaV3:RdsReadReplicaV3 instance_1 7117d38e-4c8f-4624-a505-bd96b97d024c
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.