DomainArgs

data class DomainArgs(val checkUrl: Output<String>? = null, val domainName: Output<String>? = null, val scope: Output<String>? = null, val sources: Output<List<DomainSourceArgs>>? = null, val tags: Output<Map<String, Any>>? = null, val topLevelDomain: Output<String>? = null) : ConvertibleToJava<DomainArgs>

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

NOTE: Available in v1.136.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.vod.Domain;
import com.pulumi.alicloud.vod.DomainArgs;
import com.pulumi.alicloud.vod.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 default_ = new Domain("default", DomainArgs.builder()
.domainName("your_domain_name")
.scope("domestic")
.sources(DomainSourceArgs.builder()
.sourceContent("your_source_content")
.sourcePort("80")
.sourceType("domain")
.build())
.tags(Map.ofEntries(
Map.entry("key1", "value1"),
Map.entry("key2", "value2")
))
.build());
}
}

Import

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

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

Constructors

Link copied to clipboard
fun DomainArgs(checkUrl: Output<String>? = null, domainName: Output<String>? = null, scope: Output<String>? = null, sources: Output<List<DomainSourceArgs>>? = 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 checkUrl: Output<String>? = null

The URL that is used for health checks.

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

The domain name for CDN that you want to add to ApsaraVideo VOD. Wildcard domain names are supported. Start the domain name with a period (.). Example: .example.com..

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

This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. Valid values:

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

The information about the address of the origin server. For more information about the Sources parameter, See the following Block sources.

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.