published on Thursday, Jun 25, 2026 by Pulumi
published on Thursday, Jun 25, 2026 by Pulumi
Provides a Vpn Gateway Enhanced Vpn Gateway resource.
Enhanced VPN gateway.
For information about Vpn Gateway Enhanced Vpn Gateway and how to use it, see What is Enhanced Vpn Gateway.
NOTE: Available since v1.280.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const region = config.get("region") || "ap-southeast-3";
const zone2 = config.get("zone2") || "ap-southeast-3a";
const zone1 = config.get("zone1") || "ap-southeast-3b";
const defaulttYTx5F = new alicloud.vpc.Network("defaulttYTx5F", {
cidrBlock: "192.168.0.0/16",
isDefault: false,
});
const defaultTRk7k3 = new alicloud.vpc.Switch("defaultTRk7k3", {
vpcId: defaulttYTx5F.id,
zoneId: zone1,
cidrBlock: "192.168.10.0/24",
});
const default23kGFr = new alicloud.vpc.Switch("default23kGFr", {
vpcId: defaulttYTx5F.id,
zoneId: zone2,
cidrBlock: "192.168.20.0/24",
});
const _default = new alicloud.vpn.GatewayEnhancedVpnGateway("default", {
vpnType: "Normal",
description: "default",
disasterRecoveryVswitchId: default23kGFr.id,
vpcId: defaulttYTx5F.id,
vpnGatewayName: "default",
networkType: "public",
vswitchId: defaultTRk7k3.id,
gatewayType: "Enhanced.SiteToSite",
autoPropagate: false,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
region = config.get("region")
if region is None:
region = "ap-southeast-3"
zone2 = config.get("zone2")
if zone2 is None:
zone2 = "ap-southeast-3a"
zone1 = config.get("zone1")
if zone1 is None:
zone1 = "ap-southeast-3b"
defaultt_y_tx5_f = alicloud.vpc.Network("defaulttYTx5F",
cidr_block="192.168.0.0/16",
is_default=False)
default_t_rk7k3 = alicloud.vpc.Switch("defaultTRk7k3",
vpc_id=defaultt_y_tx5_f.id,
zone_id=zone1,
cidr_block="192.168.10.0/24")
default23k_g_fr = alicloud.vpc.Switch("default23kGFr",
vpc_id=defaultt_y_tx5_f.id,
zone_id=zone2,
cidr_block="192.168.20.0/24")
default = alicloud.vpn.GatewayEnhancedVpnGateway("default",
vpn_type="Normal",
description="default",
disaster_recovery_vswitch_id=default23k_g_fr.id,
vpc_id=defaultt_y_tx5_f.id,
vpn_gateway_name="default",
network_type="public",
vswitch_id=default_t_rk7k3.id,
gateway_type="Enhanced.SiteToSite",
auto_propagate=False)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
region := "ap-southeast-3"
if param := cfg.Get("region"); param != "" {
region = param
}
zone2 := "ap-southeast-3a"
if param := cfg.Get("zone2"); param != "" {
zone2 = param
}
zone1 := "ap-southeast-3b"
if param := cfg.Get("zone1"); param != "" {
zone1 = param
}
defaulttYTx5F, err := vpc.NewNetwork(ctx, "defaulttYTx5F", &vpc.NetworkArgs{
CidrBlock: pulumi.String("192.168.0.0/16"),
IsDefault: pulumi.Bool(false),
})
if err != nil {
return err
}
defaultTRk7k3, err := vpc.NewSwitch(ctx, "defaultTRk7k3", &vpc.SwitchArgs{
VpcId: defaulttYTx5F.ID(),
ZoneId: pulumi.String(zone1),
CidrBlock: pulumi.String("192.168.10.0/24"),
})
if err != nil {
return err
}
default23kGFr, err := vpc.NewSwitch(ctx, "default23kGFr", &vpc.SwitchArgs{
VpcId: defaulttYTx5F.ID(),
ZoneId: pulumi.String(zone2),
CidrBlock: pulumi.String("192.168.20.0/24"),
})
if err != nil {
return err
}
_, err = vpn.NewGatewayEnhancedVpnGateway(ctx, "default", &vpn.GatewayEnhancedVpnGatewayArgs{
VpnType: pulumi.String("Normal"),
Description: pulumi.String("default"),
DisasterRecoveryVswitchId: default23kGFr.ID(),
VpcId: defaulttYTx5F.ID(),
VpnGatewayName: pulumi.String("default"),
NetworkType: pulumi.String("public"),
VswitchId: defaultTRk7k3.ID(),
GatewayType: pulumi.String("Enhanced.SiteToSite"),
AutoPropagate: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var region = config.Get("region") ?? "ap-southeast-3";
var zone2 = config.Get("zone2") ?? "ap-southeast-3a";
var zone1 = config.Get("zone1") ?? "ap-southeast-3b";
var defaulttYTx5F = new AliCloud.Vpc.Network("defaulttYTx5F", new()
{
CidrBlock = "192.168.0.0/16",
IsDefault = false,
});
var defaultTRk7k3 = new AliCloud.Vpc.Switch("defaultTRk7k3", new()
{
VpcId = defaulttYTx5F.Id,
ZoneId = zone1,
CidrBlock = "192.168.10.0/24",
});
var default23kGFr = new AliCloud.Vpc.Switch("default23kGFr", new()
{
VpcId = defaulttYTx5F.Id,
ZoneId = zone2,
CidrBlock = "192.168.20.0/24",
});
var @default = new AliCloud.Vpn.GatewayEnhancedVpnGateway("default", new()
{
VpnType = "Normal",
Description = "default",
DisasterRecoveryVswitchId = default23kGFr.Id,
VpcId = defaulttYTx5F.Id,
VpnGatewayName = "default",
NetworkType = "public",
VswitchId = defaultTRk7k3.Id,
GatewayType = "Enhanced.SiteToSite",
AutoPropagate = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.vpn.GatewayEnhancedVpnGateway;
import com.pulumi.alicloud.vpn.GatewayEnhancedVpnGatewayArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var region = config.get("region").orElse("ap-southeast-3");
final var zone2 = config.get("zone2").orElse("ap-southeast-3a");
final var zone1 = config.get("zone1").orElse("ap-southeast-3b");
var defaulttYTx5F = new Network("defaulttYTx5F", NetworkArgs.builder()
.cidrBlock("192.168.0.0/16")
.isDefault(false)
.build());
var defaultTRk7k3 = new Switch("defaultTRk7k3", SwitchArgs.builder()
.vpcId(defaulttYTx5F.id())
.zoneId(zone1)
.cidrBlock("192.168.10.0/24")
.build());
var default23kGFr = new Switch("default23kGFr", SwitchArgs.builder()
.vpcId(defaulttYTx5F.id())
.zoneId(zone2)
.cidrBlock("192.168.20.0/24")
.build());
var default_ = new GatewayEnhancedVpnGateway("default", GatewayEnhancedVpnGatewayArgs.builder()
.vpnType("Normal")
.description("default")
.disasterRecoveryVswitchId(default23kGFr.id())
.vpcId(defaulttYTx5F.id())
.vpnGatewayName("default")
.networkType("public")
.vswitchId(defaultTRk7k3.id())
.gatewayType("Enhanced.SiteToSite")
.autoPropagate(false)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
region:
type: string
default: ap-southeast-3
zone2:
type: string
default: ap-southeast-3a
zone1:
type: string
default: ap-southeast-3b
resources:
defaulttYTx5F:
type: alicloud:vpc:Network
properties:
cidrBlock: 192.168.0.0/16
isDefault: false
defaultTRk7k3:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaulttYTx5F.id}
zoneId: ${zone1}
cidrBlock: 192.168.10.0/24
default23kGFr:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaulttYTx5F.id}
zoneId: ${zone2}
cidrBlock: 192.168.20.0/24
default:
type: alicloud:vpn:GatewayEnhancedVpnGateway
properties:
vpnType: Normal
description: default
disasterRecoveryVswitchId: ${default23kGFr.id}
vpcId: ${defaulttYTx5F.id}
vpnGatewayName: default
networkType: public
vswitchId: ${defaultTRk7k3.id}
gatewayType: Enhanced.SiteToSite
autoPropagate: false
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
resource "alicloud_vpc_network" "defaulttYTx5F" {
cidr_block = "192.168.0.0/16"
is_default = false
}
resource "alicloud_vpc_switch" "defaultTRk7k3" {
vpc_id = alicloud_vpc_network.defaulttYTx5F.id
zone_id = var.zone1
cidr_block = "192.168.10.0/24"
}
resource "alicloud_vpc_switch" "default23kGFr" {
vpc_id = alicloud_vpc_network.defaulttYTx5F.id
zone_id = var.zone2
cidr_block = "192.168.20.0/24"
}
resource "alicloud_vpn_gatewayenhancedvpngateway" "default" {
vpn_type = "Normal"
description = "default"
disaster_recovery_vswitch_id = alicloud_vpc_switch.default23kGFr.id
vpc_id = alicloud_vpc_network.defaulttYTx5F.id
vpn_gateway_name = "default"
network_type = "public"
vswitch_id = alicloud_vpc_switch.defaultTRk7k3.id
gateway_type = "Enhanced.SiteToSite"
auto_propagate = false
}
variable "name" {
type = string
default = "terraform-example"
}
variable "region" {
type = string
default = "ap-southeast-3"
}
variable "zone2" {
type = string
default = "ap-southeast-3a"
}
variable "zone1" {
type = string
default = "ap-southeast-3b"
}
📚 Need more examples? VIEW MORE EXAMPLES
Create GatewayEnhancedVpnGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GatewayEnhancedVpnGateway(name: string, args: GatewayEnhancedVpnGatewayArgs, opts?: CustomResourceOptions);@overload
def GatewayEnhancedVpnGateway(resource_name: str,
args: GatewayEnhancedVpnGatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GatewayEnhancedVpnGateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_type: Optional[str] = None,
vpc_id: Optional[str] = None,
auto_propagate: Optional[bool] = None,
description: Optional[str] = None,
disaster_recovery_vswitch_id: Optional[str] = None,
network_type: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpn_gateway_name: Optional[str] = None,
vpn_type: Optional[str] = None,
vswitch_id: Optional[str] = None)func NewGatewayEnhancedVpnGateway(ctx *Context, name string, args GatewayEnhancedVpnGatewayArgs, opts ...ResourceOption) (*GatewayEnhancedVpnGateway, error)public GatewayEnhancedVpnGateway(string name, GatewayEnhancedVpnGatewayArgs args, CustomResourceOptions? opts = null)
public GatewayEnhancedVpnGateway(String name, GatewayEnhancedVpnGatewayArgs args)
public GatewayEnhancedVpnGateway(String name, GatewayEnhancedVpnGatewayArgs args, CustomResourceOptions options)
type: alicloud:vpn:GatewayEnhancedVpnGateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_vpn_gatewayenhancedvpngateway" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args GatewayEnhancedVpnGatewayArgs
- 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 GatewayEnhancedVpnGatewayArgs
- 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 GatewayEnhancedVpnGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayEnhancedVpnGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayEnhancedVpnGatewayArgs
- 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 gatewayEnhancedVpnGatewayResource = new AliCloud.Vpn.GatewayEnhancedVpnGateway("gatewayEnhancedVpnGatewayResource", new()
{
GatewayType = "string",
VpcId = "string",
AutoPropagate = false,
Description = "string",
DisasterRecoveryVswitchId = "string",
NetworkType = "string",
Tags =
{
{ "string", "string" },
},
VpnGatewayName = "string",
VpnType = "string",
VswitchId = "string",
});
example, err := vpn.NewGatewayEnhancedVpnGateway(ctx, "gatewayEnhancedVpnGatewayResource", &vpn.GatewayEnhancedVpnGatewayArgs{
GatewayType: pulumi.String("string"),
VpcId: pulumi.String("string"),
AutoPropagate: pulumi.Bool(false),
Description: pulumi.String("string"),
DisasterRecoveryVswitchId: pulumi.String("string"),
NetworkType: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VpnGatewayName: pulumi.String("string"),
VpnType: pulumi.String("string"),
VswitchId: pulumi.String("string"),
})
resource "alicloud_vpn_gatewayenhancedvpngateway" "gatewayEnhancedVpnGatewayResource" {
gateway_type = "string"
vpc_id = "string"
auto_propagate = false
description = "string"
disaster_recovery_vswitch_id = "string"
network_type = "string"
tags = {
"string" = "string"
}
vpn_gateway_name = "string"
vpn_type = "string"
vswitch_id = "string"
}
var gatewayEnhancedVpnGatewayResource = new GatewayEnhancedVpnGateway("gatewayEnhancedVpnGatewayResource", GatewayEnhancedVpnGatewayArgs.builder()
.gatewayType("string")
.vpcId("string")
.autoPropagate(false)
.description("string")
.disasterRecoveryVswitchId("string")
.networkType("string")
.tags(Map.of("string", "string"))
.vpnGatewayName("string")
.vpnType("string")
.vswitchId("string")
.build());
gateway_enhanced_vpn_gateway_resource = alicloud.vpn.GatewayEnhancedVpnGateway("gatewayEnhancedVpnGatewayResource",
gateway_type="string",
vpc_id="string",
auto_propagate=False,
description="string",
disaster_recovery_vswitch_id="string",
network_type="string",
tags={
"string": "string",
},
vpn_gateway_name="string",
vpn_type="string",
vswitch_id="string")
const gatewayEnhancedVpnGatewayResource = new alicloud.vpn.GatewayEnhancedVpnGateway("gatewayEnhancedVpnGatewayResource", {
gatewayType: "string",
vpcId: "string",
autoPropagate: false,
description: "string",
disasterRecoveryVswitchId: "string",
networkType: "string",
tags: {
string: "string",
},
vpnGatewayName: "string",
vpnType: "string",
vswitchId: "string",
});
type: alicloud:vpn:GatewayEnhancedVpnGateway
properties:
autoPropagate: false
description: string
disasterRecoveryVswitchId: string
gatewayType: string
networkType: string
tags:
string: string
vpcId: string
vpnGatewayName: string
vpnType: string
vswitchId: string
GatewayEnhancedVpnGateway 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 GatewayEnhancedVpnGateway resource accepts the following input properties:
- Gateway
Type string - VPN gateway type
- Vpc
Id string - The ID of the VPC to which the VPN gateway belongs.
- Auto
Propagate bool - Specifies whether to automatically propagate BGP routes to the VPC
- Description string
- The description of the VPN gateway.
- Disaster
Recovery stringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- Network
Type string - Type of Gateway
- Dictionary<string, string>
- The Tag of
- Vpn
Gateway stringName - The name of the VPN gateway.
- Vpn
Type string - The Type of Vpn
- Vswitch
Id string - The ID of the VSwitch to which the VPN gateway is attached.
- Gateway
Type string - VPN gateway type
- Vpc
Id string - The ID of the VPC to which the VPN gateway belongs.
- Auto
Propagate bool - Specifies whether to automatically propagate BGP routes to the VPC
- Description string
- The description of the VPN gateway.
- Disaster
Recovery stringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- Network
Type string - Type of Gateway
- map[string]string
- The Tag of
- Vpn
Gateway stringName - The name of the VPN gateway.
- Vpn
Type string - The Type of Vpn
- Vswitch
Id string - The ID of the VSwitch to which the VPN gateway is attached.
- gateway_
type string - VPN gateway type
- vpc_
id string - The ID of the VPC to which the VPN gateway belongs.
- auto_
propagate bool - Specifies whether to automatically propagate BGP routes to the VPC
- description string
- The description of the VPN gateway.
- disaster_
recovery_ stringvswitch_ id - The ID of the backup VSwitch to which the VPN gateway is attached.
- network_
type string - Type of Gateway
- map(string)
- The Tag of
- vpn_
gateway_ stringname - The name of the VPN gateway.
- vpn_
type string - The Type of Vpn
- vswitch_
id string - The ID of the VSwitch to which the VPN gateway is attached.
- gateway
Type String - VPN gateway type
- vpc
Id String - The ID of the VPC to which the VPN gateway belongs.
- auto
Propagate Boolean - Specifies whether to automatically propagate BGP routes to the VPC
- description String
- The description of the VPN gateway.
- disaster
Recovery StringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- network
Type String - Type of Gateway
- Map<String,String>
- The Tag of
- vpn
Gateway StringName - The name of the VPN gateway.
- vpn
Type String - The Type of Vpn
- vswitch
Id String - The ID of the VSwitch to which the VPN gateway is attached.
- gateway
Type string - VPN gateway type
- vpc
Id string - The ID of the VPC to which the VPN gateway belongs.
- auto
Propagate boolean - Specifies whether to automatically propagate BGP routes to the VPC
- description string
- The description of the VPN gateway.
- disaster
Recovery stringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- network
Type string - Type of Gateway
- {[key: string]: string}
- The Tag of
- vpn
Gateway stringName - The name of the VPN gateway.
- vpn
Type string - The Type of Vpn
- vswitch
Id string - The ID of the VSwitch to which the VPN gateway is attached.
- gateway_
type str - VPN gateway type
- vpc_
id str - The ID of the VPC to which the VPN gateway belongs.
- auto_
propagate bool - Specifies whether to automatically propagate BGP routes to the VPC
- description str
- The description of the VPN gateway.
- disaster_
recovery_ strvswitch_ id - The ID of the backup VSwitch to which the VPN gateway is attached.
- network_
type str - Type of Gateway
- Mapping[str, str]
- The Tag of
- vpn_
gateway_ strname - The name of the VPN gateway.
- vpn_
type str - The Type of Vpn
- vswitch_
id str - The ID of the VSwitch to which the VPN gateway is attached.
- gateway
Type String - VPN gateway type
- vpc
Id String - The ID of the VPC to which the VPN gateway belongs.
- auto
Propagate Boolean - Specifies whether to automatically propagate BGP routes to the VPC
- description String
- The description of the VPN gateway.
- disaster
Recovery StringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- network
Type String - Type of Gateway
- Map<String>
- The Tag of
- vpn
Gateway StringName - The name of the VPN gateway.
- vpn
Type String - The Type of Vpn
- vswitch
Id String - The ID of the VSwitch to which the VPN gateway is attached.
Outputs
All input properties are implicitly available as output properties. Additionally, the GatewayEnhancedVpnGateway resource produces the following output properties:
- Create
Time int - The time when the VPN gateway was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the resource.
- Create
Time int - The time when the VPN gateway was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the resource.
- create_
time number - The time when the VPN gateway was created.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The status of the resource.
- create
Time Integer - The time when the VPN gateway was created.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the resource.
- create
Time number - The time when the VPN gateway was created.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The status of the resource.
- create_
time int - The time when the VPN gateway was created.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The status of the resource.
- create
Time Number - The time when the VPN gateway was created.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the resource.
Look up Existing GatewayEnhancedVpnGateway Resource
Get an existing GatewayEnhancedVpnGateway 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?: GatewayEnhancedVpnGatewayState, opts?: CustomResourceOptions): GatewayEnhancedVpnGateway@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_propagate: Optional[bool] = None,
create_time: Optional[int] = None,
description: Optional[str] = None,
disaster_recovery_vswitch_id: Optional[str] = None,
gateway_type: Optional[str] = None,
network_type: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None,
vpn_gateway_name: Optional[str] = None,
vpn_type: Optional[str] = None,
vswitch_id: Optional[str] = None) -> GatewayEnhancedVpnGatewayfunc GetGatewayEnhancedVpnGateway(ctx *Context, name string, id IDInput, state *GatewayEnhancedVpnGatewayState, opts ...ResourceOption) (*GatewayEnhancedVpnGateway, error)public static GatewayEnhancedVpnGateway Get(string name, Input<string> id, GatewayEnhancedVpnGatewayState? state, CustomResourceOptions? opts = null)public static GatewayEnhancedVpnGateway get(String name, Output<String> id, GatewayEnhancedVpnGatewayState state, CustomResourceOptions options)resources: _: type: alicloud:vpn:GatewayEnhancedVpnGateway get: id: ${id}import {
to = alicloud_vpn_gatewayenhancedvpngateway.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.
- Auto
Propagate bool - Specifies whether to automatically propagate BGP routes to the VPC
- Create
Time int - The time when the VPN gateway was created.
- Description string
- The description of the VPN gateway.
- Disaster
Recovery stringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- Gateway
Type string - VPN gateway type
- Network
Type string - Type of Gateway
- Status string
- The status of the resource.
- Dictionary<string, string>
- The Tag of
- Vpc
Id string - The ID of the VPC to which the VPN gateway belongs.
- Vpn
Gateway stringName - The name of the VPN gateway.
- Vpn
Type string - The Type of Vpn
- Vswitch
Id string - The ID of the VSwitch to which the VPN gateway is attached.
- Auto
Propagate bool - Specifies whether to automatically propagate BGP routes to the VPC
- Create
Time int - The time when the VPN gateway was created.
- Description string
- The description of the VPN gateway.
- Disaster
Recovery stringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- Gateway
Type string - VPN gateway type
- Network
Type string - Type of Gateway
- Status string
- The status of the resource.
- map[string]string
- The Tag of
- Vpc
Id string - The ID of the VPC to which the VPN gateway belongs.
- Vpn
Gateway stringName - The name of the VPN gateway.
- Vpn
Type string - The Type of Vpn
- Vswitch
Id string - The ID of the VSwitch to which the VPN gateway is attached.
- auto_
propagate bool - Specifies whether to automatically propagate BGP routes to the VPC
- create_
time number - The time when the VPN gateway was created.
- description string
- The description of the VPN gateway.
- disaster_
recovery_ stringvswitch_ id - The ID of the backup VSwitch to which the VPN gateway is attached.
- gateway_
type string - VPN gateway type
- network_
type string - Type of Gateway
- status string
- The status of the resource.
- map(string)
- The Tag of
- vpc_
id string - The ID of the VPC to which the VPN gateway belongs.
- vpn_
gateway_ stringname - The name of the VPN gateway.
- vpn_
type string - The Type of Vpn
- vswitch_
id string - The ID of the VSwitch to which the VPN gateway is attached.
- auto
Propagate Boolean - Specifies whether to automatically propagate BGP routes to the VPC
- create
Time Integer - The time when the VPN gateway was created.
- description String
- The description of the VPN gateway.
- disaster
Recovery StringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- gateway
Type String - VPN gateway type
- network
Type String - Type of Gateway
- status String
- The status of the resource.
- Map<String,String>
- The Tag of
- vpc
Id String - The ID of the VPC to which the VPN gateway belongs.
- vpn
Gateway StringName - The name of the VPN gateway.
- vpn
Type String - The Type of Vpn
- vswitch
Id String - The ID of the VSwitch to which the VPN gateway is attached.
- auto
Propagate boolean - Specifies whether to automatically propagate BGP routes to the VPC
- create
Time number - The time when the VPN gateway was created.
- description string
- The description of the VPN gateway.
- disaster
Recovery stringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- gateway
Type string - VPN gateway type
- network
Type string - Type of Gateway
- status string
- The status of the resource.
- {[key: string]: string}
- The Tag of
- vpc
Id string - The ID of the VPC to which the VPN gateway belongs.
- vpn
Gateway stringName - The name of the VPN gateway.
- vpn
Type string - The Type of Vpn
- vswitch
Id string - The ID of the VSwitch to which the VPN gateway is attached.
- auto_
propagate bool - Specifies whether to automatically propagate BGP routes to the VPC
- create_
time int - The time when the VPN gateway was created.
- description str
- The description of the VPN gateway.
- disaster_
recovery_ strvswitch_ id - The ID of the backup VSwitch to which the VPN gateway is attached.
- gateway_
type str - VPN gateway type
- network_
type str - Type of Gateway
- status str
- The status of the resource.
- Mapping[str, str]
- The Tag of
- vpc_
id str - The ID of the VPC to which the VPN gateway belongs.
- vpn_
gateway_ strname - The name of the VPN gateway.
- vpn_
type str - The Type of Vpn
- vswitch_
id str - The ID of the VSwitch to which the VPN gateway is attached.
- auto
Propagate Boolean - Specifies whether to automatically propagate BGP routes to the VPC
- create
Time Number - The time when the VPN gateway was created.
- description String
- The description of the VPN gateway.
- disaster
Recovery StringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- gateway
Type String - VPN gateway type
- network
Type String - Type of Gateway
- status String
- The status of the resource.
- Map<String>
- The Tag of
- vpc
Id String - The ID of the VPC to which the VPN gateway belongs.
- vpn
Gateway StringName - The name of the VPN gateway.
- vpn
Type String - The Type of Vpn
- vswitch
Id String - The ID of the VSwitch to which the VPN gateway is attached.
Import
Vpn Gateway Enhanced Vpn Gateway can be imported using the id, e.g.
$ pulumi import alicloud:vpn/gatewayEnhancedVpnGateway:GatewayEnhancedVpnGateway example <vpn_instance_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
published on Thursday, Jun 25, 2026 by Pulumi