azurermCdnFrontdoorProfile
Manages a Front Door (standard/premium) Profile which contains a collection of endpoints and origin groups.
Example Usage
/*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 azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "example-resources",
}
);
const azurermCdnFrontdoorProfileExample =
new azurerm.cdnFrontdoorProfile.CdnFrontdoorProfile(this, "example_1", {
name: "example-cdn-profile",
resource_group_name: azurermResourceGroupExample.name,
sku_name: "Standard_AzureFrontDoor",
tags: {
environment: "Production",
},
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermCdnFrontdoorProfileExample.overrideLogicalId("example");
Argument Reference
The following arguments are supported:
-
name
- (Required) Specifies the name of the Front Door Profile. Changing this forces a new resource to be created. -
resourceGroupName
- (Required) The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created. -
skuName
- (Required) Specifies the SKU for this Front Door Profile. Possible values includestandardAzureFrontDoor
andpremiumAzureFrontDoor
. Changing this forces a new resource to be created. -
responseTimeoutSeconds
- (Optional) Specifies the maximum response timeout in seconds. Possible values are between16
and240
seconds (inclusive). Defaults to120
seconds. -
tags
- (Optional) Specifies a mapping of tags to assign to the resource.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
-
id
- The ID of this Front Door Profile. -
resourceGuid
- The UUID of this Front Door Profile which will be sent in the HTTP Header as thexAzureFdid
attribute.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Front Door Profile.update
- (Defaults to 30 minutes) Used when updating the Front Door Profile.read
- (Defaults to 5 minutes) Used when retrieving the Front Door Profile.delete
- (Defaults to 30 minutes) Used when deleting the Front Door Profile.
Import
Front Door Profiles can be imported using the resourceId
, e.g.