Domain

class Domain : KotlinCustomResource

You can use DCDN to improve the overall performance of your website and accelerate content delivery to improve user experience. For information about Alicloud DCDN Domain and how to use it, see What is Resource Alicloud DCDN Domain.

NOTE: Available since v1.94.0. NOTE: You must activate the Dynamic Route for CDN (DCDN) service before you create an accelerated domain. NOTE: Make sure that you have obtained an Internet content provider (ICP) filling for the accelerated domain. NOTE: If the origin content is not saved on Alibaba Cloud, the content must be reviewed by Alibaba Cloud. The review will be completed by the next working day after you submit the application.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dcdn.Domain;
import com.pulumi.alicloud.dcdn.DomainArgs;
import com.pulumi.alicloud.dcdn.inputs.DomainSourceArgs;
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) {
final var config = ctx.config();
final var domainName = config.get("domainName").orElse("example.com");
var example = new Domain("example", DomainArgs.builder()
.domainName(domainName)
.scope("overseas")
.sources(DomainSourceArgs.builder()
.content("1.1.1.1")
.port("80")
.priority("20")
.type("ipaddr")
.weight("10")
.build())
.build());
}
}

Import

DCDN Domain can be imported using the id or DCDN Domain name, e.g.

$ pulumi import alicloud:dcdn/domain:Domain example <id>

Properties

Link copied to clipboard
val certName: Output<String>

Indicates the name of the certificate if the HTTPS protocol is enabled.

Link copied to clipboard
val certType: Output<String>?

The type of the certificate. Valid values: free: a free certificate. cas: a certificate purchased from Alibaba Cloud SSL Certificates Service. upload: a user uploaded certificate.

Link copied to clipboard
val checkUrl: Output<String>?

The URL that is used to test the accessibility of the origin.

Link copied to clipboard
val cname: Output<String>

(Available in 1.198.0+)- The canonical name (CNAME) of the accelerated domain.

Link copied to clipboard
val domainName: Output<String>

The name of the accelerated domain.

Link copied to clipboard
val forceSet: Output<String>?

Specifies whether to check the certificate name for duplicates. If you set the value to 1, the system does not perform the check and overwrites the information of the existing certificate with the same name.

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

The ID of the resource group.

Link copied to clipboard
val scope: Output<String>?

The acceleration region.

Link copied to clipboard
val securityToken: Output<String>?

The top-level domain name.

Link copied to clipboard
val sources: Output<List<DomainSource>>

The origin information. See sources below.

Link copied to clipboard
val sslPri: Output<String>?

The private key. Specify this parameter only if you enable the SSL certificate.

Link copied to clipboard
val sslProtocol: Output<String>?

Indicates whether the SSL certificate is enabled. Valid values: on enabled, off disabled.

Link copied to clipboard
val sslPub: Output<String>?

Indicates the public key of the certificate if the HTTPS protocol is enabled.

Link copied to clipboard
val status: Output<String>?

The status of DCDN Domain. Valid values: online, offline. Default to online.

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

A mapping of tags to assign to the resource.

Link copied to clipboard
val topLevelDomain: Output<String>?

The top-level domain name.

Link copied to clipboard
val urn: Output<String>