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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AFDCustomDomain(name: string, args: AFDCustomDomainArgs, opts?: CustomResourceOptions);
@overload
def AFDCustomDomain(resource_name: str,
args: AFDCustomDomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AFDCustomDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
host_name: Optional[str] = None,
profile_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
azure_dns_zone: Optional[ResourceReferenceArgs] = None,
custom_domain_name: Optional[str] = None,
tls_settings: Optional[AFDDomainHttpsParametersArgs] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var afdcustomDomainResource = new AzureNative.Cdn.AFDCustomDomain("afdcustomDomainResource", new()
{
HostName = "string",
ProfileName = "string",
ResourceGroupName = "string",
AzureDnsZone =
{
{ "id", "string" },
},
CustomDomainName = "string",
TlsSettings =
{
{ "certificateType", "string" },
{ "minimumTlsVersion", "TLS10" },
{ "secret",
{
{ "id", "string" },
} },
},
});
example, err := cdn.NewAFDCustomDomain(ctx, "afdcustomDomainResource", &cdn.AFDCustomDomainArgs{
HostName: "string",
ProfileName: "string",
ResourceGroupName: "string",
AzureDnsZone: map[string]interface{}{
"id": "string",
},
CustomDomainName: "string",
TlsSettings: map[string]interface{}{
"certificateType": "string",
"minimumTlsVersion": "TLS10",
"secret": map[string]interface{}{
"id": "string",
},
},
})
var afdcustomDomainResource = new AFDCustomDomain("afdcustomDomainResource", AFDCustomDomainArgs.builder()
.hostName("string")
.profileName("string")
.resourceGroupName("string")
.azureDnsZone(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.customDomainName("string")
.tlsSettings(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
afdcustom_domain_resource = azure_native.cdn.AFDCustomDomain("afdcustomDomainResource",
host_name=string,
profile_name=string,
resource_group_name=string,
azure_dns_zone={
id: string,
},
custom_domain_name=string,
tls_settings={
certificateType: string,
minimumTlsVersion: TLS10,
secret: {
id: string,
},
})
const afdcustomDomainResource = new azure_native.cdn.AFDCustomDomain("afdcustomDomainResource", {
hostName: "string",
profileName: "string",
resourceGroupName: "string",
azureDnsZone: {
id: "string",
},
customDomainName: "string",
tlsSettings: {
certificateType: "string",
minimumTlsVersion: "TLS10",
secret: {
id: "string",
},
},
});
type: azure-native:cdn:AFDCustomDomain
properties:
azureDnsZone:
id: string
customDomainName: string
hostName: string
profileName: string
resourceGroupName: string
tlsSettings:
certificateType: string
minimumTlsVersion: TLS10
secret:
id: string
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:
- Host
Name string - The host name of the domain. Must be a domain name.
- Profile
Name string - Name of the CDN profile which is unique within the resource group.
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Azure
Dns Pulumi.Zone Azure Native. Cdn. Inputs. Resource Reference - Resource reference to the Azure DNS zone
- Custom
Domain stringName - Name of the domain under the profile which is unique globally
- Tls
Settings Pulumi.Azure Native. Cdn. Inputs. AFDDomain Https Parameters - 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 string - The host name of the domain. Must be a domain name.
- Profile
Name string - Name of the CDN profile which is unique within the resource group.
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Azure
Dns ResourceZone Reference Args - Resource reference to the Azure DNS zone
- Custom
Domain stringName - Name of the domain under the profile which is unique globally
- Tls
Settings AFDDomainHttps Parameters Args - 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 String - The host name of the domain. Must be a domain name.
- profile
Name String - Name of the CDN profile which is unique within the resource group.
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- azure
Dns ResourceZone Reference - Resource reference to the Azure DNS zone
- custom
Domain StringName - Name of the domain under the profile which is unique globally
- tls
Settings AFDDomainHttps Parameters - 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 string - The host name of the domain. Must be a domain name.
- profile
Name string - Name of the CDN profile which is unique within the resource group.
- resource
Group stringName - Name of the Resource group within the Azure subscription.
- azure
Dns ResourceZone Reference - Resource reference to the Azure DNS zone
- custom
Domain stringName - Name of the domain under the profile which is unique globally
- tls
Settings AFDDomainHttps Parameters - 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_ strname - Name of the Resource group within the Azure subscription.
- azure_
dns_ Resourcezone Reference Args - Resource reference to the Azure DNS zone
- custom_
domain_ strname - Name of the domain under the profile which is unique globally
- tls_
settings AFDDomainHttps Parameters Args - 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 String - The host name of the domain. Must be a domain name.
- profile
Name String - Name of the CDN profile which is unique within the resource group.
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- azure
Dns Property MapZone - Resource reference to the Azure DNS zone
- custom
Domain StringName - Name of the domain under the profile which is unique globally
- tls
Settings 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:
- Deployment
Status string - Domain
Validation stringState - 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.
- Provisioning
State string - Provisioning status
- System
Data Pulumi.Azure Native. Cdn. Outputs. System Data Response - Read only system data
- Type string
- Resource type.
- Validation
Properties Pulumi.Azure Native. Cdn. Outputs. Domain Validation Properties Response - Values the customer needs to validate domain ownership
- Deployment
Status string - Domain
Validation stringState - 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.
- Provisioning
State string - Provisioning status
- System
Data SystemData Response - Read only system data
- Type string
- Resource type.
- Validation
Properties DomainValidation Properties Response - Values the customer needs to validate domain ownership
- deployment
Status String - domain
Validation StringState - 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.
- provisioning
State String - Provisioning status
- system
Data SystemData Response - Read only system data
- type String
- Resource type.
- validation
Properties DomainValidation Properties Response - Values the customer needs to validate domain ownership
- deployment
Status string - domain
Validation stringState - 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.
- provisioning
State string - Provisioning status
- system
Data SystemData Response - Read only system data
- type string
- Resource type.
- validation
Properties DomainValidation Properties Response - Values the customer needs to validate domain ownership
- deployment_
status str - domain_
validation_ strstate - 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 SystemData Response - Read only system data
- type str
- Resource type.
- validation_
properties DomainValidation Properties Response - Values the customer needs to validate domain ownership
- deployment
Status String - domain
Validation StringState - 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.
- provisioning
State String - Provisioning status
- system
Data Property Map - Read only system data
- type String
- Resource type.
- validation
Properties Property Map - Values the customer needs to validate domain ownership
Supporting Types
AFDDomainHttpsParameters, AFDDomainHttpsParametersArgs
- Certificate
Type string | Pulumi.Azure Native. Cdn. Afd Certificate Type - Defines the source of the SSL certificate.
- Minimum
Tls Pulumi.Version Azure Native. Cdn. Afd Minimum Tls Version - TLS protocol version that will be used for Https
- Secret
Pulumi.
Azure Native. Cdn. Inputs. Resource Reference - Resource reference to the secret. ie. subs/rg/profile/secret
- Certificate
Type string | AfdCertificate Type - Defines the source of the SSL certificate.
- Minimum
Tls AfdVersion Minimum Tls Version - TLS protocol version that will be used for Https
- Secret
Resource
Reference - Resource reference to the secret. ie. subs/rg/profile/secret
- certificate
Type String | AfdCertificate Type - Defines the source of the SSL certificate.
- minimum
Tls AfdVersion Minimum Tls Version - TLS protocol version that will be used for Https
- secret
Resource
Reference - Resource reference to the secret. ie. subs/rg/profile/secret
- certificate
Type string | AfdCertificate Type - Defines the source of the SSL certificate.
- minimum
Tls AfdVersion Minimum Tls Version - TLS protocol version that will be used for Https
- secret
Resource
Reference - Resource reference to the secret. ie. subs/rg/profile/secret
- certificate_
type str | AfdCertificate Type - Defines the source of the SSL certificate.
- minimum_
tls_ Afdversion Minimum Tls Version - TLS protocol version that will be used for Https
- secret
Resource
Reference - Resource reference to the secret. ie. subs/rg/profile/secret
- certificate
Type String | "CustomerCertificate" | "Managed Certificate" - Defines the source of the SSL certificate.
- minimum
Tls "TLS10" | "TLS12"Version - TLS protocol version that will be used for Https
- secret Property Map
- Resource reference to the secret. ie. subs/rg/profile/secret
AFDDomainHttpsParametersResponse, AFDDomainHttpsParametersResponseArgs
- Certificate
Type string - Defines the source of the SSL certificate.
- Minimum
Tls stringVersion - TLS protocol version that will be used for Https
- Secret
Pulumi.
Azure Native. Cdn. Inputs. Resource Reference Response - Resource reference to the secret. ie. subs/rg/profile/secret
- Certificate
Type string - Defines the source of the SSL certificate.
- Minimum
Tls stringVersion - TLS protocol version that will be used for Https
- Secret
Resource
Reference Response - Resource reference to the secret. ie. subs/rg/profile/secret
- certificate
Type String - Defines the source of the SSL certificate.
- minimum
Tls StringVersion - TLS protocol version that will be used for Https
- secret
Resource
Reference Response - Resource reference to the secret. ie. subs/rg/profile/secret
- certificate
Type string - Defines the source of the SSL certificate.
- minimum
Tls stringVersion - TLS protocol version that will be used for Https
- secret
Resource
Reference Response - Resource reference to the secret. ie. subs/rg/profile/secret
- certificate_
type str - Defines the source of the SSL certificate.
- minimum_
tls_ strversion - TLS protocol version that will be used for Https
- secret
Resource
Reference Response - Resource reference to the secret. ie. subs/rg/profile/secret
- certificate
Type String - Defines the source of the SSL certificate.
- minimum
Tls StringVersion - TLS protocol version that will be used for Https
- secret Property Map
- Resource reference to the secret. ie. subs/rg/profile/secret
AfdCertificateType, AfdCertificateTypeArgs
- Customer
Certificate - CustomerCertificate
- Managed
Certificate - ManagedCertificate
- Afd
Certificate Type Customer Certificate - CustomerCertificate
- Afd
Certificate Type Managed Certificate - ManagedCertificate
- Customer
Certificate - CustomerCertificate
- Managed
Certificate - ManagedCertificate
- Customer
Certificate - CustomerCertificate
- Managed
Certificate - ManagedCertificate
- CUSTOMER_CERTIFICATE
- CustomerCertificate
- MANAGED_CERTIFICATE
- ManagedCertificate
- "Customer
Certificate" - CustomerCertificate
- "Managed
Certificate" - ManagedCertificate
AfdMinimumTlsVersion, AfdMinimumTlsVersionArgs
- TLS10
- TLS10
- TLS12
- TLS12
- Afd
Minimum Tls Version TLS10 - TLS10
- Afd
Minimum Tls Version TLS12 - TLS12
- TLS10
- TLS10
- TLS12
- TLS12
- TLS10
- TLS10
- TLS12
- TLS12
- TLS10
- TLS10
- TLS12
- TLS12
- "TLS10"
- TLS10
- "TLS12"
- TLS12
DomainValidationPropertiesResponse, DomainValidationPropertiesResponseArgs
- Expiration
Date string - The date time that the token expires
- Validation
Token string - Challenge used for DNS TXT record or file based validation
- Expiration
Date string - The date time that the token expires
- Validation
Token string - Challenge used for DNS TXT record or file based validation
- expiration
Date String - The date time that the token expires
- validation
Token String - Challenge used for DNS TXT record or file based validation
- expiration
Date string - The date time that the token expires
- validation
Token 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
- expiration
Date String - The date time that the token expires
- validation
Token String - Challenge used for DNS TXT record or file based validation
ResourceReference, ResourceReferenceArgs
- 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, ResourceReferenceResponseArgs
- 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, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC)
- Created
By string - An identifier for the identity that created the resource
- Created
By stringType - The type of identity that created the resource
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - An identifier for the identity that last modified the resource
- Last
Modified stringBy Type - The type of identity that last modified the resource
- Created
At string - The timestamp of resource creation (UTC)
- Created
By string - An identifier for the identity that created the resource
- Created
By stringType - The type of identity that created the resource
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - An identifier for the identity that last modified the resource
- Last
Modified stringBy Type - The type of identity that last modified the resource
- created
At String - The timestamp of resource creation (UTC)
- created
By String - An identifier for the identity that created the resource
- created
By StringType - The type of identity that created the resource
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - An identifier for the identity that last modified the resource
- last
Modified StringBy Type - The type of identity that last modified the resource
- created
At string - The timestamp of resource creation (UTC)
- created
By string - An identifier for the identity that created the resource
- created
By stringType - The type of identity that created the resource
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - An identifier for the identity that last modified the resource
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - An identifier for the identity that last modified the resource
- last_
modified_ strby_ type - The type of identity that last modified the resource
- created
At String - The timestamp of resource creation (UTC)
- created
By String - An identifier for the identity that created the resource
- created
By StringType - The type of identity that created the resource
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - An identifier for the identity that last modified the resource
- last
Modified StringBy Type - 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0