azurermCdnFrontdoorEndpoint
Manages a Front Door (standard/premium) Endpoint.
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-cdn-frontdoor",
}
);
const azurermCdnFrontdoorProfileExample =
new azurerm.cdnFrontdoorProfile.CdnFrontdoorProfile(this, "example_1", {
name: "example-profile",
resource_group_name: azurermResourceGroupExample.name,
sku_name: "Standard_AzureFrontDoor",
});
/*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");
const azurermCdnFrontdoorEndpointExample =
new azurerm.cdnFrontdoorEndpoint.CdnFrontdoorEndpoint(this, "example_2", {
cdn_frontdoor_profile_id: azurermCdnFrontdoorProfileExample.id,
name: "example-endpoint",
tags: {
ENV: "example",
},
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermCdnFrontdoorEndpointExample.overrideLogicalId("example");
Arguments Reference
The following arguments are supported:
-
name
- (Required) The name which should be used for this Front Door Endpoint. Changing this forces a new Front Door Endpoint to be created. -
cdnFrontdoorProfileId
- (Required) The ID of the Front Door Profile within which this Front Door Endpoint should exist. Changing this forces a new Front Door Endpoint to be created.
-
enabled
- (Optional) Specifies if this Front Door Endpoint is enabled? Defaults totrue
. -
tags
- (Optional) Specifies a mapping of tags which should be assigned to the Front Door Endpoint.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
-
id
- The ID of this Front Door Endpoint. -
hostName
- The host name of the Front Door Endpoint, in the format{endpointName}.{dnsZone}
(for example,contosoAzureedgeNet
).
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Front Door Endpoint.read
- (Defaults to 5 minutes) Used when retrieving the Front Door Endpoint.update
- (Defaults to 30 minutes) Used when updating the Front Door Endpoint.delete
- (Defaults to 30 minutes) Used when deleting the Front Door Endpoint.
Import
Front Door Endpoints can be imported using the resourceId
, e.g.