CustomDomain

class CustomDomain : KotlinCustomResource

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 2023-05-01. In version 1.x of the Azure Native provider, it used API version 2020-09-01. Other available API versions: 2023-07-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview, 2024-09-01.

Example Usage

CustomDomains_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var customDomain = new AzureNative.Cdn.CustomDomain("customDomain", new()
{
CustomDomainName = "www-someDomain-net",
EndpointName = "endpoint1",
HostName = "www.someDomain.net",
ProfileName = "profile1",
ResourceGroupName = "RG",
});
});
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.NewCustomDomain(ctx, "customDomain", &cdn.CustomDomainArgs{
CustomDomainName: pulumi.String("www-someDomain-net"),
EndpointName: pulumi.String("endpoint1"),
HostName: pulumi.String("www.someDomain.net"),
ProfileName: pulumi.String("profile1"),
ResourceGroupName: pulumi.String("RG"),
})
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.CustomDomain;
import com.pulumi.azurenative.cdn.CustomDomainArgs;
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 customDomain = new CustomDomain("customDomain", CustomDomainArgs.builder()
.customDomainName("www-someDomain-net")
.endpointName("endpoint1")
.hostName("www.someDomain.net")
.profileName("profile1")
.resourceGroupName("RG")
.build());
}
}

Import

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

$ pulumi import azure-native:cdn:CustomDomain www-someDomain-net /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}

Properties

Link copied to clipboard

Certificate parameters for securing custom HTTPS

Link copied to clipboard

Provisioning status of the custom domain.

Link copied to clipboard

Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.

Link copied to clipboard
val hostName: Output<String>

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard

Provisioning status of Custom Https of the custom domain.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceState: Output<String>

Resource status of the custom domain.

Link copied to clipboard

Read only system data

Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val validationData: Output<String>?

Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.