1. Registry
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. BdrcDisasterRecoveryVpcMapping
Viewing docs for tencentcloud 1.83.33
published on Monday, Sep 21, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.83.33
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:

    SitePairId string
    Site pair ID of the disaster recovery VPC mapping.
    SourceSubnetId string
    Source subnet ID of the disaster recovery VPC mapping.
    SourceVpcId string
    Source VPC ID of the disaster recovery VPC mapping.
    TargetSubnetId string
    Target subnet ID of the disaster recovery VPC mapping.
    TargetVpcId string
    Target VPC ID of the disaster recovery VPC mapping.
    BdrcDisasterRecoveryVpcMappingId string
    ID of the resource.
    SitePairId string
    Site pair ID of the disaster recovery VPC mapping.
    SourceSubnetId string
    Source subnet ID of the disaster recovery VPC mapping.
    SourceVpcId string
    Source VPC ID of the disaster recovery VPC mapping.
    TargetSubnetId string
    Target subnet ID of the disaster recovery VPC mapping.
    TargetVpcId string
    Target VPC ID of the disaster recovery VPC mapping.
    BdrcDisasterRecoveryVpcMappingId string
    ID of the resource.
    site_pair_id string
    Site pair ID of the disaster recovery VPC mapping.
    source_subnet_id string
    Source subnet ID of the disaster recovery VPC mapping.
    source_vpc_id string
    Source VPC ID of the disaster recovery VPC mapping.
    target_subnet_id string
    Target subnet ID of the disaster recovery VPC mapping.
    target_vpc_id string
    Target VPC ID of the disaster recovery VPC mapping.
    bdrc_disaster_recovery_vpc_mapping_id string
    ID of the resource.
    sitePairId String
    Site pair ID of the disaster recovery VPC mapping.
    sourceSubnetId String
    Source subnet ID of the disaster recovery VPC mapping.
    sourceVpcId String
    Source VPC ID of the disaster recovery VPC mapping.
    targetSubnetId String
    Target subnet ID of the disaster recovery VPC mapping.
    targetVpcId String
    Target VPC ID of the disaster recovery VPC mapping.
    bdrcDisasterRecoveryVpcMappingId String
    ID of the resource.
    sitePairId string
    Site pair ID of the disaster recovery VPC mapping.
    sourceSubnetId string
    Source subnet ID of the disaster recovery VPC mapping.
    sourceVpcId string
    Source VPC ID of the disaster recovery VPC mapping.
    targetSubnetId string
    Target subnet ID of the disaster recovery VPC mapping.
    targetVpcId string
    Target VPC ID of the disaster recovery VPC mapping.
    bdrcDisasterRecoveryVpcMappingId string
    ID of the resource.
    site_pair_id str
    Site pair ID of the disaster recovery VPC mapping.
    source_subnet_id str
    Source subnet ID of the disaster recovery VPC mapping.
    source_vpc_id str
    Source VPC ID of the disaster recovery VPC mapping.
    target_subnet_id str
    Target subnet ID of the disaster recovery VPC mapping.
    target_vpc_id str
    Target VPC ID of the disaster recovery VPC mapping.
    bdrc_disaster_recovery_vpc_mapping_id str
    ID of the resource.
    sitePairId String
    Site pair ID of the disaster recovery VPC mapping.
    sourceSubnetId String
    Source subnet ID of the disaster recovery VPC mapping.
    sourceVpcId String
    Source VPC ID of the disaster recovery VPC mapping.
    targetSubnetId String
    Target subnet ID of the disaster recovery VPC mapping.
    targetVpcId String
    Target VPC ID of the disaster recovery VPC mapping.
    bdrcDisasterRecoveryVpcMappingId String
    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.
    LifeState string
    Lifecycle state.
    Status string
    Mapping status.
    VpcMappingId double
    Mapping rule primary key ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifeState string
    Lifecycle state.
    Status string
    Mapping status.
    VpcMappingId float64
    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_id number
    Mapping rule primary key ID.
    id String
    The provider-assigned unique ID for this managed resource.
    lifeState String
    Lifecycle state.
    status String
    Mapping status.
    vpcMappingId Double
    Mapping rule primary key ID.
    id string
    The provider-assigned unique ID for this managed resource.
    lifeState string
    Lifecycle state.
    status string
    Mapping status.
    vpcMappingId number
    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_id float
    Mapping rule primary key ID.
    id String
    The provider-assigned unique ID for this managed resource.
    lifeState String
    Lifecycle state.
    status String
    Mapping status.
    vpcMappingId Number
    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) -> BdrcDisasterRecoveryVpcMapping
    func 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.
    The following state arguments are supported:
    BdrcDisasterRecoveryVpcMappingId string
    ID of the resource.
    LifeState string
    Lifecycle state.
    SitePairId string
    Site pair ID of the disaster recovery VPC mapping.
    SourceSubnetId string
    Source subnet ID of the disaster recovery VPC mapping.
    SourceVpcId string
    Source VPC ID of the disaster recovery VPC mapping.
    Status string
    Mapping status.
    TargetSubnetId string
    Target subnet ID of the disaster recovery VPC mapping.
    TargetVpcId string
    Target VPC ID of the disaster recovery VPC mapping.
    VpcMappingId double
    Mapping rule primary key ID.
    BdrcDisasterRecoveryVpcMappingId string
    ID of the resource.
    LifeState string
    Lifecycle state.
    SitePairId string
    Site pair ID of the disaster recovery VPC mapping.
    SourceSubnetId string
    Source subnet ID of the disaster recovery VPC mapping.
    SourceVpcId string
    Source VPC ID of the disaster recovery VPC mapping.
    Status string
    Mapping status.
    TargetSubnetId string
    Target subnet ID of the disaster recovery VPC mapping.
    TargetVpcId string
    Target VPC ID of the disaster recovery VPC mapping.
    VpcMappingId float64
    Mapping rule primary key ID.
    bdrc_disaster_recovery_vpc_mapping_id string
    ID of the resource.
    life_state string
    Lifecycle state.
    site_pair_id string
    Site pair ID of the disaster recovery VPC mapping.
    source_subnet_id string
    Source subnet ID of the disaster recovery VPC mapping.
    source_vpc_id string
    Source VPC ID of the disaster recovery VPC mapping.
    status string
    Mapping status.
    target_subnet_id string
    Target subnet ID of the disaster recovery VPC mapping.
    target_vpc_id string
    Target VPC ID of the disaster recovery VPC mapping.
    vpc_mapping_id number
    Mapping rule primary key ID.
    bdrcDisasterRecoveryVpcMappingId String
    ID of the resource.
    lifeState String
    Lifecycle state.
    sitePairId String
    Site pair ID of the disaster recovery VPC mapping.
    sourceSubnetId String
    Source subnet ID of the disaster recovery VPC mapping.
    sourceVpcId String
    Source VPC ID of the disaster recovery VPC mapping.
    status String
    Mapping status.
    targetSubnetId String
    Target subnet ID of the disaster recovery VPC mapping.
    targetVpcId String
    Target VPC ID of the disaster recovery VPC mapping.
    vpcMappingId Double
    Mapping rule primary key ID.
    bdrcDisasterRecoveryVpcMappingId string
    ID of the resource.
    lifeState string
    Lifecycle state.
    sitePairId string
    Site pair ID of the disaster recovery VPC mapping.
    sourceSubnetId string
    Source subnet ID of the disaster recovery VPC mapping.
    sourceVpcId string
    Source VPC ID of the disaster recovery VPC mapping.
    status string
    Mapping status.
    targetSubnetId string
    Target subnet ID of the disaster recovery VPC mapping.
    targetVpcId string
    Target VPC ID of the disaster recovery VPC mapping.
    vpcMappingId number
    Mapping rule primary key ID.
    bdrc_disaster_recovery_vpc_mapping_id str
    ID of the resource.
    life_state str
    Lifecycle state.
    site_pair_id str
    Site pair ID of the disaster recovery VPC mapping.
    source_subnet_id str
    Source subnet ID of the disaster recovery VPC mapping.
    source_vpc_id str
    Source VPC ID of the disaster recovery VPC mapping.
    status str
    Mapping status.
    target_subnet_id str
    Target subnet ID of the disaster recovery VPC mapping.
    target_vpc_id str
    Target VPC ID of the disaster recovery VPC mapping.
    vpc_mapping_id float
    Mapping rule primary key ID.
    bdrcDisasterRecoveryVpcMappingId String
    ID of the resource.
    lifeState String
    Lifecycle state.
    sitePairId String
    Site pair ID of the disaster recovery VPC mapping.
    sourceSubnetId String
    Source subnet ID of the disaster recovery VPC mapping.
    sourceVpcId String
    Source VPC ID of the disaster recovery VPC mapping.
    status String
    Mapping status.
    targetSubnetId String
    Target subnet ID of the disaster recovery VPC mapping.
    targetVpcId String
    Target VPC ID of the disaster recovery VPC mapping.
    vpcMappingId Number
    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 tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.83.33
    published on Monday, Sep 21, 2026 by tencentcloudstack

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial