azure-native.cdn.AFDCustomDomain

Explore with Pulumi AI

Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com. API Version: 2020-09-01.

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 = "ManagedCertificate",
            MinimumTlsVersion = AzureNative.Cdn.AfdMinimumTlsVersion.TLS12,
        },
    });

});
package main

import (
	cdn "github.com/pulumi/pulumi-azure-native-sdk/cdn"
	"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("ManagedCertificate"),
				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 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(Map.of("id", ""))
            .customDomainName("domain1")
            .hostName("www.someDomain.net")
            .profileName("profile1")
            .resourceGroupName("RG")
            .tlsSettings(Map.ofEntries(
                Map.entry("certificateType", "ManagedCertificate"),
                Map.entry("minimumTlsVersion", "TLS12")
            ))
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

afd_custom_domain = azure_native.cdn.AFDCustomDomain("afdCustomDomain",
    azure_dns_zone=azure_native.cdn.ResourceReferenceArgs(
        id="",
    ),
    custom_domain_name="domain1",
    host_name="www.someDomain.net",
    profile_name="profile1",
    resource_group_name="RG",
    tls_settings=azure_native.cdn.AFDDomainHttpsParametersArgs(
        certificate_type="ManagedCertificate",
        minimum_tls_version=azure_native.cdn.AfdMinimumTlsVersion.TLS12,
    ))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const afdCustomDomain = new azure_native.cdn.AFDCustomDomain("afdCustomDomain", {
    azureDnsZone: {
        id: "",
    },
    customDomainName: "domain1",
    hostName: "www.someDomain.net",
    profileName: "profile1",
    resourceGroupName: "RG",
    tlsSettings: {
        certificateType: "ManagedCertificate",
        minimumTlsVersion: azure_native.cdn.AfdMinimumTlsVersion.TLS12,
    },
});
resources:
  afdCustomDomain:
    type: azure-native:cdn:AFDCustomDomain
    properties:
      azureDnsZone:
        id:
      customDomainName: domain1
      hostName: www.someDomain.net
      profileName: profile1
      resourceGroupName: RG
      tlsSettings:
        certificateType: ManagedCertificate
        minimumTlsVersion: TLS12

Create AFDCustomDomain Resource

new AFDCustomDomain(name: string, args: AFDCustomDomainArgs, opts?: CustomResourceOptions);
@overload
def AFDCustomDomain(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    azure_dns_zone: Optional[ResourceReferenceArgs] = None,
                    custom_domain_name: Optional[str] = None,
                    host_name: Optional[str] = None,
                    profile_name: Optional[str] = None,
                    resource_group_name: Optional[str] = None,
                    tls_settings: Optional[AFDDomainHttpsParametersArgs] = None)
@overload
def AFDCustomDomain(resource_name: str,
                    args: AFDCustomDomainArgs,
                    opts: Optional[ResourceOptions] = None)
func NewAFDCustomDomain(ctx *Context, name string, args AFDCustomDomainArgs, opts ...ResourceOption) (*AFDCustomDomain, error)
public AFDCustomDomain(string name, AFDCustomDomainArgs args, CustomResourceOptions? opts = null)
public AFDCustomDomain(String name, AFDCustomDomainArgs args)
public AFDCustomDomain(String name, AFDCustomDomainArgs args, CustomResourceOptions options)
type: azure-native:cdn:AFDCustomDomain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AFDCustomDomainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AFDCustomDomainArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AFDCustomDomainArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AFDCustomDomainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AFDCustomDomainArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AFDCustomDomain Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AFDCustomDomain resource accepts the following input properties:

HostName string

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

ProfileName string

Name of the CDN profile which is unique within the resource group.

ResourceGroupName string

Name of the Resource group within the Azure subscription.

AzureDnsZone Pulumi.AzureNative.Cdn.Inputs.ResourceReferenceArgs

Resource reference to the Azure DNS zone

CustomDomainName string

Name of the domain under the profile which is unique globally

TlsSettings Pulumi.AzureNative.Cdn.Inputs.AFDDomainHttpsParametersArgs

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.

HostName string

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

ProfileName string

Name of the CDN profile which is unique within the resource group.

ResourceGroupName string

Name of the Resource group within the Azure subscription.

AzureDnsZone ResourceReferenceArgs

Resource reference to the Azure DNS zone

CustomDomainName string

Name of the domain under the profile which is unique globally

TlsSettings AFDDomainHttpsParametersArgs

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.

hostName String

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

profileName String

Name of the CDN profile which is unique within the resource group.

resourceGroupName String

Name of the Resource group within the Azure subscription.

azureDnsZone ResourceReferenceArgs

Resource reference to the Azure DNS zone

customDomainName String

Name of the domain under the profile which is unique globally

tlsSettings AFDDomainHttpsParametersArgs

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.

hostName string

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

profileName string

Name of the CDN profile which is unique within the resource group.

resourceGroupName string

Name of the Resource group within the Azure subscription.

azureDnsZone ResourceReferenceArgs

Resource reference to the Azure DNS zone

customDomainName string

Name of the domain under the profile which is unique globally

tlsSettings AFDDomainHttpsParametersArgs

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.

host_name str

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

profile_name str

Name of the CDN profile which is unique within the resource group.

resource_group_name str

Name of the Resource group within the Azure subscription.

azure_dns_zone ResourceReferenceArgs

Resource reference to the Azure DNS zone

custom_domain_name str

Name of the domain under the profile which is unique globally

tls_settings AFDDomainHttpsParametersArgs

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.

hostName String

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

profileName String

Name of the CDN profile which is unique within the resource group.

resourceGroupName String

Name of the Resource group within the Azure subscription.

azureDnsZone Property Map

Resource reference to the Azure DNS zone

customDomainName String

Name of the domain under the profile which is unique globally

tlsSettings Property Map

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.

Outputs

All input properties are implicitly available as output properties. Additionally, the AFDCustomDomain resource produces the following output properties:

DeploymentStatus string
DomainValidationState string

Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name.

ProvisioningState string

Provisioning status

SystemData Pulumi.AzureNative.Cdn.Outputs.SystemDataResponse

Read only system data

Type string

Resource type.

ValidationProperties Pulumi.AzureNative.Cdn.Outputs.DomainValidationPropertiesResponse

Values the customer needs to validate domain ownership

DeploymentStatus string
DomainValidationState string

Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name.

ProvisioningState string

Provisioning status

SystemData SystemDataResponse

Read only system data

Type string

Resource type.

ValidationProperties DomainValidationPropertiesResponse

Values the customer needs to validate domain ownership

deploymentStatus String
domainValidationState String

Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

provisioningState String

Provisioning status

systemData SystemDataResponse

Read only system data

type String

Resource type.

validationProperties DomainValidationPropertiesResponse

Values the customer needs to validate domain ownership

deploymentStatus string
domainValidationState string

Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation.

id string

The provider-assigned unique ID for this managed resource.

name string

Resource name.

provisioningState string

Provisioning status

systemData SystemDataResponse

Read only system data

type string

Resource type.

validationProperties DomainValidationPropertiesResponse

Values the customer needs to validate domain ownership

deployment_status str
domain_validation_state str

Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation.

id str

The provider-assigned unique ID for this managed resource.

name str

Resource name.

provisioning_state str

Provisioning status

system_data SystemDataResponse

Read only system data

type str

Resource type.

validation_properties DomainValidationPropertiesResponse

Values the customer needs to validate domain ownership

deploymentStatus String
domainValidationState String

Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

provisioningState String

Provisioning status

systemData Property Map

Read only system data

type String

Resource type.

validationProperties Property Map

Values the customer needs to validate domain ownership

Supporting Types

AFDDomainHttpsParameters

CertificateType string | Pulumi.AzureNative.Cdn.AfdCertificateType

Defines the source of the SSL certificate.

MinimumTlsVersion Pulumi.AzureNative.Cdn.AfdMinimumTlsVersion

TLS protocol version that will be used for Https

Secret Pulumi.AzureNative.Cdn.Inputs.ResourceReference

Resource reference to the secret. ie. subs/rg/profile/secret

CertificateType string | AfdCertificateType

Defines the source of the SSL certificate.

MinimumTlsVersion AfdMinimumTlsVersion

TLS protocol version that will be used for Https

Secret ResourceReference

Resource reference to the secret. ie. subs/rg/profile/secret

certificateType String | AfdCertificateType

Defines the source of the SSL certificate.

minimumTlsVersion AfdMinimumTlsVersion

TLS protocol version that will be used for Https

secret ResourceReference

Resource reference to the secret. ie. subs/rg/profile/secret

certificateType string | AfdCertificateType

Defines the source of the SSL certificate.

minimumTlsVersion AfdMinimumTlsVersion

TLS protocol version that will be used for Https

secret ResourceReference

Resource reference to the secret. ie. subs/rg/profile/secret

certificate_type str | AfdCertificateType

Defines the source of the SSL certificate.

minimum_tls_version AfdMinimumTlsVersion

TLS protocol version that will be used for Https

secret ResourceReference

Resource reference to the secret. ie. subs/rg/profile/secret

certificateType String | "CustomerCertificate" | "ManagedCertificate"

Defines the source of the SSL certificate.

minimumTlsVersion "TLS10" | "TLS12"

TLS protocol version that will be used for Https

secret Property Map

Resource reference to the secret. ie. subs/rg/profile/secret

AFDDomainHttpsParametersResponse

CertificateType string

Defines the source of the SSL certificate.

MinimumTlsVersion string

TLS protocol version that will be used for Https

Secret Pulumi.AzureNative.Cdn.Inputs.ResourceReferenceResponse

Resource reference to the secret. ie. subs/rg/profile/secret

CertificateType string

Defines the source of the SSL certificate.

MinimumTlsVersion string

TLS protocol version that will be used for Https

Secret ResourceReferenceResponse

Resource reference to the secret. ie. subs/rg/profile/secret

certificateType String

Defines the source of the SSL certificate.

minimumTlsVersion String

TLS protocol version that will be used for Https

secret ResourceReferenceResponse

Resource reference to the secret. ie. subs/rg/profile/secret

certificateType string

Defines the source of the SSL certificate.

minimumTlsVersion string

TLS protocol version that will be used for Https

secret ResourceReferenceResponse

Resource reference to the secret. ie. subs/rg/profile/secret

certificate_type str

Defines the source of the SSL certificate.

minimum_tls_version str

TLS protocol version that will be used for Https

secret ResourceReferenceResponse

Resource reference to the secret. ie. subs/rg/profile/secret

certificateType String

Defines the source of the SSL certificate.

minimumTlsVersion String

TLS protocol version that will be used for Https

secret Property Map

Resource reference to the secret. ie. subs/rg/profile/secret

AfdCertificateType

CustomerCertificate
CustomerCertificate
ManagedCertificate
ManagedCertificate
AfdCertificateTypeCustomerCertificate
CustomerCertificate
AfdCertificateTypeManagedCertificate
ManagedCertificate
CustomerCertificate
CustomerCertificate
ManagedCertificate
ManagedCertificate
CustomerCertificate
CustomerCertificate
ManagedCertificate
ManagedCertificate
CUSTOMER_CERTIFICATE
CustomerCertificate
MANAGED_CERTIFICATE
ManagedCertificate
"CustomerCertificate"
CustomerCertificate
"ManagedCertificate"
ManagedCertificate

AfdMinimumTlsVersion

TLS10
TLS10
TLS12
TLS12
AfdMinimumTlsVersionTLS10
TLS10
AfdMinimumTlsVersionTLS12
TLS12
TLS10
TLS10
TLS12
TLS12
TLS10
TLS10
TLS12
TLS12
TLS10
TLS10
TLS12
TLS12
"TLS10"
TLS10
"TLS12"
TLS12

DomainValidationPropertiesResponse

ExpirationDate string

The date time that the token expires

ValidationToken string

Challenge used for DNS TXT record or file based validation

ExpirationDate string

The date time that the token expires

ValidationToken string

Challenge used for DNS TXT record or file based validation

expirationDate String

The date time that the token expires

validationToken String

Challenge used for DNS TXT record or file based validation

expirationDate string

The date time that the token expires

validationToken string

Challenge used for DNS TXT record or file based validation

expiration_date str

The date time that the token expires

validation_token str

Challenge used for DNS TXT record or file based validation

expirationDate String

The date time that the token expires

validationToken String

Challenge used for DNS TXT record or file based validation

ResourceReference

Id string

Resource ID.

Id string

Resource ID.

id String

Resource ID.

id string

Resource ID.

id str

Resource ID.

id String

Resource ID.

ResourceReferenceResponse

Id string

Resource ID.

Id string

Resource ID.

id String

Resource ID.

id string

Resource ID.

id str

Resource ID.

id String

Resource ID.

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC)

CreatedBy string

An identifier for the identity that created the resource

CreatedByType string

The type of identity that created the resource

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

An identifier for the identity that last modified the resource

LastModifiedByType string

The type of identity that last modified the resource

CreatedAt string

The timestamp of resource creation (UTC)

CreatedBy string

An identifier for the identity that created the resource

CreatedByType string

The type of identity that created the resource

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

An identifier for the identity that last modified the resource

LastModifiedByType string

The type of identity that last modified the resource

createdAt String

The timestamp of resource creation (UTC)

createdBy String

An identifier for the identity that created the resource

createdByType String

The type of identity that created the resource

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

An identifier for the identity that last modified the resource

lastModifiedByType String

The type of identity that last modified the resource

createdAt string

The timestamp of resource creation (UTC)

createdBy string

An identifier for the identity that created the resource

createdByType string

The type of identity that created the resource

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

An identifier for the identity that last modified the resource

lastModifiedByType string

The type of identity that last modified the resource

created_at str

The timestamp of resource creation (UTC)

created_by str

An identifier for the identity that created the resource

created_by_type str

The type of identity that created the resource

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

An identifier for the identity that last modified the resource

last_modified_by_type str

The type of identity that last modified the resource

createdAt String

The timestamp of resource creation (UTC)

createdBy String

An identifier for the identity that created the resource

createdByType String

The type of identity that created the resource

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

An identifier for the identity that last modified the resource

lastModifiedByType String

The type of identity that last modified the resource

Import

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

$ pulumi import azure-native:cdn:AFDCustomDomain domain1 /subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0