Domain

class Domain : KotlinCustomResource

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

NOTE: Available since v1.131.0. NOTE: Alibaba Cloud SCDN has stopped new customer purchases from January 26, 2023, and you can choose to buy Alibaba Cloud DCDN products with more comprehensive acceleration and protection capabilities. If you are already a SCDN customer, you can submit a work order at any time to apply for a smooth migration to Alibaba Cloud DCDN products. In the future, we will provide better acceleration and security protection services in Alibaba Cloud DCDN, thank you for your understanding and cooperation. DEPRECATED: This resource has been deprecated from version 1.219.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.scdn.Domain("example", {
domainName: "my-Domain",
sources: [{
content: "xxx.aliyuncs.com",
enabled: "online",
port: 80,
priority: "20",
type: "oss",
}],
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.scdn.Domain("example",
domain_name="my-Domain",
sources=[{
"content": "xxx.aliyuncs.com",
"enabled": "online",
"port": 80,
"priority": "20",
"type": "oss",
}])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Scdn.Domain("example", new()
{
DomainName = "my-Domain",
Sources = new[]
{
new AliCloud.Scdn.Inputs.DomainSourceArgs
{
Content = "xxx.aliyuncs.com",
Enabled = "online",
Port = 80,
Priority = "20",
Type = "oss",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/scdn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scdn.NewDomain(ctx, "example", &scdn.DomainArgs{
DomainName: pulumi.String("my-Domain"),
Sources: scdn.DomainSourceArray{
&scdn.DomainSourceArgs{
Content: pulumi.String("xxx.aliyuncs.com"),
Enabled: pulumi.String("online"),
Port: pulumi.Int(80),
Priority: pulumi.String("20"),
Type: pulumi.String("oss"),
},
},
})
if err != nil {
return err
}
return nil
})
}
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());
}
}
resources:
example:
type: alicloud:scdn:Domain
properties:
domainName: my-Domain
sources:
- content: xxx.aliyuncs.com
enabled: online
port: 80
priority: '20'
type: oss

Import

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

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

Properties

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

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

Link copied to clipboard

Certificate Information. See the following Block cert_infos.

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

The health check url.

Link copied to clipboard
val domainName: Output<String>

The name of domain.

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

Whether to set certificate forcibly.

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

The resource group id.

Link copied to clipboard
val sources: Output<List<DomainSource>>

the Origin Server Information. See the following Block sources.

Link copied to clipboard
val status: Output<String>

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

Link copied to clipboard
val urn: Output<String>