AFDEndpointArgs

data class AFDEndpointArgs(val autoGeneratedDomainNameLabelScope: Output<Either<String, AutoGeneratedDomainNameLabelScope>>? = null, val enabledState: Output<Either<String, EnabledState>>? = null, val endpointName: Output<String>? = null, val location: Output<String>? = null, val profileName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AFDEndpointArgs>

Azure Front Door endpoint is the entity within a Azure Front Door profile containing configuration information such as origin, protocol, content caching and delivery behavior. The AzureFrontDoor endpoint uses the URL format .azureedge.net. Uses Azure REST API version 2024-09-01. In version 2.x of the Azure Native provider, it used API version 2023-05-01. Other available API versions: 2023-05-01, 2023-07-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview, 2025-04-15. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native cdn [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

AFDEndpoints_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var afdEndpoint = new AzureNative.Cdn.AFDEndpoint("afdEndpoint", new()
{
AutoGeneratedDomainNameLabelScope = AzureNative.Cdn.AutoGeneratedDomainNameLabelScope.TenantReuse,
EnabledState = AzureNative.Cdn.EnabledState.Enabled,
EndpointName = "endpoint1",
Location = "global",
ProfileName = "profile1",
ResourceGroupName = "RG",
Tags = null,
});
});
package main
import (
cdn "github.com/pulumi/pulumi-azure-native-sdk/cdn/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cdn.NewAFDEndpoint(ctx, "afdEndpoint", &cdn.AFDEndpointArgs{
AutoGeneratedDomainNameLabelScope: pulumi.String(cdn.AutoGeneratedDomainNameLabelScopeTenantReuse),
EnabledState: pulumi.String(cdn.EnabledStateEnabled),
EndpointName: pulumi.String("endpoint1"),
Location: pulumi.String("global"),
ProfileName: pulumi.String("profile1"),
ResourceGroupName: pulumi.String("RG"),
Tags: pulumi.StringMap{},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cdn.AFDEndpoint;
import com.pulumi.azurenative.cdn.AFDEndpointArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var afdEndpoint = new AFDEndpoint("afdEndpoint", AFDEndpointArgs.builder()
.autoGeneratedDomainNameLabelScope("TenantReuse")
.enabledState("Enabled")
.endpointName("endpoint1")
.location("global")
.profileName("profile1")
.resourceGroupName("RG")
.tags(Map.ofEntries(
))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:cdn:AFDEndpoint endpoint1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}

Constructors

Link copied to clipboard
constructor(autoGeneratedDomainNameLabelScope: Output<Either<String, AutoGeneratedDomainNameLabelScope>>? = null, enabledState: Output<Either<String, EnabledState>>? = null, endpointName: Output<String>? = null, location: Output<String>? = null, profileName: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard

Indicates the endpoint name reuse scope. The default value is TenantReuse.

Link copied to clipboard
val enabledState: Output<Either<String, EnabledState>>? = null

Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'

Link copied to clipboard
val endpointName: Output<String>? = null

Name of the endpoint under the profile which is unique globally.

Link copied to clipboard
val location: Output<String>? = null

Resource location.

Link copied to clipboard
val profileName: Output<String>? = null

Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of the Resource group within the Azure subscription.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): AFDEndpointArgs