1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. vpn
  5. Connection
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.vpn.Connection

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

    Example Usage

    Basic Usage

    Create Connection Resource

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

    Constructor syntax

    new Connection(name: string, args: ConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def Connection(resource_name: str,
                   args: ConnectionArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Connection(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   local_subnets: Optional[Sequence[str]] = None,
                   vpn_gateway_id: Optional[str] = None,
                   remote_subnets: Optional[Sequence[str]] = None,
                   ike_config: Optional[ConnectionIkeConfigArgs] = None,
                   effect_immediately: Optional[bool] = None,
                   enable_nat_traversal: Optional[bool] = None,
                   enable_tunnels_bgp: Optional[bool] = None,
                   health_check_config: Optional[ConnectionHealthCheckConfigArgs] = None,
                   auto_config_route: Optional[bool] = None,
                   ipsec_config: Optional[ConnectionIpsecConfigArgs] = None,
                   enable_dpd: Optional[bool] = None,
                   name: Optional[str] = None,
                   network_type: Optional[str] = None,
                   customer_gateway_id: Optional[str] = None,
                   tags: Optional[Mapping[str, Any]] = None,
                   tunnel_options_specifications: Optional[Sequence[ConnectionTunnelOptionsSpecificationArgs]] = None,
                   vpn_connection_name: Optional[str] = None,
                   bgp_config: Optional[ConnectionBgpConfigArgs] = None)
    func NewConnection(ctx *Context, name string, args ConnectionArgs, opts ...ResourceOption) (*Connection, error)
    public Connection(string name, ConnectionArgs args, CustomResourceOptions? opts = null)
    public Connection(String name, ConnectionArgs args)
    public Connection(String name, ConnectionArgs args, CustomResourceOptions options)
    
    type: alicloud:vpn:Connection
    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 ConnectionArgs
    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 ConnectionArgs
    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 ConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConnectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var exampleconnectionResourceResourceFromVpnconnection = new AliCloud.Vpn.Connection("exampleconnectionResourceResourceFromVpnconnection", new()
    {
        LocalSubnets = new[]
        {
            "string",
        },
        VpnGatewayId = "string",
        RemoteSubnets = new[]
        {
            "string",
        },
        IkeConfig = new AliCloud.Vpn.Inputs.ConnectionIkeConfigArgs
        {
            IkeAuthAlg = "string",
            IkeEncAlg = "string",
            IkeLifetime = 0,
            IkeLocalId = "string",
            IkeMode = "string",
            IkePfs = "string",
            IkeRemoteId = "string",
            IkeVersion = "string",
            Psk = "string",
        },
        EffectImmediately = false,
        EnableNatTraversal = false,
        EnableTunnelsBgp = false,
        HealthCheckConfig = new AliCloud.Vpn.Inputs.ConnectionHealthCheckConfigArgs
        {
            Dip = "string",
            Enable = false,
            Interval = 0,
            Retry = 0,
            Sip = "string",
        },
        AutoConfigRoute = false,
        IpsecConfig = new AliCloud.Vpn.Inputs.ConnectionIpsecConfigArgs
        {
            IpsecAuthAlg = "string",
            IpsecEncAlg = "string",
            IpsecLifetime = 0,
            IpsecPfs = "string",
        },
        EnableDpd = false,
        NetworkType = "string",
        CustomerGatewayId = "string",
        Tags = 
        {
            { "string", "any" },
        },
        TunnelOptionsSpecifications = new[]
        {
            new AliCloud.Vpn.Inputs.ConnectionTunnelOptionsSpecificationArgs
            {
                CustomerGatewayId = "string",
                EnableDpd = false,
                EnableNatTraversal = false,
                InternetIp = "string",
                Role = "string",
                State = "string",
                Status = "string",
                TunnelBgpConfig = new AliCloud.Vpn.Inputs.ConnectionTunnelOptionsSpecificationTunnelBgpConfigArgs
                {
                    BgpStatus = "string",
                    LocalAsn = "string",
                    LocalBgpIp = "string",
                    PeerAsn = "string",
                    PeerBgpIp = "string",
                    TunnelCidr = "string",
                },
                TunnelId = "string",
                TunnelIkeConfig = new AliCloud.Vpn.Inputs.ConnectionTunnelOptionsSpecificationTunnelIkeConfigArgs
                {
                    IkeAuthAlg = "string",
                    IkeEncAlg = "string",
                    IkeLifetime = 0,
                    IkeMode = "string",
                    IkePfs = "string",
                    IkeVersion = "string",
                    LocalId = "string",
                    Psk = "string",
                    RemoteId = "string",
                },
                TunnelIpsecConfig = new AliCloud.Vpn.Inputs.ConnectionTunnelOptionsSpecificationTunnelIpsecConfigArgs
                {
                    IpsecAuthAlg = "string",
                    IpsecEncAlg = "string",
                    IpsecLifetime = 0,
                    IpsecPfs = "string",
                },
                ZoneNo = "string",
            },
        },
        VpnConnectionName = "string",
        BgpConfig = new AliCloud.Vpn.Inputs.ConnectionBgpConfigArgs
        {
            Enable = false,
            LocalAsn = "string",
            LocalBgpIp = "string",
            Status = "string",
            TunnelCidr = "string",
        },
    });
    
    example, err := vpn.NewConnection(ctx, "exampleconnectionResourceResourceFromVpnconnection", &vpn.ConnectionArgs{
    	LocalSubnets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	VpnGatewayId: pulumi.String("string"),
    	RemoteSubnets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IkeConfig: &vpn.ConnectionIkeConfigArgs{
    		IkeAuthAlg:  pulumi.String("string"),
    		IkeEncAlg:   pulumi.String("string"),
    		IkeLifetime: pulumi.Int(0),
    		IkeLocalId:  pulumi.String("string"),
    		IkeMode:     pulumi.String("string"),
    		IkePfs:      pulumi.String("string"),
    		IkeRemoteId: pulumi.String("string"),
    		IkeVersion:  pulumi.String("string"),
    		Psk:         pulumi.String("string"),
    	},
    	EffectImmediately:  pulumi.Bool(false),
    	EnableNatTraversal: pulumi.Bool(false),
    	EnableTunnelsBgp:   pulumi.Bool(false),
    	HealthCheckConfig: &vpn.ConnectionHealthCheckConfigArgs{
    		Dip:      pulumi.String("string"),
    		Enable:   pulumi.Bool(false),
    		Interval: pulumi.Int(0),
    		Retry:    pulumi.Int(0),
    		Sip:      pulumi.String("string"),
    	},
    	AutoConfigRoute: pulumi.Bool(false),
    	IpsecConfig: &vpn.ConnectionIpsecConfigArgs{
    		IpsecAuthAlg:  pulumi.String("string"),
    		IpsecEncAlg:   pulumi.String("string"),
    		IpsecLifetime: pulumi.Int(0),
    		IpsecPfs:      pulumi.String("string"),
    	},
    	EnableDpd:         pulumi.Bool(false),
    	NetworkType:       pulumi.String("string"),
    	CustomerGatewayId: pulumi.String("string"),
    	Tags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	TunnelOptionsSpecifications: vpn.ConnectionTunnelOptionsSpecificationArray{
    		&vpn.ConnectionTunnelOptionsSpecificationArgs{
    			CustomerGatewayId:  pulumi.String("string"),
    			EnableDpd:          pulumi.Bool(false),
    			EnableNatTraversal: pulumi.Bool(false),
    			InternetIp:         pulumi.String("string"),
    			Role:               pulumi.String("string"),
    			State:              pulumi.String("string"),
    			Status:             pulumi.String("string"),
    			TunnelBgpConfig: &vpn.ConnectionTunnelOptionsSpecificationTunnelBgpConfigArgs{
    				BgpStatus:  pulumi.String("string"),
    				LocalAsn:   pulumi.String("string"),
    				LocalBgpIp: pulumi.String("string"),
    				PeerAsn:    pulumi.String("string"),
    				PeerBgpIp:  pulumi.String("string"),
    				TunnelCidr: pulumi.String("string"),
    			},
    			TunnelId: pulumi.String("string"),
    			TunnelIkeConfig: &vpn.ConnectionTunnelOptionsSpecificationTunnelIkeConfigArgs{
    				IkeAuthAlg:  pulumi.String("string"),
    				IkeEncAlg:   pulumi.String("string"),
    				IkeLifetime: pulumi.Int(0),
    				IkeMode:     pulumi.String("string"),
    				IkePfs:      pulumi.String("string"),
    				IkeVersion:  pulumi.String("string"),
    				LocalId:     pulumi.String("string"),
    				Psk:         pulumi.String("string"),
    				RemoteId:    pulumi.String("string"),
    			},
    			TunnelIpsecConfig: &vpn.ConnectionTunnelOptionsSpecificationTunnelIpsecConfigArgs{
    				IpsecAuthAlg:  pulumi.String("string"),
    				IpsecEncAlg:   pulumi.String("string"),
    				IpsecLifetime: pulumi.Int(0),
    				IpsecPfs:      pulumi.String("string"),
    			},
    			ZoneNo: pulumi.String("string"),
    		},
    	},
    	VpnConnectionName: pulumi.String("string"),
    	BgpConfig: &vpn.ConnectionBgpConfigArgs{
    		Enable:     pulumi.Bool(false),
    		LocalAsn:   pulumi.String("string"),
    		LocalBgpIp: pulumi.String("string"),
    		Status:     pulumi.String("string"),
    		TunnelCidr: pulumi.String("string"),
    	},
    })
    
    var exampleconnectionResourceResourceFromVpnconnection = new Connection("exampleconnectionResourceResourceFromVpnconnection", ConnectionArgs.builder()        
        .localSubnets("string")
        .vpnGatewayId("string")
        .remoteSubnets("string")
        .ikeConfig(ConnectionIkeConfigArgs.builder()
            .ikeAuthAlg("string")
            .ikeEncAlg("string")
            .ikeLifetime(0)
            .ikeLocalId("string")
            .ikeMode("string")
            .ikePfs("string")
            .ikeRemoteId("string")
            .ikeVersion("string")
            .psk("string")
            .build())
        .effectImmediately(false)
        .enableNatTraversal(false)
        .enableTunnelsBgp(false)
        .healthCheckConfig(ConnectionHealthCheckConfigArgs.builder()
            .dip("string")
            .enable(false)
            .interval(0)
            .retry(0)
            .sip("string")
            .build())
        .autoConfigRoute(false)
        .ipsecConfig(ConnectionIpsecConfigArgs.builder()
            .ipsecAuthAlg("string")
            .ipsecEncAlg("string")
            .ipsecLifetime(0)
            .ipsecPfs("string")
            .build())
        .enableDpd(false)
        .networkType("string")
        .customerGatewayId("string")
        .tags(Map.of("string", "any"))
        .tunnelOptionsSpecifications(ConnectionTunnelOptionsSpecificationArgs.builder()
            .customerGatewayId("string")
            .enableDpd(false)
            .enableNatTraversal(false)
            .internetIp("string")
            .role("string")
            .state("string")
            .status("string")
            .tunnelBgpConfig(ConnectionTunnelOptionsSpecificationTunnelBgpConfigArgs.builder()
                .bgpStatus("string")
                .localAsn("string")
                .localBgpIp("string")
                .peerAsn("string")
                .peerBgpIp("string")
                .tunnelCidr("string")
                .build())
            .tunnelId("string")
            .tunnelIkeConfig(ConnectionTunnelOptionsSpecificationTunnelIkeConfigArgs.builder()
                .ikeAuthAlg("string")
                .ikeEncAlg("string")
                .ikeLifetime(0)
                .ikeMode("string")
                .ikePfs("string")
                .ikeVersion("string")
                .localId("string")
                .psk("string")
                .remoteId("string")
                .build())
            .tunnelIpsecConfig(ConnectionTunnelOptionsSpecificationTunnelIpsecConfigArgs.builder()
                .ipsecAuthAlg("string")
                .ipsecEncAlg("string")
                .ipsecLifetime(0)
                .ipsecPfs("string")
                .build())
            .zoneNo("string")
            .build())
        .vpnConnectionName("string")
        .bgpConfig(ConnectionBgpConfigArgs.builder()
            .enable(false)
            .localAsn("string")
            .localBgpIp("string")
            .status("string")
            .tunnelCidr("string")
            .build())
        .build());
    
    exampleconnection_resource_resource_from_vpnconnection = alicloud.vpn.Connection("exampleconnectionResourceResourceFromVpnconnection",
        local_subnets=["string"],
        vpn_gateway_id="string",
        remote_subnets=["string"],
        ike_config=alicloud.vpn.ConnectionIkeConfigArgs(
            ike_auth_alg="string",
            ike_enc_alg="string",
            ike_lifetime=0,
            ike_local_id="string",
            ike_mode="string",
            ike_pfs="string",
            ike_remote_id="string",
            ike_version="string",
            psk="string",
        ),
        effect_immediately=False,
        enable_nat_traversal=False,
        enable_tunnels_bgp=False,
        health_check_config=alicloud.vpn.ConnectionHealthCheckConfigArgs(
            dip="string",
            enable=False,
            interval=0,
            retry=0,
            sip="string",
        ),
        auto_config_route=False,
        ipsec_config=alicloud.vpn.ConnectionIpsecConfigArgs(
            ipsec_auth_alg="string",
            ipsec_enc_alg="string",
            ipsec_lifetime=0,
            ipsec_pfs="string",
        ),
        enable_dpd=False,
        network_type="string",
        customer_gateway_id="string",
        tags={
            "string": "any",
        },
        tunnel_options_specifications=[alicloud.vpn.ConnectionTunnelOptionsSpecificationArgs(
            customer_gateway_id="string",
            enable_dpd=False,
            enable_nat_traversal=False,
            internet_ip="string",
            role="string",
            state="string",
            status="string",
            tunnel_bgp_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelBgpConfigArgs(
                bgp_status="string",
                local_asn="string",
                local_bgp_ip="string",
                peer_asn="string",
                peer_bgp_ip="string",
                tunnel_cidr="string",
            ),
            tunnel_id="string",
            tunnel_ike_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIkeConfigArgs(
                ike_auth_alg="string",
                ike_enc_alg="string",
                ike_lifetime=0,
                ike_mode="string",
                ike_pfs="string",
                ike_version="string",
                local_id="string",
                psk="string",
                remote_id="string",
            ),
            tunnel_ipsec_config=alicloud.vpn.ConnectionTunnelOptionsSpecificationTunnelIpsecConfigArgs(
                ipsec_auth_alg="string",
                ipsec_enc_alg="string",
                ipsec_lifetime=0,
                ipsec_pfs="string",
            ),
            zone_no="string",
        )],
        vpn_connection_name="string",
        bgp_config=alicloud.vpn.ConnectionBgpConfigArgs(
            enable=False,
            local_asn="string",
            local_bgp_ip="string",
            status="string",
            tunnel_cidr="string",
        ))
    
    const exampleconnectionResourceResourceFromVpnconnection = new alicloud.vpn.Connection("exampleconnectionResourceResourceFromVpnconnection", {
        localSubnets: ["string"],
        vpnGatewayId: "string",
        remoteSubnets: ["string"],
        ikeConfig: {
            ikeAuthAlg: "string",
            ikeEncAlg: "string",
            ikeLifetime: 0,
            ikeLocalId: "string",
            ikeMode: "string",
            ikePfs: "string",
            ikeRemoteId: "string",
            ikeVersion: "string",
            psk: "string",
        },
        effectImmediately: false,
        enableNatTraversal: false,
        enableTunnelsBgp: false,
        healthCheckConfig: {
            dip: "string",
            enable: false,
            interval: 0,
            retry: 0,
            sip: "string",
        },
        autoConfigRoute: false,
        ipsecConfig: {
            ipsecAuthAlg: "string",
            ipsecEncAlg: "string",
            ipsecLifetime: 0,
            ipsecPfs: "string",
        },
        enableDpd: false,
        networkType: "string",
        customerGatewayId: "string",
        tags: {
            string: "any",
        },
        tunnelOptionsSpecifications: [{
            customerGatewayId: "string",
            enableDpd: false,
            enableNatTraversal: false,
            internetIp: "string",
            role: "string",
            state: "string",
            status: "string",
            tunnelBgpConfig: {
                bgpStatus: "string",
                localAsn: "string",
                localBgpIp: "string",
                peerAsn: "string",
                peerBgpIp: "string",
                tunnelCidr: "string",
            },
            tunnelId: "string",
            tunnelIkeConfig: {
                ikeAuthAlg: "string",
                ikeEncAlg: "string",
                ikeLifetime: 0,
                ikeMode: "string",
                ikePfs: "string",
                ikeVersion: "string",
                localId: "string",
                psk: "string",
                remoteId: "string",
            },
            tunnelIpsecConfig: {
                ipsecAuthAlg: "string",
                ipsecEncAlg: "string",
                ipsecLifetime: 0,
                ipsecPfs: "string",
            },
            zoneNo: "string",
        }],
        vpnConnectionName: "string",
        bgpConfig: {
            enable: false,
            localAsn: "string",
            localBgpIp: "string",
            status: "string",
            tunnelCidr: "string",
        },
    });
    
    type: alicloud:vpn:Connection
    properties:
        autoConfigRoute: false
        bgpConfig:
            enable: false
            localAsn: string
            localBgpIp: string
            status: string
            tunnelCidr: string
        customerGatewayId: string
        effectImmediately: false
        enableDpd: false
        enableNatTraversal: false
        enableTunnelsBgp: false
        healthCheckConfig:
            dip: string
            enable: false
            interval: 0
            retry: 0
            sip: string
        ikeConfig:
            ikeAuthAlg: string
            ikeEncAlg: string
            ikeLifetime: 0
            ikeLocalId: string
            ikeMode: string
            ikePfs: string
            ikeRemoteId: string
            ikeVersion: string
            psk: string
        ipsecConfig:
            ipsecAuthAlg: string
            ipsecEncAlg: string
            ipsecLifetime: 0
            ipsecPfs: string
        localSubnets:
            - string
        networkType: string
        remoteSubnets:
            - string
        tags:
            string: any
        tunnelOptionsSpecifications:
            - customerGatewayId: string
              enableDpd: false
              enableNatTraversal: false
              internetIp: string
              role: string
              state: string
              status: string
              tunnelBgpConfig:
                bgpStatus: string
                localAsn: string
                localBgpIp: string
                peerAsn: string
                peerBgpIp: string
                tunnelCidr: string
              tunnelId: string
              tunnelIkeConfig:
                ikeAuthAlg: string
                ikeEncAlg: string
                ikeLifetime: 0
                ikeMode: string
                ikePfs: string
                ikeVersion: string
                localId: string
                psk: string
                remoteId: string
              tunnelIpsecConfig:
                ipsecAuthAlg: string
                ipsecEncAlg: string
                ipsecLifetime: 0
                ipsecPfs: string
              zoneNo: string
        vpnConnectionName: string
        vpnGatewayId: string
    

    Connection Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Connection resource accepts the following input properties:

    LocalSubnets List<string>
    The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
    RemoteSubnets List<string>
    The CIDR block of the local data center. This parameter is used for phase-two negotiation.
    VpnGatewayId string

    The ID of the VPN gateway.

    The following arguments will be discarded. Please use new fields as soon as possible:

    AutoConfigRoute bool
    Whether to configure routing automatically. Value:

    • true: Automatically configure routes.
    • false: does not automatically configure routes.
    BgpConfig Pulumi.AliCloud.Vpn.Inputs.ConnectionBgpConfig
    vpnBgp configuration. See bgp_config below.
    CustomerGatewayId string
    The ID of the customer gateway.
    EffectImmediately bool
    Indicates whether IPsec-VPN negotiations are initiated immediately. Valid values.
    EnableDpd bool
    Wether enable Dpd detection.
    EnableNatTraversal bool
    enable nat traversal.
    EnableTunnelsBgp bool
    Enable tunnel bgp.
    HealthCheckConfig Pulumi.AliCloud.Vpn.Inputs.ConnectionHealthCheckConfig
    Health Check information. See health_check_config below.
    IkeConfig Pulumi.AliCloud.Vpn.Inputs.ConnectionIkeConfig
    The configuration of Phase 1 negotiations. See ike_config below.
    IpsecConfig Pulumi.AliCloud.Vpn.Inputs.ConnectionIpsecConfig
    IPsec configuration. See ipsec_config below.
    Name string
    . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_connection_name' instead.

    Deprecated: Field 'name' has been deprecated since provider version 1.216.0. New field 'vpn_connection_name' instead.

    NetworkType string
    The network type of the IPsec connection. Value:

    • public: public network, indicating that the IPsec connection establishes an encrypted communication channel through the public network.
    • private: private network, indicating that the IPsec connection establishes an encrypted communication channel through the private network.
    Tags Dictionary<string, object>
    Tags.
    TunnelOptionsSpecifications List<Pulumi.AliCloud.Vpn.Inputs.ConnectionTunnelOptionsSpecification>
    The tunnel options of IPsec. See tunnel_options_specification below.
    VpnConnectionName string
    The name of the IPsec-VPN connection.
    LocalSubnets []string
    The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
    RemoteSubnets []string
    The CIDR block of the local data center. This parameter is used for phase-two negotiation.
    VpnGatewayId string

    The ID of the VPN gateway.

    The following arguments will be discarded. Please use new fields as soon as possible:

    AutoConfigRoute bool
    Whether to configure routing automatically. Value:

    • true: Automatically configure routes.
    • false: does not automatically configure routes.
    BgpConfig ConnectionBgpConfigArgs
    vpnBgp configuration. See bgp_config below.
    CustomerGatewayId string
    The ID of the customer gateway.
    EffectImmediately bool
    Indicates whether IPsec-VPN negotiations are initiated immediately. Valid values.
    EnableDpd bool
    Wether enable Dpd detection.
    EnableNatTraversal bool
    enable nat traversal.
    EnableTunnelsBgp bool
    Enable tunnel bgp.
    HealthCheckConfig ConnectionHealthCheckConfigArgs
    Health Check information. See health_check_config below.
    IkeConfig ConnectionIkeConfigArgs
    The configuration of Phase 1 negotiations. See ike_config below.
    IpsecConfig ConnectionIpsecConfigArgs
    IPsec configuration. See ipsec_config below.
    Name string
    . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_connection_name' instead.

    Deprecated: Field 'name' has been deprecated since provider version 1.216.0. New field 'vpn_connection_name' instead.

    NetworkType string
    The network type of the IPsec connection. Value:

    • public: public network, indicating that the IPsec connection establishes an encrypted communication channel through the public network.
    • private: private network, indicating that the IPsec connection establishes an encrypted communication channel through the private network.
    Tags map[string]interface{}
    Tags.
    TunnelOptionsSpecifications []ConnectionTunnelOptionsSpecificationArgs
    The tunnel options of IPsec. See tunnel_options_specification below.
    VpnConnectionName string
    The name of the IPsec-VPN connection.
    localSubnets List<String>
    The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
    remoteSubnets List<String>
    The CIDR block of the local data center. This parameter is used for phase-two negotiation.
    vpnGatewayId String

    The ID of the VPN gateway.

    The following arguments will be discarded. Please use new fields as soon as possible:

    autoConfigRoute Boolean
    Whether to configure routing automatically. Value:

    • true: Automatically configure routes.
    • false: does not automatically configure routes.
    bgpConfig ConnectionBgpConfig
    vpnBgp configuration. See bgp_config below.
    customerGatewayId String
    The ID of the customer gateway.
    effectImmediately Boolean
    Indicates whether IPsec-VPN negotiations are initiated immediately. Valid values.
    enableDpd Boolean
    Wether enable Dpd detection.
    enableNatTraversal Boolean
    enable nat traversal.
    enableTunnelsBgp Boolean
    Enable tunnel bgp.
    healthCheckConfig ConnectionHealthCheckConfig
    Health Check information. See health_check_config below.
    ikeConfig ConnectionIkeConfig
    The configuration of Phase 1 negotiations. See ike_config below.
    ipsecConfig ConnectionIpsecConfig
    IPsec configuration. See ipsec_config below.
    name String
    . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_connection_name' instead.

    Deprecated: Field 'name' has been deprecated since provider version 1.216.0. New field 'vpn_connection_name' instead.

    networkType String
    The network type of the IPsec connection. Value:

    • public: public network, indicating that the IPsec connection establishes an encrypted communication channel through the public network.
    • private: private network, indicating that the IPsec connection establishes an encrypted communication channel through the private network.
    tags Map<String,Object>
    Tags.
    tunnelOptionsSpecifications List<ConnectionTunnelOptionsSpecification>
    The tunnel options of IPsec. See tunnel_options_specification below.
    vpnConnectionName String
    The name of the IPsec-VPN connection.
    localSubnets string[]
    The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
    remoteSubnets string[]
    The CIDR block of the local data center. This parameter is used for phase-two negotiation.
    vpnGatewayId string

    The ID of the VPN gateway.

    The following arguments will be discarded. Please use new fields as soon as possible:

    autoConfigRoute boolean
    Whether to configure routing automatically. Value:

    • true: Automatically configure routes.
    • false: does not automatically configure routes.
    bgpConfig ConnectionBgpConfig
    vpnBgp configuration. See bgp_config below.
    customerGatewayId string
    The ID of the customer gateway.
    effectImmediately boolean
    Indicates whether IPsec-VPN negotiations are initiated immediately. Valid values.
    enableDpd boolean
    Wether enable Dpd detection.
    enableNatTraversal boolean
    enable nat traversal.
    enableTunnelsBgp boolean
    Enable tunnel bgp.
    healthCheckConfig ConnectionHealthCheckConfig
    Health Check information. See health_check_config below.
    ikeConfig ConnectionIkeConfig
    The configuration of Phase 1 negotiations. See ike_config below.
    ipsecConfig ConnectionIpsecConfig
    IPsec configuration. See ipsec_config below.
    name string
    . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_connection_name' instead.

    Deprecated: Field 'name' has been deprecated since provider version 1.216.0. New field 'vpn_connection_name' instead.

    networkType string
    The network type of the IPsec connection. Value:

    • public: public network, indicating that the IPsec connection establishes an encrypted communication channel through the public network.
    • private: private network, indicating that the IPsec connection establishes an encrypted communication channel through the private network.
    tags {[key: string]: any}
    Tags.
    tunnelOptionsSpecifications ConnectionTunnelOptionsSpecification[]
    The tunnel options of IPsec. See tunnel_options_specification below.
    vpnConnectionName string
    The name of the IPsec-VPN connection.
    local_subnets Sequence[str]
    The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
    remote_subnets Sequence[str]
    The CIDR block of the local data center. This parameter is used for phase-two negotiation.
    vpn_gateway_id str

    The ID of the VPN gateway.

    The following arguments will be discarded. Please use new fields as soon as possible:

    auto_config_route bool
    Whether to configure routing automatically. Value:

    • true: Automatically configure routes.
    • false: does not automatically configure routes.
    bgp_config ConnectionBgpConfigArgs
    vpnBgp configuration. See bgp_config below.
    customer_gateway_id str
    The ID of the customer gateway.
    effect_immediately bool
    Indicates whether IPsec-VPN negotiations are initiated immediately. Valid values.
    enable_dpd bool
    Wether enable Dpd detection.
    enable_nat_traversal bool
    enable nat traversal.
    enable_tunnels_bgp bool
    Enable tunnel bgp.
    health_check_config ConnectionHealthCheckConfigArgs
    Health Check information. See health_check_config below.
    ike_config ConnectionIkeConfigArgs
    The configuration of Phase 1 negotiations. See ike_config below.
    ipsec_config ConnectionIpsecConfigArgs
    IPsec configuration. See ipsec_config below.
    name str
    . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_connection_name' instead.

    Deprecated: Field 'name' has been deprecated since provider version 1.216.0. New field 'vpn_connection_name' instead.

    network_type str
    The network type of the IPsec connection. Value:

    • public: public network, indicating that the IPsec connection establishes an encrypted communication channel through the public network.
    • private: private network, indicating that the IPsec connection establishes an encrypted communication channel through the private network.
    tags Mapping[str, Any]
    Tags.
    tunnel_options_specifications Sequence[ConnectionTunnelOptionsSpecificationArgs]
    The tunnel options of IPsec. See tunnel_options_specification below.
    vpn_connection_name str
    The name of the IPsec-VPN connection.
    localSubnets List<String>
    The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
    remoteSubnets List<String>
    The CIDR block of the local data center. This parameter is used for phase-two negotiation.
    vpnGatewayId String

    The ID of the VPN gateway.

    The following arguments will be discarded. Please use new fields as soon as possible:

    autoConfigRoute Boolean
    Whether to configure routing automatically. Value:

    • true: Automatically configure routes.
    • false: does not automatically configure routes.
    bgpConfig Property Map
    vpnBgp configuration. See bgp_config below.
    customerGatewayId String
    The ID of the customer gateway.
    effectImmediately Boolean
    Indicates whether IPsec-VPN negotiations are initiated immediately. Valid values.
    enableDpd Boolean
    Wether enable Dpd detection.
    enableNatTraversal Boolean
    enable nat traversal.
    enableTunnelsBgp Boolean
    Enable tunnel bgp.
    healthCheckConfig Property Map
    Health Check information. See health_check_config below.
    ikeConfig Property Map
    The configuration of Phase 1 negotiations. See ike_config below.
    ipsecConfig Property Map
    IPsec configuration. See ipsec_config below.
    name String
    . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_connection_name' instead.

    Deprecated: Field 'name' has been deprecated since provider version 1.216.0. New field 'vpn_connection_name' instead.

    networkType String
    The network type of the IPsec connection. Value:

    • public: public network, indicating that the IPsec connection establishes an encrypted communication channel through the public network.
    • private: private network, indicating that the IPsec connection establishes an encrypted communication channel through the private network.
    tags Map<Any>
    Tags.
    tunnelOptionsSpecifications List<Property Map>
    The tunnel options of IPsec. See tunnel_options_specification below.
    vpnConnectionName String
    The name of the IPsec-VPN connection.

    Outputs

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

    CreateTime int
    The time when the IPsec-VPN connection was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceGroupId string
    The ID of the resource group.
    Status string
    The negotiation status of Tunnel.
    CreateTime int
    The time when the IPsec-VPN connection was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceGroupId string
    The ID of the resource group.
    Status string
    The negotiation status of Tunnel.
    createTime Integer
    The time when the IPsec-VPN connection was created.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceGroupId String
    The ID of the resource group.
    status String
    The negotiation status of Tunnel.
    createTime number
    The time when the IPsec-VPN connection was created.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceGroupId string
    The ID of the resource group.
    status string
    The negotiation status of Tunnel.
    create_time int
    The time when the IPsec-VPN connection was created.
    id str
    The provider-assigned unique ID for this managed resource.
    resource_group_id str
    The ID of the resource group.
    status str
    The negotiation status of Tunnel.
    createTime Number
    The time when the IPsec-VPN connection was created.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceGroupId String
    The ID of the resource group.
    status String
    The negotiation status of Tunnel.

    Look up Existing Connection Resource

    Get an existing Connection 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?: ConnectionState, opts?: CustomResourceOptions): Connection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_config_route: Optional[bool] = None,
            bgp_config: Optional[ConnectionBgpConfigArgs] = None,
            create_time: Optional[int] = None,
            customer_gateway_id: Optional[str] = None,
            effect_immediately: Optional[bool] = None,
            enable_dpd: Optional[bool] = None,
            enable_nat_traversal: Optional[bool] = None,
            enable_tunnels_bgp: Optional[bool] = None,
            health_check_config: Optional[ConnectionHealthCheckConfigArgs] = None,
            ike_config: Optional[ConnectionIkeConfigArgs] = None,
            ipsec_config: Optional[ConnectionIpsecConfigArgs] = None,
            local_subnets: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            network_type: Optional[str] = None,
            remote_subnets: Optional[Sequence[str]] = None,
            resource_group_id: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, Any]] = None,
            tunnel_options_specifications: Optional[Sequence[ConnectionTunnelOptionsSpecificationArgs]] = None,
            vpn_connection_name: Optional[str] = None,
            vpn_gateway_id: Optional[str] = None) -> Connection
    func GetConnection(ctx *Context, name string, id IDInput, state *ConnectionState, opts ...ResourceOption) (*Connection, error)
    public static Connection Get(string name, Input<string> id, ConnectionState? state, CustomResourceOptions? opts = null)
    public static Connection get(String name, Output<String> id, ConnectionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutoConfigRoute bool
    Whether to configure routing automatically. Value:

    • true: Automatically configure routes.
    • false: does not automatically configure routes.
    BgpConfig Pulumi.AliCloud.Vpn.Inputs.ConnectionBgpConfig
    vpnBgp configuration. See bgp_config below.
    CreateTime int
    The time when the IPsec-VPN connection was created.
    CustomerGatewayId string
    The ID of the customer gateway.
    EffectImmediately bool
    Indicates whether IPsec-VPN negotiations are initiated immediately. Valid values.
    EnableDpd bool
    Wether enable Dpd detection.
    EnableNatTraversal bool
    enable nat traversal.
    EnableTunnelsBgp bool
    Enable tunnel bgp.
    HealthCheckConfig Pulumi.AliCloud.Vpn.Inputs.ConnectionHealthCheckConfig
    Health Check information. See health_check_config below.
    IkeConfig Pulumi.AliCloud.Vpn.Inputs.ConnectionIkeConfig
    The configuration of Phase 1 negotiations. See ike_config below.
    IpsecConfig Pulumi.AliCloud.Vpn.Inputs.ConnectionIpsecConfig
    IPsec configuration. See ipsec_config below.
    LocalSubnets List<string>
    The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
    Name string
    . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_connection_name' instead.

    Deprecated: Field 'name' has been deprecated since provider version 1.216.0. New field 'vpn_connection_name' instead.

    NetworkType string
    The network type of the IPsec connection. Value:

    • public: public network, indicating that the IPsec connection establishes an encrypted communication channel through the public network.
    • private: private network, indicating that the IPsec connection establishes an encrypted communication channel through the private network.
    RemoteSubnets List<string>
    The CIDR block of the local data center. This parameter is used for phase-two negotiation.
    ResourceGroupId string
    The ID of the resource group.
    Status string
    The negotiation status of Tunnel.
    Tags Dictionary<string, object>
    Tags.
    TunnelOptionsSpecifications List<Pulumi.AliCloud.Vpn.Inputs.ConnectionTunnelOptionsSpecification>
    The tunnel options of IPsec. See tunnel_options_specification below.
    VpnConnectionName string
    The name of the IPsec-VPN connection.
    VpnGatewayId string

    The ID of the VPN gateway.

    The following arguments will be discarded. Please use new fields as soon as possible:

    AutoConfigRoute bool
    Whether to configure routing automatically. Value:

    • true: Automatically configure routes.
    • false: does not automatically configure routes.
    BgpConfig ConnectionBgpConfigArgs
    vpnBgp configuration. See bgp_config below.
    CreateTime int
    The time when the IPsec-VPN connection was created.
    CustomerGatewayId string
    The ID of the customer gateway.
    EffectImmediately bool
    Indicates whether IPsec-VPN negotiations are initiated immediately. Valid values.
    EnableDpd bool
    Wether enable Dpd detection.
    EnableNatTraversal bool
    enable nat traversal.
    EnableTunnelsBgp bool
    Enable tunnel bgp.
    HealthCheckConfig ConnectionHealthCheckConfigArgs
    Health Check information. See health_check_config below.
    IkeConfig ConnectionIkeConfigArgs
    The configuration of Phase 1 negotiations. See ike_config below.
    IpsecConfig ConnectionIpsecConfigArgs
    IPsec configuration. See ipsec_config below.
    LocalSubnets []string
    The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
    Name string
    . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_connection_name' instead.

    Deprecated: Field 'name' has been deprecated since provider version 1.216.0. New field 'vpn_connection_name' instead.

    NetworkType string
    The network type of the IPsec connection. Value:

    • public: public network, indicating that the IPsec connection establishes an encrypted communication channel through the public network.
    • private: private network, indicating that the IPsec connection establishes an encrypted communication channel through the private network.
    RemoteSubnets []string
    The CIDR block of the local data center. This parameter is used for phase-two negotiation.
    ResourceGroupId string
    The ID of the resource group.
    Status string
    The negotiation status of Tunnel.
    Tags map[string]interface{}
    Tags.
    TunnelOptionsSpecifications []ConnectionTunnelOptionsSpecificationArgs
    The tunnel options of IPsec. See tunnel_options_specification below.
    VpnConnectionName string
    The name of the IPsec-VPN connection.
    VpnGatewayId string

    The ID of the VPN gateway.

    The following arguments will be discarded. Please use new fields as soon as possible:

    autoConfigRoute Boolean
    Whether to configure routing automatically. Value:

    • true: Automatically configure routes.
    • false: does not automatically configure routes.
    bgpConfig ConnectionBgpConfig
    vpnBgp configuration. See bgp_config below.
    createTime Integer
    The time when the IPsec-VPN connection was created.
    customerGatewayId String
    The ID of the customer gateway.
    effectImmediately Boolean
    Indicates whether IPsec-VPN negotiations are initiated immediately. Valid values.
    enableDpd Boolean
    Wether enable Dpd detection.
    enableNatTraversal Boolean
    enable nat traversal.
    enableTunnelsBgp Boolean
    Enable tunnel bgp.
    healthCheckConfig ConnectionHealthCheckConfig
    Health Check information. See health_check_config below.
    ikeConfig ConnectionIkeConfig
    The configuration of Phase 1 negotiations. See ike_config below.
    ipsecConfig ConnectionIpsecConfig
    IPsec configuration. See ipsec_config below.
    localSubnets List<String>
    The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
    name String
    . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_connection_name' instead.

    Deprecated: Field 'name' has been deprecated since provider version 1.216.0. New field 'vpn_connection_name' instead.

    networkType String
    The network type of the IPsec connection. Value:

    • public: public network, indicating that the IPsec connection establishes an encrypted communication channel through the public network.
    • private: private network, indicating that the IPsec connection establishes an encrypted communication channel through the private network.
    remoteSubnets List<String>
    The CIDR block of the local data center. This parameter is used for phase-two negotiation.
    resourceGroupId String
    The ID of the resource group.
    status String
    The negotiation status of Tunnel.
    tags Map<String,Object>
    Tags.
    tunnelOptionsSpecifications List<ConnectionTunnelOptionsSpecification>
    The tunnel options of IPsec. See tunnel_options_specification below.
    vpnConnectionName String
    The name of the IPsec-VPN connection.
    vpnGatewayId String

    The ID of the VPN gateway.

    The following arguments will be discarded. Please use new fields as soon as possible:

    autoConfigRoute boolean
    Whether to configure routing automatically. Value:

    • true: Automatically configure routes.
    • false: does not automatically configure routes.
    bgpConfig ConnectionBgpConfig
    vpnBgp configuration. See bgp_config below.
    createTime number
    The time when the IPsec-VPN connection was created.
    customerGatewayId string
    The ID of the customer gateway.
    effectImmediately boolean
    Indicates whether IPsec-VPN negotiations are initiated immediately. Valid values.
    enableDpd boolean
    Wether enable Dpd detection.
    enableNatTraversal boolean
    enable nat traversal.
    enableTunnelsBgp boolean
    Enable tunnel bgp.
    healthCheckConfig ConnectionHealthCheckConfig
    Health Check information. See health_check_config below.
    ikeConfig ConnectionIkeConfig
    The configuration of Phase 1 negotiations. See ike_config below.
    ipsecConfig ConnectionIpsecConfig
    IPsec configuration. See ipsec_config below.
    localSubnets string[]
    The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
    name string
    . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_connection_name' instead.

    Deprecated: Field 'name' has been deprecated since provider version 1.216.0. New field 'vpn_connection_name' instead.

    networkType string
    The network type of the IPsec connection. Value:

    • public: public network, indicating that the IPsec connection establishes an encrypted communication channel through the public network.
    • private: private network, indicating that the IPsec connection establishes an encrypted communication channel through the private network.
    remoteSubnets string[]
    The CIDR block of the local data center. This parameter is used for phase-two negotiation.
    resourceGroupId string
    The ID of the resource group.
    status string
    The negotiation status of Tunnel.
    tags {[key: string]: any}
    Tags.
    tunnelOptionsSpecifications ConnectionTunnelOptionsSpecification[]
    The tunnel options of IPsec. See tunnel_options_specification below.
    vpnConnectionName string
    The name of the IPsec-VPN connection.
    vpnGatewayId string

    The ID of the VPN gateway.

    The following arguments will be discarded. Please use new fields as soon as possible:

    auto_config_route bool
    Whether to configure routing automatically. Value:

    • true: Automatically configure routes.
    • false: does not automatically configure routes.
    bgp_config ConnectionBgpConfigArgs
    vpnBgp configuration. See bgp_config below.
    create_time int
    The time when the IPsec-VPN connection was created.
    customer_gateway_id str
    The ID of the customer gateway.
    effect_immediately bool
    Indicates whether IPsec-VPN negotiations are initiated immediately. Valid values.
    enable_dpd bool
    Wether enable Dpd detection.
    enable_nat_traversal bool
    enable nat traversal.
    enable_tunnels_bgp bool
    Enable tunnel bgp.
    health_check_config ConnectionHealthCheckConfigArgs
    Health Check information. See health_check_config below.
    ike_config ConnectionIkeConfigArgs
    The configuration of Phase 1 negotiations. See ike_config below.
    ipsec_config ConnectionIpsecConfigArgs
    IPsec configuration. See ipsec_config below.
    local_subnets Sequence[str]
    The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
    name str
    . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_connection_name' instead.

    Deprecated: Field 'name' has been deprecated since provider version 1.216.0. New field 'vpn_connection_name' instead.

    network_type str
    The network type of the IPsec connection. Value:

    • public: public network, indicating that the IPsec connection establishes an encrypted communication channel through the public network.
    • private: private network, indicating that the IPsec connection establishes an encrypted communication channel through the private network.
    remote_subnets Sequence[str]
    The CIDR block of the local data center. This parameter is used for phase-two negotiation.
    resource_group_id str
    The ID of the resource group.
    status str
    The negotiation status of Tunnel.
    tags Mapping[str, Any]
    Tags.
    tunnel_options_specifications Sequence[ConnectionTunnelOptionsSpecificationArgs]
    The tunnel options of IPsec. See tunnel_options_specification below.
    vpn_connection_name str
    The name of the IPsec-VPN connection.
    vpn_gateway_id str

    The ID of the VPN gateway.

    The following arguments will be discarded. Please use new fields as soon as possible:

    autoConfigRoute Boolean
    Whether to configure routing automatically. Value:

    • true: Automatically configure routes.
    • false: does not automatically configure routes.
    bgpConfig Property Map
    vpnBgp configuration. See bgp_config below.
    createTime Number
    The time when the IPsec-VPN connection was created.
    customerGatewayId String
    The ID of the customer gateway.
    effectImmediately Boolean
    Indicates whether IPsec-VPN negotiations are initiated immediately. Valid values.
    enableDpd Boolean
    Wether enable Dpd detection.
    enableNatTraversal Boolean
    enable nat traversal.
    enableTunnelsBgp Boolean
    Enable tunnel bgp.
    healthCheckConfig Property Map
    Health Check information. See health_check_config below.
    ikeConfig Property Map
    The configuration of Phase 1 negotiations. See ike_config below.
    ipsecConfig Property Map
    IPsec configuration. See ipsec_config below.
    localSubnets List<String>
    The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.
    name String
    . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_connection_name' instead.

    Deprecated: Field 'name' has been deprecated since provider version 1.216.0. New field 'vpn_connection_name' instead.

    networkType String
    The network type of the IPsec connection. Value:

    • public: public network, indicating that the IPsec connection establishes an encrypted communication channel through the public network.
    • private: private network, indicating that the IPsec connection establishes an encrypted communication channel through the private network.
    remoteSubnets List<String>
    The CIDR block of the local data center. This parameter is used for phase-two negotiation.
    resourceGroupId String
    The ID of the resource group.
    status String
    The negotiation status of Tunnel.
    tags Map<Any>
    Tags.
    tunnelOptionsSpecifications List<Property Map>
    The tunnel options of IPsec. See tunnel_options_specification below.
    vpnConnectionName String
    The name of the IPsec-VPN connection.
    vpnGatewayId String

    The ID of the VPN gateway.

    The following arguments will be discarded. Please use new fields as soon as possible:

    Supporting Types

    ConnectionBgpConfig, ConnectionBgpConfigArgs

    Enable bool
    Bgp enable.
    LocalAsn string
    Local asn.
    LocalBgpIp string
    Local bgp IP.
    Status string
    The negotiation status of Tunnel.
    TunnelCidr string
    IPSec tunnel Cidr.
    Enable bool
    Bgp enable.
    LocalAsn string
    Local asn.
    LocalBgpIp string
    Local bgp IP.
    Status string
    The negotiation status of Tunnel.
    TunnelCidr string
    IPSec tunnel Cidr.
    enable Boolean
    Bgp enable.
    localAsn String
    Local asn.
    localBgpIp String
    Local bgp IP.
    status String
    The negotiation status of Tunnel.
    tunnelCidr String
    IPSec tunnel Cidr.
    enable boolean
    Bgp enable.
    localAsn string
    Local asn.
    localBgpIp string
    Local bgp IP.
    status string
    The negotiation status of Tunnel.
    tunnelCidr string
    IPSec tunnel Cidr.
    enable bool
    Bgp enable.
    local_asn str
    Local asn.
    local_bgp_ip str
    Local bgp IP.
    status str
    The negotiation status of Tunnel.
    tunnel_cidr str
    IPSec tunnel Cidr.
    enable Boolean
    Bgp enable.
    localAsn String
    Local asn.
    localBgpIp String
    Local bgp IP.
    status String
    The negotiation status of Tunnel.
    tunnelCidr String
    IPSec tunnel Cidr.

    ConnectionHealthCheckConfig, ConnectionHealthCheckConfigArgs

    Dip string
    Destination IP.
    Enable bool
    Specifies whether to enable healthcheck.
    Interval int
    Retry interval.
    Retry int
    retry times.
    Sip string
    Source IP.
    Dip string
    Destination IP.
    Enable bool
    Specifies whether to enable healthcheck.
    Interval int
    Retry interval.
    Retry int
    retry times.
    Sip string
    Source IP.
    dip String
    Destination IP.
    enable Boolean
    Specifies whether to enable healthcheck.
    interval Integer
    Retry interval.
    retry Integer
    retry times.
    sip String
    Source IP.
    dip string
    Destination IP.
    enable boolean
    Specifies whether to enable healthcheck.
    interval number
    Retry interval.
    retry number
    retry times.
    sip string
    Source IP.
    dip str
    Destination IP.
    enable bool
    Specifies whether to enable healthcheck.
    interval int
    Retry interval.
    retry int
    retry times.
    sip str
    Source IP.
    dip String
    Destination IP.
    enable Boolean
    Specifies whether to enable healthcheck.
    interval Number
    Retry interval.
    retry Number
    retry times.
    sip String
    Source IP.

    ConnectionIkeConfig, ConnectionIkeConfigArgs

    IkeAuthAlg string
    IKE auth Algorithm.
    IkeEncAlg string
    IKE encript algorithm.
    IkeLifetime int
    IKE lifetime.
    IkeLocalId string
    The local ID, which supports the FQDN and IP formats, and defaults to the IP address of the selected VPN gateway.
    IkeMode string
    IKE mode, supports main and aggressive mode. The main mode is highly secure. If NAT traversal is enabled, we recommend that you use the aggressive mode.
    IkePfs string
    DH group.
    IkeRemoteId string
    The peer ID. The FQDN and IP address formats are supported. The default value is the IP address of the selected customer gateway.
    IkeVersion string
    IKE version.
    Psk string
    Preshared secret key.
    IkeAuthAlg string
    IKE auth Algorithm.
    IkeEncAlg string
    IKE encript algorithm.
    IkeLifetime int
    IKE lifetime.
    IkeLocalId string
    The local ID, which supports the FQDN and IP formats, and defaults to the IP address of the selected VPN gateway.
    IkeMode string
    IKE mode, supports main and aggressive mode. The main mode is highly secure. If NAT traversal is enabled, we recommend that you use the aggressive mode.
    IkePfs string
    DH group.
    IkeRemoteId string
    The peer ID. The FQDN and IP address formats are supported. The default value is the IP address of the selected customer gateway.
    IkeVersion string
    IKE version.
    Psk string
    Preshared secret key.
    ikeAuthAlg String
    IKE auth Algorithm.
    ikeEncAlg String
    IKE encript algorithm.
    ikeLifetime Integer
    IKE lifetime.
    ikeLocalId String
    The local ID, which supports the FQDN and IP formats, and defaults to the IP address of the selected VPN gateway.
    ikeMode String
    IKE mode, supports main and aggressive mode. The main mode is highly secure. If NAT traversal is enabled, we recommend that you use the aggressive mode.
    ikePfs String
    DH group.
    ikeRemoteId String
    The peer ID. The FQDN and IP address formats are supported. The default value is the IP address of the selected customer gateway.
    ikeVersion String
    IKE version.
    psk String
    Preshared secret key.
    ikeAuthAlg string
    IKE auth Algorithm.
    ikeEncAlg string
    IKE encript algorithm.
    ikeLifetime number
    IKE lifetime.
    ikeLocalId string
    The local ID, which supports the FQDN and IP formats, and defaults to the IP address of the selected VPN gateway.
    ikeMode string
    IKE mode, supports main and aggressive mode. The main mode is highly secure. If NAT traversal is enabled, we recommend that you use the aggressive mode.
    ikePfs string
    DH group.
    ikeRemoteId string
    The peer ID. The FQDN and IP address formats are supported. The default value is the IP address of the selected customer gateway.
    ikeVersion string
    IKE version.
    psk string
    Preshared secret key.
    ike_auth_alg str
    IKE auth Algorithm.
    ike_enc_alg str
    IKE encript algorithm.
    ike_lifetime int
    IKE lifetime.
    ike_local_id str
    The local ID, which supports the FQDN and IP formats, and defaults to the IP address of the selected VPN gateway.
    ike_mode str
    IKE mode, supports main and aggressive mode. The main mode is highly secure. If NAT traversal is enabled, we recommend that you use the aggressive mode.
    ike_pfs str
    DH group.
    ike_remote_id str
    The peer ID. The FQDN and IP address formats are supported. The default value is the IP address of the selected customer gateway.
    ike_version str
    IKE version.
    psk str
    Preshared secret key.
    ikeAuthAlg String
    IKE auth Algorithm.
    ikeEncAlg String
    IKE encript algorithm.
    ikeLifetime Number
    IKE lifetime.
    ikeLocalId String
    The local ID, which supports the FQDN and IP formats, and defaults to the IP address of the selected VPN gateway.
    ikeMode String
    IKE mode, supports main and aggressive mode. The main mode is highly secure. If NAT traversal is enabled, we recommend that you use the aggressive mode.
    ikePfs String
    DH group.
    ikeRemoteId String
    The peer ID. The FQDN and IP address formats are supported. The default value is the IP address of the selected customer gateway.
    ikeVersion String
    IKE version.
    psk String
    Preshared secret key.

    ConnectionIpsecConfig, ConnectionIpsecConfigArgs

    IpsecAuthAlg string
    IPsec authentication algorithm. sha1 and md5 are supported.
    IpsecEncAlg string
    IPsec Encript algorithm.
    IpsecLifetime int
    IPsec lifetime.
    IpsecPfs string
    DH Group.
    IpsecAuthAlg string
    IPsec authentication algorithm. sha1 and md5 are supported.
    IpsecEncAlg string
    IPsec Encript algorithm.
    IpsecLifetime int
    IPsec lifetime.
    IpsecPfs string
    DH Group.
    ipsecAuthAlg String
    IPsec authentication algorithm. sha1 and md5 are supported.
    ipsecEncAlg String
    IPsec Encript algorithm.
    ipsecLifetime Integer
    IPsec lifetime.
    ipsecPfs String
    DH Group.
    ipsecAuthAlg string
    IPsec authentication algorithm. sha1 and md5 are supported.
    ipsecEncAlg string
    IPsec Encript algorithm.
    ipsecLifetime number
    IPsec lifetime.
    ipsecPfs string
    DH Group.
    ipsec_auth_alg str
    IPsec authentication algorithm. sha1 and md5 are supported.
    ipsec_enc_alg str
    IPsec Encript algorithm.
    ipsec_lifetime int
    IPsec lifetime.
    ipsec_pfs str
    DH Group.
    ipsecAuthAlg String
    IPsec authentication algorithm. sha1 and md5 are supported.
    ipsecEncAlg String
    IPsec Encript algorithm.
    ipsecLifetime Number
    IPsec lifetime.
    ipsecPfs String
    DH Group.

    ConnectionTunnelOptionsSpecification, ConnectionTunnelOptionsSpecificationArgs

    CustomerGatewayId string
    The ID of the customer gateway in Tunnel.
    EnableDpd bool
    Wether enable Dpd detection.
    EnableNatTraversal bool
    enable nat traversal.
    InternetIp string
    The local internet IP in Tunnel.
    Role string
    The role of Tunnel.
    State string
    The state of Tunnel.
    Status string
    The negotiation status of Tunnel.
    TunnelBgpConfig Pulumi.AliCloud.Vpn.Inputs.ConnectionTunnelOptionsSpecificationTunnelBgpConfig
    The bgp config of Tunnel. See tunnel_bgp_config below.
    TunnelId string
    The tunnel ID of IPsec-VPN connection.
    TunnelIkeConfig Pulumi.AliCloud.Vpn.Inputs.ConnectionTunnelOptionsSpecificationTunnelIkeConfig
    The configuration of Phase 1 negotiations in Tunnel. See tunnel_ike_config below.
    TunnelIpsecConfig Pulumi.AliCloud.Vpn.Inputs.ConnectionTunnelOptionsSpecificationTunnelIpsecConfig
    IPsec configuration in Tunnel. See tunnel_ipsec_config below.
    ZoneNo string
    The zoneNo of tunnel.
    CustomerGatewayId string
    The ID of the customer gateway in Tunnel.
    EnableDpd bool
    Wether enable Dpd detection.
    EnableNatTraversal bool
    enable nat traversal.
    InternetIp string
    The local internet IP in Tunnel.
    Role string
    The role of Tunnel.
    State string
    The state of Tunnel.
    Status string
    The negotiation status of Tunnel.
    TunnelBgpConfig ConnectionTunnelOptionsSpecificationTunnelBgpConfig
    The bgp config of Tunnel. See tunnel_bgp_config below.
    TunnelId string
    The tunnel ID of IPsec-VPN connection.
    TunnelIkeConfig ConnectionTunnelOptionsSpecificationTunnelIkeConfig
    The configuration of Phase 1 negotiations in Tunnel. See tunnel_ike_config below.
    TunnelIpsecConfig ConnectionTunnelOptionsSpecificationTunnelIpsecConfig
    IPsec configuration in Tunnel. See tunnel_ipsec_config below.
    ZoneNo string
    The zoneNo of tunnel.
    customerGatewayId String
    The ID of the customer gateway in Tunnel.
    enableDpd Boolean
    Wether enable Dpd detection.
    enableNatTraversal Boolean
    enable nat traversal.
    internetIp String
    The local internet IP in Tunnel.
    role String
    The role of Tunnel.
    state String
    The state of Tunnel.
    status String
    The negotiation status of Tunnel.
    tunnelBgpConfig ConnectionTunnelOptionsSpecificationTunnelBgpConfig
    The bgp config of Tunnel. See tunnel_bgp_config below.
    tunnelId String
    The tunnel ID of IPsec-VPN connection.
    tunnelIkeConfig ConnectionTunnelOptionsSpecificationTunnelIkeConfig
    The configuration of Phase 1 negotiations in Tunnel. See tunnel_ike_config below.
    tunnelIpsecConfig ConnectionTunnelOptionsSpecificationTunnelIpsecConfig
    IPsec configuration in Tunnel. See tunnel_ipsec_config below.
    zoneNo String
    The zoneNo of tunnel.
    customerGatewayId string
    The ID of the customer gateway in Tunnel.
    enableDpd boolean
    Wether enable Dpd detection.
    enableNatTraversal boolean
    enable nat traversal.
    internetIp string
    The local internet IP in Tunnel.
    role string
    The role of Tunnel.
    state string
    The state of Tunnel.
    status string
    The negotiation status of Tunnel.
    tunnelBgpConfig ConnectionTunnelOptionsSpecificationTunnelBgpConfig
    The bgp config of Tunnel. See tunnel_bgp_config below.
    tunnelId string
    The tunnel ID of IPsec-VPN connection.
    tunnelIkeConfig ConnectionTunnelOptionsSpecificationTunnelIkeConfig
    The configuration of Phase 1 negotiations in Tunnel. See tunnel_ike_config below.
    tunnelIpsecConfig ConnectionTunnelOptionsSpecificationTunnelIpsecConfig
    IPsec configuration in Tunnel. See tunnel_ipsec_config below.
    zoneNo string
    The zoneNo of tunnel.
    customer_gateway_id str
    The ID of the customer gateway in Tunnel.
    enable_dpd bool
    Wether enable Dpd detection.
    enable_nat_traversal bool
    enable nat traversal.
    internet_ip str
    The local internet IP in Tunnel.
    role str
    The role of Tunnel.
    state str
    The state of Tunnel.
    status str
    The negotiation status of Tunnel.
    tunnel_bgp_config ConnectionTunnelOptionsSpecificationTunnelBgpConfig
    The bgp config of Tunnel. See tunnel_bgp_config below.
    tunnel_id str
    The tunnel ID of IPsec-VPN connection.
    tunnel_ike_config ConnectionTunnelOptionsSpecificationTunnelIkeConfig
    The configuration of Phase 1 negotiations in Tunnel. See tunnel_ike_config below.
    tunnel_ipsec_config ConnectionTunnelOptionsSpecificationTunnelIpsecConfig
    IPsec configuration in Tunnel. See tunnel_ipsec_config below.
    zone_no str
    The zoneNo of tunnel.
    customerGatewayId String
    The ID of the customer gateway in Tunnel.
    enableDpd Boolean
    Wether enable Dpd detection.
    enableNatTraversal Boolean
    enable nat traversal.
    internetIp String
    The local internet IP in Tunnel.
    role String
    The role of Tunnel.
    state String
    The state of Tunnel.
    status String
    The negotiation status of Tunnel.
    tunnelBgpConfig Property Map
    The bgp config of Tunnel. See tunnel_bgp_config below.
    tunnelId String
    The tunnel ID of IPsec-VPN connection.
    tunnelIkeConfig Property Map
    The configuration of Phase 1 negotiations in Tunnel. See tunnel_ike_config below.
    tunnelIpsecConfig Property Map
    IPsec configuration in Tunnel. See tunnel_ipsec_config below.
    zoneNo String
    The zoneNo of tunnel.

    ConnectionTunnelOptionsSpecificationTunnelBgpConfig, ConnectionTunnelOptionsSpecificationTunnelBgpConfigArgs

    BgpStatus string
    Whether BGP function is turned on.
    LocalAsn string
    LocalBgpIp string
    PeerAsn string
    Peer asn.
    PeerBgpIp string
    Peer bgp ip.
    TunnelCidr string
    BgpStatus string
    Whether BGP function is turned on.
    LocalAsn string
    LocalBgpIp string
    PeerAsn string
    Peer asn.
    PeerBgpIp string
    Peer bgp ip.
    TunnelCidr string
    bgpStatus String
    Whether BGP function is turned on.
    localAsn String
    localBgpIp String
    peerAsn String
    Peer asn.
    peerBgpIp String
    Peer bgp ip.
    tunnelCidr String
    bgpStatus string
    Whether BGP function is turned on.
    localAsn string
    localBgpIp string
    peerAsn string
    Peer asn.
    peerBgpIp string
    Peer bgp ip.
    tunnelCidr string
    bgp_status str
    Whether BGP function is turned on.
    local_asn str
    local_bgp_ip str
    peer_asn str
    Peer asn.
    peer_bgp_ip str
    Peer bgp ip.
    tunnel_cidr str
    bgpStatus String
    Whether BGP function is turned on.
    localAsn String
    localBgpIp String
    peerAsn String
    Peer asn.
    peerBgpIp String
    Peer bgp ip.
    tunnelCidr String

    ConnectionTunnelOptionsSpecificationTunnelIkeConfig, ConnectionTunnelOptionsSpecificationTunnelIkeConfigArgs

    IkeAuthAlg string
    IkeEncAlg string
    IkeLifetime int
    IkeMode string
    IkePfs string
    IkeVersion string
    LocalId string
    Psk string
    RemoteId string
    IkeAuthAlg string
    IkeEncAlg string
    IkeLifetime int
    IkeMode string
    IkePfs string
    IkeVersion string
    LocalId string
    Psk string
    RemoteId string
    ikeAuthAlg String
    ikeEncAlg String
    ikeLifetime Integer
    ikeMode String
    ikePfs String
    ikeVersion String
    localId String
    psk String
    remoteId String
    ikeAuthAlg string
    ikeEncAlg string
    ikeLifetime number
    ikeMode string
    ikePfs string
    ikeVersion string
    localId string
    psk string
    remoteId string
    ikeAuthAlg String
    ikeEncAlg String
    ikeLifetime Number
    ikeMode String
    ikePfs String
    ikeVersion String
    localId String
    psk String
    remoteId String

    ConnectionTunnelOptionsSpecificationTunnelIpsecConfig, ConnectionTunnelOptionsSpecificationTunnelIpsecConfigArgs

    Import

    VPN connection can be imported using the id, e.g.

    $ pulumi import alicloud:vpn/connection:Connection example <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 alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi