1. Packages
  2. Packages
  3. Bytepluscc Provider
  4. API Docs
  5. transitrouter
  6. DirectConnectGatewayAttachment
Viewing docs for bytepluscc v0.0.35
published on Monday, Jun 15, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.35
published on Monday, Jun 15, 2026 by Byteplus

    Direct connect gateway type network instance connection resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
    
    const directConnectGatewayAttachmentDemo = new bytepluscc.transitrouter.DirectConnectGatewayAttachment("DirectConnectGatewayAttachmentDemo", {
        directConnectGatewayId: "dcg-1714vlpplhxc1f*****",
        transitRouterAttachmentName: "test",
        transitRouterId: "tr-2d69n1k0brncw58ozfdh6y6xq***",
        description: "test",
        tags: [{
            key: "env",
            value: "test",
        }],
    });
    
    import pulumi
    import pulumi_bytepluscc as bytepluscc
    
    direct_connect_gateway_attachment_demo = bytepluscc.transitrouter.DirectConnectGatewayAttachment("DirectConnectGatewayAttachmentDemo",
        direct_connect_gateway_id="dcg-1714vlpplhxc1f*****",
        transit_router_attachment_name="test",
        transit_router_id="tr-2d69n1k0brncw58ozfdh6y6xq***",
        description="test",
        tags=[{
            "key": "env",
            "value": "test",
        }])
    
    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.NewDirectConnectGatewayAttachment(ctx, "DirectConnectGatewayAttachmentDemo", &transitrouter.DirectConnectGatewayAttachmentArgs{
    			DirectConnectGatewayId:      pulumi.String("dcg-1714vlpplhxc1f*****"),
    			TransitRouterAttachmentName: pulumi.String("test"),
    			TransitRouterId:             pulumi.String("tr-2d69n1k0brncw58ozfdh6y6xq***"),
    			Description:                 pulumi.String("test"),
    			Tags: transitrouter.DirectConnectGatewayAttachmentTagArray{
    				&transitrouter.DirectConnectGatewayAttachmentTagArgs{
    					Key:   pulumi.String("env"),
    					Value: pulumi.String("test"),
    				},
    			},
    		})
    		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 directConnectGatewayAttachmentDemo = new Bytepluscc.Transitrouter.DirectConnectGatewayAttachment("DirectConnectGatewayAttachmentDemo", new()
        {
            DirectConnectGatewayId = "dcg-1714vlpplhxc1f*****",
            TransitRouterAttachmentName = "test",
            TransitRouterId = "tr-2d69n1k0brncw58ozfdh6y6xq***",
            Description = "test",
            Tags = new[]
            {
                new Bytepluscc.Transitrouter.Inputs.DirectConnectGatewayAttachmentTagArgs
                {
                    Key = "env",
                    Value = "test",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.byteplus.bytepluscc.transitrouter.DirectConnectGatewayAttachment;
    import com.byteplus.bytepluscc.transitrouter.DirectConnectGatewayAttachmentArgs;
    import com.pulumi.bytepluscc.transitrouter.inputs.DirectConnectGatewayAttachmentTagArgs;
    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 directConnectGatewayAttachmentDemo = new DirectConnectGatewayAttachment("directConnectGatewayAttachmentDemo", DirectConnectGatewayAttachmentArgs.builder()
                .directConnectGatewayId("dcg-1714vlpplhxc1f*****")
                .transitRouterAttachmentName("test")
                .transitRouterId("tr-2d69n1k0brncw58ozfdh6y6xq***")
                .description("test")
                .tags(DirectConnectGatewayAttachmentTagArgs.builder()
                    .key("env")
                    .value("test")
                    .build())
                .build());
    
        }
    }
    
    resources:
      directConnectGatewayAttachmentDemo:
        type: bytepluscc:transitrouter:DirectConnectGatewayAttachment
        name: DirectConnectGatewayAttachmentDemo
        properties:
          directConnectGatewayId: dcg-1714vlpplhxc1f*****
          transitRouterAttachmentName: test
          transitRouterId: tr-2d69n1k0brncw58ozfdh6y6xq***
          description: test
          tags:
            - key: env
              value: test
    
    Example coming soon!
    

    Create DirectConnectGatewayAttachment Resource

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

    Constructor syntax

    new DirectConnectGatewayAttachment(name: string, args: DirectConnectGatewayAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def DirectConnectGatewayAttachment(resource_name: str,
                                       args: DirectConnectGatewayAttachmentArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def DirectConnectGatewayAttachment(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       direct_connect_gateway_id: Optional[str] = None,
                                       transit_router_id: Optional[str] = None,
                                       description: Optional[str] = None,
                                       tags: Optional[Sequence[DirectConnectGatewayAttachmentTagArgs]] = None,
                                       transit_router_attachment_name: Optional[str] = None)
    func NewDirectConnectGatewayAttachment(ctx *Context, name string, args DirectConnectGatewayAttachmentArgs, opts ...ResourceOption) (*DirectConnectGatewayAttachment, error)
    public DirectConnectGatewayAttachment(string name, DirectConnectGatewayAttachmentArgs args, CustomResourceOptions? opts = null)
    public DirectConnectGatewayAttachment(String name, DirectConnectGatewayAttachmentArgs args)
    public DirectConnectGatewayAttachment(String name, DirectConnectGatewayAttachmentArgs args, CustomResourceOptions options)
    
    type: bytepluscc:transitrouter:DirectConnectGatewayAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "bytepluscc_transitrouter_directconnectgatewayattachment" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args DirectConnectGatewayAttachmentArgs
    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 DirectConnectGatewayAttachmentArgs
    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 DirectConnectGatewayAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DirectConnectGatewayAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DirectConnectGatewayAttachmentArgs
    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 directConnectGatewayAttachmentResource = new Bytepluscc.Transitrouter.DirectConnectGatewayAttachment("directConnectGatewayAttachmentResource", new()
    {
        DirectConnectGatewayId = "string",
        TransitRouterId = "string",
        Description = "string",
        Tags = new[]
        {
            new Bytepluscc.Transitrouter.Inputs.DirectConnectGatewayAttachmentTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        TransitRouterAttachmentName = "string",
    });
    
    example, err := transitrouter.NewDirectConnectGatewayAttachment(ctx, "directConnectGatewayAttachmentResource", &transitrouter.DirectConnectGatewayAttachmentArgs{
    	DirectConnectGatewayId: pulumi.String("string"),
    	TransitRouterId:        pulumi.String("string"),
    	Description:            pulumi.String("string"),
    	Tags: transitrouter.DirectConnectGatewayAttachmentTagArray{
    		&transitrouter.DirectConnectGatewayAttachmentTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	TransitRouterAttachmentName: pulumi.String("string"),
    })
    
    resource "bytepluscc_transitrouter_directconnectgatewayattachment" "directConnectGatewayAttachmentResource" {
      direct_connect_gateway_id = "string"
      transit_router_id         = "string"
      description               = "string"
      tags {
        key   = "string"
        value = "string"
      }
      transit_router_attachment_name = "string"
    }
    
    var directConnectGatewayAttachmentResource = new DirectConnectGatewayAttachment("directConnectGatewayAttachmentResource", DirectConnectGatewayAttachmentArgs.builder()
        .directConnectGatewayId("string")
        .transitRouterId("string")
        .description("string")
        .tags(DirectConnectGatewayAttachmentTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .transitRouterAttachmentName("string")
        .build());
    
    direct_connect_gateway_attachment_resource = bytepluscc.transitrouter.DirectConnectGatewayAttachment("directConnectGatewayAttachmentResource",
        direct_connect_gateway_id="string",
        transit_router_id="string",
        description="string",
        tags=[{
            "key": "string",
            "value": "string",
        }],
        transit_router_attachment_name="string")
    
    const directConnectGatewayAttachmentResource = new bytepluscc.transitrouter.DirectConnectGatewayAttachment("directConnectGatewayAttachmentResource", {
        directConnectGatewayId: "string",
        transitRouterId: "string",
        description: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
        transitRouterAttachmentName: "string",
    });
    
    type: bytepluscc:transitrouter:DirectConnectGatewayAttachment
    properties:
        description: string
        directConnectGatewayId: string
        tags:
            - key: string
              value: string
        transitRouterAttachmentName: string
        transitRouterId: string
    

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

    DirectConnectGatewayId string
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    TransitRouterId string
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    Description string
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    Tags List<Byteplus.DirectConnectGatewayAttachmentTag>
    TransitRouterAttachmentName string
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID
    DirectConnectGatewayId string
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    TransitRouterId string
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    Description string
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    Tags []DirectConnectGatewayAttachmentTagArgs
    TransitRouterAttachmentName string
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID
    direct_connect_gateway_id string
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    transit_router_id string
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    description string
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    tags list(object)
    transit_router_attachment_name string
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID
    directConnectGatewayId String
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    transitRouterId String
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    description String
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    tags List<DirectConnectGatewayAttachmentTag>
    transitRouterAttachmentName String
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID
    directConnectGatewayId string
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    transitRouterId string
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    description string
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    tags DirectConnectGatewayAttachmentTag[]
    transitRouterAttachmentName string
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID
    direct_connect_gateway_id str
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    transit_router_id str
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    description str
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    tags Sequence[DirectConnectGatewayAttachmentTagArgs]
    transit_router_attachment_name str
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID
    directConnectGatewayId String
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    transitRouterId String
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    description String
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    tags List<Property Map>
    transitRouterAttachmentName String
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID

    Outputs

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

    AccountId string
    Account ID to which the network instance connection belongs
    AutoPublishRouteEnabled bool
    Whether to automatically synchronize TR routes to the network instance route table
    Bandwidth int
    Maximum bandwidth of the network instance connection, in Gbps
    CreationTime string
    Creation time of the network instance connection
    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv6Enabled bool
    Whether to enable IPv6
    Status string
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    TransitRouterAttachmentId string
    Network instance connection ID
    UpdateTime string
    Most recent operation time of the network instance connection
    AccountId string
    Account ID to which the network instance connection belongs
    AutoPublishRouteEnabled bool
    Whether to automatically synchronize TR routes to the network instance route table
    Bandwidth int
    Maximum bandwidth of the network instance connection, in Gbps
    CreationTime string
    Creation time of the network instance connection
    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv6Enabled bool
    Whether to enable IPv6
    Status string
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    TransitRouterAttachmentId string
    Network instance connection ID
    UpdateTime string
    Most recent operation time of the network instance connection
    account_id string
    Account ID to which the network instance connection belongs
    auto_publish_route_enabled bool
    Whether to automatically synchronize TR routes to the network instance route table
    bandwidth number
    Maximum bandwidth of the network instance connection, in Gbps
    creation_time string
    Creation time of the network instance connection
    id string
    The provider-assigned unique ID for this managed resource.
    ipv6_enabled bool
    Whether to enable IPv6
    status string
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    transit_router_attachment_id string
    Network instance connection ID
    update_time string
    Most recent operation time of the network instance connection
    accountId String
    Account ID to which the network instance connection belongs
    autoPublishRouteEnabled Boolean
    Whether to automatically synchronize TR routes to the network instance route table
    bandwidth Integer
    Maximum bandwidth of the network instance connection, in Gbps
    creationTime String
    Creation time of the network instance connection
    id String
    The provider-assigned unique ID for this managed resource.
    ipv6Enabled Boolean
    Whether to enable IPv6
    status String
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    transitRouterAttachmentId String
    Network instance connection ID
    updateTime String
    Most recent operation time of the network instance connection
    accountId string
    Account ID to which the network instance connection belongs
    autoPublishRouteEnabled boolean
    Whether to automatically synchronize TR routes to the network instance route table
    bandwidth number
    Maximum bandwidth of the network instance connection, in Gbps
    creationTime string
    Creation time of the network instance connection
    id string
    The provider-assigned unique ID for this managed resource.
    ipv6Enabled boolean
    Whether to enable IPv6
    status string
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    transitRouterAttachmentId string
    Network instance connection ID
    updateTime string
    Most recent operation time of the network instance connection
    account_id str
    Account ID to which the network instance connection belongs
    auto_publish_route_enabled bool
    Whether to automatically synchronize TR routes to the network instance route table
    bandwidth int
    Maximum bandwidth of the network instance connection, in Gbps
    creation_time str
    Creation time of the network instance connection
    id str
    The provider-assigned unique ID for this managed resource.
    ipv6_enabled bool
    Whether to enable IPv6
    status str
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    transit_router_attachment_id str
    Network instance connection ID
    update_time str
    Most recent operation time of the network instance connection
    accountId String
    Account ID to which the network instance connection belongs
    autoPublishRouteEnabled Boolean
    Whether to automatically synchronize TR routes to the network instance route table
    bandwidth Number
    Maximum bandwidth of the network instance connection, in Gbps
    creationTime String
    Creation time of the network instance connection
    id String
    The provider-assigned unique ID for this managed resource.
    ipv6Enabled Boolean
    Whether to enable IPv6
    status String
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    transitRouterAttachmentId String
    Network instance connection ID
    updateTime String
    Most recent operation time of the network instance connection

    Look up Existing DirectConnectGatewayAttachment Resource

    Get an existing DirectConnectGatewayAttachment 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?: DirectConnectGatewayAttachmentState, opts?: CustomResourceOptions): DirectConnectGatewayAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            auto_publish_route_enabled: Optional[bool] = None,
            bandwidth: Optional[int] = None,
            creation_time: Optional[str] = None,
            description: Optional[str] = None,
            direct_connect_gateway_id: Optional[str] = None,
            ipv6_enabled: Optional[bool] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[DirectConnectGatewayAttachmentTagArgs]] = None,
            transit_router_attachment_id: Optional[str] = None,
            transit_router_attachment_name: Optional[str] = None,
            transit_router_id: Optional[str] = None,
            update_time: Optional[str] = None) -> DirectConnectGatewayAttachment
    func GetDirectConnectGatewayAttachment(ctx *Context, name string, id IDInput, state *DirectConnectGatewayAttachmentState, opts ...ResourceOption) (*DirectConnectGatewayAttachment, error)
    public static DirectConnectGatewayAttachment Get(string name, Input<string> id, DirectConnectGatewayAttachmentState? state, CustomResourceOptions? opts = null)
    public static DirectConnectGatewayAttachment get(String name, Output<String> id, DirectConnectGatewayAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: bytepluscc:transitrouter:DirectConnectGatewayAttachment    get:      id: ${id}
    import {
      to = bytepluscc_transitrouter_directconnectgatewayattachment.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:
    AccountId string
    Account ID to which the network instance connection belongs
    AutoPublishRouteEnabled bool
    Whether to automatically synchronize TR routes to the network instance route table
    Bandwidth int
    Maximum bandwidth of the network instance connection, in Gbps
    CreationTime string
    Creation time of the network instance connection
    Description string
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    DirectConnectGatewayId string
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    Ipv6Enabled bool
    Whether to enable IPv6
    Status string
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    Tags List<Byteplus.DirectConnectGatewayAttachmentTag>
    TransitRouterAttachmentId string
    Network instance connection ID
    TransitRouterAttachmentName string
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID
    TransitRouterId string
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    UpdateTime string
    Most recent operation time of the network instance connection
    AccountId string
    Account ID to which the network instance connection belongs
    AutoPublishRouteEnabled bool
    Whether to automatically synchronize TR routes to the network instance route table
    Bandwidth int
    Maximum bandwidth of the network instance connection, in Gbps
    CreationTime string
    Creation time of the network instance connection
    Description string
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    DirectConnectGatewayId string
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    Ipv6Enabled bool
    Whether to enable IPv6
    Status string
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    Tags []DirectConnectGatewayAttachmentTagArgs
    TransitRouterAttachmentId string
    Network instance connection ID
    TransitRouterAttachmentName string
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID
    TransitRouterId string
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    UpdateTime string
    Most recent operation time of the network instance connection
    account_id string
    Account ID to which the network instance connection belongs
    auto_publish_route_enabled bool
    Whether to automatically synchronize TR routes to the network instance route table
    bandwidth number
    Maximum bandwidth of the network instance connection, in Gbps
    creation_time string
    Creation time of the network instance connection
    description string
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    direct_connect_gateway_id string
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    ipv6_enabled bool
    Whether to enable IPv6
    status string
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    tags list(object)
    transit_router_attachment_id string
    Network instance connection ID
    transit_router_attachment_name string
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID
    transit_router_id string
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    update_time string
    Most recent operation time of the network instance connection
    accountId String
    Account ID to which the network instance connection belongs
    autoPublishRouteEnabled Boolean
    Whether to automatically synchronize TR routes to the network instance route table
    bandwidth Integer
    Maximum bandwidth of the network instance connection, in Gbps
    creationTime String
    Creation time of the network instance connection
    description String
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    directConnectGatewayId String
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    ipv6Enabled Boolean
    Whether to enable IPv6
    status String
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    tags List<DirectConnectGatewayAttachmentTag>
    transitRouterAttachmentId String
    Network instance connection ID
    transitRouterAttachmentName String
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID
    transitRouterId String
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    updateTime String
    Most recent operation time of the network instance connection
    accountId string
    Account ID to which the network instance connection belongs
    autoPublishRouteEnabled boolean
    Whether to automatically synchronize TR routes to the network instance route table
    bandwidth number
    Maximum bandwidth of the network instance connection, in Gbps
    creationTime string
    Creation time of the network instance connection
    description string
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    directConnectGatewayId string
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    ipv6Enabled boolean
    Whether to enable IPv6
    status string
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    tags DirectConnectGatewayAttachmentTag[]
    transitRouterAttachmentId string
    Network instance connection ID
    transitRouterAttachmentName string
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID
    transitRouterId string
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    updateTime string
    Most recent operation time of the network instance connection
    account_id str
    Account ID to which the network instance connection belongs
    auto_publish_route_enabled bool
    Whether to automatically synchronize TR routes to the network instance route table
    bandwidth int
    Maximum bandwidth of the network instance connection, in Gbps
    creation_time str
    Creation time of the network instance connection
    description str
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    direct_connect_gateway_id str
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    ipv6_enabled bool
    Whether to enable IPv6
    status str
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    tags Sequence[DirectConnectGatewayAttachmentTagArgs]
    transit_router_attachment_id str
    Network instance connection ID
    transit_router_attachment_name str
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID
    transit_router_id str
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    update_time str
    Most recent operation time of the network instance connection
    accountId String
    Account ID to which the network instance connection belongs
    autoPublishRouteEnabled Boolean
    Whether to automatically synchronize TR routes to the network instance route table
    bandwidth Number
    Maximum bandwidth of the network instance connection, in Gbps
    creationTime String
    Creation time of the network instance connection
    description String
    Description of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length can be 0–255 characters. If this parameter is not provided or no value is passed, the default is an empty string
    directConnectGatewayId String
    Direct connect gateway ID. You can call the DescribeDirectConnectGateways API to obtain the direct connect gateway ID
    ipv6Enabled Boolean
    Whether to enable IPv6
    status String
    Status of the network instance connection. Creating means being created, Deleting means being deleted, Pending means being configured, Available means available
    tags List<Property Map>
    transitRouterAttachmentId String
    Network instance connection ID
    transitRouterAttachmentName String
    Name of the network instance connection. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length can be 1–128 characters. If this parameter is not provided or no value is passed, the default is the network instance connection ID
    transitRouterId String
    Transit router instance ID. You can call the DescribeTransitRouters API to obtain the transit router instance ID
    updateTime String
    Most recent operation time of the network instance connection

    Supporting Types

    DirectConnectGatewayAttachmentTag, DirectConnectGatewayAttachmentTagArgs

    Key string
    Tag key
    Value string
    Tag value
    Key string
    Tag key
    Value string
    Tag value
    key string
    Tag key
    value string
    Tag value
    key String
    Tag key
    value String
    Tag value
    key string
    Tag key
    value string
    Tag value
    key str
    Tag key
    value str
    Tag value
    key String
    Tag key
    value String
    Tag value

    Import

    $ pulumi import bytepluscc:transitrouter/directConnectGatewayAttachment:DirectConnectGatewayAttachment 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.35
    published on Monday, Jun 15, 2026 by Byteplus

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial