1. Packages
  2. Volcengine
  3. API Docs
  4. transit_router
  5. VpnAttachment
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.transit_router.VpnAttachment

Explore with Pulumi AI

Provides a resource to manage transit router vpn attachment

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";

const fooTransitRouter = new volcengine.transit_router.TransitRouter("fooTransitRouter", {
    transitRouterName: "test-tf-acc",
    description: "test-tf-acc",
});
const fooCustomerGateway = new volcengine.vpn.CustomerGateway("fooCustomerGateway", {
    ipAddress: "192.0.1.3",
    customerGatewayName: "acc-test",
    description: "acc-test",
});
const fooConnection = new volcengine.vpn.Connection("fooConnection", {
    vpnConnectionName: "acc-tf-test",
    description: "acc-tf-test",
    attachType: "TransitRouter",
    customerGatewayId: fooCustomerGateway.id,
    localSubnets: ["192.168.0.0/22"],
    remoteSubnets: ["192.161.0.0/20"],
    dpdAction: "none",
    natTraversal: true,
    ikeConfigPsk: "acctest@!3",
    ikeConfigVersion: "ikev1",
    ikeConfigMode: "main",
    ikeConfigEncAlg: "aes",
    ikeConfigAuthAlg: "md5",
    ikeConfigDhGroup: "group2",
    ikeConfigLifetime: 9000,
    ikeConfigLocalId: "acc_test",
    ikeConfigRemoteId: "acc_test",
    ipsecConfigEncAlg: "aes",
    ipsecConfigAuthAlg: "sha256",
    ipsecConfigDhGroup: "group2",
    ipsecConfigLifetime: 9000,
    logEnabled: false,
});
const fooVpnAttachment = new volcengine.transit_router.VpnAttachment("fooVpnAttachment", {
    zoneId: "cn-beijing-a",
    transitRouterAttachmentName: "tf-test-acc",
    description: "tf-test-acc-desc",
    transitRouterId: fooTransitRouter.id,
    vpnConnectionId: fooConnection.id,
    tags: [{
        key: "k1",
        value: "v1",
    }],
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo_transit_router = volcengine.transit_router.TransitRouter("fooTransitRouter",
    transit_router_name="test-tf-acc",
    description="test-tf-acc")
foo_customer_gateway = volcengine.vpn.CustomerGateway("fooCustomerGateway",
    ip_address="192.0.1.3",
    customer_gateway_name="acc-test",
    description="acc-test")
foo_connection = volcengine.vpn.Connection("fooConnection",
    vpn_connection_name="acc-tf-test",
    description="acc-tf-test",
    attach_type="TransitRouter",
    customer_gateway_id=foo_customer_gateway.id,
    local_subnets=["192.168.0.0/22"],
    remote_subnets=["192.161.0.0/20"],
    dpd_action="none",
    nat_traversal=True,
    ike_config_psk="acctest@!3",
    ike_config_version="ikev1",
    ike_config_mode="main",
    ike_config_enc_alg="aes",
    ike_config_auth_alg="md5",
    ike_config_dh_group="group2",
    ike_config_lifetime=9000,
    ike_config_local_id="acc_test",
    ike_config_remote_id="acc_test",
    ipsec_config_enc_alg="aes",
    ipsec_config_auth_alg="sha256",
    ipsec_config_dh_group="group2",
    ipsec_config_lifetime=9000,
    log_enabled=False)
foo_vpn_attachment = volcengine.transit_router.VpnAttachment("fooVpnAttachment",
    zone_id="cn-beijing-a",
    transit_router_attachment_name="tf-test-acc",
    description="tf-test-acc-desc",
    transit_router_id=foo_transit_router.id,
    vpn_connection_id=foo_connection.id,
    tags=[volcengine.transit_router.VpnAttachmentTagArgs(
        key="k1",
        value="v1",
    )])
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/transit_router"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpn"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooTransitRouter, err := transit_router.NewTransitRouter(ctx, "fooTransitRouter", &transit_router.TransitRouterArgs{
			TransitRouterName: pulumi.String("test-tf-acc"),
			Description:       pulumi.String("test-tf-acc"),
		})
		if err != nil {
			return err
		}
		fooCustomerGateway, err := vpn.NewCustomerGateway(ctx, "fooCustomerGateway", &vpn.CustomerGatewayArgs{
			IpAddress:           pulumi.String("192.0.1.3"),
			CustomerGatewayName: pulumi.String("acc-test"),
			Description:         pulumi.String("acc-test"),
		})
		if err != nil {
			return err
		}
		fooConnection, err := vpn.NewConnection(ctx, "fooConnection", &vpn.ConnectionArgs{
			VpnConnectionName: pulumi.String("acc-tf-test"),
			Description:       pulumi.String("acc-tf-test"),
			AttachType:        pulumi.String("TransitRouter"),
			CustomerGatewayId: fooCustomerGateway.ID(),
			LocalSubnets: pulumi.StringArray{
				pulumi.String("192.168.0.0/22"),
			},
			RemoteSubnets: pulumi.StringArray{
				pulumi.String("192.161.0.0/20"),
			},
			DpdAction:           pulumi.String("none"),
			NatTraversal:        pulumi.Bool(true),
			IkeConfigPsk:        pulumi.String("acctest@!3"),
			IkeConfigVersion:    pulumi.String("ikev1"),
			IkeConfigMode:       pulumi.String("main"),
			IkeConfigEncAlg:     pulumi.String("aes"),
			IkeConfigAuthAlg:    pulumi.String("md5"),
			IkeConfigDhGroup:    pulumi.String("group2"),
			IkeConfigLifetime:   pulumi.Int(9000),
			IkeConfigLocalId:    pulumi.String("acc_test"),
			IkeConfigRemoteId:   pulumi.String("acc_test"),
			IpsecConfigEncAlg:   pulumi.String("aes"),
			IpsecConfigAuthAlg:  pulumi.String("sha256"),
			IpsecConfigDhGroup:  pulumi.String("group2"),
			IpsecConfigLifetime: pulumi.Int(9000),
			LogEnabled:          pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = transit_router.NewVpnAttachment(ctx, "fooVpnAttachment", &transit_router.VpnAttachmentArgs{
			ZoneId:                      pulumi.String("cn-beijing-a"),
			TransitRouterAttachmentName: pulumi.String("tf-test-acc"),
			Description:                 pulumi.String("tf-test-acc-desc"),
			TransitRouterId:             fooTransitRouter.ID(),
			VpnConnectionId:             fooConnection.ID(),
			Tags: transit_router.VpnAttachmentTagArray{
				&transit_router.VpnAttachmentTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var fooTransitRouter = new Volcengine.Transit_router.TransitRouter("fooTransitRouter", new()
    {
        TransitRouterName = "test-tf-acc",
        Description = "test-tf-acc",
    });

    var fooCustomerGateway = new Volcengine.Vpn.CustomerGateway("fooCustomerGateway", new()
    {
        IpAddress = "192.0.1.3",
        CustomerGatewayName = "acc-test",
        Description = "acc-test",
    });

    var fooConnection = new Volcengine.Vpn.Connection("fooConnection", new()
    {
        VpnConnectionName = "acc-tf-test",
        Description = "acc-tf-test",
        AttachType = "TransitRouter",
        CustomerGatewayId = fooCustomerGateway.Id,
        LocalSubnets = new[]
        {
            "192.168.0.0/22",
        },
        RemoteSubnets = new[]
        {
            "192.161.0.0/20",
        },
        DpdAction = "none",
        NatTraversal = true,
        IkeConfigPsk = "acctest@!3",
        IkeConfigVersion = "ikev1",
        IkeConfigMode = "main",
        IkeConfigEncAlg = "aes",
        IkeConfigAuthAlg = "md5",
        IkeConfigDhGroup = "group2",
        IkeConfigLifetime = 9000,
        IkeConfigLocalId = "acc_test",
        IkeConfigRemoteId = "acc_test",
        IpsecConfigEncAlg = "aes",
        IpsecConfigAuthAlg = "sha256",
        IpsecConfigDhGroup = "group2",
        IpsecConfigLifetime = 9000,
        LogEnabled = false,
    });

    var fooVpnAttachment = new Volcengine.Transit_router.VpnAttachment("fooVpnAttachment", new()
    {
        ZoneId = "cn-beijing-a",
        TransitRouterAttachmentName = "tf-test-acc",
        Description = "tf-test-acc-desc",
        TransitRouterId = fooTransitRouter.Id,
        VpnConnectionId = fooConnection.Id,
        Tags = new[]
        {
            new Volcengine.Transit_router.Inputs.VpnAttachmentTagArgs
            {
                Key = "k1",
                Value = "v1",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.transit_router.TransitRouter;
import com.pulumi.volcengine.transit_router.TransitRouterArgs;
import com.pulumi.volcengine.vpn.CustomerGateway;
import com.pulumi.volcengine.vpn.CustomerGatewayArgs;
import com.pulumi.volcengine.vpn.Connection;
import com.pulumi.volcengine.vpn.ConnectionArgs;
import com.pulumi.volcengine.transit_router.VpnAttachment;
import com.pulumi.volcengine.transit_router.VpnAttachmentArgs;
import com.pulumi.volcengine.transit_router.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 fooTransitRouter = new TransitRouter("fooTransitRouter", TransitRouterArgs.builder()        
            .transitRouterName("test-tf-acc")
            .description("test-tf-acc")
            .build());

        var fooCustomerGateway = new CustomerGateway("fooCustomerGateway", CustomerGatewayArgs.builder()        
            .ipAddress("192.0.1.3")
            .customerGatewayName("acc-test")
            .description("acc-test")
            .build());

        var fooConnection = new Connection("fooConnection", ConnectionArgs.builder()        
            .vpnConnectionName("acc-tf-test")
            .description("acc-tf-test")
            .attachType("TransitRouter")
            .customerGatewayId(fooCustomerGateway.id())
            .localSubnets("192.168.0.0/22")
            .remoteSubnets("192.161.0.0/20")
            .dpdAction("none")
            .natTraversal(true)
            .ikeConfigPsk("acctest@!3")
            .ikeConfigVersion("ikev1")
            .ikeConfigMode("main")
            .ikeConfigEncAlg("aes")
            .ikeConfigAuthAlg("md5")
            .ikeConfigDhGroup("group2")
            .ikeConfigLifetime(9000)
            .ikeConfigLocalId("acc_test")
            .ikeConfigRemoteId("acc_test")
            .ipsecConfigEncAlg("aes")
            .ipsecConfigAuthAlg("sha256")
            .ipsecConfigDhGroup("group2")
            .ipsecConfigLifetime(9000)
            .logEnabled(false)
            .build());

        var fooVpnAttachment = new VpnAttachment("fooVpnAttachment", VpnAttachmentArgs.builder()        
            .zoneId("cn-beijing-a")
            .transitRouterAttachmentName("tf-test-acc")
            .description("tf-test-acc-desc")
            .transitRouterId(fooTransitRouter.id())
            .vpnConnectionId(fooConnection.id())
            .tags(VpnAttachmentTagArgs.builder()
                .key("k1")
                .value("v1")
                .build())
            .build());

    }
}
Copy
resources:
  fooTransitRouter:
    type: volcengine:transit_router:TransitRouter
    properties:
      transitRouterName: test-tf-acc
      description: test-tf-acc
  fooCustomerGateway:
    type: volcengine:vpn:CustomerGateway
    properties:
      ipAddress: 192.0.1.3
      customerGatewayName: acc-test
      description: acc-test
  fooConnection:
    type: volcengine:vpn:Connection
    properties:
      vpnConnectionName: acc-tf-test
      description: acc-tf-test
      attachType: TransitRouter
      customerGatewayId: ${fooCustomerGateway.id}
      localSubnets:
        - 192.168.0.0/22
      remoteSubnets:
        - 192.161.0.0/20
      dpdAction: none
      natTraversal: true
      ikeConfigPsk: acctest@!3
      ikeConfigVersion: ikev1
      ikeConfigMode: main
      ikeConfigEncAlg: aes
      ikeConfigAuthAlg: md5
      ikeConfigDhGroup: group2
      ikeConfigLifetime: 9000
      ikeConfigLocalId: acc_test
      ikeConfigRemoteId: acc_test
      ipsecConfigEncAlg: aes
      ipsecConfigAuthAlg: sha256
      ipsecConfigDhGroup: group2
      ipsecConfigLifetime: 9000
      logEnabled: false
  fooVpnAttachment:
    type: volcengine:transit_router:VpnAttachment
    properties:
      zoneId: cn-beijing-a
      transitRouterAttachmentName: tf-test-acc
      description: tf-test-acc-desc
      transitRouterId: ${fooTransitRouter.id}
      vpnConnectionId: ${fooConnection.id}
      tags:
        - key: k1
          value: v1
Copy

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,
                  tags: Optional[Sequence[VpnAttachmentTagArgs]] = None,
                  transit_router_attachment_name: 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: volcengine:transit_router:VpnAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VpnAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. VpnAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VpnAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 Volcengine.Transit_router.VpnAttachment("vpnAttachmentResource", new()
{
    TransitRouterId = "string",
    VpnConnectionId = "string",
    ZoneId = "string",
    Description = "string",
    Tags = new[]
    {
        new Volcengine.Transit_router.Inputs.VpnAttachmentTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
    TransitRouterAttachmentName = "string",
});
Copy
example, err := transit_router.NewVpnAttachment(ctx, "vpnAttachmentResource", &transit_router.VpnAttachmentArgs{
	TransitRouterId: pulumi.String("string"),
	VpnConnectionId: pulumi.String("string"),
	ZoneId:          pulumi.String("string"),
	Description:     pulumi.String("string"),
	Tags: transit_router.VpnAttachmentTagArray{
		&transit_router.VpnAttachmentTagArgs{
			Key:   pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
	TransitRouterAttachmentName: pulumi.String("string"),
})
Copy
var vpnAttachmentResource = new VpnAttachment("vpnAttachmentResource", VpnAttachmentArgs.builder()
    .transitRouterId("string")
    .vpnConnectionId("string")
    .zoneId("string")
    .description("string")
    .tags(VpnAttachmentTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .transitRouterAttachmentName("string")
    .build());
Copy
vpn_attachment_resource = volcengine.transit_router.VpnAttachment("vpnAttachmentResource",
    transit_router_id="string",
    vpn_connection_id="string",
    zone_id="string",
    description="string",
    tags=[{
        "key": "string",
        "value": "string",
    }],
    transit_router_attachment_name="string")
Copy
const vpnAttachmentResource = new volcengine.transit_router.VpnAttachment("vpnAttachmentResource", {
    transitRouterId: "string",
    vpnConnectionId: "string",
    zoneId: "string",
    description: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
    transitRouterAttachmentName: "string",
});
Copy
type: volcengine:transit_router:VpnAttachment
properties:
    description: string
    tags:
        - key: string
          value: string
    transitRouterAttachmentName: string
    transitRouterId: string
    vpnConnectionId: string
    zoneId: string
Copy

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
This property is required.
Changes to this property will trigger replacement.
string
The id of the transit router.
VpnConnectionId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the IPSec connection.
ZoneId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the availability zone.
Description string
The description of the transit router vpn attachment.
Tags List<VpnAttachmentTag>
Tags.
TransitRouterAttachmentName string
The name of the transit router vpn attachment.
TransitRouterId
This property is required.
Changes to this property will trigger replacement.
string
The id of the transit router.
VpnConnectionId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the IPSec connection.
ZoneId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the availability zone.
Description string
The description of the transit router vpn attachment.
Tags []VpnAttachmentTagArgs
Tags.
TransitRouterAttachmentName string
The name of the transit router vpn attachment.
transitRouterId
This property is required.
Changes to this property will trigger replacement.
String
The id of the transit router.
vpnConnectionId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the IPSec connection.
zoneId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the availability zone.
description String
The description of the transit router vpn attachment.
tags List<VpnAttachmentTag>
Tags.
transitRouterAttachmentName String
The name of the transit router vpn attachment.
transitRouterId
This property is required.
Changes to this property will trigger replacement.
string
The id of the transit router.
vpnConnectionId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the IPSec connection.
zoneId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the availability zone.
description string
The description of the transit router vpn attachment.
tags VpnAttachmentTag[]
Tags.
transitRouterAttachmentName string
The name of the transit router vpn attachment.
transit_router_id
This property is required.
Changes to this property will trigger replacement.
str
The id of the transit router.
vpn_connection_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the IPSec connection.
zone_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the availability zone.
description str
The description of the transit router vpn attachment.
tags Sequence[VpnAttachmentTagArgs]
Tags.
transit_router_attachment_name str
The name of the transit router vpn attachment.
transitRouterId
This property is required.
Changes to this property will trigger replacement.
String
The id of the transit router.
vpnConnectionId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the IPSec connection.
zoneId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the availability zone.
description String
The description of the transit router vpn attachment.
tags List<Property Map>
Tags.
transitRouterAttachmentName String
The name of the transit router vpn attachment.

Outputs

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

CreationTime string
The create time.
Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the transit router.
TransitRouterAttachmentId string
The id of the transit router vpn attachment.
UpdateTime string
The update time.
CreationTime string
The create time.
Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the transit router.
TransitRouterAttachmentId string
The id of the transit router vpn attachment.
UpdateTime string
The update time.
creationTime String
The create time.
id String
The provider-assigned unique ID for this managed resource.
status String
The status of the transit router.
transitRouterAttachmentId String
The id of the transit router vpn attachment.
updateTime String
The update time.
creationTime string
The create time.
id string
The provider-assigned unique ID for this managed resource.
status string
The status of the transit router.
transitRouterAttachmentId string
The id of the transit router vpn attachment.
updateTime string
The update time.
creation_time str
The create time.
id str
The provider-assigned unique ID for this managed resource.
status str
The status of the transit router.
transit_router_attachment_id str
The id of the transit router vpn attachment.
update_time str
The update time.
creationTime String
The create time.
id String
The provider-assigned unique ID for this managed resource.
status String
The status of the transit router.
transitRouterAttachmentId String
The id of the transit router vpn attachment.
updateTime String
The update time.

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,
        creation_time: Optional[str] = None,
        description: Optional[str] = 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,
        update_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: volcengine:transit_router:VpnAttachment    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CreationTime string
The create time.
Description string
The description of the transit router vpn attachment.
Status string
The status of the transit router.
Tags List<VpnAttachmentTag>
Tags.
TransitRouterAttachmentId string
The id of the transit router vpn attachment.
TransitRouterAttachmentName string
The name of the transit router vpn attachment.
TransitRouterId Changes to this property will trigger replacement. string
The id of the transit router.
UpdateTime string
The update time.
VpnConnectionId Changes to this property will trigger replacement. string
The ID of the IPSec connection.
ZoneId Changes to this property will trigger replacement. string
The ID of the availability zone.
CreationTime string
The create time.
Description string
The description of the transit router vpn attachment.
Status string
The status of the transit router.
Tags []VpnAttachmentTagArgs
Tags.
TransitRouterAttachmentId string
The id of the transit router vpn attachment.
TransitRouterAttachmentName string
The name of the transit router vpn attachment.
TransitRouterId Changes to this property will trigger replacement. string
The id of the transit router.
UpdateTime string
The update time.
VpnConnectionId Changes to this property will trigger replacement. string
The ID of the IPSec connection.
ZoneId Changes to this property will trigger replacement. string
The ID of the availability zone.
creationTime String
The create time.
description String
The description of the transit router vpn attachment.
status String
The status of the transit router.
tags List<VpnAttachmentTag>
Tags.
transitRouterAttachmentId String
The id of the transit router vpn attachment.
transitRouterAttachmentName String
The name of the transit router vpn attachment.
transitRouterId Changes to this property will trigger replacement. String
The id of the transit router.
updateTime String
The update time.
vpnConnectionId Changes to this property will trigger replacement. String
The ID of the IPSec connection.
zoneId Changes to this property will trigger replacement. String
The ID of the availability zone.
creationTime string
The create time.
description string
The description of the transit router vpn attachment.
status string
The status of the transit router.
tags VpnAttachmentTag[]
Tags.
transitRouterAttachmentId string
The id of the transit router vpn attachment.
transitRouterAttachmentName string
The name of the transit router vpn attachment.
transitRouterId Changes to this property will trigger replacement. string
The id of the transit router.
updateTime string
The update time.
vpnConnectionId Changes to this property will trigger replacement. string
The ID of the IPSec connection.
zoneId Changes to this property will trigger replacement. string
The ID of the availability zone.
creation_time str
The create time.
description str
The description of the transit router vpn attachment.
status str
The status of the transit router.
tags Sequence[VpnAttachmentTagArgs]
Tags.
transit_router_attachment_id str
The id of the transit router vpn attachment.
transit_router_attachment_name str
The name of the transit router vpn attachment.
transit_router_id Changes to this property will trigger replacement. str
The id of the transit router.
update_time str
The update time.
vpn_connection_id Changes to this property will trigger replacement. str
The ID of the IPSec connection.
zone_id Changes to this property will trigger replacement. str
The ID of the availability zone.
creationTime String
The create time.
description String
The description of the transit router vpn attachment.
status String
The status of the transit router.
tags List<Property Map>
Tags.
transitRouterAttachmentId String
The id of the transit router vpn attachment.
transitRouterAttachmentName String
The name of the transit router vpn attachment.
transitRouterId Changes to this property will trigger replacement. String
The id of the transit router.
updateTime String
The update time.
vpnConnectionId Changes to this property will trigger replacement. String
The ID of the IPSec connection.
zoneId Changes to this property will trigger replacement. String
The ID of the availability zone.

Supporting Types

VpnAttachmentTag
, VpnAttachmentTagArgs

Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. String
The Value of Tags.
key This property is required. string
The Key of Tags.
value This property is required. string
The Value of Tags.
key This property is required. str
The Key of Tags.
value This property is required. str
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. String
The Value of Tags.

Import

TransitRouterVpnAttachment can be imported using the transitRouterId:attachmentId, e.g.

$ pulumi import volcengine:transit_router/vpnAttachment:VpnAttachment default tr-2d6fr7mzya2gw58ozfes5g2oh:tr-attach-7qthudw0ll6jmc****
Copy

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

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.