Skip to content

Data Source: azurermNetworkDdosProtectionPlan

Use this data source to access information about an existing Azure Network DDoS Protection Plan.

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 dataAzurermNetworkDdosProtectionPlanExample =
  new azurerm.dataAzurermNetworkDdosProtectionPlan.DataAzurermNetworkDdosProtectionPlan(
    this,
    "example",
    {
      name: "${azurerm_network_ddos_protection_plan.example.name}",
      resource_group_name:
        "${azurerm_network_ddos_protection_plan.example.resource_group_name}",
    }
  );
new cdktf.TerraformOutput(this, "ddos_protection_plan_id", {
  value: dataAzurermNetworkDdosProtectionPlanExample.id,
});

Argument Reference

The following arguments are supported:

  • name - The name of the Network DDoS Protection Plan.

  • resourceGroupName - The name of the resource group where the Network DDoS Protection Plan exists.

Attributes Reference

The following attributes are exported:

  • id - The ID of the DDoS Protection Plan

  • location - Specifies the supported Azure location where the resource exists.

  • tags - A mapping of tags assigned to the resource.

  • virtualNetworkIds - A list of IDs of the Virtual Networks associated with this DDoS Protection Plan.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Protection Plan.