DomainArgs

data class DomainArgs(val bizName: Output<String>? = null, val certInfos: Output<List<DomainCertInfoArgs>>? = null, val checkUrl: Output<String>? = null, val domainName: Output<String>? = null, val forceSet: Output<String>? = null, val resourceGroupId: Output<String>? = null, val sources: Output<List<DomainSourceArgs>>? = null, val status: Output<String>? = null) : ConvertibleToJava<DomainArgs>

Provides a SCDN Domain resource. For information about SCDN Domain and how to use it, see What is Domain.

NOTE: Available in v1.131.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.scdn.Domain;
import com.pulumi.alicloud.scdn.DomainArgs;
import com.pulumi.alicloud.scdn.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) {
var example = new Domain("example", DomainArgs.builder()
.domainName("my-Domain")
.sources(DomainSourceArgs.builder()
.content("xxx.aliyuncs.com")
.enabled("online")
.port(80)
.priority("20")
.type("oss")
.build())
.build());
}
}

Import

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

$ pulumi import alicloud:scdn/domain:Domain example <domain_name>

Constructors

Link copied to clipboard
fun DomainArgs(bizName: Output<String>? = null, certInfos: Output<List<DomainCertInfoArgs>>? = null, checkUrl: Output<String>? = null, domainName: Output<String>? = null, forceSet: Output<String>? = null, resourceGroupId: Output<String>? = null, sources: Output<List<DomainSourceArgs>>? = null, status: Output<String>? = null)

Functions

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

Properties

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

Attribute perm has been deprecated and suggest removing it from your template.

Link copied to clipboard
val certInfos: Output<List<DomainCertInfoArgs>>? = null

Certificate Information. See the following Block cert_infos.

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

The health check url.

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

The name of domain.

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

Whether to set certificate forcibly.

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

The resource group id.

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

the Origin Server Information. See the following Block sources.

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

The status of the resource. Valid values: offline, online.