tencentcloud.VpnConnection
Explore with Pulumi AI
Provides a resource to create a VPN connection.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.VpnConnection("example", {
customerGatewayId: "cgw-e503id2z",
enableHealthCheck: true,
healthCheckConfig: {
probeInterval: 5000,
probeThreshold: 3,
probeTimeout: 150,
probeType: "NQA",
},
healthCheckLocalIp: "169.254.227.187",
healthCheckRemoteIp: "169.254.164.37",
ikeDhGroupName: "GROUP2",
ikeExchangeMode: "AGGRESSIVE",
ikeLocalAddress: "159.75.204.38",
ikeLocalIdentity: "ADDRESS",
ikeProtoAuthenAlgorithm: "SHA",
ikeProtoEncryAlgorithm: "3DES-CBC",
ikeRemoteAddress: "109.244.60.154",
ikeRemoteIdentity: "ADDRESS",
ikeSaLifetimeSeconds: 86400,
ipsecEncryptAlgorithm: "3DES-CBC",
ipsecIntegrityAlgorithm: "SHA1",
ipsecPfsDhGroup: "NULL",
ipsecSaLifetimeSeconds: 14400,
ipsecSaLifetimeTraffic: 4096000000,
negotiationType: "flowTrigger",
preShareKey: "your_pre_share_key",
routeType: "StaticRoute",
securityGroupPolicies: [{
localCidrBlock: "172.16.0.0/16",
remoteCidrBlocks: ["2.2.2.0/26"],
}],
tags: {
createBy: "Terraform",
},
vpcId: "vpc-6ccw0s5l",
vpnGatewayId: "vpngw-33p5vnwd",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.VpnConnection("example",
customer_gateway_id="cgw-e503id2z",
enable_health_check=True,
health_check_config={
"probe_interval": 5000,
"probe_threshold": 3,
"probe_timeout": 150,
"probe_type": "NQA",
},
health_check_local_ip="169.254.227.187",
health_check_remote_ip="169.254.164.37",
ike_dh_group_name="GROUP2",
ike_exchange_mode="AGGRESSIVE",
ike_local_address="159.75.204.38",
ike_local_identity="ADDRESS",
ike_proto_authen_algorithm="SHA",
ike_proto_encry_algorithm="3DES-CBC",
ike_remote_address="109.244.60.154",
ike_remote_identity="ADDRESS",
ike_sa_lifetime_seconds=86400,
ipsec_encrypt_algorithm="3DES-CBC",
ipsec_integrity_algorithm="SHA1",
ipsec_pfs_dh_group="NULL",
ipsec_sa_lifetime_seconds=14400,
ipsec_sa_lifetime_traffic=4096000000,
negotiation_type="flowTrigger",
pre_share_key="your_pre_share_key",
route_type="StaticRoute",
security_group_policies=[{
"local_cidr_block": "172.16.0.0/16",
"remote_cidr_blocks": ["2.2.2.0/26"],
}],
tags={
"createBy": "Terraform",
},
vpc_id="vpc-6ccw0s5l",
vpn_gateway_id="vpngw-33p5vnwd")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewVpnConnection(ctx, "example", &tencentcloud.VpnConnectionArgs{
CustomerGatewayId: pulumi.String("cgw-e503id2z"),
EnableHealthCheck: pulumi.Bool(true),
HealthCheckConfig: &tencentcloud.VpnConnectionHealthCheckConfigArgs{
ProbeInterval: pulumi.Float64(5000),
ProbeThreshold: pulumi.Float64(3),
ProbeTimeout: pulumi.Float64(150),
ProbeType: pulumi.String("NQA"),
},
HealthCheckLocalIp: pulumi.String("169.254.227.187"),
HealthCheckRemoteIp: pulumi.String("169.254.164.37"),
IkeDhGroupName: pulumi.String("GROUP2"),
IkeExchangeMode: pulumi.String("AGGRESSIVE"),
IkeLocalAddress: pulumi.String("159.75.204.38"),
IkeLocalIdentity: pulumi.String("ADDRESS"),
IkeProtoAuthenAlgorithm: pulumi.String("SHA"),
IkeProtoEncryAlgorithm: pulumi.String("3DES-CBC"),
IkeRemoteAddress: pulumi.String("109.244.60.154"),
IkeRemoteIdentity: pulumi.String("ADDRESS"),
IkeSaLifetimeSeconds: pulumi.Float64(86400),
IpsecEncryptAlgorithm: pulumi.String("3DES-CBC"),
IpsecIntegrityAlgorithm: pulumi.String("SHA1"),
IpsecPfsDhGroup: pulumi.String("NULL"),
IpsecSaLifetimeSeconds: pulumi.Float64(14400),
IpsecSaLifetimeTraffic: pulumi.Float64(4096000000),
NegotiationType: pulumi.String("flowTrigger"),
PreShareKey: pulumi.String("your_pre_share_key"),
RouteType: pulumi.String("StaticRoute"),
SecurityGroupPolicies: tencentcloud.VpnConnectionSecurityGroupPolicyArray{
&tencentcloud.VpnConnectionSecurityGroupPolicyArgs{
LocalCidrBlock: pulumi.String("172.16.0.0/16"),
RemoteCidrBlocks: pulumi.StringArray{
pulumi.String("2.2.2.0/26"),
},
},
},
Tags: pulumi.StringMap{
"createBy": pulumi.String("Terraform"),
},
VpcId: pulumi.String("vpc-6ccw0s5l"),
VpnGatewayId: pulumi.String("vpngw-33p5vnwd"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.VpnConnection("example", new()
{
CustomerGatewayId = "cgw-e503id2z",
EnableHealthCheck = true,
HealthCheckConfig = new Tencentcloud.Inputs.VpnConnectionHealthCheckConfigArgs
{
ProbeInterval = 5000,
ProbeThreshold = 3,
ProbeTimeout = 150,
ProbeType = "NQA",
},
HealthCheckLocalIp = "169.254.227.187",
HealthCheckRemoteIp = "169.254.164.37",
IkeDhGroupName = "GROUP2",
IkeExchangeMode = "AGGRESSIVE",
IkeLocalAddress = "159.75.204.38",
IkeLocalIdentity = "ADDRESS",
IkeProtoAuthenAlgorithm = "SHA",
IkeProtoEncryAlgorithm = "3DES-CBC",
IkeRemoteAddress = "109.244.60.154",
IkeRemoteIdentity = "ADDRESS",
IkeSaLifetimeSeconds = 86400,
IpsecEncryptAlgorithm = "3DES-CBC",
IpsecIntegrityAlgorithm = "SHA1",
IpsecPfsDhGroup = "NULL",
IpsecSaLifetimeSeconds = 14400,
IpsecSaLifetimeTraffic = 4096000000,
NegotiationType = "flowTrigger",
PreShareKey = "your_pre_share_key",
RouteType = "StaticRoute",
SecurityGroupPolicies = new[]
{
new Tencentcloud.Inputs.VpnConnectionSecurityGroupPolicyArgs
{
LocalCidrBlock = "172.16.0.0/16",
RemoteCidrBlocks = new[]
{
"2.2.2.0/26",
},
},
},
Tags =
{
{ "createBy", "Terraform" },
},
VpcId = "vpc-6ccw0s5l",
VpnGatewayId = "vpngw-33p5vnwd",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.VpnConnection;
import com.pulumi.tencentcloud.VpnConnectionArgs;
import com.pulumi.tencentcloud.inputs.VpnConnectionHealthCheckConfigArgs;
import com.pulumi.tencentcloud.inputs.VpnConnectionSecurityGroupPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new VpnConnection("example", VpnConnectionArgs.builder()
.customerGatewayId("cgw-e503id2z")
.enableHealthCheck(true)
.healthCheckConfig(VpnConnectionHealthCheckConfigArgs.builder()
.probeInterval(5000)
.probeThreshold(3)
.probeTimeout(150)
.probeType("NQA")
.build())
.healthCheckLocalIp("169.254.227.187")
.healthCheckRemoteIp("169.254.164.37")
.ikeDhGroupName("GROUP2")
.ikeExchangeMode("AGGRESSIVE")
.ikeLocalAddress("159.75.204.38")
.ikeLocalIdentity("ADDRESS")
.ikeProtoAuthenAlgorithm("SHA")
.ikeProtoEncryAlgorithm("3DES-CBC")
.ikeRemoteAddress("109.244.60.154")
.ikeRemoteIdentity("ADDRESS")
.ikeSaLifetimeSeconds(86400)
.ipsecEncryptAlgorithm("3DES-CBC")
.ipsecIntegrityAlgorithm("SHA1")
.ipsecPfsDhGroup("NULL")
.ipsecSaLifetimeSeconds(14400)
.ipsecSaLifetimeTraffic(4096000000)
.negotiationType("flowTrigger")
.preShareKey("your_pre_share_key")
.routeType("StaticRoute")
.securityGroupPolicies(VpnConnectionSecurityGroupPolicyArgs.builder()
.localCidrBlock("172.16.0.0/16")
.remoteCidrBlocks("2.2.2.0/26")
.build())
.tags(Map.of("createBy", "Terraform"))
.vpcId("vpc-6ccw0s5l")
.vpnGatewayId("vpngw-33p5vnwd")
.build());
}
}
resources:
example:
type: tencentcloud:VpnConnection
properties:
customerGatewayId: cgw-e503id2z
# health check setting
enableHealthCheck: true
healthCheckConfig:
probeInterval: 5000
probeThreshold: 3
probeTimeout: 150
probeType: NQA
healthCheckLocalIp: 169.254.227.187
healthCheckRemoteIp: 169.254.164.37
ikeDhGroupName: GROUP2
ikeExchangeMode: AGGRESSIVE
ikeLocalAddress: 159.75.204.38
ikeLocalIdentity: ADDRESS
ikeProtoAuthenAlgorithm: SHA
# IKE setting
ikeProtoEncryAlgorithm: 3DES-CBC
ikeRemoteAddress: 109.244.60.154
ikeRemoteIdentity: ADDRESS
ikeSaLifetimeSeconds: 86400
# IPSEC setting
ipsecEncryptAlgorithm: 3DES-CBC
ipsecIntegrityAlgorithm: SHA1
ipsecPfsDhGroup: NULL
ipsecSaLifetimeSeconds: 14400
ipsecSaLifetimeTraffic: 4.096e+09
negotiationType: flowTrigger
preShareKey: your_pre_share_key
routeType: StaticRoute
securityGroupPolicies:
- localCidrBlock: 172.16.0.0/16
remoteCidrBlocks:
- 2.2.2.0/26
tags:
createBy: Terraform
vpcId: vpc-6ccw0s5l
vpnGatewayId: vpngw-33p5vnwd
Create VpnConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpnConnection(name: string, args: VpnConnectionArgs, opts?: CustomResourceOptions);
@overload
def VpnConnection(resource_name: str,
args: VpnConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpnConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
pre_share_key: Optional[str] = None,
customer_gateway_id: Optional[str] = None,
vpn_gateway_id: Optional[str] = None,
ike_remote_address: Optional[str] = None,
ike_version: Optional[str] = None,
enable_health_check: Optional[bool] = None,
health_check_config: Optional[VpnConnectionHealthCheckConfigArgs] = None,
health_check_local_ip: Optional[str] = None,
health_check_remote_ip: Optional[str] = None,
ike_dh_group_name: Optional[str] = None,
ike_exchange_mode: Optional[str] = None,
ike_sa_lifetime_seconds: Optional[float] = None,
ike_local_fqdn_name: Optional[str] = None,
ike_local_identity: Optional[str] = None,
ike_proto_authen_algorithm: Optional[str] = None,
ike_proto_encry_algorithm: Optional[str] = None,
bgp_config: Optional[VpnConnectionBgpConfigArgs] = None,
dpd_timeout: Optional[float] = None,
ike_remote_fqdn_name: Optional[str] = None,
ike_local_address: Optional[str] = None,
ike_remote_identity: Optional[str] = None,
ipsec_encrypt_algorithm: Optional[str] = None,
ipsec_integrity_algorithm: Optional[str] = None,
ipsec_pfs_dh_group: Optional[str] = None,
ipsec_sa_lifetime_seconds: Optional[float] = None,
ipsec_sa_lifetime_traffic: Optional[float] = None,
name: Optional[str] = None,
negotiation_type: Optional[str] = None,
dpd_enable: Optional[float] = None,
route_type: Optional[str] = None,
security_group_policies: Optional[Sequence[VpnConnectionSecurityGroupPolicyArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None,
vpn_connection_id: Optional[str] = None,
dpd_action: Optional[str] = None)
func NewVpnConnection(ctx *Context, name string, args VpnConnectionArgs, opts ...ResourceOption) (*VpnConnection, error)
public VpnConnection(string name, VpnConnectionArgs args, CustomResourceOptions? opts = null)
public VpnConnection(String name, VpnConnectionArgs args)
public VpnConnection(String name, VpnConnectionArgs args, CustomResourceOptions options)
type: tencentcloud:VpnConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpnConnectionArgs
- 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 VpnConnectionArgs
- 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 VpnConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpnConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpnConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VpnConnection 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 VpnConnection resource accepts the following input properties:
- Customer
Gateway stringId - ID of the customer gateway.
- string
- Pre-shared key of the VPN connection.
- Vpn
Gateway stringId - ID of the VPN gateway.
- Bgp
Config VpnConnection Bgp Config - BGP config.
- Dpd
Action string - The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1.
- Dpd
Enable double - Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable).
- Dpd
Timeout double - DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1.
- Enable
Health boolCheck - Whether intra-tunnel health checks are supported.
- Health
Check VpnConfig Connection Health Check Config - VPN channel health check configuration.
- Health
Check stringLocal Ip - Health check the address of this terminal.
- Health
Check stringRemote Ip - Health check peer address.
- Ike
Dh stringGroup Name - DH group name of the IKE operation specification. Valid values:
GROUP1
,GROUP2
,GROUP5
,GROUP14
,GROUP24
. Default value isGROUP1
. - Ike
Exchange stringMode - Exchange mode of the IKE operation specification. Valid values:
AGGRESSIVE
,MAIN
. Default value isMAIN
. - Ike
Local stringAddress - Local address of IKE operation specification, valid when ike_local_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related VPN gateway. - Ike
Local stringFqdn Name - Local FQDN name of the IKE operation specification.
- Ike
Local stringIdentity - Local identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - Ike
Proto stringAuthen Algorithm - Proto authenticate algorithm of the IKE operation specification. Valid values:
MD5
,SHA
,SHA-256
. Default Value isMD5
. - Ike
Proto stringEncry Algorithm - Proto encrypt algorithm of the IKE operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,AES128GCM128
,AES192GCM128
,AES256GCM128
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - Ike
Remote stringAddress - Remote address of IKE operation specification, valid when ike_remote_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related customer gateway. - Ike
Remote stringFqdn Name - Remote FQDN name of the IKE operation specification.
- Ike
Remote stringIdentity - Remote identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - Ike
Sa doubleLifetime Seconds - SA lifetime of the IKE operation specification, unit is
second
. The value ranges from 60 to 604800. Default value is 86400 seconds. - Ike
Version string - Version of the IKE operation specification, values:
IKEV1
,IKEV2
. Default value isIKEV1
. - Ipsec
Encrypt stringAlgorithm - Encrypt algorithm of the IPSEC operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,NULL
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - Ipsec
Integrity stringAlgorithm - Integrity algorithm of the IPSEC operation specification. Valid values:
SHA1
,MD5
,SHA-256
. Default value isMD5
. - Ipsec
Pfs stringDh Group - PFS DH group. Valid value:
DH-GROUP1
,DH-GROUP2
,DH-GROUP5
,DH-GROUP14
,DH-GROUP24
,NULL
. Default value isNULL
. - Ipsec
Sa doubleLifetime Seconds - SA lifetime of the IPSEC operation specification, unit is second. Valid value ranges: [180~604800]. Default value is 3600 seconds.
- Ipsec
Sa doubleLifetime Traffic - SA lifetime of the IPSEC operation specification, unit is KB. The value should not be less then 2560. Default value is 1843200.
- Name string
- Name of the VPN connection. The length of character is limited to 1-60.
- Negotiation
Type string - The default negotiation type is
active
. Optional values:active
(active negotiation),passive
(passive negotiation),flowTrigger
(traffic negotiation). - Route
Type string - Route type of the VPN connection. Valid value:
STATIC
,StaticRoute
,Policy
,Bgp
. - Security
Group List<VpnPolicies Connection Security Group Policy> - SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}, 10.0.0.5/24 is the vpc intranet segment, and 172.123.10.5/16 is the IDC network segment. Users specify which network segments in the VPC can communicate with which network segments in your IDC.
- Dictionary<string, string>
- A list of tags used to associate different resources.
- Vpc
Id string - ID of the VPC. Required if vpn gateway is not in
CCN
type, and doesn't make sense forCCN
vpn gateway. - Vpn
Connection stringId - ID of the resource.
- Customer
Gateway stringId - ID of the customer gateway.
- string
- Pre-shared key of the VPN connection.
- Vpn
Gateway stringId - ID of the VPN gateway.
- Bgp
Config VpnConnection Bgp Config Args - BGP config.
- Dpd
Action string - The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1.
- Dpd
Enable float64 - Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable).
- Dpd
Timeout float64 - DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1.
- Enable
Health boolCheck - Whether intra-tunnel health checks are supported.
- Health
Check VpnConfig Connection Health Check Config Args - VPN channel health check configuration.
- Health
Check stringLocal Ip - Health check the address of this terminal.
- Health
Check stringRemote Ip - Health check peer address.
- Ike
Dh stringGroup Name - DH group name of the IKE operation specification. Valid values:
GROUP1
,GROUP2
,GROUP5
,GROUP14
,GROUP24
. Default value isGROUP1
. - Ike
Exchange stringMode - Exchange mode of the IKE operation specification. Valid values:
AGGRESSIVE
,MAIN
. Default value isMAIN
. - Ike
Local stringAddress - Local address of IKE operation specification, valid when ike_local_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related VPN gateway. - Ike
Local stringFqdn Name - Local FQDN name of the IKE operation specification.
- Ike
Local stringIdentity - Local identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - Ike
Proto stringAuthen Algorithm - Proto authenticate algorithm of the IKE operation specification. Valid values:
MD5
,SHA
,SHA-256
. Default Value isMD5
. - Ike
Proto stringEncry Algorithm - Proto encrypt algorithm of the IKE operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,AES128GCM128
,AES192GCM128
,AES256GCM128
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - Ike
Remote stringAddress - Remote address of IKE operation specification, valid when ike_remote_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related customer gateway. - Ike
Remote stringFqdn Name - Remote FQDN name of the IKE operation specification.
- Ike
Remote stringIdentity - Remote identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - Ike
Sa float64Lifetime Seconds - SA lifetime of the IKE operation specification, unit is
second
. The value ranges from 60 to 604800. Default value is 86400 seconds. - Ike
Version string - Version of the IKE operation specification, values:
IKEV1
,IKEV2
. Default value isIKEV1
. - Ipsec
Encrypt stringAlgorithm - Encrypt algorithm of the IPSEC operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,NULL
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - Ipsec
Integrity stringAlgorithm - Integrity algorithm of the IPSEC operation specification. Valid values:
SHA1
,MD5
,SHA-256
. Default value isMD5
. - Ipsec
Pfs stringDh Group - PFS DH group. Valid value:
DH-GROUP1
,DH-GROUP2
,DH-GROUP5
,DH-GROUP14
,DH-GROUP24
,NULL
. Default value isNULL
. - Ipsec
Sa float64Lifetime Seconds - SA lifetime of the IPSEC operation specification, unit is second. Valid value ranges: [180~604800]. Default value is 3600 seconds.
- Ipsec
Sa float64Lifetime Traffic - SA lifetime of the IPSEC operation specification, unit is KB. The value should not be less then 2560. Default value is 1843200.
- Name string
- Name of the VPN connection. The length of character is limited to 1-60.
- Negotiation
Type string - The default negotiation type is
active
. Optional values:active
(active negotiation),passive
(passive negotiation),flowTrigger
(traffic negotiation). - Route
Type string - Route type of the VPN connection. Valid value:
STATIC
,StaticRoute
,Policy
,Bgp
. - Security
Group []VpnPolicies Connection Security Group Policy Args - SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}, 10.0.0.5/24 is the vpc intranet segment, and 172.123.10.5/16 is the IDC network segment. Users specify which network segments in the VPC can communicate with which network segments in your IDC.
- map[string]string
- A list of tags used to associate different resources.
- Vpc
Id string - ID of the VPC. Required if vpn gateway is not in
CCN
type, and doesn't make sense forCCN
vpn gateway. - Vpn
Connection stringId - ID of the resource.
- customer
Gateway StringId - ID of the customer gateway.
- String
- Pre-shared key of the VPN connection.
- vpn
Gateway StringId - ID of the VPN gateway.
- bgp
Config VpnConnection Bgp Config - BGP config.
- dpd
Action String - The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1.
- dpd
Enable Double - Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable).
- dpd
Timeout Double - DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1.
- enable
Health BooleanCheck - Whether intra-tunnel health checks are supported.
- health
Check VpnConfig Connection Health Check Config - VPN channel health check configuration.
- health
Check StringLocal Ip - Health check the address of this terminal.
- health
Check StringRemote Ip - Health check peer address.
- ike
Dh StringGroup Name - DH group name of the IKE operation specification. Valid values:
GROUP1
,GROUP2
,GROUP5
,GROUP14
,GROUP24
. Default value isGROUP1
. - ike
Exchange StringMode - Exchange mode of the IKE operation specification. Valid values:
AGGRESSIVE
,MAIN
. Default value isMAIN
. - ike
Local StringAddress - Local address of IKE operation specification, valid when ike_local_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related VPN gateway. - ike
Local StringFqdn Name - Local FQDN name of the IKE operation specification.
- ike
Local StringIdentity - Local identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike
Proto StringAuthen Algorithm - Proto authenticate algorithm of the IKE operation specification. Valid values:
MD5
,SHA
,SHA-256
. Default Value isMD5
. - ike
Proto StringEncry Algorithm - Proto encrypt algorithm of the IKE operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,AES128GCM128
,AES192GCM128
,AES256GCM128
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ike
Remote StringAddress - Remote address of IKE operation specification, valid when ike_remote_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related customer gateway. - ike
Remote StringFqdn Name - Remote FQDN name of the IKE operation specification.
- ike
Remote StringIdentity - Remote identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike
Sa DoubleLifetime Seconds - SA lifetime of the IKE operation specification, unit is
second
. The value ranges from 60 to 604800. Default value is 86400 seconds. - ike
Version String - Version of the IKE operation specification, values:
IKEV1
,IKEV2
. Default value isIKEV1
. - ipsec
Encrypt StringAlgorithm - Encrypt algorithm of the IPSEC operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,NULL
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ipsec
Integrity StringAlgorithm - Integrity algorithm of the IPSEC operation specification. Valid values:
SHA1
,MD5
,SHA-256
. Default value isMD5
. - ipsec
Pfs StringDh Group - PFS DH group. Valid value:
DH-GROUP1
,DH-GROUP2
,DH-GROUP5
,DH-GROUP14
,DH-GROUP24
,NULL
. Default value isNULL
. - ipsec
Sa DoubleLifetime Seconds - SA lifetime of the IPSEC operation specification, unit is second. Valid value ranges: [180~604800]. Default value is 3600 seconds.
- ipsec
Sa DoubleLifetime Traffic - SA lifetime of the IPSEC operation specification, unit is KB. The value should not be less then 2560. Default value is 1843200.
- name String
- Name of the VPN connection. The length of character is limited to 1-60.
- negotiation
Type String - The default negotiation type is
active
. Optional values:active
(active negotiation),passive
(passive negotiation),flowTrigger
(traffic negotiation). - route
Type String - Route type of the VPN connection. Valid value:
STATIC
,StaticRoute
,Policy
,Bgp
. - security
Group List<VpnPolicies Connection Security Group Policy> - SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}, 10.0.0.5/24 is the vpc intranet segment, and 172.123.10.5/16 is the IDC network segment. Users specify which network segments in the VPC can communicate with which network segments in your IDC.
- Map<String,String>
- A list of tags used to associate different resources.
- vpc
Id String - ID of the VPC. Required if vpn gateway is not in
CCN
type, and doesn't make sense forCCN
vpn gateway. - vpn
Connection StringId - ID of the resource.
- customer
Gateway stringId - ID of the customer gateway.
- string
- Pre-shared key of the VPN connection.
- vpn
Gateway stringId - ID of the VPN gateway.
- bgp
Config VpnConnection Bgp Config - BGP config.
- dpd
Action string - The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1.
- dpd
Enable number - Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable).
- dpd
Timeout number - DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1.
- enable
Health booleanCheck - Whether intra-tunnel health checks are supported.
- health
Check VpnConfig Connection Health Check Config - VPN channel health check configuration.
- health
Check stringLocal Ip - Health check the address of this terminal.
- health
Check stringRemote Ip - Health check peer address.
- ike
Dh stringGroup Name - DH group name of the IKE operation specification. Valid values:
GROUP1
,GROUP2
,GROUP5
,GROUP14
,GROUP24
. Default value isGROUP1
. - ike
Exchange stringMode - Exchange mode of the IKE operation specification. Valid values:
AGGRESSIVE
,MAIN
. Default value isMAIN
. - ike
Local stringAddress - Local address of IKE operation specification, valid when ike_local_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related VPN gateway. - ike
Local stringFqdn Name - Local FQDN name of the IKE operation specification.
- ike
Local stringIdentity - Local identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike
Proto stringAuthen Algorithm - Proto authenticate algorithm of the IKE operation specification. Valid values:
MD5
,SHA
,SHA-256
. Default Value isMD5
. - ike
Proto stringEncry Algorithm - Proto encrypt algorithm of the IKE operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,AES128GCM128
,AES192GCM128
,AES256GCM128
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ike
Remote stringAddress - Remote address of IKE operation specification, valid when ike_remote_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related customer gateway. - ike
Remote stringFqdn Name - Remote FQDN name of the IKE operation specification.
- ike
Remote stringIdentity - Remote identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike
Sa numberLifetime Seconds - SA lifetime of the IKE operation specification, unit is
second
. The value ranges from 60 to 604800. Default value is 86400 seconds. - ike
Version string - Version of the IKE operation specification, values:
IKEV1
,IKEV2
. Default value isIKEV1
. - ipsec
Encrypt stringAlgorithm - Encrypt algorithm of the IPSEC operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,NULL
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ipsec
Integrity stringAlgorithm - Integrity algorithm of the IPSEC operation specification. Valid values:
SHA1
,MD5
,SHA-256
. Default value isMD5
. - ipsec
Pfs stringDh Group - PFS DH group. Valid value:
DH-GROUP1
,DH-GROUP2
,DH-GROUP5
,DH-GROUP14
,DH-GROUP24
,NULL
. Default value isNULL
. - ipsec
Sa numberLifetime Seconds - SA lifetime of the IPSEC operation specification, unit is second. Valid value ranges: [180~604800]. Default value is 3600 seconds.
- ipsec
Sa numberLifetime Traffic - SA lifetime of the IPSEC operation specification, unit is KB. The value should not be less then 2560. Default value is 1843200.
- name string
- Name of the VPN connection. The length of character is limited to 1-60.
- negotiation
Type string - The default negotiation type is
active
. Optional values:active
(active negotiation),passive
(passive negotiation),flowTrigger
(traffic negotiation). - route
Type string - Route type of the VPN connection. Valid value:
STATIC
,StaticRoute
,Policy
,Bgp
. - security
Group VpnPolicies Connection Security Group Policy[] - SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}, 10.0.0.5/24 is the vpc intranet segment, and 172.123.10.5/16 is the IDC network segment. Users specify which network segments in the VPC can communicate with which network segments in your IDC.
- {[key: string]: string}
- A list of tags used to associate different resources.
- vpc
Id string - ID of the VPC. Required if vpn gateway is not in
CCN
type, and doesn't make sense forCCN
vpn gateway. - vpn
Connection stringId - ID of the resource.
- customer_
gateway_ strid - ID of the customer gateway.
- str
- Pre-shared key of the VPN connection.
- vpn_
gateway_ strid - ID of the VPN gateway.
- bgp_
config VpnConnection Bgp Config Args - BGP config.
- dpd_
action str - The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1.
- dpd_
enable float - Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable).
- dpd_
timeout float - DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1.
- enable_
health_ boolcheck - Whether intra-tunnel health checks are supported.
- health_
check_ Vpnconfig Connection Health Check Config Args - VPN channel health check configuration.
- health_
check_ strlocal_ ip - Health check the address of this terminal.
- health_
check_ strremote_ ip - Health check peer address.
- ike_
dh_ strgroup_ name - DH group name of the IKE operation specification. Valid values:
GROUP1
,GROUP2
,GROUP5
,GROUP14
,GROUP24
. Default value isGROUP1
. - ike_
exchange_ strmode - Exchange mode of the IKE operation specification. Valid values:
AGGRESSIVE
,MAIN
. Default value isMAIN
. - ike_
local_ straddress - Local address of IKE operation specification, valid when ike_local_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related VPN gateway. - ike_
local_ strfqdn_ name - Local FQDN name of the IKE operation specification.
- ike_
local_ stridentity - Local identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike_
proto_ strauthen_ algorithm - Proto authenticate algorithm of the IKE operation specification. Valid values:
MD5
,SHA
,SHA-256
. Default Value isMD5
. - ike_
proto_ strencry_ algorithm - Proto encrypt algorithm of the IKE operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,AES128GCM128
,AES192GCM128
,AES256GCM128
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ike_
remote_ straddress - Remote address of IKE operation specification, valid when ike_remote_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related customer gateway. - ike_
remote_ strfqdn_ name - Remote FQDN name of the IKE operation specification.
- ike_
remote_ stridentity - Remote identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike_
sa_ floatlifetime_ seconds - SA lifetime of the IKE operation specification, unit is
second
. The value ranges from 60 to 604800. Default value is 86400 seconds. - ike_
version str - Version of the IKE operation specification, values:
IKEV1
,IKEV2
. Default value isIKEV1
. - ipsec_
encrypt_ stralgorithm - Encrypt algorithm of the IPSEC operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,NULL
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ipsec_
integrity_ stralgorithm - Integrity algorithm of the IPSEC operation specification. Valid values:
SHA1
,MD5
,SHA-256
. Default value isMD5
. - ipsec_
pfs_ strdh_ group - PFS DH group. Valid value:
DH-GROUP1
,DH-GROUP2
,DH-GROUP5
,DH-GROUP14
,DH-GROUP24
,NULL
. Default value isNULL
. - ipsec_
sa_ floatlifetime_ seconds - SA lifetime of the IPSEC operation specification, unit is second. Valid value ranges: [180~604800]. Default value is 3600 seconds.
- ipsec_
sa_ floatlifetime_ traffic - SA lifetime of the IPSEC operation specification, unit is KB. The value should not be less then 2560. Default value is 1843200.
- name str
- Name of the VPN connection. The length of character is limited to 1-60.
- negotiation_
type str - The default negotiation type is
active
. Optional values:active
(active negotiation),passive
(passive negotiation),flowTrigger
(traffic negotiation). - route_
type str - Route type of the VPN connection. Valid value:
STATIC
,StaticRoute
,Policy
,Bgp
. - security_
group_ Sequence[Vpnpolicies Connection Security Group Policy Args] - SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}, 10.0.0.5/24 is the vpc intranet segment, and 172.123.10.5/16 is the IDC network segment. Users specify which network segments in the VPC can communicate with which network segments in your IDC.
- Mapping[str, str]
- A list of tags used to associate different resources.
- vpc_
id str - ID of the VPC. Required if vpn gateway is not in
CCN
type, and doesn't make sense forCCN
vpn gateway. - vpn_
connection_ strid - ID of the resource.
- customer
Gateway StringId - ID of the customer gateway.
- String
- Pre-shared key of the VPN connection.
- vpn
Gateway StringId - ID of the VPN gateway.
- bgp
Config Property Map - BGP config.
- dpd
Action String - The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1.
- dpd
Enable Number - Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable).
- dpd
Timeout Number - DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1.
- enable
Health BooleanCheck - Whether intra-tunnel health checks are supported.
- health
Check Property MapConfig - VPN channel health check configuration.
- health
Check StringLocal Ip - Health check the address of this terminal.
- health
Check StringRemote Ip - Health check peer address.
- ike
Dh StringGroup Name - DH group name of the IKE operation specification. Valid values:
GROUP1
,GROUP2
,GROUP5
,GROUP14
,GROUP24
. Default value isGROUP1
. - ike
Exchange StringMode - Exchange mode of the IKE operation specification. Valid values:
AGGRESSIVE
,MAIN
. Default value isMAIN
. - ike
Local StringAddress - Local address of IKE operation specification, valid when ike_local_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related VPN gateway. - ike
Local StringFqdn Name - Local FQDN name of the IKE operation specification.
- ike
Local StringIdentity - Local identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike
Proto StringAuthen Algorithm - Proto authenticate algorithm of the IKE operation specification. Valid values:
MD5
,SHA
,SHA-256
. Default Value isMD5
. - ike
Proto StringEncry Algorithm - Proto encrypt algorithm of the IKE operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,AES128GCM128
,AES192GCM128
,AES256GCM128
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ike
Remote StringAddress - Remote address of IKE operation specification, valid when ike_remote_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related customer gateway. - ike
Remote StringFqdn Name - Remote FQDN name of the IKE operation specification.
- ike
Remote StringIdentity - Remote identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike
Sa NumberLifetime Seconds - SA lifetime of the IKE operation specification, unit is
second
. The value ranges from 60 to 604800. Default value is 86400 seconds. - ike
Version String - Version of the IKE operation specification, values:
IKEV1
,IKEV2
. Default value isIKEV1
. - ipsec
Encrypt StringAlgorithm - Encrypt algorithm of the IPSEC operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,NULL
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ipsec
Integrity StringAlgorithm - Integrity algorithm of the IPSEC operation specification. Valid values:
SHA1
,MD5
,SHA-256
. Default value isMD5
. - ipsec
Pfs StringDh Group - PFS DH group. Valid value:
DH-GROUP1
,DH-GROUP2
,DH-GROUP5
,DH-GROUP14
,DH-GROUP24
,NULL
. Default value isNULL
. - ipsec
Sa NumberLifetime Seconds - SA lifetime of the IPSEC operation specification, unit is second. Valid value ranges: [180~604800]. Default value is 3600 seconds.
- ipsec
Sa NumberLifetime Traffic - SA lifetime of the IPSEC operation specification, unit is KB. The value should not be less then 2560. Default value is 1843200.
- name String
- Name of the VPN connection. The length of character is limited to 1-60.
- negotiation
Type String - The default negotiation type is
active
. Optional values:active
(active negotiation),passive
(passive negotiation),flowTrigger
(traffic negotiation). - route
Type String - Route type of the VPN connection. Valid value:
STATIC
,StaticRoute
,Policy
,Bgp
. - security
Group List<Property Map>Policies - SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}, 10.0.0.5/24 is the vpc intranet segment, and 172.123.10.5/16 is the IDC network segment. Users specify which network segments in the VPC can communicate with which network segments in your IDC.
- Map<String>
- A list of tags used to associate different resources.
- vpc
Id String - ID of the VPC. Required if vpn gateway is not in
CCN
type, and doesn't make sense forCCN
vpn gateway. - vpn
Connection StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpnConnection resource produces the following output properties:
- Create
Time string - Create time of the VPN connection.
- Encrypt
Proto string - Encrypt proto of the VPN connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Ccn boolType - Indicate whether is ccn type. Modification of this field only impacts force new logic of
vpc_id
. Ifis_ccn_type
is true, modification ofvpc_id
will be ignored. - Net
Status string - Net status of the VPN connection. Valid value:
AVAILABLE
. - State string
- State of the connection. Valid value:
PENDING
,AVAILABLE
,DELETING
. - Vpn
Proto string - Vpn proto of the VPN connection.
- Create
Time string - Create time of the VPN connection.
- Encrypt
Proto string - Encrypt proto of the VPN connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Ccn boolType - Indicate whether is ccn type. Modification of this field only impacts force new logic of
vpc_id
. Ifis_ccn_type
is true, modification ofvpc_id
will be ignored. - Net
Status string - Net status of the VPN connection. Valid value:
AVAILABLE
. - State string
- State of the connection. Valid value:
PENDING
,AVAILABLE
,DELETING
. - Vpn
Proto string - Vpn proto of the VPN connection.
- create
Time String - Create time of the VPN connection.
- encrypt
Proto String - Encrypt proto of the VPN connection.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Ccn BooleanType - Indicate whether is ccn type. Modification of this field only impacts force new logic of
vpc_id
. Ifis_ccn_type
is true, modification ofvpc_id
will be ignored. - net
Status String - Net status of the VPN connection. Valid value:
AVAILABLE
. - state String
- State of the connection. Valid value:
PENDING
,AVAILABLE
,DELETING
. - vpn
Proto String - Vpn proto of the VPN connection.
- create
Time string - Create time of the VPN connection.
- encrypt
Proto string - Encrypt proto of the VPN connection.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Ccn booleanType - Indicate whether is ccn type. Modification of this field only impacts force new logic of
vpc_id
. Ifis_ccn_type
is true, modification ofvpc_id
will be ignored. - net
Status string - Net status of the VPN connection. Valid value:
AVAILABLE
. - state string
- State of the connection. Valid value:
PENDING
,AVAILABLE
,DELETING
. - vpn
Proto string - Vpn proto of the VPN connection.
- create_
time str - Create time of the VPN connection.
- encrypt_
proto str - Encrypt proto of the VPN connection.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
ccn_ booltype - Indicate whether is ccn type. Modification of this field only impacts force new logic of
vpc_id
. Ifis_ccn_type
is true, modification ofvpc_id
will be ignored. - net_
status str - Net status of the VPN connection. Valid value:
AVAILABLE
. - state str
- State of the connection. Valid value:
PENDING
,AVAILABLE
,DELETING
. - vpn_
proto str - Vpn proto of the VPN connection.
- create
Time String - Create time of the VPN connection.
- encrypt
Proto String - Encrypt proto of the VPN connection.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Ccn BooleanType - Indicate whether is ccn type. Modification of this field only impacts force new logic of
vpc_id
. Ifis_ccn_type
is true, modification ofvpc_id
will be ignored. - net
Status String - Net status of the VPN connection. Valid value:
AVAILABLE
. - state String
- State of the connection. Valid value:
PENDING
,AVAILABLE
,DELETING
. - vpn
Proto String - Vpn proto of the VPN connection.
Look up Existing VpnConnection Resource
Get an existing VpnConnection 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?: VpnConnectionState, opts?: CustomResourceOptions): VpnConnection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bgp_config: Optional[VpnConnectionBgpConfigArgs] = None,
create_time: Optional[str] = None,
customer_gateway_id: Optional[str] = None,
dpd_action: Optional[str] = None,
dpd_enable: Optional[float] = None,
dpd_timeout: Optional[float] = None,
enable_health_check: Optional[bool] = None,
encrypt_proto: Optional[str] = None,
health_check_config: Optional[VpnConnectionHealthCheckConfigArgs] = None,
health_check_local_ip: Optional[str] = None,
health_check_remote_ip: Optional[str] = None,
ike_dh_group_name: Optional[str] = None,
ike_exchange_mode: Optional[str] = None,
ike_local_address: Optional[str] = None,
ike_local_fqdn_name: Optional[str] = None,
ike_local_identity: Optional[str] = None,
ike_proto_authen_algorithm: Optional[str] = None,
ike_proto_encry_algorithm: Optional[str] = None,
ike_remote_address: Optional[str] = None,
ike_remote_fqdn_name: Optional[str] = None,
ike_remote_identity: Optional[str] = None,
ike_sa_lifetime_seconds: Optional[float] = None,
ike_version: Optional[str] = None,
ipsec_encrypt_algorithm: Optional[str] = None,
ipsec_integrity_algorithm: Optional[str] = None,
ipsec_pfs_dh_group: Optional[str] = None,
ipsec_sa_lifetime_seconds: Optional[float] = None,
ipsec_sa_lifetime_traffic: Optional[float] = None,
is_ccn_type: Optional[bool] = None,
name: Optional[str] = None,
negotiation_type: Optional[str] = None,
net_status: Optional[str] = None,
pre_share_key: Optional[str] = None,
route_type: Optional[str] = None,
security_group_policies: Optional[Sequence[VpnConnectionSecurityGroupPolicyArgs]] = None,
state: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None,
vpn_connection_id: Optional[str] = None,
vpn_gateway_id: Optional[str] = None,
vpn_proto: Optional[str] = None) -> VpnConnection
func GetVpnConnection(ctx *Context, name string, id IDInput, state *VpnConnectionState, opts ...ResourceOption) (*VpnConnection, error)
public static VpnConnection Get(string name, Input<string> id, VpnConnectionState? state, CustomResourceOptions? opts = null)
public static VpnConnection get(String name, Output<String> id, VpnConnectionState state, CustomResourceOptions options)
resources: _: type: tencentcloud:VpnConnection get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bgp
Config VpnConnection Bgp Config - BGP config.
- Create
Time string - Create time of the VPN connection.
- Customer
Gateway stringId - ID of the customer gateway.
- Dpd
Action string - The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1.
- Dpd
Enable double - Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable).
- Dpd
Timeout double - DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1.
- Enable
Health boolCheck - Whether intra-tunnel health checks are supported.
- Encrypt
Proto string - Encrypt proto of the VPN connection.
- Health
Check VpnConfig Connection Health Check Config - VPN channel health check configuration.
- Health
Check stringLocal Ip - Health check the address of this terminal.
- Health
Check stringRemote Ip - Health check peer address.
- Ike
Dh stringGroup Name - DH group name of the IKE operation specification. Valid values:
GROUP1
,GROUP2
,GROUP5
,GROUP14
,GROUP24
. Default value isGROUP1
. - Ike
Exchange stringMode - Exchange mode of the IKE operation specification. Valid values:
AGGRESSIVE
,MAIN
. Default value isMAIN
. - Ike
Local stringAddress - Local address of IKE operation specification, valid when ike_local_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related VPN gateway. - Ike
Local stringFqdn Name - Local FQDN name of the IKE operation specification.
- Ike
Local stringIdentity - Local identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - Ike
Proto stringAuthen Algorithm - Proto authenticate algorithm of the IKE operation specification. Valid values:
MD5
,SHA
,SHA-256
. Default Value isMD5
. - Ike
Proto stringEncry Algorithm - Proto encrypt algorithm of the IKE operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,AES128GCM128
,AES192GCM128
,AES256GCM128
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - Ike
Remote stringAddress - Remote address of IKE operation specification, valid when ike_remote_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related customer gateway. - Ike
Remote stringFqdn Name - Remote FQDN name of the IKE operation specification.
- Ike
Remote stringIdentity - Remote identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - Ike
Sa doubleLifetime Seconds - SA lifetime of the IKE operation specification, unit is
second
. The value ranges from 60 to 604800. Default value is 86400 seconds. - Ike
Version string - Version of the IKE operation specification, values:
IKEV1
,IKEV2
. Default value isIKEV1
. - Ipsec
Encrypt stringAlgorithm - Encrypt algorithm of the IPSEC operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,NULL
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - Ipsec
Integrity stringAlgorithm - Integrity algorithm of the IPSEC operation specification. Valid values:
SHA1
,MD5
,SHA-256
. Default value isMD5
. - Ipsec
Pfs stringDh Group - PFS DH group. Valid value:
DH-GROUP1
,DH-GROUP2
,DH-GROUP5
,DH-GROUP14
,DH-GROUP24
,NULL
. Default value isNULL
. - Ipsec
Sa doubleLifetime Seconds - SA lifetime of the IPSEC operation specification, unit is second. Valid value ranges: [180~604800]. Default value is 3600 seconds.
- Ipsec
Sa doubleLifetime Traffic - SA lifetime of the IPSEC operation specification, unit is KB. The value should not be less then 2560. Default value is 1843200.
- Is
Ccn boolType - Indicate whether is ccn type. Modification of this field only impacts force new logic of
vpc_id
. Ifis_ccn_type
is true, modification ofvpc_id
will be ignored. - Name string
- Name of the VPN connection. The length of character is limited to 1-60.
- Negotiation
Type string - The default negotiation type is
active
. Optional values:active
(active negotiation),passive
(passive negotiation),flowTrigger
(traffic negotiation). - Net
Status string - Net status of the VPN connection. Valid value:
AVAILABLE
. - string
- Pre-shared key of the VPN connection.
- Route
Type string - Route type of the VPN connection. Valid value:
STATIC
,StaticRoute
,Policy
,Bgp
. - Security
Group List<VpnPolicies Connection Security Group Policy> - SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}, 10.0.0.5/24 is the vpc intranet segment, and 172.123.10.5/16 is the IDC network segment. Users specify which network segments in the VPC can communicate with which network segments in your IDC.
- State string
- State of the connection. Valid value:
PENDING
,AVAILABLE
,DELETING
. - Dictionary<string, string>
- A list of tags used to associate different resources.
- Vpc
Id string - ID of the VPC. Required if vpn gateway is not in
CCN
type, and doesn't make sense forCCN
vpn gateway. - Vpn
Connection stringId - ID of the resource.
- Vpn
Gateway stringId - ID of the VPN gateway.
- Vpn
Proto string - Vpn proto of the VPN connection.
- Bgp
Config VpnConnection Bgp Config Args - BGP config.
- Create
Time string - Create time of the VPN connection.
- Customer
Gateway stringId - ID of the customer gateway.
- Dpd
Action string - The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1.
- Dpd
Enable float64 - Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable).
- Dpd
Timeout float64 - DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1.
- Enable
Health boolCheck - Whether intra-tunnel health checks are supported.
- Encrypt
Proto string - Encrypt proto of the VPN connection.
- Health
Check VpnConfig Connection Health Check Config Args - VPN channel health check configuration.
- Health
Check stringLocal Ip - Health check the address of this terminal.
- Health
Check stringRemote Ip - Health check peer address.
- Ike
Dh stringGroup Name - DH group name of the IKE operation specification. Valid values:
GROUP1
,GROUP2
,GROUP5
,GROUP14
,GROUP24
. Default value isGROUP1
. - Ike
Exchange stringMode - Exchange mode of the IKE operation specification. Valid values:
AGGRESSIVE
,MAIN
. Default value isMAIN
. - Ike
Local stringAddress - Local address of IKE operation specification, valid when ike_local_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related VPN gateway. - Ike
Local stringFqdn Name - Local FQDN name of the IKE operation specification.
- Ike
Local stringIdentity - Local identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - Ike
Proto stringAuthen Algorithm - Proto authenticate algorithm of the IKE operation specification. Valid values:
MD5
,SHA
,SHA-256
. Default Value isMD5
. - Ike
Proto stringEncry Algorithm - Proto encrypt algorithm of the IKE operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,AES128GCM128
,AES192GCM128
,AES256GCM128
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - Ike
Remote stringAddress - Remote address of IKE operation specification, valid when ike_remote_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related customer gateway. - Ike
Remote stringFqdn Name - Remote FQDN name of the IKE operation specification.
- Ike
Remote stringIdentity - Remote identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - Ike
Sa float64Lifetime Seconds - SA lifetime of the IKE operation specification, unit is
second
. The value ranges from 60 to 604800. Default value is 86400 seconds. - Ike
Version string - Version of the IKE operation specification, values:
IKEV1
,IKEV2
. Default value isIKEV1
. - Ipsec
Encrypt stringAlgorithm - Encrypt algorithm of the IPSEC operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,NULL
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - Ipsec
Integrity stringAlgorithm - Integrity algorithm of the IPSEC operation specification. Valid values:
SHA1
,MD5
,SHA-256
. Default value isMD5
. - Ipsec
Pfs stringDh Group - PFS DH group. Valid value:
DH-GROUP1
,DH-GROUP2
,DH-GROUP5
,DH-GROUP14
,DH-GROUP24
,NULL
. Default value isNULL
. - Ipsec
Sa float64Lifetime Seconds - SA lifetime of the IPSEC operation specification, unit is second. Valid value ranges: [180~604800]. Default value is 3600 seconds.
- Ipsec
Sa float64Lifetime Traffic - SA lifetime of the IPSEC operation specification, unit is KB. The value should not be less then 2560. Default value is 1843200.
- Is
Ccn boolType - Indicate whether is ccn type. Modification of this field only impacts force new logic of
vpc_id
. Ifis_ccn_type
is true, modification ofvpc_id
will be ignored. - Name string
- Name of the VPN connection. The length of character is limited to 1-60.
- Negotiation
Type string - The default negotiation type is
active
. Optional values:active
(active negotiation),passive
(passive negotiation),flowTrigger
(traffic negotiation). - Net
Status string - Net status of the VPN connection. Valid value:
AVAILABLE
. - string
- Pre-shared key of the VPN connection.
- Route
Type string - Route type of the VPN connection. Valid value:
STATIC
,StaticRoute
,Policy
,Bgp
. - Security
Group []VpnPolicies Connection Security Group Policy Args - SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}, 10.0.0.5/24 is the vpc intranet segment, and 172.123.10.5/16 is the IDC network segment. Users specify which network segments in the VPC can communicate with which network segments in your IDC.
- State string
- State of the connection. Valid value:
PENDING
,AVAILABLE
,DELETING
. - map[string]string
- A list of tags used to associate different resources.
- Vpc
Id string - ID of the VPC. Required if vpn gateway is not in
CCN
type, and doesn't make sense forCCN
vpn gateway. - Vpn
Connection stringId - ID of the resource.
- Vpn
Gateway stringId - ID of the VPN gateway.
- Vpn
Proto string - Vpn proto of the VPN connection.
- bgp
Config VpnConnection Bgp Config - BGP config.
- create
Time String - Create time of the VPN connection.
- customer
Gateway StringId - ID of the customer gateway.
- dpd
Action String - The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1.
- dpd
Enable Double - Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable).
- dpd
Timeout Double - DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1.
- enable
Health BooleanCheck - Whether intra-tunnel health checks are supported.
- encrypt
Proto String - Encrypt proto of the VPN connection.
- health
Check VpnConfig Connection Health Check Config - VPN channel health check configuration.
- health
Check StringLocal Ip - Health check the address of this terminal.
- health
Check StringRemote Ip - Health check peer address.
- ike
Dh StringGroup Name - DH group name of the IKE operation specification. Valid values:
GROUP1
,GROUP2
,GROUP5
,GROUP14
,GROUP24
. Default value isGROUP1
. - ike
Exchange StringMode - Exchange mode of the IKE operation specification. Valid values:
AGGRESSIVE
,MAIN
. Default value isMAIN
. - ike
Local StringAddress - Local address of IKE operation specification, valid when ike_local_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related VPN gateway. - ike
Local StringFqdn Name - Local FQDN name of the IKE operation specification.
- ike
Local StringIdentity - Local identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike
Proto StringAuthen Algorithm - Proto authenticate algorithm of the IKE operation specification. Valid values:
MD5
,SHA
,SHA-256
. Default Value isMD5
. - ike
Proto StringEncry Algorithm - Proto encrypt algorithm of the IKE operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,AES128GCM128
,AES192GCM128
,AES256GCM128
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ike
Remote StringAddress - Remote address of IKE operation specification, valid when ike_remote_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related customer gateway. - ike
Remote StringFqdn Name - Remote FQDN name of the IKE operation specification.
- ike
Remote StringIdentity - Remote identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike
Sa DoubleLifetime Seconds - SA lifetime of the IKE operation specification, unit is
second
. The value ranges from 60 to 604800. Default value is 86400 seconds. - ike
Version String - Version of the IKE operation specification, values:
IKEV1
,IKEV2
. Default value isIKEV1
. - ipsec
Encrypt StringAlgorithm - Encrypt algorithm of the IPSEC operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,NULL
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ipsec
Integrity StringAlgorithm - Integrity algorithm of the IPSEC operation specification. Valid values:
SHA1
,MD5
,SHA-256
. Default value isMD5
. - ipsec
Pfs StringDh Group - PFS DH group. Valid value:
DH-GROUP1
,DH-GROUP2
,DH-GROUP5
,DH-GROUP14
,DH-GROUP24
,NULL
. Default value isNULL
. - ipsec
Sa DoubleLifetime Seconds - SA lifetime of the IPSEC operation specification, unit is second. Valid value ranges: [180~604800]. Default value is 3600 seconds.
- ipsec
Sa DoubleLifetime Traffic - SA lifetime of the IPSEC operation specification, unit is KB. The value should not be less then 2560. Default value is 1843200.
- is
Ccn BooleanType - Indicate whether is ccn type. Modification of this field only impacts force new logic of
vpc_id
. Ifis_ccn_type
is true, modification ofvpc_id
will be ignored. - name String
- Name of the VPN connection. The length of character is limited to 1-60.
- negotiation
Type String - The default negotiation type is
active
. Optional values:active
(active negotiation),passive
(passive negotiation),flowTrigger
(traffic negotiation). - net
Status String - Net status of the VPN connection. Valid value:
AVAILABLE
. - String
- Pre-shared key of the VPN connection.
- route
Type String - Route type of the VPN connection. Valid value:
STATIC
,StaticRoute
,Policy
,Bgp
. - security
Group List<VpnPolicies Connection Security Group Policy> - SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}, 10.0.0.5/24 is the vpc intranet segment, and 172.123.10.5/16 is the IDC network segment. Users specify which network segments in the VPC can communicate with which network segments in your IDC.
- state String
- State of the connection. Valid value:
PENDING
,AVAILABLE
,DELETING
. - Map<String,String>
- A list of tags used to associate different resources.
- vpc
Id String - ID of the VPC. Required if vpn gateway is not in
CCN
type, and doesn't make sense forCCN
vpn gateway. - vpn
Connection StringId - ID of the resource.
- vpn
Gateway StringId - ID of the VPN gateway.
- vpn
Proto String - Vpn proto of the VPN connection.
- bgp
Config VpnConnection Bgp Config - BGP config.
- create
Time string - Create time of the VPN connection.
- customer
Gateway stringId - ID of the customer gateway.
- dpd
Action string - The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1.
- dpd
Enable number - Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable).
- dpd
Timeout number - DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1.
- enable
Health booleanCheck - Whether intra-tunnel health checks are supported.
- encrypt
Proto string - Encrypt proto of the VPN connection.
- health
Check VpnConfig Connection Health Check Config - VPN channel health check configuration.
- health
Check stringLocal Ip - Health check the address of this terminal.
- health
Check stringRemote Ip - Health check peer address.
- ike
Dh stringGroup Name - DH group name of the IKE operation specification. Valid values:
GROUP1
,GROUP2
,GROUP5
,GROUP14
,GROUP24
. Default value isGROUP1
. - ike
Exchange stringMode - Exchange mode of the IKE operation specification. Valid values:
AGGRESSIVE
,MAIN
. Default value isMAIN
. - ike
Local stringAddress - Local address of IKE operation specification, valid when ike_local_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related VPN gateway. - ike
Local stringFqdn Name - Local FQDN name of the IKE operation specification.
- ike
Local stringIdentity - Local identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike
Proto stringAuthen Algorithm - Proto authenticate algorithm of the IKE operation specification. Valid values:
MD5
,SHA
,SHA-256
. Default Value isMD5
. - ike
Proto stringEncry Algorithm - Proto encrypt algorithm of the IKE operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,AES128GCM128
,AES192GCM128
,AES256GCM128
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ike
Remote stringAddress - Remote address of IKE operation specification, valid when ike_remote_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related customer gateway. - ike
Remote stringFqdn Name - Remote FQDN name of the IKE operation specification.
- ike
Remote stringIdentity - Remote identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike
Sa numberLifetime Seconds - SA lifetime of the IKE operation specification, unit is
second
. The value ranges from 60 to 604800. Default value is 86400 seconds. - ike
Version string - Version of the IKE operation specification, values:
IKEV1
,IKEV2
. Default value isIKEV1
. - ipsec
Encrypt stringAlgorithm - Encrypt algorithm of the IPSEC operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,NULL
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ipsec
Integrity stringAlgorithm - Integrity algorithm of the IPSEC operation specification. Valid values:
SHA1
,MD5
,SHA-256
. Default value isMD5
. - ipsec
Pfs stringDh Group - PFS DH group. Valid value:
DH-GROUP1
,DH-GROUP2
,DH-GROUP5
,DH-GROUP14
,DH-GROUP24
,NULL
. Default value isNULL
. - ipsec
Sa numberLifetime Seconds - SA lifetime of the IPSEC operation specification, unit is second. Valid value ranges: [180~604800]. Default value is 3600 seconds.
- ipsec
Sa numberLifetime Traffic - SA lifetime of the IPSEC operation specification, unit is KB. The value should not be less then 2560. Default value is 1843200.
- is
Ccn booleanType - Indicate whether is ccn type. Modification of this field only impacts force new logic of
vpc_id
. Ifis_ccn_type
is true, modification ofvpc_id
will be ignored. - name string
- Name of the VPN connection. The length of character is limited to 1-60.
- negotiation
Type string - The default negotiation type is
active
. Optional values:active
(active negotiation),passive
(passive negotiation),flowTrigger
(traffic negotiation). - net
Status string - Net status of the VPN connection. Valid value:
AVAILABLE
. - string
- Pre-shared key of the VPN connection.
- route
Type string - Route type of the VPN connection. Valid value:
STATIC
,StaticRoute
,Policy
,Bgp
. - security
Group VpnPolicies Connection Security Group Policy[] - SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}, 10.0.0.5/24 is the vpc intranet segment, and 172.123.10.5/16 is the IDC network segment. Users specify which network segments in the VPC can communicate with which network segments in your IDC.
- state string
- State of the connection. Valid value:
PENDING
,AVAILABLE
,DELETING
. - {[key: string]: string}
- A list of tags used to associate different resources.
- vpc
Id string - ID of the VPC. Required if vpn gateway is not in
CCN
type, and doesn't make sense forCCN
vpn gateway. - vpn
Connection stringId - ID of the resource.
- vpn
Gateway stringId - ID of the VPN gateway.
- vpn
Proto string - Vpn proto of the VPN connection.
- bgp_
config VpnConnection Bgp Config Args - BGP config.
- create_
time str - Create time of the VPN connection.
- customer_
gateway_ strid - ID of the customer gateway.
- dpd_
action str - The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1.
- dpd_
enable float - Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable).
- dpd_
timeout float - DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1.
- enable_
health_ boolcheck - Whether intra-tunnel health checks are supported.
- encrypt_
proto str - Encrypt proto of the VPN connection.
- health_
check_ Vpnconfig Connection Health Check Config Args - VPN channel health check configuration.
- health_
check_ strlocal_ ip - Health check the address of this terminal.
- health_
check_ strremote_ ip - Health check peer address.
- ike_
dh_ strgroup_ name - DH group name of the IKE operation specification. Valid values:
GROUP1
,GROUP2
,GROUP5
,GROUP14
,GROUP24
. Default value isGROUP1
. - ike_
exchange_ strmode - Exchange mode of the IKE operation specification. Valid values:
AGGRESSIVE
,MAIN
. Default value isMAIN
. - ike_
local_ straddress - Local address of IKE operation specification, valid when ike_local_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related VPN gateway. - ike_
local_ strfqdn_ name - Local FQDN name of the IKE operation specification.
- ike_
local_ stridentity - Local identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike_
proto_ strauthen_ algorithm - Proto authenticate algorithm of the IKE operation specification. Valid values:
MD5
,SHA
,SHA-256
. Default Value isMD5
. - ike_
proto_ strencry_ algorithm - Proto encrypt algorithm of the IKE operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,AES128GCM128
,AES192GCM128
,AES256GCM128
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ike_
remote_ straddress - Remote address of IKE operation specification, valid when ike_remote_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related customer gateway. - ike_
remote_ strfqdn_ name - Remote FQDN name of the IKE operation specification.
- ike_
remote_ stridentity - Remote identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike_
sa_ floatlifetime_ seconds - SA lifetime of the IKE operation specification, unit is
second
. The value ranges from 60 to 604800. Default value is 86400 seconds. - ike_
version str - Version of the IKE operation specification, values:
IKEV1
,IKEV2
. Default value isIKEV1
. - ipsec_
encrypt_ stralgorithm - Encrypt algorithm of the IPSEC operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,NULL
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ipsec_
integrity_ stralgorithm - Integrity algorithm of the IPSEC operation specification. Valid values:
SHA1
,MD5
,SHA-256
. Default value isMD5
. - ipsec_
pfs_ strdh_ group - PFS DH group. Valid value:
DH-GROUP1
,DH-GROUP2
,DH-GROUP5
,DH-GROUP14
,DH-GROUP24
,NULL
. Default value isNULL
. - ipsec_
sa_ floatlifetime_ seconds - SA lifetime of the IPSEC operation specification, unit is second. Valid value ranges: [180~604800]. Default value is 3600 seconds.
- ipsec_
sa_ floatlifetime_ traffic - SA lifetime of the IPSEC operation specification, unit is KB. The value should not be less then 2560. Default value is 1843200.
- is_
ccn_ booltype - Indicate whether is ccn type. Modification of this field only impacts force new logic of
vpc_id
. Ifis_ccn_type
is true, modification ofvpc_id
will be ignored. - name str
- Name of the VPN connection. The length of character is limited to 1-60.
- negotiation_
type str - The default negotiation type is
active
. Optional values:active
(active negotiation),passive
(passive negotiation),flowTrigger
(traffic negotiation). - net_
status str - Net status of the VPN connection. Valid value:
AVAILABLE
. - str
- Pre-shared key of the VPN connection.
- route_
type str - Route type of the VPN connection. Valid value:
STATIC
,StaticRoute
,Policy
,Bgp
. - security_
group_ Sequence[Vpnpolicies Connection Security Group Policy Args] - SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}, 10.0.0.5/24 is the vpc intranet segment, and 172.123.10.5/16 is the IDC network segment. Users specify which network segments in the VPC can communicate with which network segments in your IDC.
- state str
- State of the connection. Valid value:
PENDING
,AVAILABLE
,DELETING
. - Mapping[str, str]
- A list of tags used to associate different resources.
- vpc_
id str - ID of the VPC. Required if vpn gateway is not in
CCN
type, and doesn't make sense forCCN
vpn gateway. - vpn_
connection_ strid - ID of the resource.
- vpn_
gateway_ strid - ID of the VPN gateway.
- vpn_
proto str - Vpn proto of the VPN connection.
- bgp
Config Property Map - BGP config.
- create
Time String - Create time of the VPN connection.
- customer
Gateway StringId - ID of the customer gateway.
- dpd
Action String - The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1.
- dpd
Enable Number - Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable).
- dpd
Timeout Number - DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1.
- enable
Health BooleanCheck - Whether intra-tunnel health checks are supported.
- encrypt
Proto String - Encrypt proto of the VPN connection.
- health
Check Property MapConfig - VPN channel health check configuration.
- health
Check StringLocal Ip - Health check the address of this terminal.
- health
Check StringRemote Ip - Health check peer address.
- ike
Dh StringGroup Name - DH group name of the IKE operation specification. Valid values:
GROUP1
,GROUP2
,GROUP5
,GROUP14
,GROUP24
. Default value isGROUP1
. - ike
Exchange StringMode - Exchange mode of the IKE operation specification. Valid values:
AGGRESSIVE
,MAIN
. Default value isMAIN
. - ike
Local StringAddress - Local address of IKE operation specification, valid when ike_local_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related VPN gateway. - ike
Local StringFqdn Name - Local FQDN name of the IKE operation specification.
- ike
Local StringIdentity - Local identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike
Proto StringAuthen Algorithm - Proto authenticate algorithm of the IKE operation specification. Valid values:
MD5
,SHA
,SHA-256
. Default Value isMD5
. - ike
Proto StringEncry Algorithm - Proto encrypt algorithm of the IKE operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,AES128GCM128
,AES192GCM128
,AES256GCM128
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ike
Remote StringAddress - Remote address of IKE operation specification, valid when ike_remote_identity is
ADDRESS
, generally the value ispublic_ip_address
of the related customer gateway. - ike
Remote StringFqdn Name - Remote FQDN name of the IKE operation specification.
- ike
Remote StringIdentity - Remote identity way of IKE operation specification. Valid values:
ADDRESS
,FQDN
. Default value isADDRESS
. - ike
Sa NumberLifetime Seconds - SA lifetime of the IKE operation specification, unit is
second
. The value ranges from 60 to 604800. Default value is 86400 seconds. - ike
Version String - Version of the IKE operation specification, values:
IKEV1
,IKEV2
. Default value isIKEV1
. - ipsec
Encrypt StringAlgorithm - Encrypt algorithm of the IPSEC operation specification. Valid values:
3DES-CBC
,AES-CBC-128
,AES-CBC-192
,AES-CBC-256
,DES-CBC
,SM4
,NULL
,AES128GCM128
,AES192GCM128
,AES256GCM128
. Default value is3DES-CBC
. - ipsec
Integrity StringAlgorithm - Integrity algorithm of the IPSEC operation specification. Valid values:
SHA1
,MD5
,SHA-256
. Default value isMD5
. - ipsec
Pfs StringDh Group - PFS DH group. Valid value:
DH-GROUP1
,DH-GROUP2
,DH-GROUP5
,DH-GROUP14
,DH-GROUP24
,NULL
. Default value isNULL
. - ipsec
Sa NumberLifetime Seconds - SA lifetime of the IPSEC operation specification, unit is second. Valid value ranges: [180~604800]. Default value is 3600 seconds.
- ipsec
Sa NumberLifetime Traffic - SA lifetime of the IPSEC operation specification, unit is KB. The value should not be less then 2560. Default value is 1843200.
- is
Ccn BooleanType - Indicate whether is ccn type. Modification of this field only impacts force new logic of
vpc_id
. Ifis_ccn_type
is true, modification ofvpc_id
will be ignored. - name String
- Name of the VPN connection. The length of character is limited to 1-60.
- negotiation
Type String - The default negotiation type is
active
. Optional values:active
(active negotiation),passive
(passive negotiation),flowTrigger
(traffic negotiation). - net
Status String - Net status of the VPN connection. Valid value:
AVAILABLE
. - String
- Pre-shared key of the VPN connection.
- route
Type String - Route type of the VPN connection. Valid value:
STATIC
,StaticRoute
,Policy
,Bgp
. - security
Group List<Property Map>Policies - SPD policy group, for example: {"10.0.0.5/24":["172.123.10.5/16"]}, 10.0.0.5/24 is the vpc intranet segment, and 172.123.10.5/16 is the IDC network segment. Users specify which network segments in the VPC can communicate with which network segments in your IDC.
- state String
- State of the connection. Valid value:
PENDING
,AVAILABLE
,DELETING
. - Map<String>
- A list of tags used to associate different resources.
- vpc
Id String - ID of the VPC. Required if vpn gateway is not in
CCN
type, and doesn't make sense forCCN
vpn gateway. - vpn
Connection StringId - ID of the resource.
- vpn
Gateway StringId - ID of the VPN gateway.
- vpn
Proto String - Vpn proto of the VPN connection.
Supporting Types
VpnConnectionBgpConfig, VpnConnectionBgpConfigArgs
- Local
Bgp stringIp - Cloud BGP address. It must be allocated from within the BGP tunnel network segment.
- Remote
Bgp stringIp - User side BGP address. It must be allocated from within the BGP tunnel network segment.
- Tunnel
Cidr string - BGP tunnel segment.
- Local
Bgp stringIp - Cloud BGP address. It must be allocated from within the BGP tunnel network segment.
- Remote
Bgp stringIp - User side BGP address. It must be allocated from within the BGP tunnel network segment.
- Tunnel
Cidr string - BGP tunnel segment.
- local
Bgp StringIp - Cloud BGP address. It must be allocated from within the BGP tunnel network segment.
- remote
Bgp StringIp - User side BGP address. It must be allocated from within the BGP tunnel network segment.
- tunnel
Cidr String - BGP tunnel segment.
- local
Bgp stringIp - Cloud BGP address. It must be allocated from within the BGP tunnel network segment.
- remote
Bgp stringIp - User side BGP address. It must be allocated from within the BGP tunnel network segment.
- tunnel
Cidr string - BGP tunnel segment.
- local_
bgp_ strip - Cloud BGP address. It must be allocated from within the BGP tunnel network segment.
- remote_
bgp_ strip - User side BGP address. It must be allocated from within the BGP tunnel network segment.
- tunnel_
cidr str - BGP tunnel segment.
- local
Bgp StringIp - Cloud BGP address. It must be allocated from within the BGP tunnel network segment.
- remote
Bgp StringIp - User side BGP address. It must be allocated from within the BGP tunnel network segment.
- tunnel
Cidr String - BGP tunnel segment.
VpnConnectionHealthCheckConfig, VpnConnectionHealthCheckConfigArgs
- Probe
Interval double - Detection interval, Tencent Cloud's interval between two health checks, range [1000-5000], Unit: ms.
- Probe
Threshold double - Detection times, perform route switching after N consecutive health check failures, range [3-8], Unit: times.
- Probe
Timeout double - Detection timeout, range [10-5000], Unit: ms.
- Probe
Type string - Detection mode, default is
NQA
, cannot be modified.
- Probe
Interval float64 - Detection interval, Tencent Cloud's interval between two health checks, range [1000-5000], Unit: ms.
- Probe
Threshold float64 - Detection times, perform route switching after N consecutive health check failures, range [3-8], Unit: times.
- Probe
Timeout float64 - Detection timeout, range [10-5000], Unit: ms.
- Probe
Type string - Detection mode, default is
NQA
, cannot be modified.
- probe
Interval Double - Detection interval, Tencent Cloud's interval between two health checks, range [1000-5000], Unit: ms.
- probe
Threshold Double - Detection times, perform route switching after N consecutive health check failures, range [3-8], Unit: times.
- probe
Timeout Double - Detection timeout, range [10-5000], Unit: ms.
- probe
Type String - Detection mode, default is
NQA
, cannot be modified.
- probe
Interval number - Detection interval, Tencent Cloud's interval between two health checks, range [1000-5000], Unit: ms.
- probe
Threshold number - Detection times, perform route switching after N consecutive health check failures, range [3-8], Unit: times.
- probe
Timeout number - Detection timeout, range [10-5000], Unit: ms.
- probe
Type string - Detection mode, default is
NQA
, cannot be modified.
- probe_
interval float - Detection interval, Tencent Cloud's interval between two health checks, range [1000-5000], Unit: ms.
- probe_
threshold float - Detection times, perform route switching after N consecutive health check failures, range [3-8], Unit: times.
- probe_
timeout float - Detection timeout, range [10-5000], Unit: ms.
- probe_
type str - Detection mode, default is
NQA
, cannot be modified.
- probe
Interval Number - Detection interval, Tencent Cloud's interval between two health checks, range [1000-5000], Unit: ms.
- probe
Threshold Number - Detection times, perform route switching after N consecutive health check failures, range [3-8], Unit: times.
- probe
Timeout Number - Detection timeout, range [10-5000], Unit: ms.
- probe
Type String - Detection mode, default is
NQA
, cannot be modified.
VpnConnectionSecurityGroupPolicy, VpnConnectionSecurityGroupPolicyArgs
- Local
Cidr stringBlock - Local cidr block.
- Remote
Cidr List<string>Blocks - Remote cidr block list.
- Local
Cidr stringBlock - Local cidr block.
- Remote
Cidr []stringBlocks - Remote cidr block list.
- local
Cidr StringBlock - Local cidr block.
- remote
Cidr List<String>Blocks - Remote cidr block list.
- local
Cidr stringBlock - Local cidr block.
- remote
Cidr string[]Blocks - Remote cidr block list.
- local_
cidr_ strblock - Local cidr block.
- remote_
cidr_ Sequence[str]blocks - Remote cidr block list.
- local
Cidr StringBlock - Local cidr block.
- remote
Cidr List<String>Blocks - Remote cidr block list.
Import
VPN connection can be imported using the id, e.g.
$ pulumi import tencentcloud:index/vpnConnection:VpnConnection foo vpnx-nadifg3s
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.