DomainNewArgs

data class DomainNewArgs(val cdnType: Output<String>? = null, val certificateConfig: Output<DomainNewCertificateConfigArgs>? = null, val checkUrl: Output<String>? = null, val domainName: Output<String>? = null, val resourceGroupId: Output<String>? = null, val scope: Output<String>? = null, val sources: Output<List<DomainNewSourceArgs>>? = null, val tags: Output<Map<String, Any>>? = null) : ConvertibleToJava<DomainNewArgs>

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

NOTE: Available since 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) {
final var config = ctx.config();
final var domainName = config.get("domainName").orElse("mycdndomain.alicloud-provider.cn");
var default_ = new DomainNew("default", DomainNewArgs.builder()
.scope("overseas")
.domainName(domainName)
.cdnType("web")
.sources(DomainNewSourceArgs.builder()
.type("ipaddr")
.content("1.1.1.1")
.priority(20)
.port(80)
.weight(15)
.build())
.build());
}
}

Import

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

$ pulumi import alicloud:cdn/domainNew:DomainNew example <id>

Constructors

Link copied to clipboard
fun DomainNewArgs(cdnType: Output<String>? = null, certificateConfig: Output<DomainNewCertificateConfigArgs>? = null, checkUrl: Output<String>? = null, domainName: Output<String>? = null, resourceGroupId: Output<String>? = null, scope: Output<String>? = null, sources: Output<List<DomainNewSourceArgs>>? = null, tags: Output<Map<String, Any>>? = null)

Functions

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

Properties

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

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

Link copied to clipboard

Certificate configuration. See certificate_config below.

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

Health test URL.

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

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

The ID of the resource group.

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

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. Value:

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

The source address list of the accelerated domain. Defaults to null. See sources below.

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

The tag of the resource.