Domain

class Domain : KotlinCustomResource

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>

Properties

Link copied to clipboard
val certName: Output<String>

The name of the certificate. The value of this parameter is returned if HTTPS is enabled.

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

The URL that is used for health checks.

Link copied to clipboard
val cname: Output<String>

The CNAME that is assigned to the domain name for CDN. You must add a CNAME record in the system of your Domain Name System (DNS) service provider to map the domain name for CDN to the CNAME.

Link copied to clipboard
val description: Output<String>

The description of the domain name for CDN.

Link copied to clipboard
val domainName: Output<String>

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 gmtCreated: Output<String>

The time when the domain name for CDN was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

Link copied to clipboard
val gmtModified: Output<String>

The last time when the domain name for CDN was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scope: Output<String>?

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<DomainSource>>

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 sslProtocol: Output<String>

Indicates whether the Secure Sockets Layer (SSL) certificate is enabled. Valid values: on,off.

Link copied to clipboard
val sslPub: Output<String>

The public key of the certificate. The value of this parameter is returned if HTTPS is enabled.

Link copied to clipboard
val status: Output<String>

The status of the domain name for CDN. Valid values:

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

A mapping of tags to assign to the resource.

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

The top-level domain name.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val weight: Output<String>

The weight of the origin server.