Data Source: azurermVirtualWan
Use this data source to access information about an existing Virtual Wan.
Example Usage
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermVirtualWanExample =
new azurerm.dataAzurermVirtualWan.DataAzurermVirtualWan(this, "example", {
name: "existing",
resource_group_name: "existing",
});
new cdktf.TerraformOutput(this, "allow_branch_to_branch_traffic", {
value: dataAzurermVirtualWanExample.allowBranchToBranchTraffic,
});
new cdktf.TerraformOutput(this, "disable_vpn_encryption", {
value: dataAzurermVirtualWanExample.disableVpnEncryption,
});
new cdktf.TerraformOutput(this, "id", {
value: dataAzurermVirtualWanExample.id,
});
new cdktf.TerraformOutput(this, "location", {
value: dataAzurermVirtualWanExample.location,
});
new cdktf.TerraformOutput(this, "office365_local_breakout_category", {
value: dataAzurermVirtualWanExample.office365LocalBreakoutCategory,
});
new cdktf.TerraformOutput(this, "sku", {
value: dataAzurermVirtualWanExample.sku,
});
new cdktf.TerraformOutput(this, "tags", {
value: dataAzurermVirtualWanExample.tags,
});
new cdktf.TerraformOutput(this, "virtual_hubs", {
value: dataAzurermVirtualWanExample.virtualHubs,
});
new cdktf.TerraformOutput(this, "vpn_sites", {
value: dataAzurermVirtualWanExample.vpnSites,
});
Arguments Reference
The following arguments are supported:
-
name- (Required) The name of this Virtual Wan. -
resourceGroupName- (Required) The name of the Resource Group where the Virtual Wan exists.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
-
id- The ID of the Virtual Wan. -
allowBranchToBranchTraffic- Is branch to branch traffic is allowed? -
disableVpnEncryption- Is VPN Encryption disabled? -
location- The Azure Region where the Virtual Wan exists. -
office365LocalBreakoutCategory- The Office365 Local Breakout Category. -
sku- Type of Virtual Wan (Basic or Standard). -
tags- A mapping of tags assigned to the Virtual Wan. -
virtualHubIds- A list of Virtual Hubs IDs attached to this Virtual WAN. -
vpnSiteIds- A list of VPN Site IDs attached to this Virtual WAN.
Timeouts
The timeouts block allows you to specify timeouts for certain actions:
read- (Defaults to 5 minutes) Used when retrieving the Virtual Wan.