AFDCustomDomainArgs

data class AFDCustomDomainArgs(val azureDnsZone: Output<ResourceReferenceArgs>? = null, val customDomainName: Output<String>? = null, val extendedProperties: Output<Map<String, String>>? = null, val hostName: Output<String>? = null, val preValidatedCustomDomainResourceId: Output<ResourceReferenceArgs>? = null, val profileName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tlsSettings: Output<AFDDomainHttpsParametersArgs>? = null) : ConvertibleToJava<AFDCustomDomainArgs>

Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com. 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. 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

AFDCustomDomains_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var afdCustomDomain = new AzureNative.Cdn.AFDCustomDomain("afdCustomDomain", new()
{
AzureDnsZone = new AzureNative.Cdn.Inputs.ResourceReferenceArgs
{
Id = "",
},
CustomDomainName = "domain1",
HostName = "www.someDomain.net",
ProfileName = "profile1",
ResourceGroupName = "RG",
TlsSettings = new AzureNative.Cdn.Inputs.AFDDomainHttpsParametersArgs
{
CertificateType = AzureNative.Cdn.AfdCertificateType.ManagedCertificate,
MinimumTlsVersion = AzureNative.Cdn.AfdMinimumTlsVersion.TLS12,
},
});
});
package main
import (
cdn "github.com/pulumi/pulumi-azure-native-sdk/cdn/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cdn.NewAFDCustomDomain(ctx, "afdCustomDomain", &cdn.AFDCustomDomainArgs{
AzureDnsZone: &cdn.ResourceReferenceArgs{
Id: pulumi.String(""),
},
CustomDomainName: pulumi.String("domain1"),
HostName: pulumi.String("www.someDomain.net"),
ProfileName: pulumi.String("profile1"),
ResourceGroupName: pulumi.String("RG"),
TlsSettings: &cdn.AFDDomainHttpsParametersArgs{
CertificateType: pulumi.String(cdn.AfdCertificateTypeManagedCertificate),
MinimumTlsVersion: cdn.AfdMinimumTlsVersionTLS12,
},
})
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.AFDCustomDomain;
import com.pulumi.azurenative.cdn.AFDCustomDomainArgs;
import com.pulumi.azurenative.cdn.inputs.ResourceReferenceArgs;
import com.pulumi.azurenative.cdn.inputs.AFDDomainHttpsParametersArgs;
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 afdCustomDomain = new AFDCustomDomain("afdCustomDomain", AFDCustomDomainArgs.builder()
.azureDnsZone(ResourceReferenceArgs.builder()
.id("")
.build())
.customDomainName("domain1")
.hostName("www.someDomain.net")
.profileName("profile1")
.resourceGroupName("RG")
.tlsSettings(AFDDomainHttpsParametersArgs.builder()
.certificateType("ManagedCertificate")
.minimumTlsVersion("TLS12")
.build())
.build());
}
}

Import

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

$ pulumi import azure-native:cdn:AFDCustomDomain domain1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}

Constructors

Link copied to clipboard
constructor(azureDnsZone: Output<ResourceReferenceArgs>? = null, customDomainName: Output<String>? = null, extendedProperties: Output<Map<String, String>>? = null, hostName: Output<String>? = null, preValidatedCustomDomainResourceId: Output<ResourceReferenceArgs>? = null, profileName: Output<String>? = null, resourceGroupName: Output<String>? = null, tlsSettings: Output<AFDDomainHttpsParametersArgs>? = null)

Properties

Link copied to clipboard
val azureDnsZone: Output<ResourceReferenceArgs>? = null

Resource reference to the Azure DNS zone

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

Name of the domain under the profile which is unique globally

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

Key-Value pair representing migration properties for domains.

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

The host name of the domain. Must be a domain name.

Link copied to clipboard

Resource reference to the Azure resource where custom domain ownership was prevalidated

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

The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.

Functions

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