Domain Args
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());
}
}
Content copied to clipboard
Import
DCDN Domain can be imported using the id or DCDN Domain name, e.g.
$ pulumi import alicloud:dcdn/domain:Domain example <id>
Content copied to clipboard
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)