published on Monday, Sep 21, 2026 by tencentcloudstack
published on Monday, Sep 21, 2026 by tencentcloudstack
Provides a resource to create a disaster recovery VPC mapping for site pair of BDRC.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.BdrcDisasterRecoverySitePair("example", {
disasterRecoveryType: "CROSS_ZONE",
sourceRegion: "ap-shanghai",
sourceZone: "ap-shanghai-3",
targetRegion: "ap-shanghai",
targetZone: "ap-shanghai-4",
sourceVpc: "vpc-lx6q09ji",
targetVpc: "vpc-jktad5e6",
sitePairProductType: "INSTANCE",
sitePairName: "tf-example",
copyType: "ASY",
});
const exampleBdrcDisasterRecoveryVpcMapping = new tencentcloud.BdrcDisasterRecoveryVpcMapping("example", {
sitePairId: example.sitePairId,
sourceVpcId: "vpc-lx6q09ji",
sourceSubnetId: "subnet-nyrg9pkl",
targetVpcId: "vpc-jktad5e6",
targetSubnetId: "subnet-jdzuvvvb",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.BdrcDisasterRecoverySitePair("example",
disaster_recovery_type="CROSS_ZONE",
source_region="ap-shanghai",
source_zone="ap-shanghai-3",
target_region="ap-shanghai",
target_zone="ap-shanghai-4",
source_vpc="vpc-lx6q09ji",
target_vpc="vpc-jktad5e6",
site_pair_product_type="INSTANCE",
site_pair_name="tf-example",
copy_type="ASY")
example_bdrc_disaster_recovery_vpc_mapping = tencentcloud.BdrcDisasterRecoveryVpcMapping("example",
site_pair_id=example.site_pair_id,
source_vpc_id="vpc-lx6q09ji",
source_subnet_id="subnet-nyrg9pkl",
target_vpc_id="vpc-jktad5e6",
target_subnet_id="subnet-jdzuvvvb")
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 {
example, err := tencentcloud.NewBdrcDisasterRecoverySitePair(ctx, "example", &tencentcloud.BdrcDisasterRecoverySitePairArgs{
DisasterRecoveryType: pulumi.String("CROSS_ZONE"),
SourceRegion: pulumi.String("ap-shanghai"),
SourceZone: pulumi.String("ap-shanghai-3"),
TargetRegion: pulumi.String("ap-shanghai"),
TargetZone: pulumi.String("ap-shanghai-4"),
SourceVpc: pulumi.String("vpc-lx6q09ji"),
TargetVpc: pulumi.String("vpc-jktad5e6"),
SitePairProductType: pulumi.String("INSTANCE"),
SitePairName: pulumi.String("tf-example"),
CopyType: pulumi.String("ASY"),
})
if err != nil {
return err
}
_, err = tencentcloud.NewBdrcDisasterRecoveryVpcMapping(ctx, "example", &tencentcloud.BdrcDisasterRecoveryVpcMappingArgs{
SitePairId: example.SitePairId,
SourceVpcId: pulumi.String("vpc-lx6q09ji"),
SourceSubnetId: pulumi.String("subnet-nyrg9pkl"),
TargetVpcId: pulumi.String("vpc-jktad5e6"),
TargetSubnetId: pulumi.String("subnet-jdzuvvvb"),
})
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.BdrcDisasterRecoverySitePair("example", new()
{
DisasterRecoveryType = "CROSS_ZONE",
SourceRegion = "ap-shanghai",
SourceZone = "ap-shanghai-3",
TargetRegion = "ap-shanghai",
TargetZone = "ap-shanghai-4",
SourceVpc = "vpc-lx6q09ji",
TargetVpc = "vpc-jktad5e6",
SitePairProductType = "INSTANCE",
SitePairName = "tf-example",
CopyType = "ASY",
});
var exampleBdrcDisasterRecoveryVpcMapping = new Tencentcloud.BdrcDisasterRecoveryVpcMapping("example", new()
{
SitePairId = example.SitePairId,
SourceVpcId = "vpc-lx6q09ji",
SourceSubnetId = "subnet-nyrg9pkl",
TargetVpcId = "vpc-jktad5e6",
TargetSubnetId = "subnet-jdzuvvvb",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.BdrcDisasterRecoverySitePair;
import com.pulumi.tencentcloud.BdrcDisasterRecoverySitePairArgs;
import com.pulumi.tencentcloud.BdrcDisasterRecoveryVpcMapping;
import com.pulumi.tencentcloud.BdrcDisasterRecoveryVpcMappingArgs;
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 BdrcDisasterRecoverySitePair("example", BdrcDisasterRecoverySitePairArgs.builder()
.disasterRecoveryType("CROSS_ZONE")
.sourceRegion("ap-shanghai")
.sourceZone("ap-shanghai-3")
.targetRegion("ap-shanghai")
.targetZone("ap-shanghai-4")
.sourceVpc("vpc-lx6q09ji")
.targetVpc("vpc-jktad5e6")
.sitePairProductType("INSTANCE")
.sitePairName("tf-example")
.copyType("ASY")
.build());
var exampleBdrcDisasterRecoveryVpcMapping = new BdrcDisasterRecoveryVpcMapping("exampleBdrcDisasterRecoveryVpcMapping", BdrcDisasterRecoveryVpcMappingArgs.builder()
.sitePairId(example.sitePairId())
.sourceVpcId("vpc-lx6q09ji")
.sourceSubnetId("subnet-nyrg9pkl")
.targetVpcId("vpc-jktad5e6")
.targetSubnetId("subnet-jdzuvvvb")
.build());
}
}
resources:
example:
type: tencentcloud:BdrcDisasterRecoverySitePair
properties:
disasterRecoveryType: CROSS_ZONE
sourceRegion: ap-shanghai
sourceZone: ap-shanghai-3
targetRegion: ap-shanghai
targetZone: ap-shanghai-4
sourceVpc: vpc-lx6q09ji
targetVpc: vpc-jktad5e6
sitePairProductType: INSTANCE
sitePairName: tf-example
copyType: ASY
exampleBdrcDisasterRecoveryVpcMapping:
type: tencentcloud:BdrcDisasterRecoveryVpcMapping
name: example
properties:
sitePairId: ${example.sitePairId}
sourceVpcId: vpc-lx6q09ji
sourceSubnetId: subnet-nyrg9pkl
targetVpcId: vpc-jktad5e6
targetSubnetId: subnet-jdzuvvvb
Example coming soon!
Create BdrcDisasterRecoveryVpcMapping Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BdrcDisasterRecoveryVpcMapping(name: string, args: BdrcDisasterRecoveryVpcMappingArgs, opts?: CustomResourceOptions);@overload
def BdrcDisasterRecoveryVpcMapping(resource_name: str,
args: BdrcDisasterRecoveryVpcMappingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BdrcDisasterRecoveryVpcMapping(resource_name: str,
opts: Optional[ResourceOptions] = None,
site_pair_id: Optional[str] = None,
source_subnet_id: Optional[str] = None,
source_vpc_id: Optional[str] = None,
target_subnet_id: Optional[str] = None,
target_vpc_id: Optional[str] = None,
bdrc_disaster_recovery_vpc_mapping_id: Optional[str] = None)func NewBdrcDisasterRecoveryVpcMapping(ctx *Context, name string, args BdrcDisasterRecoveryVpcMappingArgs, opts ...ResourceOption) (*BdrcDisasterRecoveryVpcMapping, error)public BdrcDisasterRecoveryVpcMapping(string name, BdrcDisasterRecoveryVpcMappingArgs args, CustomResourceOptions? opts = null)
public BdrcDisasterRecoveryVpcMapping(String name, BdrcDisasterRecoveryVpcMappingArgs args)
public BdrcDisasterRecoveryVpcMapping(String name, BdrcDisasterRecoveryVpcMappingArgs args, CustomResourceOptions options)
type: tencentcloud:BdrcDisasterRecoveryVpcMapping
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_bdrc_disaster_recovery_vpc_mapping" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args BdrcDisasterRecoveryVpcMappingArgs
- 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 BdrcDisasterRecoveryVpcMappingArgs
- 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 BdrcDisasterRecoveryVpcMappingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BdrcDisasterRecoveryVpcMappingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BdrcDisasterRecoveryVpcMappingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BdrcDisasterRecoveryVpcMapping 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 BdrcDisasterRecoveryVpcMapping resource accepts the following input properties:
- Site
Pair stringId - Site pair ID of the disaster recovery VPC mapping.
- Source
Subnet stringId - Source subnet ID of the disaster recovery VPC mapping.
- Source
Vpc stringId - Source VPC ID of the disaster recovery VPC mapping.
- Target
Subnet stringId - Target subnet ID of the disaster recovery VPC mapping.
- Target
Vpc stringId - Target VPC ID of the disaster recovery VPC mapping.
- Bdrc
Disaster stringRecovery Vpc Mapping Id - ID of the resource.
- Site
Pair stringId - Site pair ID of the disaster recovery VPC mapping.
- Source
Subnet stringId - Source subnet ID of the disaster recovery VPC mapping.
- Source
Vpc stringId - Source VPC ID of the disaster recovery VPC mapping.
- Target
Subnet stringId - Target subnet ID of the disaster recovery VPC mapping.
- Target
Vpc stringId - Target VPC ID of the disaster recovery VPC mapping.
- Bdrc
Disaster stringRecovery Vpc Mapping Id - ID of the resource.
- site_
pair_ stringid - Site pair ID of the disaster recovery VPC mapping.
- source_
subnet_ stringid - Source subnet ID of the disaster recovery VPC mapping.
- source_
vpc_ stringid - Source VPC ID of the disaster recovery VPC mapping.
- target_
subnet_ stringid - Target subnet ID of the disaster recovery VPC mapping.
- target_
vpc_ stringid - Target VPC ID of the disaster recovery VPC mapping.
- bdrc_
disaster_ stringrecovery_ vpc_ mapping_ id - ID of the resource.
- site
Pair StringId - Site pair ID of the disaster recovery VPC mapping.
- source
Subnet StringId - Source subnet ID of the disaster recovery VPC mapping.
- source
Vpc StringId - Source VPC ID of the disaster recovery VPC mapping.
- target
Subnet StringId - Target subnet ID of the disaster recovery VPC mapping.
- target
Vpc StringId - Target VPC ID of the disaster recovery VPC mapping.
- bdrc
Disaster StringRecovery Vpc Mapping Id - ID of the resource.
- site
Pair stringId - Site pair ID of the disaster recovery VPC mapping.
- source
Subnet stringId - Source subnet ID of the disaster recovery VPC mapping.
- source
Vpc stringId - Source VPC ID of the disaster recovery VPC mapping.
- target
Subnet stringId - Target subnet ID of the disaster recovery VPC mapping.
- target
Vpc stringId - Target VPC ID of the disaster recovery VPC mapping.
- bdrc
Disaster stringRecovery Vpc Mapping Id - ID of the resource.
- site_
pair_ strid - Site pair ID of the disaster recovery VPC mapping.
- source_
subnet_ strid - Source subnet ID of the disaster recovery VPC mapping.
- source_
vpc_ strid - Source VPC ID of the disaster recovery VPC mapping.
- target_
subnet_ strid - Target subnet ID of the disaster recovery VPC mapping.
- target_
vpc_ strid - Target VPC ID of the disaster recovery VPC mapping.
- bdrc_
disaster_ strrecovery_ vpc_ mapping_ id - ID of the resource.
- site
Pair StringId - Site pair ID of the disaster recovery VPC mapping.
- source
Subnet StringId - Source subnet ID of the disaster recovery VPC mapping.
- source
Vpc StringId - Source VPC ID of the disaster recovery VPC mapping.
- target
Subnet StringId - Target subnet ID of the disaster recovery VPC mapping.
- target
Vpc StringId - Target VPC ID of the disaster recovery VPC mapping.
- bdrc
Disaster StringRecovery Vpc Mapping Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the BdrcDisasterRecoveryVpcMapping resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Life
State string - Lifecycle state.
- Status string
- Mapping status.
- Vpc
Mapping doubleId - Mapping rule primary key ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Life
State string - Lifecycle state.
- Status string
- Mapping status.
- Vpc
Mapping float64Id - Mapping rule primary key ID.
- id string
- The provider-assigned unique ID for this managed resource.
- life_
state string - Lifecycle state.
- status string
- Mapping status.
- vpc_
mapping_ numberid - Mapping rule primary key ID.
- id String
- The provider-assigned unique ID for this managed resource.
- life
State String - Lifecycle state.
- status String
- Mapping status.
- vpc
Mapping DoubleId - Mapping rule primary key ID.
- id string
- The provider-assigned unique ID for this managed resource.
- life
State string - Lifecycle state.
- status string
- Mapping status.
- vpc
Mapping numberId - Mapping rule primary key ID.
- id str
- The provider-assigned unique ID for this managed resource.
- life_
state str - Lifecycle state.
- status str
- Mapping status.
- vpc_
mapping_ floatid - Mapping rule primary key ID.
- id String
- The provider-assigned unique ID for this managed resource.
- life
State String - Lifecycle state.
- status String
- Mapping status.
- vpc
Mapping NumberId - Mapping rule primary key ID.
Look up Existing BdrcDisasterRecoveryVpcMapping Resource
Get an existing BdrcDisasterRecoveryVpcMapping 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?: BdrcDisasterRecoveryVpcMappingState, opts?: CustomResourceOptions): BdrcDisasterRecoveryVpcMapping@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bdrc_disaster_recovery_vpc_mapping_id: Optional[str] = None,
life_state: Optional[str] = None,
site_pair_id: Optional[str] = None,
source_subnet_id: Optional[str] = None,
source_vpc_id: Optional[str] = None,
status: Optional[str] = None,
target_subnet_id: Optional[str] = None,
target_vpc_id: Optional[str] = None,
vpc_mapping_id: Optional[float] = None) -> BdrcDisasterRecoveryVpcMappingfunc GetBdrcDisasterRecoveryVpcMapping(ctx *Context, name string, id IDInput, state *BdrcDisasterRecoveryVpcMappingState, opts ...ResourceOption) (*BdrcDisasterRecoveryVpcMapping, error)public static BdrcDisasterRecoveryVpcMapping Get(string name, Input<string> id, BdrcDisasterRecoveryVpcMappingState? state, CustomResourceOptions? opts = null)public static BdrcDisasterRecoveryVpcMapping get(String name, Output<String> id, BdrcDisasterRecoveryVpcMappingState state, CustomResourceOptions options)resources: _: type: tencentcloud:BdrcDisasterRecoveryVpcMapping get: id: ${id}import {
to = tencentcloud_bdrc_disaster_recovery_vpc_mapping.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.
- Bdrc
Disaster stringRecovery Vpc Mapping Id - ID of the resource.
- Life
State string - Lifecycle state.
- Site
Pair stringId - Site pair ID of the disaster recovery VPC mapping.
- Source
Subnet stringId - Source subnet ID of the disaster recovery VPC mapping.
- Source
Vpc stringId - Source VPC ID of the disaster recovery VPC mapping.
- Status string
- Mapping status.
- Target
Subnet stringId - Target subnet ID of the disaster recovery VPC mapping.
- Target
Vpc stringId - Target VPC ID of the disaster recovery VPC mapping.
- Vpc
Mapping doubleId - Mapping rule primary key ID.
- Bdrc
Disaster stringRecovery Vpc Mapping Id - ID of the resource.
- Life
State string - Lifecycle state.
- Site
Pair stringId - Site pair ID of the disaster recovery VPC mapping.
- Source
Subnet stringId - Source subnet ID of the disaster recovery VPC mapping.
- Source
Vpc stringId - Source VPC ID of the disaster recovery VPC mapping.
- Status string
- Mapping status.
- Target
Subnet stringId - Target subnet ID of the disaster recovery VPC mapping.
- Target
Vpc stringId - Target VPC ID of the disaster recovery VPC mapping.
- Vpc
Mapping float64Id - Mapping rule primary key ID.
- bdrc_
disaster_ stringrecovery_ vpc_ mapping_ id - ID of the resource.
- life_
state string - Lifecycle state.
- site_
pair_ stringid - Site pair ID of the disaster recovery VPC mapping.
- source_
subnet_ stringid - Source subnet ID of the disaster recovery VPC mapping.
- source_
vpc_ stringid - Source VPC ID of the disaster recovery VPC mapping.
- status string
- Mapping status.
- target_
subnet_ stringid - Target subnet ID of the disaster recovery VPC mapping.
- target_
vpc_ stringid - Target VPC ID of the disaster recovery VPC mapping.
- vpc_
mapping_ numberid - Mapping rule primary key ID.
- bdrc
Disaster StringRecovery Vpc Mapping Id - ID of the resource.
- life
State String - Lifecycle state.
- site
Pair StringId - Site pair ID of the disaster recovery VPC mapping.
- source
Subnet StringId - Source subnet ID of the disaster recovery VPC mapping.
- source
Vpc StringId - Source VPC ID of the disaster recovery VPC mapping.
- status String
- Mapping status.
- target
Subnet StringId - Target subnet ID of the disaster recovery VPC mapping.
- target
Vpc StringId - Target VPC ID of the disaster recovery VPC mapping.
- vpc
Mapping DoubleId - Mapping rule primary key ID.
- bdrc
Disaster stringRecovery Vpc Mapping Id - ID of the resource.
- life
State string - Lifecycle state.
- site
Pair stringId - Site pair ID of the disaster recovery VPC mapping.
- source
Subnet stringId - Source subnet ID of the disaster recovery VPC mapping.
- source
Vpc stringId - Source VPC ID of the disaster recovery VPC mapping.
- status string
- Mapping status.
- target
Subnet stringId - Target subnet ID of the disaster recovery VPC mapping.
- target
Vpc stringId - Target VPC ID of the disaster recovery VPC mapping.
- vpc
Mapping numberId - Mapping rule primary key ID.
- bdrc_
disaster_ strrecovery_ vpc_ mapping_ id - ID of the resource.
- life_
state str - Lifecycle state.
- site_
pair_ strid - Site pair ID of the disaster recovery VPC mapping.
- source_
subnet_ strid - Source subnet ID of the disaster recovery VPC mapping.
- source_
vpc_ strid - Source VPC ID of the disaster recovery VPC mapping.
- status str
- Mapping status.
- target_
subnet_ strid - Target subnet ID of the disaster recovery VPC mapping.
- target_
vpc_ strid - Target VPC ID of the disaster recovery VPC mapping.
- vpc_
mapping_ floatid - Mapping rule primary key ID.
- bdrc
Disaster StringRecovery Vpc Mapping Id - ID of the resource.
- life
State String - Lifecycle state.
- site
Pair StringId - Site pair ID of the disaster recovery VPC mapping.
- source
Subnet StringId - Source subnet ID of the disaster recovery VPC mapping.
- source
Vpc StringId - Source VPC ID of the disaster recovery VPC mapping.
- status String
- Mapping status.
- target
Subnet StringId - Target subnet ID of the disaster recovery VPC mapping.
- target
Vpc StringId - Target VPC ID of the disaster recovery VPC mapping.
- vpc
Mapping NumberId - Mapping rule primary key ID.
Import
BDRC disaster recovery VPC mapping can be imported using the compound id sitePairId#vpcMappingId, e.g.
$ pulumi import tencentcloud:index/bdrcDisasterRecoveryVpcMapping:BdrcDisasterRecoveryVpcMapping example sitepair-1sxvs5oj#13
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