published on Monday, Sep 21, 2026 by tencentcloudstack
published on Monday, Sep 21, 2026 by tencentcloudstack
Provides a resource to create a DBDC db custom disaster recover group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.DbdcDbCustomDisasterRecoverGroup("example", {
name: "tf-example1",
type: "HOST",
strategy: "SPREAD",
affinity: 1,
tags: {
createBy: "Terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.DbdcDbCustomDisasterRecoverGroup("example",
name="tf-example1",
type="HOST",
strategy="SPREAD",
affinity=1,
tags={
"createBy": "Terraform",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewDbdcDbCustomDisasterRecoverGroup(ctx, "example", &tencentcloud.DbdcDbCustomDisasterRecoverGroupArgs{
Name: pulumi.String("tf-example1"),
Type: pulumi.String("HOST"),
Strategy: pulumi.String("SPREAD"),
Affinity: pulumi.Float64(1),
Tags: pulumi.StringMap{
"createBy": pulumi.String("Terraform"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.DbdcDbCustomDisasterRecoverGroup("example", new()
{
Name = "tf-example1",
Type = "HOST",
Strategy = "SPREAD",
Affinity = 1,
Tags =
{
{ "createBy", "Terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DbdcDbCustomDisasterRecoverGroup;
import com.pulumi.tencentcloud.DbdcDbCustomDisasterRecoverGroupArgs;
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 example = new DbdcDbCustomDisasterRecoverGroup("example", DbdcDbCustomDisasterRecoverGroupArgs.builder()
.name("tf-example1")
.type("HOST")
.strategy("SPREAD")
.affinity(1.0)
.tags(Map.of("createBy", "Terraform"))
.build());
}
}
resources:
example:
type: tencentcloud:DbdcDbCustomDisasterRecoverGroup
properties:
name: tf-example1
type: HOST
strategy: SPREAD
affinity: 1
tags:
createBy: Terraform
Example coming soon!
Create DbdcDbCustomDisasterRecoverGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbdcDbCustomDisasterRecoverGroup(name: string, args?: DbdcDbCustomDisasterRecoverGroupArgs, opts?: CustomResourceOptions);@overload
def DbdcDbCustomDisasterRecoverGroup(resource_name: str,
args: Optional[DbdcDbCustomDisasterRecoverGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DbdcDbCustomDisasterRecoverGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
affinity: Optional[float] = None,
dbdc_db_custom_disaster_recover_group_id: Optional[str] = None,
name: Optional[str] = None,
strategy: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DbdcDbCustomDisasterRecoverGroupTimeoutsArgs] = None,
type: Optional[str] = None)func NewDbdcDbCustomDisasterRecoverGroup(ctx *Context, name string, args *DbdcDbCustomDisasterRecoverGroupArgs, opts ...ResourceOption) (*DbdcDbCustomDisasterRecoverGroup, error)public DbdcDbCustomDisasterRecoverGroup(string name, DbdcDbCustomDisasterRecoverGroupArgs? args = null, CustomResourceOptions? opts = null)
public DbdcDbCustomDisasterRecoverGroup(String name, DbdcDbCustomDisasterRecoverGroupArgs args)
public DbdcDbCustomDisasterRecoverGroup(String name, DbdcDbCustomDisasterRecoverGroupArgs args, CustomResourceOptions options)
type: tencentcloud:DbdcDbCustomDisasterRecoverGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_dbdc_db_custom_disaster_recover_group" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DbdcDbCustomDisasterRecoverGroupArgs
- 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 DbdcDbCustomDisasterRecoverGroupArgs
- 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 DbdcDbCustomDisasterRecoverGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbdcDbCustomDisasterRecoverGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbdcDbCustomDisasterRecoverGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DbdcDbCustomDisasterRecoverGroup 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 DbdcDbCustomDisasterRecoverGroup resource accepts the following input properties:
- Affinity double
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - Dbdc
Db stringCustom Disaster Recover Group Id - ID of the resource.
- Name string
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- Strategy string
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - Dictionary<string, string>
- Tags.
- Timeouts
Dbdc
Db Custom Disaster Recover Group Timeouts - Type string
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
- Affinity float64
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - Dbdc
Db stringCustom Disaster Recover Group Id - ID of the resource.
- Name string
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- Strategy string
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - map[string]string
- Tags.
- Timeouts
Dbdc
Db Custom Disaster Recover Group Timeouts Args - Type string
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
- affinity number
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - dbdc_
db_ stringcustom_ disaster_ recover_ group_ id - ID of the resource.
- name string
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- strategy string
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - map(string)
- Tags.
- timeouts object
- type string
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
- affinity Double
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - dbdc
Db StringCustom Disaster Recover Group Id - ID of the resource.
- name String
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- strategy String
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - Map<String,String>
- Tags.
- timeouts
Dbdc
Db Custom Disaster Recover Group Timeouts - type String
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
- affinity number
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - dbdc
Db stringCustom Disaster Recover Group Id - ID of the resource.
- name string
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- strategy string
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - {[key: string]: string}
- Tags.
- timeouts
Dbdc
Db Custom Disaster Recover Group Timeouts - type string
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
- affinity float
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - dbdc_
db_ strcustom_ disaster_ recover_ group_ id - ID of the resource.
- name str
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- strategy str
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - Mapping[str, str]
- Tags.
- timeouts
Dbdc
Db Custom Disaster Recover Group Timeouts Args - type str
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
- affinity Number
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - dbdc
Db StringCustom Disaster Recover Group Id - ID of the resource.
- name String
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- strategy String
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - Map<String>
- Tags.
- timeouts Property Map
- type String
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
Outputs
All input properties are implicitly available as output properties. Additionally, the DbdcDbCustomDisasterRecoverGroup resource produces the following output properties:
- Created
Time string - Creation time.
- Current
Num double - Current number of nodes in the placement group.
- Disaster
Recover stringGroup Id - Placement group ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Ids List<string> - List of DB Custom node IDs in the placement group.
- Node
Quota doubleTotal - Maximum number of nodes that the placement group can hold.
- Status string
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying.
- Created
Time string - Creation time.
- Current
Num float64 - Current number of nodes in the placement group.
- Disaster
Recover stringGroup Id - Placement group ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Ids []string - List of DB Custom node IDs in the placement group.
- Node
Quota float64Total - Maximum number of nodes that the placement group can hold.
- Status string
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying.
- created_
time string - Creation time.
- current_
num number - Current number of nodes in the placement group.
- disaster_
recover_ stringgroup_ id - Placement group ID.
- id string
- The provider-assigned unique ID for this managed resource.
- node_
ids list(string) - List of DB Custom node IDs in the placement group.
- node_
quota_ numbertotal - Maximum number of nodes that the placement group can hold.
- status string
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying.
- created
Time String - Creation time.
- current
Num Double - Current number of nodes in the placement group.
- disaster
Recover StringGroup Id - Placement group ID.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Ids List<String> - List of DB Custom node IDs in the placement group.
- node
Quota DoubleTotal - Maximum number of nodes that the placement group can hold.
- status String
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying.
- created
Time string - Creation time.
- current
Num number - Current number of nodes in the placement group.
- disaster
Recover stringGroup Id - Placement group ID.
- id string
- The provider-assigned unique ID for this managed resource.
- node
Ids string[] - List of DB Custom node IDs in the placement group.
- node
Quota numberTotal - Maximum number of nodes that the placement group can hold.
- status string
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying.
- created_
time str - Creation time.
- current_
num float - Current number of nodes in the placement group.
- disaster_
recover_ strgroup_ id - Placement group ID.
- id str
- The provider-assigned unique ID for this managed resource.
- node_
ids Sequence[str] - List of DB Custom node IDs in the placement group.
- node_
quota_ floattotal - Maximum number of nodes that the placement group can hold.
- status str
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying.
- created
Time String - Creation time.
- current
Num Number - Current number of nodes in the placement group.
- disaster
Recover StringGroup Id - Placement group ID.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Ids List<String> - List of DB Custom node IDs in the placement group.
- node
Quota NumberTotal - Maximum number of nodes that the placement group can hold.
- status String
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying.
Look up Existing DbdcDbCustomDisasterRecoverGroup Resource
Get an existing DbdcDbCustomDisasterRecoverGroup 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?: DbdcDbCustomDisasterRecoverGroupState, opts?: CustomResourceOptions): DbdcDbCustomDisasterRecoverGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
affinity: Optional[float] = None,
created_time: Optional[str] = None,
current_num: Optional[float] = None,
dbdc_db_custom_disaster_recover_group_id: Optional[str] = None,
disaster_recover_group_id: Optional[str] = None,
name: Optional[str] = None,
node_ids: Optional[Sequence[str]] = None,
node_quota_total: Optional[float] = None,
status: Optional[str] = None,
strategy: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DbdcDbCustomDisasterRecoverGroupTimeoutsArgs] = None,
type: Optional[str] = None) -> DbdcDbCustomDisasterRecoverGroupfunc GetDbdcDbCustomDisasterRecoverGroup(ctx *Context, name string, id IDInput, state *DbdcDbCustomDisasterRecoverGroupState, opts ...ResourceOption) (*DbdcDbCustomDisasterRecoverGroup, error)public static DbdcDbCustomDisasterRecoverGroup Get(string name, Input<string> id, DbdcDbCustomDisasterRecoverGroupState? state, CustomResourceOptions? opts = null)public static DbdcDbCustomDisasterRecoverGroup get(String name, Output<String> id, DbdcDbCustomDisasterRecoverGroupState state, CustomResourceOptions options)resources: _: type: tencentcloud:DbdcDbCustomDisasterRecoverGroup get: id: ${id}import {
to = tencentcloud_dbdc_db_custom_disaster_recover_group.example
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.
- Affinity double
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - Created
Time string - Creation time.
- Current
Num double - Current number of nodes in the placement group.
- Dbdc
Db stringCustom Disaster Recover Group Id - ID of the resource.
- Disaster
Recover stringGroup Id - Placement group ID.
- Name string
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- Node
Ids List<string> - List of DB Custom node IDs in the placement group.
- Node
Quota doubleTotal - Maximum number of nodes that the placement group can hold.
- Status string
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying. - Strategy string
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - Dictionary<string, string>
- Tags.
- Timeouts
Dbdc
Db Custom Disaster Recover Group Timeouts - Type string
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
- Affinity float64
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - Created
Time string - Creation time.
- Current
Num float64 - Current number of nodes in the placement group.
- Dbdc
Db stringCustom Disaster Recover Group Id - ID of the resource.
- Disaster
Recover stringGroup Id - Placement group ID.
- Name string
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- Node
Ids []string - List of DB Custom node IDs in the placement group.
- Node
Quota float64Total - Maximum number of nodes that the placement group can hold.
- Status string
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying. - Strategy string
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - map[string]string
- Tags.
- Timeouts
Dbdc
Db Custom Disaster Recover Group Timeouts Args - Type string
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
- affinity number
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - created_
time string - Creation time.
- current_
num number - Current number of nodes in the placement group.
- dbdc_
db_ stringcustom_ disaster_ recover_ group_ id - ID of the resource.
- disaster_
recover_ stringgroup_ id - Placement group ID.
- name string
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- node_
ids list(string) - List of DB Custom node IDs in the placement group.
- node_
quota_ numbertotal - Maximum number of nodes that the placement group can hold.
- status string
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying. - strategy string
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - map(string)
- Tags.
- timeouts object
- type string
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
- affinity Double
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - created
Time String - Creation time.
- current
Num Double - Current number of nodes in the placement group.
- dbdc
Db StringCustom Disaster Recover Group Id - ID of the resource.
- disaster
Recover StringGroup Id - Placement group ID.
- name String
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- node
Ids List<String> - List of DB Custom node IDs in the placement group.
- node
Quota DoubleTotal - Maximum number of nodes that the placement group can hold.
- status String
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying. - strategy String
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - Map<String,String>
- Tags.
- timeouts
Dbdc
Db Custom Disaster Recover Group Timeouts - type String
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
- affinity number
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - created
Time string - Creation time.
- current
Num number - Current number of nodes in the placement group.
- dbdc
Db stringCustom Disaster Recover Group Id - ID of the resource.
- disaster
Recover stringGroup Id - Placement group ID.
- name string
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- node
Ids string[] - List of DB Custom node IDs in the placement group.
- node
Quota numberTotal - Maximum number of nodes that the placement group can hold.
- status string
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying. - strategy string
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - {[key: string]: string}
- Tags.
- timeouts
Dbdc
Db Custom Disaster Recover Group Timeouts - type string
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
- affinity float
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - created_
time str - Creation time.
- current_
num float - Current number of nodes in the placement group.
- dbdc_
db_ strcustom_ disaster_ recover_ group_ id - ID of the resource.
- disaster_
recover_ strgroup_ id - Placement group ID.
- name str
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- node_
ids Sequence[str] - List of DB Custom node IDs in the placement group.
- node_
quota_ floattotal - Maximum number of nodes that the placement group can hold.
- status str
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying. - strategy str
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - Mapping[str, str]
- Tags.
- timeouts
Dbdc
Db Custom Disaster Recover Group Timeouts Args - type str
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
- affinity Number
- Affinity of the placement group. Instances in the group will be distributed according to this affinity. Valid values:
[1, 10]. Default value:1. - created
Time String - Creation time.
- current
Num Number - Current number of nodes in the placement group.
- dbdc
Db StringCustom Disaster Recover Group Id - ID of the resource.
- disaster
Recover StringGroup Id - Placement group ID.
- name String
- Placement group name. Up to 60 characters, only Chinese and English are allowed.
- node
Ids List<String> - List of DB Custom node IDs in the placement group.
- node
Quota NumberTotal - Maximum number of nodes that the placement group can hold.
- status String
- Placement group status. Valid values:
Creating,Available,CreateFailed,Deleting,Modifying. - strategy String
- Placement group strategy. Valid values:
SPREAD(spread placement group). Default value:SPREAD. - Map<String>
- Tags.
- timeouts Property Map
- type String
- Placement group type. Valid values:
HOST(physical machine). Default value:HOST.
Supporting Types
DbdcDbCustomDisasterRecoverGroupTimeouts, DbdcDbCustomDisasterRecoverGroupTimeoutsArgs
Import
DBDC db custom disaster recover group can be imported using the id, e.g.
$ pulumi import tencentcloud:index/dbdcDbCustomDisasterRecoverGroup:DbdcDbCustomDisasterRecoverGroup example dbps-sdcm1hfl
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Monday, Sep 21, 2026 by tencentcloudstack