1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. transitrouter
  5. VpnAttachment
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus

    通过在VPN连接的IPsec连接和中转路由器之间建立连接,可以实现VPN连通的网络与中转路由器的私网互通。

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
    
    const transitRouterVpnAttachmentDemo = new bytepluscc.transitrouter.VpnAttachment("TransitRouterVpnAttachmentDemo", {
        description: "test",
        tags: [{
            key: "env",
            value: "test",
        }],
        transitRouterAttachmentName: "ccapi-test-1",
        transitRouterId: "tr-mjl8zkxxxxxsmt1boobol4",
        transitRouterRouteTableId: "tr-rtb-mjlxxxxxo5smt1bnewrhh",
        vpnConnectionId: "vgc-ij0yxxxxx474o8cux0n08t",
        zoneId: "cn-beijing-a",
    });
    
    import pulumi
    import pulumi_bytepluscc as bytepluscc
    
    transit_router_vpn_attachment_demo = bytepluscc.transitrouter.VpnAttachment("TransitRouterVpnAttachmentDemo",
        description="test",
        tags=[{
            "key": "env",
            "value": "test",
        }],
        transit_router_attachment_name="ccapi-test-1",
        transit_router_id="tr-mjl8zkxxxxxsmt1boobol4",
        transit_router_route_table_id="tr-rtb-mjlxxxxxo5smt1bnewrhh",
        vpn_connection_id="vgc-ij0yxxxxx474o8cux0n08t",
        zone_id="cn-beijing-a")
    
    package main
    
    import (
    	"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/transitrouter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := transitrouter.NewVpnAttachment(ctx, "TransitRouterVpnAttachmentDemo", &transitrouter.VpnAttachmentArgs{
    			Description: pulumi.String("test"),
    			Tags: transitrouter.VpnAttachmentTagArray{
    				&transitrouter.VpnAttachmentTagArgs{
    					Key:   pulumi.String("env"),
    					Value: pulumi.String("test"),
    				},
    			},
    			TransitRouterAttachmentName: pulumi.String("ccapi-test-1"),
    			TransitRouterId:             pulumi.String("tr-mjl8zkxxxxxsmt1boobol4"),
    			TransitRouterRouteTableId:   pulumi.String("tr-rtb-mjlxxxxxo5smt1bnewrhh"),
    			VpnConnectionId:             pulumi.String("vgc-ij0yxxxxx474o8cux0n08t"),
    			ZoneId:                      pulumi.String("cn-beijing-a"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
    
    return await Deployment.RunAsync(() => 
    {
        var transitRouterVpnAttachmentDemo = new Bytepluscc.Transitrouter.VpnAttachment("TransitRouterVpnAttachmentDemo", new()
        {
            Description = "test",
            Tags = new[]
            {
                new Bytepluscc.Transitrouter.Inputs.VpnAttachmentTagArgs
                {
                    Key = "env",
                    Value = "test",
                },
            },
            TransitRouterAttachmentName = "ccapi-test-1",
            TransitRouterId = "tr-mjl8zkxxxxxsmt1boobol4",
            TransitRouterRouteTableId = "tr-rtb-mjlxxxxxo5smt1bnewrhh",
            VpnConnectionId = "vgc-ij0yxxxxx474o8cux0n08t",
            ZoneId = "cn-beijing-a",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.byteplus.bytepluscc.transitrouter.VpnAttachment;
    import com.byteplus.bytepluscc.transitrouter.VpnAttachmentArgs;
    import com.pulumi.bytepluscc.transitrouter.inputs.VpnAttachmentTagArgs;
    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 transitRouterVpnAttachmentDemo = new VpnAttachment("transitRouterVpnAttachmentDemo", VpnAttachmentArgs.builder()
                .description("test")
                .tags(VpnAttachmentTagArgs.builder()
                    .key("env")
                    .value("test")
                    .build())
                .transitRouterAttachmentName("ccapi-test-1")
                .transitRouterId("tr-mjl8zkxxxxxsmt1boobol4")
                .transitRouterRouteTableId("tr-rtb-mjlxxxxxo5smt1bnewrhh")
                .vpnConnectionId("vgc-ij0yxxxxx474o8cux0n08t")
                .zoneId("cn-beijing-a")
                .build());
    
        }
    }
    
    resources:
      transitRouterVpnAttachmentDemo:
        type: bytepluscc:transitrouter:VpnAttachment
        name: TransitRouterVpnAttachmentDemo
        properties:
          description: test
          tags:
            - key: env
              value: test
          transitRouterAttachmentName: ccapi-test-1
          transitRouterId: tr-mjl8zkxxxxxsmt1boobol4
          transitRouterRouteTableId: tr-rtb-mjlxxxxxo5smt1bnewrhh
          vpnConnectionId: vgc-ij0yxxxxx474o8cux0n08t
          zoneId: cn-beijing-a
    

    Create VpnAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpnAttachment(name: string, args: VpnAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def VpnAttachment(resource_name: str,
                      args: VpnAttachmentArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpnAttachment(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      transit_router_id: Optional[str] = None,
                      vpn_connection_id: Optional[str] = None,
                      zone_id: Optional[str] = None,
                      description: Optional[str] = None,
                      health_check_revoke_route_enabled: Optional[bool] = None,
                      tags: Optional[Sequence[VpnAttachmentTagArgs]] = None,
                      transit_router_attachment_name: Optional[str] = None,
                      transit_router_route_table_id: Optional[str] = None)
    func NewVpnAttachment(ctx *Context, name string, args VpnAttachmentArgs, opts ...ResourceOption) (*VpnAttachment, error)
    public VpnAttachment(string name, VpnAttachmentArgs args, CustomResourceOptions? opts = null)
    public VpnAttachment(String name, VpnAttachmentArgs args)
    public VpnAttachment(String name, VpnAttachmentArgs args, CustomResourceOptions options)
    
    type: bytepluscc:transitrouter:VpnAttachment
    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 VpnAttachmentArgs
    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 VpnAttachmentArgs
    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 VpnAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpnAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpnAttachmentArgs
    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 vpnAttachmentResource = new Bytepluscc.Transitrouter.VpnAttachment("vpnAttachmentResource", new()
    {
        TransitRouterId = "string",
        VpnConnectionId = "string",
        ZoneId = "string",
        Description = "string",
        HealthCheckRevokeRouteEnabled = false,
        Tags = new[]
        {
            new Bytepluscc.Transitrouter.Inputs.VpnAttachmentTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        TransitRouterAttachmentName = "string",
        TransitRouterRouteTableId = "string",
    });
    
    example, err := transitrouter.NewVpnAttachment(ctx, "vpnAttachmentResource", &transitrouter.VpnAttachmentArgs{
    	TransitRouterId:               pulumi.String("string"),
    	VpnConnectionId:               pulumi.String("string"),
    	ZoneId:                        pulumi.String("string"),
    	Description:                   pulumi.String("string"),
    	HealthCheckRevokeRouteEnabled: pulumi.Bool(false),
    	Tags: transitrouter.VpnAttachmentTagArray{
    		&transitrouter.VpnAttachmentTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	TransitRouterAttachmentName: pulumi.String("string"),
    	TransitRouterRouteTableId:   pulumi.String("string"),
    })
    
    var vpnAttachmentResource = new VpnAttachment("vpnAttachmentResource", VpnAttachmentArgs.builder()
        .transitRouterId("string")
        .vpnConnectionId("string")
        .zoneId("string")
        .description("string")
        .healthCheckRevokeRouteEnabled(false)
        .tags(VpnAttachmentTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .transitRouterAttachmentName("string")
        .transitRouterRouteTableId("string")
        .build());
    
    vpn_attachment_resource = bytepluscc.transitrouter.VpnAttachment("vpnAttachmentResource",
        transit_router_id="string",
        vpn_connection_id="string",
        zone_id="string",
        description="string",
        health_check_revoke_route_enabled=False,
        tags=[{
            "key": "string",
            "value": "string",
        }],
        transit_router_attachment_name="string",
        transit_router_route_table_id="string")
    
    const vpnAttachmentResource = new bytepluscc.transitrouter.VpnAttachment("vpnAttachmentResource", {
        transitRouterId: "string",
        vpnConnectionId: "string",
        zoneId: "string",
        description: "string",
        healthCheckRevokeRouteEnabled: false,
        tags: [{
            key: "string",
            value: "string",
        }],
        transitRouterAttachmentName: "string",
        transitRouterRouteTableId: "string",
    });
    
    type: bytepluscc:transitrouter:VpnAttachment
    properties:
        description: string
        healthCheckRevokeRouteEnabled: false
        tags:
            - key: string
              value: string
        transitRouterAttachmentName: string
        transitRouterId: string
        transitRouterRouteTableId: string
        vpnConnectionId: string
        zoneId: string
    

    VpnAttachment 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 VpnAttachment resource accepts the following input properties:

    TransitRouterId string
    中转路由器实例的ID。
    VpnConnectionId string
    IPsec连接的ID。
    ZoneId string
    IPsec连接所属可用区的ID。
    Description string
    网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
    HealthCheckRevokeRouteEnabled bool
    是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
    Tags List<Byteplus.VpnAttachmentTag>
    TransitRouterAttachmentName string
    网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
    TransitRouterRouteTableId string
    关联的TR路由表ID。
    TransitRouterId string
    中转路由器实例的ID。
    VpnConnectionId string
    IPsec连接的ID。
    ZoneId string
    IPsec连接所属可用区的ID。
    Description string
    网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
    HealthCheckRevokeRouteEnabled bool
    是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
    Tags []VpnAttachmentTagArgs
    TransitRouterAttachmentName string
    网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
    TransitRouterRouteTableId string
    关联的TR路由表ID。
    transitRouterId String
    中转路由器实例的ID。
    vpnConnectionId String
    IPsec连接的ID。
    zoneId String
    IPsec连接所属可用区的ID。
    description String
    网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
    healthCheckRevokeRouteEnabled Boolean
    是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
    tags List<VpnAttachmentTag>
    transitRouterAttachmentName String
    网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
    transitRouterRouteTableId String
    关联的TR路由表ID。
    transitRouterId string
    中转路由器实例的ID。
    vpnConnectionId string
    IPsec连接的ID。
    zoneId string
    IPsec连接所属可用区的ID。
    description string
    网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
    healthCheckRevokeRouteEnabled boolean
    是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
    tags VpnAttachmentTag[]
    transitRouterAttachmentName string
    网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
    transitRouterRouteTableId string
    关联的TR路由表ID。
    transit_router_id str
    中转路由器实例的ID。
    vpn_connection_id str
    IPsec连接的ID。
    zone_id str
    IPsec连接所属可用区的ID。
    description str
    网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
    health_check_revoke_route_enabled bool
    是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
    tags Sequence[VpnAttachmentTagArgs]
    transit_router_attachment_name str
    网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
    transit_router_route_table_id str
    关联的TR路由表ID。
    transitRouterId String
    中转路由器实例的ID。
    vpnConnectionId String
    IPsec连接的ID。
    zoneId String
    IPsec连接所属可用区的ID。
    description String
    网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
    healthCheckRevokeRouteEnabled Boolean
    是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
    tags List<Property Map>
    transitRouterAttachmentName String
    网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
    transitRouterRouteTableId String
    关联的TR路由表ID。

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpnAttachment resource produces the following output properties:

    AutoPublishRouteEnabled bool
    是否自动同步TR路由到网络实例路由表中。
    CreatedTime string
    创建时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv6Enabled bool
    是否开启IPv6功能。
    Status string
    网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
    TransitRouterAttachmentId string
    网络实例连接的ID。
    UpdatedTime string
    更新时间。
    AutoPublishRouteEnabled bool
    是否自动同步TR路由到网络实例路由表中。
    CreatedTime string
    创建时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv6Enabled bool
    是否开启IPv6功能。
    Status string
    网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
    TransitRouterAttachmentId string
    网络实例连接的ID。
    UpdatedTime string
    更新时间。
    autoPublishRouteEnabled Boolean
    是否自动同步TR路由到网络实例路由表中。
    createdTime String
    创建时间。
    id String
    The provider-assigned unique ID for this managed resource.
    ipv6Enabled Boolean
    是否开启IPv6功能。
    status String
    网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
    transitRouterAttachmentId String
    网络实例连接的ID。
    updatedTime String
    更新时间。
    autoPublishRouteEnabled boolean
    是否自动同步TR路由到网络实例路由表中。
    createdTime string
    创建时间。
    id string
    The provider-assigned unique ID for this managed resource.
    ipv6Enabled boolean
    是否开启IPv6功能。
    status string
    网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
    transitRouterAttachmentId string
    网络实例连接的ID。
    updatedTime string
    更新时间。
    auto_publish_route_enabled bool
    是否自动同步TR路由到网络实例路由表中。
    created_time str
    创建时间。
    id str
    The provider-assigned unique ID for this managed resource.
    ipv6_enabled bool
    是否开启IPv6功能。
    status str
    网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
    transit_router_attachment_id str
    网络实例连接的ID。
    updated_time str
    更新时间。
    autoPublishRouteEnabled Boolean
    是否自动同步TR路由到网络实例路由表中。
    createdTime String
    创建时间。
    id String
    The provider-assigned unique ID for this managed resource.
    ipv6Enabled Boolean
    是否开启IPv6功能。
    status String
    网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
    transitRouterAttachmentId String
    网络实例连接的ID。
    updatedTime String
    更新时间。

    Look up Existing VpnAttachment Resource

    Get an existing VpnAttachment 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?: VpnAttachmentState, opts?: CustomResourceOptions): VpnAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_publish_route_enabled: Optional[bool] = None,
            created_time: Optional[str] = None,
            description: Optional[str] = None,
            health_check_revoke_route_enabled: Optional[bool] = None,
            ipv6_enabled: Optional[bool] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[VpnAttachmentTagArgs]] = None,
            transit_router_attachment_id: Optional[str] = None,
            transit_router_attachment_name: Optional[str] = None,
            transit_router_id: Optional[str] = None,
            transit_router_route_table_id: Optional[str] = None,
            updated_time: Optional[str] = None,
            vpn_connection_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> VpnAttachment
    func GetVpnAttachment(ctx *Context, name string, id IDInput, state *VpnAttachmentState, opts ...ResourceOption) (*VpnAttachment, error)
    public static VpnAttachment Get(string name, Input<string> id, VpnAttachmentState? state, CustomResourceOptions? opts = null)
    public static VpnAttachment get(String name, Output<String> id, VpnAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: bytepluscc:transitrouter:VpnAttachment    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.
    The following state arguments are supported:
    AutoPublishRouteEnabled bool
    是否自动同步TR路由到网络实例路由表中。
    CreatedTime string
    创建时间。
    Description string
    网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
    HealthCheckRevokeRouteEnabled bool
    是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
    Ipv6Enabled bool
    是否开启IPv6功能。
    Status string
    网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
    Tags List<Byteplus.VpnAttachmentTag>
    TransitRouterAttachmentId string
    网络实例连接的ID。
    TransitRouterAttachmentName string
    网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
    TransitRouterId string
    中转路由器实例的ID。
    TransitRouterRouteTableId string
    关联的TR路由表ID。
    UpdatedTime string
    更新时间。
    VpnConnectionId string
    IPsec连接的ID。
    ZoneId string
    IPsec连接所属可用区的ID。
    AutoPublishRouteEnabled bool
    是否自动同步TR路由到网络实例路由表中。
    CreatedTime string
    创建时间。
    Description string
    网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
    HealthCheckRevokeRouteEnabled bool
    是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
    Ipv6Enabled bool
    是否开启IPv6功能。
    Status string
    网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
    Tags []VpnAttachmentTagArgs
    TransitRouterAttachmentId string
    网络实例连接的ID。
    TransitRouterAttachmentName string
    网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
    TransitRouterId string
    中转路由器实例的ID。
    TransitRouterRouteTableId string
    关联的TR路由表ID。
    UpdatedTime string
    更新时间。
    VpnConnectionId string
    IPsec连接的ID。
    ZoneId string
    IPsec连接所属可用区的ID。
    autoPublishRouteEnabled Boolean
    是否自动同步TR路由到网络实例路由表中。
    createdTime String
    创建时间。
    description String
    网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
    healthCheckRevokeRouteEnabled Boolean
    是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
    ipv6Enabled Boolean
    是否开启IPv6功能。
    status String
    网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
    tags List<VpnAttachmentTag>
    transitRouterAttachmentId String
    网络实例连接的ID。
    transitRouterAttachmentName String
    网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
    transitRouterId String
    中转路由器实例的ID。
    transitRouterRouteTableId String
    关联的TR路由表ID。
    updatedTime String
    更新时间。
    vpnConnectionId String
    IPsec连接的ID。
    zoneId String
    IPsec连接所属可用区的ID。
    autoPublishRouteEnabled boolean
    是否自动同步TR路由到网络实例路由表中。
    createdTime string
    创建时间。
    description string
    网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
    healthCheckRevokeRouteEnabled boolean
    是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
    ipv6Enabled boolean
    是否开启IPv6功能。
    status string
    网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
    tags VpnAttachmentTag[]
    transitRouterAttachmentId string
    网络实例连接的ID。
    transitRouterAttachmentName string
    网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
    transitRouterId string
    中转路由器实例的ID。
    transitRouterRouteTableId string
    关联的TR路由表ID。
    updatedTime string
    更新时间。
    vpnConnectionId string
    IPsec连接的ID。
    zoneId string
    IPsec连接所属可用区的ID。
    auto_publish_route_enabled bool
    是否自动同步TR路由到网络实例路由表中。
    created_time str
    创建时间。
    description str
    网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
    health_check_revoke_route_enabled bool
    是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
    ipv6_enabled bool
    是否开启IPv6功能。
    status str
    网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
    tags Sequence[VpnAttachmentTagArgs]
    transit_router_attachment_id str
    网络实例连接的ID。
    transit_router_attachment_name str
    网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
    transit_router_id str
    中转路由器实例的ID。
    transit_router_route_table_id str
    关联的TR路由表ID。
    updated_time str
    更新时间。
    vpn_connection_id str
    IPsec连接的ID。
    zone_id str
    IPsec连接所属可用区的ID。
    autoPublishRouteEnabled Boolean
    是否自动同步TR路由到网络实例路由表中。
    createdTime String
    创建时间。
    description String
    网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
    healthCheckRevokeRouteEnabled Boolean
    是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
    ipv6Enabled Boolean
    是否开启IPv6功能。
    status String
    网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
    tags List<Property Map>
    transitRouterAttachmentId String
    网络实例连接的ID。
    transitRouterAttachmentName String
    网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
    transitRouterId String
    中转路由器实例的ID。
    transitRouterRouteTableId String
    关联的TR路由表ID。
    updatedTime String
    更新时间。
    vpnConnectionId String
    IPsec连接的ID。
    zoneId String
    IPsec连接所属可用区的ID。

    Supporting Types

    VpnAttachmentTag, VpnAttachmentTagArgs

    Key string
    用户标签的标签键。
    Value string
    用户标签的标签值。
    Key string
    用户标签的标签键。
    Value string
    用户标签的标签值。
    key String
    用户标签的标签键。
    value String
    用户标签的标签值。
    key string
    用户标签的标签键。
    value string
    用户标签的标签值。
    key str
    用户标签的标签键。
    value str
    用户标签的标签值。
    key String
    用户标签的标签键。
    value String
    用户标签的标签值。

    Import

    $ pulumi import bytepluscc:transitrouter/vpnAttachment:VpnAttachment example "transit_router_id|transit_router_attachment_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.16
    published on Monday, Mar 9, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.