Skip to content

Data Source: azurermCdnProfile

Use this data source to access information about an existing CDN Profile.

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 dataAzurermCdnProfileExample =
  new azurerm.dataAzurermCdnProfile.DataAzurermCdnProfile(this, "example", {
    name: "myfirstcdnprofile",
    resource_group_name: "example-resources",
  });
new cdktf.TerraformOutput(this, "cdn_profile_id", {
  value: dataAzurermCdnProfileExample.id,
});

Argument Reference

  • name - The name of the CDN Profile.

  • resourceGroupName - The name of the resource group in which the CDN Profile exists.

Attributes Reference

  • location - The Azure Region where the resource exists.

  • sku - The pricing related information of current CDN profile.

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

Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the CDN Profile.