1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cdn
  5. DomainNew
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cdn.DomainNew

Explore with Pulumi AI

Provides a CDN Domain resource.

CDN domain name.

For information about CDN Domain and how to use it, see What is Domain.

NOTE: Available since v1.34.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";

const _default = new random.index.Integer("default", {
    min: 10000,
    max: 99999,
});
const defaultDomainNew = new alicloud.cdn.DomainNew("default", {
    scope: "overseas",
    domainName: `mycdndomain-${_default.result}.alicloud-provider.cn`,
    cdnType: "web",
    sources: [{
        type: "ipaddr",
        content: "1.1.1.1",
        priority: 20,
        port: 80,
        weight: 15,
    }],
});
Copy
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random

default = random.index.Integer("default",
    min=10000,
    max=99999)
default_domain_new = alicloud.cdn.DomainNew("default",
    scope="overseas",
    domain_name=f"mycdndomain-{default['result']}.alicloud-provider.cn",
    cdn_type="web",
    sources=[{
        "type": "ipaddr",
        "content": "1.1.1.1",
        "priority": 20,
        "port": 80,
        "weight": 15,
    }])
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cdn"
	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Min: 10000,
			Max: 99999,
		})
		if err != nil {
			return err
		}
		_, err = cdn.NewDomainNew(ctx, "default", &cdn.DomainNewArgs{
			Scope:      pulumi.String("overseas"),
			DomainName: pulumi.Sprintf("mycdndomain-%v.alicloud-provider.cn", _default.Result),
			CdnType:    pulumi.String("web"),
			Sources: cdn.DomainNewSourceArray{
				&cdn.DomainNewSourceArgs{
					Type:     pulumi.String("ipaddr"),
					Content:  pulumi.String("1.1.1.1"),
					Priority: pulumi.Int(20),
					Port:     pulumi.Int(80),
					Weight:   pulumi.Int(15),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;

return await Deployment.RunAsync(() => 
{
    var @default = new Random.Index.Integer("default", new()
    {
        Min = 10000,
        Max = 99999,
    });

    var defaultDomainNew = new AliCloud.Cdn.DomainNew("default", new()
    {
        Scope = "overseas",
        DomainName = $"mycdndomain-{@default.Result}.alicloud-provider.cn",
        CdnType = "web",
        Sources = new[]
        {
            new AliCloud.Cdn.Inputs.DomainNewSourceArgs
            {
                Type = "ipaddr",
                Content = "1.1.1.1",
                Priority = 20,
                Port = 80,
                Weight = 15,
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.cdn.DomainNew;
import com.pulumi.alicloud.cdn.DomainNewArgs;
import com.pulumi.alicloud.cdn.inputs.DomainNewSourceArgs;
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 default_ = new Integer("default", IntegerArgs.builder()
            .min(10000)
            .max(99999)
            .build());

        var defaultDomainNew = new DomainNew("defaultDomainNew", DomainNewArgs.builder()
            .scope("overseas")
            .domainName(String.format("mycdndomain-%s.alicloud-provider.cn", default_.result()))
            .cdnType("web")
            .sources(DomainNewSourceArgs.builder()
                .type("ipaddr")
                .content("1.1.1.1")
                .priority(20)
                .port(80)
                .weight(15)
                .build())
            .build());

    }
}
Copy
resources:
  default:
    type: random:integer
    properties:
      min: 10000
      max: 99999
  defaultDomainNew:
    type: alicloud:cdn:DomainNew
    name: default
    properties:
      scope: overseas
      domainName: mycdndomain-${default.result}.alicloud-provider.cn
      cdnType: web
      sources:
        - type: ipaddr
          content: 1.1.1.1
          priority: 20
          port: 80
          weight: 15
Copy

Create DomainNew Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DomainNew(name: string, args: DomainNewArgs, opts?: CustomResourceOptions);
@overload
def DomainNew(resource_name: str,
              args: DomainNewArgs,
              opts: Optional[ResourceOptions] = None)

@overload
def DomainNew(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              cdn_type: Optional[str] = None,
              domain_name: Optional[str] = None,
              sources: Optional[Sequence[DomainNewSourceArgs]] = None,
              certificate_config: Optional[DomainNewCertificateConfigArgs] = None,
              check_url: Optional[str] = None,
              env: Optional[str] = None,
              resource_group_id: Optional[str] = None,
              scope: Optional[str] = None,
              status: Optional[str] = None,
              tags: Optional[Mapping[str, str]] = None)
func NewDomainNew(ctx *Context, name string, args DomainNewArgs, opts ...ResourceOption) (*DomainNew, error)
public DomainNew(string name, DomainNewArgs args, CustomResourceOptions? opts = null)
public DomainNew(String name, DomainNewArgs args)
public DomainNew(String name, DomainNewArgs args, CustomResourceOptions options)
type: alicloud:cdn:DomainNew
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DomainNewArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DomainNewArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DomainNewArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DomainNewArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DomainNewArgs
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 domainNewResource = new AliCloud.Cdn.DomainNew("domainNewResource", new()
{
    CdnType = "string",
    DomainName = "string",
    Sources = new[]
    {
        new AliCloud.Cdn.Inputs.DomainNewSourceArgs
        {
            Content = "string",
            Port = 0,
            Priority = 0,
            Type = "string",
            Weight = 0,
        },
    },
    CertificateConfig = new AliCloud.Cdn.Inputs.DomainNewCertificateConfigArgs
    {
        CertId = "string",
        CertName = "string",
        CertRegion = "string",
        CertType = "string",
        PrivateKey = "string",
        ServerCertificate = "string",
        ServerCertificateStatus = "string",
    },
    CheckUrl = "string",
    Env = "string",
    ResourceGroupId = "string",
    Scope = "string",
    Status = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := cdn.NewDomainNew(ctx, "domainNewResource", &cdn.DomainNewArgs{
	CdnType:    pulumi.String("string"),
	DomainName: pulumi.String("string"),
	Sources: cdn.DomainNewSourceArray{
		&cdn.DomainNewSourceArgs{
			Content:  pulumi.String("string"),
			Port:     pulumi.Int(0),
			Priority: pulumi.Int(0),
			Type:     pulumi.String("string"),
			Weight:   pulumi.Int(0),
		},
	},
	CertificateConfig: &cdn.DomainNewCertificateConfigArgs{
		CertId:                  pulumi.String("string"),
		CertName:                pulumi.String("string"),
		CertRegion:              pulumi.String("string"),
		CertType:                pulumi.String("string"),
		PrivateKey:              pulumi.String("string"),
		ServerCertificate:       pulumi.String("string"),
		ServerCertificateStatus: pulumi.String("string"),
	},
	CheckUrl:        pulumi.String("string"),
	Env:             pulumi.String("string"),
	ResourceGroupId: pulumi.String("string"),
	Scope:           pulumi.String("string"),
	Status:          pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var domainNewResource = new DomainNew("domainNewResource", DomainNewArgs.builder()
    .cdnType("string")
    .domainName("string")
    .sources(DomainNewSourceArgs.builder()
        .content("string")
        .port(0)
        .priority(0)
        .type("string")
        .weight(0)
        .build())
    .certificateConfig(DomainNewCertificateConfigArgs.builder()
        .certId("string")
        .certName("string")
        .certRegion("string")
        .certType("string")
        .privateKey("string")
        .serverCertificate("string")
        .serverCertificateStatus("string")
        .build())
    .checkUrl("string")
    .env("string")
    .resourceGroupId("string")
    .scope("string")
    .status("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
domain_new_resource = alicloud.cdn.DomainNew("domainNewResource",
    cdn_type="string",
    domain_name="string",
    sources=[{
        "content": "string",
        "port": 0,
        "priority": 0,
        "type": "string",
        "weight": 0,
    }],
    certificate_config={
        "cert_id": "string",
        "cert_name": "string",
        "cert_region": "string",
        "cert_type": "string",
        "private_key": "string",
        "server_certificate": "string",
        "server_certificate_status": "string",
    },
    check_url="string",
    env="string",
    resource_group_id="string",
    scope="string",
    status="string",
    tags={
        "string": "string",
    })
Copy
const domainNewResource = new alicloud.cdn.DomainNew("domainNewResource", {
    cdnType: "string",
    domainName: "string",
    sources: [{
        content: "string",
        port: 0,
        priority: 0,
        type: "string",
        weight: 0,
    }],
    certificateConfig: {
        certId: "string",
        certName: "string",
        certRegion: "string",
        certType: "string",
        privateKey: "string",
        serverCertificate: "string",
        serverCertificateStatus: "string",
    },
    checkUrl: "string",
    env: "string",
    resourceGroupId: "string",
    scope: "string",
    status: "string",
    tags: {
        string: "string",
    },
});
Copy
type: alicloud:cdn:DomainNew
properties:
    cdnType: string
    certificateConfig:
        certId: string
        certName: string
        certRegion: string
        certType: string
        privateKey: string
        serverCertificate: string
        serverCertificateStatus: string
    checkUrl: string
    domainName: string
    env: string
    resourceGroupId: string
    scope: string
    sources:
        - content: string
          port: 0
          priority: 0
          type: string
          weight: 0
    status: string
    tags:
        string: string
Copy

DomainNew Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The DomainNew resource accepts the following input properties:

CdnType
This property is required.
Changes to this property will trigger replacement.
string
Cdn type of the accelerated domain. Valid values are web, download, video.
DomainName
This property is required.
Changes to this property will trigger replacement.
string
Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
Sources This property is required. List<Pulumi.AliCloud.Cdn.Inputs.DomainNewSource>
The source address list of the accelerated domain. Defaults to null. See sources below.
CertificateConfig Pulumi.AliCloud.Cdn.Inputs.DomainNewCertificateConfig
Certificate configuration See certificate_config below.
CheckUrl string
Health test URL.
Env string
Whether to issue a certificate in grayscale. Value: staging: issued certificate in grayscale. Not passing or passing any other value is a formal certificate.
ResourceGroupId string
The ID of the resource group.
Scope string
Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:
Status string
The status of the resource, valid values: online, offline.
Tags Dictionary<string, string>
The tag of the resource
CdnType
This property is required.
Changes to this property will trigger replacement.
string
Cdn type of the accelerated domain. Valid values are web, download, video.
DomainName
This property is required.
Changes to this property will trigger replacement.
string
Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
Sources This property is required. []DomainNewSourceArgs
The source address list of the accelerated domain. Defaults to null. See sources below.
CertificateConfig DomainNewCertificateConfigArgs
Certificate configuration See certificate_config below.
CheckUrl string
Health test URL.
Env string
Whether to issue a certificate in grayscale. Value: staging: issued certificate in grayscale. Not passing or passing any other value is a formal certificate.
ResourceGroupId string
The ID of the resource group.
Scope string
Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:
Status string
The status of the resource, valid values: online, offline.
Tags map[string]string
The tag of the resource
cdnType
This property is required.
Changes to this property will trigger replacement.
String
Cdn type of the accelerated domain. Valid values are web, download, video.
domainName
This property is required.
Changes to this property will trigger replacement.
String
Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
sources This property is required. List<DomainNewSource>
The source address list of the accelerated domain. Defaults to null. See sources below.
certificateConfig DomainNewCertificateConfig
Certificate configuration See certificate_config below.
checkUrl String
Health test URL.
env String
Whether to issue a certificate in grayscale. Value: staging: issued certificate in grayscale. Not passing or passing any other value is a formal certificate.
resourceGroupId String
The ID of the resource group.
scope String
Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:
status String
The status of the resource, valid values: online, offline.
tags Map<String,String>
The tag of the resource
cdnType
This property is required.
Changes to this property will trigger replacement.
string
Cdn type of the accelerated domain. Valid values are web, download, video.
domainName
This property is required.
Changes to this property will trigger replacement.
string
Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
sources This property is required. DomainNewSource[]
The source address list of the accelerated domain. Defaults to null. See sources below.
certificateConfig DomainNewCertificateConfig
Certificate configuration See certificate_config below.
checkUrl string
Health test URL.
env string
Whether to issue a certificate in grayscale. Value: staging: issued certificate in grayscale. Not passing or passing any other value is a formal certificate.
resourceGroupId string
The ID of the resource group.
scope string
Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:
status string
The status of the resource, valid values: online, offline.
tags {[key: string]: string}
The tag of the resource
cdn_type
This property is required.
Changes to this property will trigger replacement.
str
Cdn type of the accelerated domain. Valid values are web, download, video.
domain_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
sources This property is required. Sequence[DomainNewSourceArgs]
The source address list of the accelerated domain. Defaults to null. See sources below.
certificate_config DomainNewCertificateConfigArgs
Certificate configuration See certificate_config below.
check_url str
Health test URL.
env str
Whether to issue a certificate in grayscale. Value: staging: issued certificate in grayscale. Not passing or passing any other value is a formal certificate.
resource_group_id str
The ID of the resource group.
scope str
Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:
status str
The status of the resource, valid values: online, offline.
tags Mapping[str, str]
The tag of the resource
cdnType
This property is required.
Changes to this property will trigger replacement.
String
Cdn type of the accelerated domain. Valid values are web, download, video.
domainName
This property is required.
Changes to this property will trigger replacement.
String
Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
sources This property is required. List<Property Map>
The source address list of the accelerated domain. Defaults to null. See sources below.
certificateConfig Property Map
Certificate configuration See certificate_config below.
checkUrl String
Health test URL.
env String
Whether to issue a certificate in grayscale. Value: staging: issued certificate in grayscale. Not passing or passing any other value is a formal certificate.
resourceGroupId String
The ID of the resource group.
scope String
Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:
status String
The status of the resource, valid values: online, offline.
tags Map<String>
The tag of the resource

Outputs

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

Cname string
The CNAME domain name corresponding to the accelerated domain name.
Id string
The provider-assigned unique ID for this managed resource.
Cname string
The CNAME domain name corresponding to the accelerated domain name.
Id string
The provider-assigned unique ID for this managed resource.
cname String
The CNAME domain name corresponding to the accelerated domain name.
id String
The provider-assigned unique ID for this managed resource.
cname string
The CNAME domain name corresponding to the accelerated domain name.
id string
The provider-assigned unique ID for this managed resource.
cname str
The CNAME domain name corresponding to the accelerated domain name.
id str
The provider-assigned unique ID for this managed resource.
cname String
The CNAME domain name corresponding to the accelerated domain name.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing DomainNew Resource

Get an existing DomainNew resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DomainNewState, opts?: CustomResourceOptions): DomainNew
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cdn_type: Optional[str] = None,
        certificate_config: Optional[DomainNewCertificateConfigArgs] = None,
        check_url: Optional[str] = None,
        cname: Optional[str] = None,
        domain_name: Optional[str] = None,
        env: Optional[str] = None,
        resource_group_id: Optional[str] = None,
        scope: Optional[str] = None,
        sources: Optional[Sequence[DomainNewSourceArgs]] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None) -> DomainNew
func GetDomainNew(ctx *Context, name string, id IDInput, state *DomainNewState, opts ...ResourceOption) (*DomainNew, error)
public static DomainNew Get(string name, Input<string> id, DomainNewState? state, CustomResourceOptions? opts = null)
public static DomainNew get(String name, Output<String> id, DomainNewState state, CustomResourceOptions options)
resources:  _:    type: alicloud:cdn:DomainNew    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CdnType Changes to this property will trigger replacement. string
Cdn type of the accelerated domain. Valid values are web, download, video.
CertificateConfig Pulumi.AliCloud.Cdn.Inputs.DomainNewCertificateConfig
Certificate configuration See certificate_config below.
CheckUrl string
Health test URL.
Cname string
The CNAME domain name corresponding to the accelerated domain name.
DomainName Changes to this property will trigger replacement. string
Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
Env string
Whether to issue a certificate in grayscale. Value: staging: issued certificate in grayscale. Not passing or passing any other value is a formal certificate.
ResourceGroupId string
The ID of the resource group.
Scope string
Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:
Sources List<Pulumi.AliCloud.Cdn.Inputs.DomainNewSource>
The source address list of the accelerated domain. Defaults to null. See sources below.
Status string
The status of the resource, valid values: online, offline.
Tags Dictionary<string, string>
The tag of the resource
CdnType Changes to this property will trigger replacement. string
Cdn type of the accelerated domain. Valid values are web, download, video.
CertificateConfig DomainNewCertificateConfigArgs
Certificate configuration See certificate_config below.
CheckUrl string
Health test URL.
Cname string
The CNAME domain name corresponding to the accelerated domain name.
DomainName Changes to this property will trigger replacement. string
Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
Env string
Whether to issue a certificate in grayscale. Value: staging: issued certificate in grayscale. Not passing or passing any other value is a formal certificate.
ResourceGroupId string
The ID of the resource group.
Scope string
Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:
Sources []DomainNewSourceArgs
The source address list of the accelerated domain. Defaults to null. See sources below.
Status string
The status of the resource, valid values: online, offline.
Tags map[string]string
The tag of the resource
cdnType Changes to this property will trigger replacement. String
Cdn type of the accelerated domain. Valid values are web, download, video.
certificateConfig DomainNewCertificateConfig
Certificate configuration See certificate_config below.
checkUrl String
Health test URL.
cname String
The CNAME domain name corresponding to the accelerated domain name.
domainName Changes to this property will trigger replacement. String
Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
env String
Whether to issue a certificate in grayscale. Value: staging: issued certificate in grayscale. Not passing or passing any other value is a formal certificate.
resourceGroupId String
The ID of the resource group.
scope String
Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:
sources List<DomainNewSource>
The source address list of the accelerated domain. Defaults to null. See sources below.
status String
The status of the resource, valid values: online, offline.
tags Map<String,String>
The tag of the resource
cdnType Changes to this property will trigger replacement. string
Cdn type of the accelerated domain. Valid values are web, download, video.
certificateConfig DomainNewCertificateConfig
Certificate configuration See certificate_config below.
checkUrl string
Health test URL.
cname string
The CNAME domain name corresponding to the accelerated domain name.
domainName Changes to this property will trigger replacement. string
Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
env string
Whether to issue a certificate in grayscale. Value: staging: issued certificate in grayscale. Not passing or passing any other value is a formal certificate.
resourceGroupId string
The ID of the resource group.
scope string
Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:
sources DomainNewSource[]
The source address list of the accelerated domain. Defaults to null. See sources below.
status string
The status of the resource, valid values: online, offline.
tags {[key: string]: string}
The tag of the resource
cdn_type Changes to this property will trigger replacement. str
Cdn type of the accelerated domain. Valid values are web, download, video.
certificate_config DomainNewCertificateConfigArgs
Certificate configuration See certificate_config below.
check_url str
Health test URL.
cname str
The CNAME domain name corresponding to the accelerated domain name.
domain_name Changes to this property will trigger replacement. str
Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
env str
Whether to issue a certificate in grayscale. Value: staging: issued certificate in grayscale. Not passing or passing any other value is a formal certificate.
resource_group_id str
The ID of the resource group.
scope str
Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:
sources Sequence[DomainNewSourceArgs]
The source address list of the accelerated domain. Defaults to null. See sources below.
status str
The status of the resource, valid values: online, offline.
tags Mapping[str, str]
The tag of the resource
cdnType Changes to this property will trigger replacement. String
Cdn type of the accelerated domain. Valid values are web, download, video.
certificateConfig Property Map
Certificate configuration See certificate_config below.
checkUrl String
Health test URL.
cname String
The CNAME domain name corresponding to the accelerated domain name.
domainName Changes to this property will trigger replacement. String
Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
env String
Whether to issue a certificate in grayscale. Value: staging: issued certificate in grayscale. Not passing or passing any other value is a formal certificate.
resourceGroupId String
The ID of the resource group.
scope String
Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:
sources List<Property Map>
The source address list of the accelerated domain. Defaults to null. See sources below.
status String
The status of the resource, valid values: online, offline.
tags Map<String>
The tag of the resource

Supporting Types

DomainNewCertificateConfig
, DomainNewCertificateConfigArgs

CertId string
The ID of the certificate. It takes effect only when CertType = cas.
CertName string
Certificate name, only flyer names are supported.
CertRegion string
The certificate region, which takes effect only when CertType = cas, supports cn-hangzhou (domestic) and ap-southeast-1 (International), and is cn-hangzhou by default.
CertType string

Certificate type. Value:

  • upload: upload certificate.
  • cas: Cloud Shield certificate.
  • free: free certificate.

If the certificate type is cas, PrivateKey does not need to pass parameters.

PrivateKey string
The content of the private key. If the certificate is not enabled, you do not need to enter the content of the private key. To configure the certificate, enter the content of the private key.
ServerCertificate string
The content of the security certificate. If the certificate is not enabled, you do not need to enter the content of the security certificate. Please enter the content of the certificate to configure the certificate.
ServerCertificateStatus string
Whether the HTTPS certificate is enabled. Value:

  • on(default): enabled.
  • off : not enabled.
CertId string
The ID of the certificate. It takes effect only when CertType = cas.
CertName string
Certificate name, only flyer names are supported.
CertRegion string
The certificate region, which takes effect only when CertType = cas, supports cn-hangzhou (domestic) and ap-southeast-1 (International), and is cn-hangzhou by default.
CertType string

Certificate type. Value:

  • upload: upload certificate.
  • cas: Cloud Shield certificate.
  • free: free certificate.

If the certificate type is cas, PrivateKey does not need to pass parameters.

PrivateKey string
The content of the private key. If the certificate is not enabled, you do not need to enter the content of the private key. To configure the certificate, enter the content of the private key.
ServerCertificate string
The content of the security certificate. If the certificate is not enabled, you do not need to enter the content of the security certificate. Please enter the content of the certificate to configure the certificate.
ServerCertificateStatus string
Whether the HTTPS certificate is enabled. Value:

  • on(default): enabled.
  • off : not enabled.
certId String
The ID of the certificate. It takes effect only when CertType = cas.
certName String
Certificate name, only flyer names are supported.
certRegion String
The certificate region, which takes effect only when CertType = cas, supports cn-hangzhou (domestic) and ap-southeast-1 (International), and is cn-hangzhou by default.
certType String

Certificate type. Value:

  • upload: upload certificate.
  • cas: Cloud Shield certificate.
  • free: free certificate.

If the certificate type is cas, PrivateKey does not need to pass parameters.

privateKey String
The content of the private key. If the certificate is not enabled, you do not need to enter the content of the private key. To configure the certificate, enter the content of the private key.
serverCertificate String
The content of the security certificate. If the certificate is not enabled, you do not need to enter the content of the security certificate. Please enter the content of the certificate to configure the certificate.
serverCertificateStatus String
Whether the HTTPS certificate is enabled. Value:

  • on(default): enabled.
  • off : not enabled.
certId string
The ID of the certificate. It takes effect only when CertType = cas.
certName string
Certificate name, only flyer names are supported.
certRegion string
The certificate region, which takes effect only when CertType = cas, supports cn-hangzhou (domestic) and ap-southeast-1 (International), and is cn-hangzhou by default.
certType string

Certificate type. Value:

  • upload: upload certificate.
  • cas: Cloud Shield certificate.
  • free: free certificate.

If the certificate type is cas, PrivateKey does not need to pass parameters.

privateKey string
The content of the private key. If the certificate is not enabled, you do not need to enter the content of the private key. To configure the certificate, enter the content of the private key.
serverCertificate string
The content of the security certificate. If the certificate is not enabled, you do not need to enter the content of the security certificate. Please enter the content of the certificate to configure the certificate.
serverCertificateStatus string
Whether the HTTPS certificate is enabled. Value:

  • on(default): enabled.
  • off : not enabled.
cert_id str
The ID of the certificate. It takes effect only when CertType = cas.
cert_name str
Certificate name, only flyer names are supported.
cert_region str
The certificate region, which takes effect only when CertType = cas, supports cn-hangzhou (domestic) and ap-southeast-1 (International), and is cn-hangzhou by default.
cert_type str

Certificate type. Value:

  • upload: upload certificate.
  • cas: Cloud Shield certificate.
  • free: free certificate.

If the certificate type is cas, PrivateKey does not need to pass parameters.

private_key str
The content of the private key. If the certificate is not enabled, you do not need to enter the content of the private key. To configure the certificate, enter the content of the private key.
server_certificate str
The content of the security certificate. If the certificate is not enabled, you do not need to enter the content of the security certificate. Please enter the content of the certificate to configure the certificate.
server_certificate_status str
Whether the HTTPS certificate is enabled. Value:

  • on(default): enabled.
  • off : not enabled.
certId String
The ID of the certificate. It takes effect only when CertType = cas.
certName String
Certificate name, only flyer names are supported.
certRegion String
The certificate region, which takes effect only when CertType = cas, supports cn-hangzhou (domestic) and ap-southeast-1 (International), and is cn-hangzhou by default.
certType String

Certificate type. Value:

  • upload: upload certificate.
  • cas: Cloud Shield certificate.
  • free: free certificate.

If the certificate type is cas, PrivateKey does not need to pass parameters.

privateKey String
The content of the private key. If the certificate is not enabled, you do not need to enter the content of the private key. To configure the certificate, enter the content of the private key.
serverCertificate String
The content of the security certificate. If the certificate is not enabled, you do not need to enter the content of the security certificate. Please enter the content of the certificate to configure the certificate.
serverCertificateStatus String
Whether the HTTPS certificate is enabled. Value:

  • on(default): enabled.
  • off : not enabled.

DomainNewSource
, DomainNewSourceArgs

Content string
The address of source. Valid values can be ip or doaminName. Each item's content can not be repeated.
Port int
The port of source. Valid values are 443 and 80. Default value is 80.
Priority int
Priority of the source. Valid values are 0 and 100. Default value is 20.
Type string
The type of the source. Valid values are ipaddr, domain and oss.
Weight int
Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.
Content string
The address of source. Valid values can be ip or doaminName. Each item's content can not be repeated.
Port int
The port of source. Valid values are 443 and 80. Default value is 80.
Priority int
Priority of the source. Valid values are 0 and 100. Default value is 20.
Type string
The type of the source. Valid values are ipaddr, domain and oss.
Weight int
Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.
content String
The address of source. Valid values can be ip or doaminName. Each item's content can not be repeated.
port Integer
The port of source. Valid values are 443 and 80. Default value is 80.
priority Integer
Priority of the source. Valid values are 0 and 100. Default value is 20.
type String
The type of the source. Valid values are ipaddr, domain and oss.
weight Integer
Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.
content string
The address of source. Valid values can be ip or doaminName. Each item's content can not be repeated.
port number
The port of source. Valid values are 443 and 80. Default value is 80.
priority number
Priority of the source. Valid values are 0 and 100. Default value is 20.
type string
The type of the source. Valid values are ipaddr, domain and oss.
weight number
Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.
content str
The address of source. Valid values can be ip or doaminName. Each item's content can not be repeated.
port int
The port of source. Valid values are 443 and 80. Default value is 80.
priority int
Priority of the source. Valid values are 0 and 100. Default value is 20.
type str
The type of the source. Valid values are ipaddr, domain and oss.
weight int
Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.
content String
The address of source. Valid values can be ip or doaminName. Each item's content can not be repeated.
port Number
The port of source. Valid values are 443 and 80. Default value is 80.
priority Number
Priority of the source. Valid values are 0 and 100. Default value is 20.
type String
The type of the source. Valid values are ipaddr, domain and oss.
weight Number
Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.

Import

CDN Domain can be imported using the id, e.g.

$ pulumi import alicloud:cdn/domainNew:DomainNew example <id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.