DomainNew

Provides a CDN Accelerated Domain resource. This resource is based on CDN's new version OpenAPI. For information about Cdn Domain New and how to use it, see Add a domain.

NOTE: Available in v1.34.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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 domain = new DomainNew("domain", DomainNewArgs.builder()
.cdnType("web")
.domainName("terraform.test.com")
.scope("overseas")
.sources(DomainNewSourceArgs.builder()
.content("1.1.1.1")
.port(80)
.priority(20)
.type("ipaddr")
.weight(10)
.build())
.build());
}
}

Import

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

$ pulumi import alicloud:cdn/domainNew:DomainNew example xxxx.com

Properties

Link copied to clipboard
val cdnType: Output<String>

Cdn type of the accelerated domain. Valid values are web, download, video.

Link copied to clipboard

Certificate config of the accelerated domain. It's a list and consist of at most 1 item.

Link copied to clipboard
val cname: Output<String>

(Available in v1.90.0+) The CNAME of the CDN domain.

Link copied to clipboard
val domainName: Output<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.

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

Resource group ID.

Link copied to clipboard
val scope: Output<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 .

Link copied to clipboard

The source address list of the accelerated domain. Defaults to null. See Block Sources.

Link copied to clipboard
val tags: Output<Map<String, Any>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>