VpnSiteArgs

data class VpnSiteArgs(val addressSpace: Output<AddressSpaceArgs>? = null, val bgpProperties: Output<BgpSettingsArgs>? = null, val deviceProperties: Output<DevicePropertiesArgs>? = null, val id: Output<String>? = null, val ipAddress: Output<String>? = null, val isSecuritySite: Output<Boolean>? = null, val location: Output<String>? = null, val o365Policy: Output<O365PolicyPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val siteKey: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val virtualWan: Output<SubResourceArgs>? = null, val vpnSiteLinks: Output<List<VpnSiteLinkArgs>>? = null, val vpnSiteName: Output<String>? = null) : ConvertibleToJava<VpnSiteArgs>

VpnSite Resource. API Version: 2020-11-01.

Example Usage

VpnSiteCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var vpnSite = new AzureNative.Network.VpnSite("vpnSite", new()
{
AddressSpace = new AzureNative.Network.Inputs.AddressSpaceArgs
{
AddressPrefixes = new[]
{
"10.0.0.0/16",
},
},
IsSecuritySite = false,
Location = "West US",
O365Policy = new AzureNative.Network.Inputs.O365PolicyPropertiesArgs
{
BreakOutCategories = new AzureNative.Network.Inputs.O365BreakOutCategoryPoliciesArgs
{
Allow = true,
Default = false,
Optimize = true,
},
},
ResourceGroupName = "rg1",
Tags =
{
{ "key1", "value1" },
},
VirtualWan = new AzureNative.Network.Inputs.SubResourceArgs
{
Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1",
},
VpnSiteLinks = new[]
{
new AzureNative.Network.Inputs.VpnSiteLinkArgs
{
BgpProperties = new AzureNative.Network.Inputs.VpnLinkBgpSettingsArgs
{
Asn = 1234,
BgpPeeringAddress = "192.168.0.0",
},
Fqdn = "link1.vpnsite1.contoso.com",
IpAddress = "50.50.50.56",
LinkProperties = new AzureNative.Network.Inputs.VpnLinkProviderPropertiesArgs
{
LinkProviderName = "vendor1",
LinkSpeedInMbps = 0,
},
Name = "vpnSiteLink1",
},
},
VpnSiteName = "vpnSite1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewVpnSite(ctx, "vpnSite", &network.VpnSiteArgs{
AddressSpace: &network.AddressSpaceArgs{
AddressPrefixes: pulumi.StringArray{
pulumi.String("10.0.0.0/16"),
},
},
IsSecuritySite: pulumi.Bool(false),
Location: pulumi.String("West US"),
O365Policy: network.O365PolicyPropertiesResponse{
BreakOutCategories: &network.O365BreakOutCategoryPoliciesArgs{
Allow: pulumi.Bool(true),
Default: pulumi.Bool(false),
Optimize: pulumi.Bool(true),
},
},
ResourceGroupName: pulumi.String("rg1"),
Tags: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
VirtualWan: &network.SubResourceArgs{
Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1"),
},
VpnSiteLinks: []network.VpnSiteLinkArgs{
{
BgpProperties: {
Asn: pulumi.Float64(1234),
BgpPeeringAddress: pulumi.String("192.168.0.0"),
},
Fqdn: pulumi.String("link1.vpnsite1.contoso.com"),
IpAddress: pulumi.String("50.50.50.56"),
LinkProperties: {
LinkProviderName: pulumi.String("vendor1"),
LinkSpeedInMbps: pulumi.Int(0),
},
Name: pulumi.String("vpnSiteLink1"),
},
},
VpnSiteName: pulumi.String("vpnSite1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.VpnSite;
import com.pulumi.azurenative.network.VpnSiteArgs;
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 vpnSite = new VpnSite("vpnSite", VpnSiteArgs.builder()
.addressSpace(Map.of("addressPrefixes", "10.0.0.0/16"))
.isSecuritySite(false)
.location("West US")
.o365Policy(Map.of("breakOutCategories", Map.ofEntries(
Map.entry("allow", true),
Map.entry("default", false),
Map.entry("optimize", true)
)))
.resourceGroupName("rg1")
.tags(Map.of("key1", "value1"))
.virtualWan(Map.of("id", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1"))
.vpnSiteLinks(Map.ofEntries(
Map.entry("bgpProperties", Map.ofEntries(
Map.entry("asn", 1234),
Map.entry("bgpPeeringAddress", "192.168.0.0")
)),
Map.entry("fqdn", "link1.vpnsite1.contoso.com"),
Map.entry("ipAddress", "50.50.50.56"),
Map.entry("linkProperties", Map.ofEntries(
Map.entry("linkProviderName", "vendor1"),
Map.entry("linkSpeedInMbps", 0)
)),
Map.entry("name", "vpnSiteLink1")
))
.vpnSiteName("vpnSite1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:VpnSite vpnSite1 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1

Constructors

Link copied to clipboard
constructor(addressSpace: Output<AddressSpaceArgs>? = null, bgpProperties: Output<BgpSettingsArgs>? = null, deviceProperties: Output<DevicePropertiesArgs>? = null, id: Output<String>? = null, ipAddress: Output<String>? = null, isSecuritySite: Output<Boolean>? = null, location: Output<String>? = null, o365Policy: Output<O365PolicyPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, siteKey: Output<String>? = null, tags: Output<Map<String, String>>? = null, virtualWan: Output<SubResourceArgs>? = null, vpnSiteLinks: Output<List<VpnSiteLinkArgs>>? = null, vpnSiteName: Output<String>? = null)

Properties

Link copied to clipboard
val addressSpace: Output<AddressSpaceArgs>? = null

The AddressSpace that contains an array of IP address ranges.

Link copied to clipboard
val bgpProperties: Output<BgpSettingsArgs>? = null

The set of bgp properties.

Link copied to clipboard

The device properties.

Link copied to clipboard
val id: Output<String>? = null

Resource ID.

Link copied to clipboard
val ipAddress: Output<String>? = null

The ip-address for the vpn-site.

Link copied to clipboard
val isSecuritySite: Output<Boolean>? = null

IsSecuritySite flag.

Link copied to clipboard
val location: Output<String>? = null

Resource location.

Link copied to clipboard

Office365 Policy.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The resource group name of the VpnSite.

Link copied to clipboard
val siteKey: Output<String>? = null

The key for vpn-site that can be used for connections.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Link copied to clipboard
val virtualWan: Output<SubResourceArgs>? = null

The VirtualWAN to which the vpnSite belongs.

Link copied to clipboard
val vpnSiteLinks: Output<List<VpnSiteLinkArgs>>? = null

List of all vpn site links.

Link copied to clipboard
val vpnSiteName: Output<String>? = null

The name of the VpnSite being created or updated.

Functions

Link copied to clipboard
open override fun toJava(): VpnSiteArgs