DomainArgs

data class DomainArgs(val certName: Output<String>? = null, val certType: Output<String>? = null, val checkUrl: Output<String>? = null, val domainName: Output<String>? = null, val forceSet: Output<String>? = null, val resourceGroupId: Output<String>? = null, val scope: Output<String>? = null, val securityToken: Output<String>? = null, val sources: Output<List<DomainSourceArgs>>? = null, val sslPri: Output<String>? = null, val sslProtocol: Output<String>? = null, val sslPub: Output<String>? = null, val status: Output<String>? = null, val tags: Output<Map<String, Any>>? = null, val topLevelDomain: Output<String>? = null) : ConvertibleToJava<DomainArgs>

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>

Constructors

Link copied to clipboard
fun DomainArgs(certName: Output<String>? = null, certType: Output<String>? = null, checkUrl: Output<String>? = null, domainName: Output<String>? = null, forceSet: Output<String>? = null, resourceGroupId: Output<String>? = null, scope: Output<String>? = null, securityToken: Output<String>? = null, sources: Output<List<DomainSourceArgs>>? = null, sslPri: Output<String>? = null, sslProtocol: Output<String>? = null, sslPub: Output<String>? = null, status: Output<String>? = null, tags: Output<Map<String, Any>>? = null, topLevelDomain: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): DomainArgs

Properties

Link copied to clipboard
val certName: Output<String>? = null

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

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

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>? = null

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

Link copied to clipboard
val domainName: Output<String>? = null

The name of the accelerated domain.

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

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 resourceGroupId: Output<String>? = null

The ID of the resource group.

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

The acceleration region.

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

The top-level domain name.

Link copied to clipboard
val sources: Output<List<DomainSourceArgs>>? = null

The origin information. See sources below.

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

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

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

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

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

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

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

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

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

A mapping of tags to assign to the resource.

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

The top-level domain name.