alicloud.dcdn.Domain
Explore with Pulumi AI
You can use DCDN to improve the overall performance of your website and accelerate content delivery to improve user experience. For information about Alicloud DCDN Domain and how to use it, see What is Resource Alicloud DCDN Domain.
NOTE: Available since v1.94.0.
NOTE: You must activate the Dynamic Route for CDN (DCDN) service before you create an accelerated domain.
NOTE: Make sure that you have obtained an Internet content provider (ICP) filling for the accelerated domain.
NOTE: If the origin content is not saved on Alibaba Cloud, the content must be reviewed by Alibaba Cloud. The review will be completed by the next working day after you submit the application.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const config = new pulumi.Config();
const domainName = config.get("domainName") || "tf-example.com";
const _default = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const example = new alicloud.dcdn.Domain("example", {
domainName: `${domainName}-${_default.result}`,
scope: "overseas",
sources: [{
content: "1.1.1.1",
port: 80,
priority: "20",
type: "ipaddr",
weight: "10",
}],
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
config = pulumi.Config()
domain_name = config.get("domainName")
if domain_name is None:
domain_name = "tf-example.com"
default = random.index.Integer("default",
min=10000,
max=99999)
example = alicloud.dcdn.Domain("example",
domain_name=f"{domain_name}-{default['result']}",
scope="overseas",
sources=[alicloud.dcdn.DomainSourceArgs(
content="1.1.1.1",
port=80,
priority="20",
type="ipaddr",
weight="10",
)])
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dcdn"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
domainName := "tf-example.com"
if param := cfg.Get("domainName"); param != "" {
domainName = param
}
_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
_, err = dcdn.NewDomain(ctx, "example", &dcdn.DomainArgs{
DomainName: pulumi.String(fmt.Sprintf("%v-%v", domainName, _default.Result)),
Scope: pulumi.String("overseas"),
Sources: dcdn.DomainSourceArray{
&dcdn.DomainSourceArgs{
Content: pulumi.String("1.1.1.1"),
Port: pulumi.Int(80),
Priority: pulumi.String("20"),
Type: pulumi.String("ipaddr"),
Weight: pulumi.String("10"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var domainName = config.Get("domainName") ?? "tf-example.com";
var @default = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var example = new AliCloud.Dcdn.Domain("example", new()
{
DomainName = $"{domainName}-{@default.Result}",
Scope = "overseas",
Sources = new[]
{
new AliCloud.Dcdn.Inputs.DomainSourceArgs
{
Content = "1.1.1.1",
Port = 80,
Priority = "20",
Type = "ipaddr",
Weight = "10",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.dcdn.Domain;
import com.pulumi.alicloud.dcdn.DomainArgs;
import com.pulumi.alicloud.dcdn.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) {
final var config = ctx.config();
final var domainName = config.get("domainName").orElse("tf-example.com");
var default_ = new Integer("default", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
var example = new Domain("example", DomainArgs.builder()
.domainName(String.format("%s-%s", domainName,default_.result()))
.scope("overseas")
.sources(DomainSourceArgs.builder()
.content("1.1.1.1")
.port("80")
.priority("20")
.type("ipaddr")
.weight("10")
.build())
.build());
}
}
configuration:
domainName:
type: string
default: tf-example.com
resources:
default:
type: random:integer
properties:
min: 10000
max: 99999
example:
type: alicloud:dcdn:Domain
properties:
domainName: ${domainName}-${default.result}
scope: overseas
sources:
- content: 1.1.1.1
port: '80'
priority: '20'
type: ipaddr
weight: '10'
Create Domain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Domain(name: string, args: DomainArgs, opts?: CustomResourceOptions);
@overload
def Domain(resource_name: str,
args: DomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Domain(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_name: Optional[str] = None,
sources: Optional[Sequence[DomainSourceArgs]] = None,
scope: Optional[str] = None,
check_url: Optional[str] = None,
force_set: Optional[str] = None,
resource_group_id: Optional[str] = None,
cert_name: Optional[str] = None,
security_token: Optional[str] = None,
cert_type: Optional[str] = None,
ssl_pri: Optional[str] = None,
ssl_protocol: Optional[str] = None,
ssl_pub: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
top_level_domain: Optional[str] = None)
func NewDomain(ctx *Context, name string, args DomainArgs, opts ...ResourceOption) (*Domain, error)
public Domain(string name, DomainArgs args, CustomResourceOptions? opts = null)
public Domain(String name, DomainArgs args)
public Domain(String name, DomainArgs args, CustomResourceOptions options)
type: alicloud:dcdn:Domain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var alicloudDomainResource = new AliCloud.Dcdn.Domain("alicloudDomainResource", new()
{
DomainName = "string",
Sources = new[]
{
new AliCloud.Dcdn.Inputs.DomainSourceArgs
{
Content = "string",
Type = "string",
Port = 0,
Priority = "string",
Weight = "string",
},
},
Scope = "string",
CheckUrl = "string",
ForceSet = "string",
ResourceGroupId = "string",
CertName = "string",
SecurityToken = "string",
CertType = "string",
SslPri = "string",
SslProtocol = "string",
SslPub = "string",
Status = "string",
Tags =
{
{ "string", "any" },
},
TopLevelDomain = "string",
});
example, err := dcdn.NewDomain(ctx, "alicloudDomainResource", &dcdn.DomainArgs{
DomainName: pulumi.String("string"),
Sources: dcdn.DomainSourceArray{
&dcdn.DomainSourceArgs{
Content: pulumi.String("string"),
Type: pulumi.String("string"),
Port: pulumi.Int(0),
Priority: pulumi.String("string"),
Weight: pulumi.String("string"),
},
},
Scope: pulumi.String("string"),
CheckUrl: pulumi.String("string"),
ForceSet: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
CertName: pulumi.String("string"),
SecurityToken: pulumi.String("string"),
CertType: pulumi.String("string"),
SslPri: pulumi.String("string"),
SslProtocol: pulumi.String("string"),
SslPub: pulumi.String("string"),
Status: pulumi.String("string"),
Tags: pulumi.Map{
"string": pulumi.Any("any"),
},
TopLevelDomain: pulumi.String("string"),
})
var alicloudDomainResource = new Domain("alicloudDomainResource", DomainArgs.builder()
.domainName("string")
.sources(DomainSourceArgs.builder()
.content("string")
.type("string")
.port(0)
.priority("string")
.weight("string")
.build())
.scope("string")
.checkUrl("string")
.forceSet("string")
.resourceGroupId("string")
.certName("string")
.securityToken("string")
.certType("string")
.sslPri("string")
.sslProtocol("string")
.sslPub("string")
.status("string")
.tags(Map.of("string", "any"))
.topLevelDomain("string")
.build());
alicloud_domain_resource = alicloud.dcdn.Domain("alicloudDomainResource",
domain_name="string",
sources=[alicloud.dcdn.DomainSourceArgs(
content="string",
type="string",
port=0,
priority="string",
weight="string",
)],
scope="string",
check_url="string",
force_set="string",
resource_group_id="string",
cert_name="string",
security_token="string",
cert_type="string",
ssl_pri="string",
ssl_protocol="string",
ssl_pub="string",
status="string",
tags={
"string": "any",
},
top_level_domain="string")
const alicloudDomainResource = new alicloud.dcdn.Domain("alicloudDomainResource", {
domainName: "string",
sources: [{
content: "string",
type: "string",
port: 0,
priority: "string",
weight: "string",
}],
scope: "string",
checkUrl: "string",
forceSet: "string",
resourceGroupId: "string",
certName: "string",
securityToken: "string",
certType: "string",
sslPri: "string",
sslProtocol: "string",
sslPub: "string",
status: "string",
tags: {
string: "any",
},
topLevelDomain: "string",
});
type: alicloud:dcdn:Domain
properties:
certName: string
certType: string
checkUrl: string
domainName: string
forceSet: string
resourceGroupId: string
scope: string
securityToken: string
sources:
- content: string
port: 0
priority: string
type: string
weight: string
sslPri: string
sslProtocol: string
sslPub: string
status: string
tags:
string: any
topLevelDomain: string
Domain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Domain resource accepts the following input properties:
- Domain
Name string - The name of the accelerated domain.
- Sources
List<Pulumi.
Ali Cloud. Dcdn. Inputs. Domain Source> - The origin information. See
sources
below. - Cert
Name string - Indicates the name of the certificate if the HTTPS protocol is enabled.
- Cert
Type string - The type of the certificate. Valid values:
free
: a free certificate.cas
: a certificate purchased from Alibaba Cloud SSL Certificates Service.upload
: a user uploaded certificate. - Check
Url string - The URL that is used to test the accessibility of the origin.
- Force
Set string - Specifies whether to check the certificate name for duplicates. If you set the value to 1, the system does not perform the check and overwrites the information of the existing certificate with the same name.
- Resource
Group stringId - The ID of the resource group.
- Scope string
- The acceleration region.
- Security
Token string - The top-level domain name.
- Ssl
Pri string - The private key. Specify this parameter only if you enable the SSL certificate.
- Ssl
Protocol string - Indicates whether the SSL certificate is enabled. Valid values:
on
enabled,off
disabled. - Ssl
Pub string - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- Status string
- The status of DCDN Domain. Valid values:
online
,offline
. Default toonline
. - Dictionary<string, object>
- A mapping of tags to assign to the resource.
- Top
Level stringDomain - The top-level domain name.
- Domain
Name string - The name of the accelerated domain.
- Sources
[]Domain
Source Args - The origin information. See
sources
below. - Cert
Name string - Indicates the name of the certificate if the HTTPS protocol is enabled.
- Cert
Type string - The type of the certificate. Valid values:
free
: a free certificate.cas
: a certificate purchased from Alibaba Cloud SSL Certificates Service.upload
: a user uploaded certificate. - Check
Url string - The URL that is used to test the accessibility of the origin.
- Force
Set string - Specifies whether to check the certificate name for duplicates. If you set the value to 1, the system does not perform the check and overwrites the information of the existing certificate with the same name.
- Resource
Group stringId - The ID of the resource group.
- Scope string
- The acceleration region.
- Security
Token string - The top-level domain name.
- Ssl
Pri string - The private key. Specify this parameter only if you enable the SSL certificate.
- Ssl
Protocol string - Indicates whether the SSL certificate is enabled. Valid values:
on
enabled,off
disabled. - Ssl
Pub string - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- Status string
- The status of DCDN Domain. Valid values:
online
,offline
. Default toonline
. - map[string]interface{}
- A mapping of tags to assign to the resource.
- Top
Level stringDomain - The top-level domain name.
- domain
Name String - The name of the accelerated domain.
- sources
List<Domain
Source> - The origin information. See
sources
below. - cert
Name String - Indicates the name of the certificate if the HTTPS protocol is enabled.
- cert
Type String - The type of the certificate. Valid values:
free
: a free certificate.cas
: a certificate purchased from Alibaba Cloud SSL Certificates Service.upload
: a user uploaded certificate. - check
Url String - The URL that is used to test the accessibility of the origin.
- force
Set String - Specifies whether to check the certificate name for duplicates. If you set the value to 1, the system does not perform the check and overwrites the information of the existing certificate with the same name.
- resource
Group StringId - The ID of the resource group.
- scope String
- The acceleration region.
- security
Token String - The top-level domain name.
- ssl
Pri String - The private key. Specify this parameter only if you enable the SSL certificate.
- ssl
Protocol String - Indicates whether the SSL certificate is enabled. Valid values:
on
enabled,off
disabled. - ssl
Pub String - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status String
- The status of DCDN Domain. Valid values:
online
,offline
. Default toonline
. - Map<String,Object>
- A mapping of tags to assign to the resource.
- top
Level StringDomain - The top-level domain name.
- domain
Name string - The name of the accelerated domain.
- sources
Domain
Source[] - The origin information. See
sources
below. - cert
Name string - Indicates the name of the certificate if the HTTPS protocol is enabled.
- cert
Type string - The type of the certificate. Valid values:
free
: a free certificate.cas
: a certificate purchased from Alibaba Cloud SSL Certificates Service.upload
: a user uploaded certificate. - check
Url string - The URL that is used to test the accessibility of the origin.
- force
Set string - Specifies whether to check the certificate name for duplicates. If you set the value to 1, the system does not perform the check and overwrites the information of the existing certificate with the same name.
- resource
Group stringId - The ID of the resource group.
- scope string
- The acceleration region.
- security
Token string - The top-level domain name.
- ssl
Pri string - The private key. Specify this parameter only if you enable the SSL certificate.
- ssl
Protocol string - Indicates whether the SSL certificate is enabled. Valid values:
on
enabled,off
disabled. - ssl
Pub string - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status string
- The status of DCDN Domain. Valid values:
online
,offline
. Default toonline
. - {[key: string]: any}
- A mapping of tags to assign to the resource.
- top
Level stringDomain - The top-level domain name.
- domain_
name str - The name of the accelerated domain.
- sources
Sequence[Domain
Source Args] - The origin information. See
sources
below. - cert_
name str - Indicates the name of the certificate if the HTTPS protocol is enabled.
- cert_
type str - The type of the certificate. Valid values:
free
: a free certificate.cas
: a certificate purchased from Alibaba Cloud SSL Certificates Service.upload
: a user uploaded certificate. - check_
url str - The URL that is used to test the accessibility of the origin.
- force_
set str - Specifies whether to check the certificate name for duplicates. If you set the value to 1, the system does not perform the check and overwrites the information of the existing certificate with the same name.
- resource_
group_ strid - The ID of the resource group.
- scope str
- The acceleration region.
- security_
token str - The top-level domain name.
- ssl_
pri str - The private key. Specify this parameter only if you enable the SSL certificate.
- ssl_
protocol str - Indicates whether the SSL certificate is enabled. Valid values:
on
enabled,off
disabled. - ssl_
pub str - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status str
- The status of DCDN Domain. Valid values:
online
,offline
. Default toonline
. - Mapping[str, Any]
- A mapping of tags to assign to the resource.
- top_
level_ strdomain - The top-level domain name.
- domain
Name String - The name of the accelerated domain.
- sources List<Property Map>
- The origin information. See
sources
below. - cert
Name String - Indicates the name of the certificate if the HTTPS protocol is enabled.
- cert
Type String - The type of the certificate. Valid values:
free
: a free certificate.cas
: a certificate purchased from Alibaba Cloud SSL Certificates Service.upload
: a user uploaded certificate. - check
Url String - The URL that is used to test the accessibility of the origin.
- force
Set String - Specifies whether to check the certificate name for duplicates. If you set the value to 1, the system does not perform the check and overwrites the information of the existing certificate with the same name.
- resource
Group StringId - The ID of the resource group.
- scope String
- The acceleration region.
- security
Token String - The top-level domain name.
- ssl
Pri String - The private key. Specify this parameter only if you enable the SSL certificate.
- ssl
Protocol String - Indicates whether the SSL certificate is enabled. Valid values:
on
enabled,off
disabled. - ssl
Pub String - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status String
- The status of DCDN Domain. Valid values:
online
,offline
. Default toonline
. - Map<Any>
- A mapping of tags to assign to the resource.
- top
Level StringDomain - The top-level domain name.
Outputs
All input properties are implicitly available as output properties. Additionally, the Domain resource produces the following output properties:
Look up Existing Domain Resource
Get an existing Domain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DomainState, opts?: CustomResourceOptions): Domain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cert_name: Optional[str] = None,
cert_type: Optional[str] = None,
check_url: Optional[str] = None,
cname: Optional[str] = None,
domain_name: Optional[str] = None,
force_set: Optional[str] = None,
resource_group_id: Optional[str] = None,
scope: Optional[str] = None,
security_token: Optional[str] = None,
sources: Optional[Sequence[DomainSourceArgs]] = None,
ssl_pri: Optional[str] = None,
ssl_protocol: Optional[str] = None,
ssl_pub: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
top_level_domain: Optional[str] = None) -> Domain
func GetDomain(ctx *Context, name string, id IDInput, state *DomainState, opts ...ResourceOption) (*Domain, error)
public static Domain Get(string name, Input<string> id, DomainState? state, CustomResourceOptions? opts = null)
public static Domain get(String name, Output<String> id, DomainState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cert
Name string - Indicates the name of the certificate if the HTTPS protocol is enabled.
- Cert
Type string - The type of the certificate. Valid values:
free
: a free certificate.cas
: a certificate purchased from Alibaba Cloud SSL Certificates Service.upload
: a user uploaded certificate. - Check
Url string - The URL that is used to test the accessibility of the origin.
- Cname string
- (Available in 1.198.0+)- The canonical name (CNAME) of the accelerated domain.
- Domain
Name string - The name of the accelerated domain.
- Force
Set string - Specifies whether to check the certificate name for duplicates. If you set the value to 1, the system does not perform the check and overwrites the information of the existing certificate with the same name.
- Resource
Group stringId - The ID of the resource group.
- Scope string
- The acceleration region.
- Security
Token string - The top-level domain name.
- Sources
List<Pulumi.
Ali Cloud. Dcdn. Inputs. Domain Source> - The origin information. See
sources
below. - Ssl
Pri string - The private key. Specify this parameter only if you enable the SSL certificate.
- Ssl
Protocol string - Indicates whether the SSL certificate is enabled. Valid values:
on
enabled,off
disabled. - Ssl
Pub string - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- Status string
- The status of DCDN Domain. Valid values:
online
,offline
. Default toonline
. - Dictionary<string, object>
- A mapping of tags to assign to the resource.
- Top
Level stringDomain - The top-level domain name.
- Cert
Name string - Indicates the name of the certificate if the HTTPS protocol is enabled.
- Cert
Type string - The type of the certificate. Valid values:
free
: a free certificate.cas
: a certificate purchased from Alibaba Cloud SSL Certificates Service.upload
: a user uploaded certificate. - Check
Url string - The URL that is used to test the accessibility of the origin.
- Cname string
- (Available in 1.198.0+)- The canonical name (CNAME) of the accelerated domain.
- Domain
Name string - The name of the accelerated domain.
- Force
Set string - Specifies whether to check the certificate name for duplicates. If you set the value to 1, the system does not perform the check and overwrites the information of the existing certificate with the same name.
- Resource
Group stringId - The ID of the resource group.
- Scope string
- The acceleration region.
- Security
Token string - The top-level domain name.
- Sources
[]Domain
Source Args - The origin information. See
sources
below. - Ssl
Pri string - The private key. Specify this parameter only if you enable the SSL certificate.
- Ssl
Protocol string - Indicates whether the SSL certificate is enabled. Valid values:
on
enabled,off
disabled. - Ssl
Pub string - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- Status string
- The status of DCDN Domain. Valid values:
online
,offline
. Default toonline
. - map[string]interface{}
- A mapping of tags to assign to the resource.
- Top
Level stringDomain - The top-level domain name.
- cert
Name String - Indicates the name of the certificate if the HTTPS protocol is enabled.
- cert
Type String - The type of the certificate. Valid values:
free
: a free certificate.cas
: a certificate purchased from Alibaba Cloud SSL Certificates Service.upload
: a user uploaded certificate. - check
Url String - The URL that is used to test the accessibility of the origin.
- cname String
- (Available in 1.198.0+)- The canonical name (CNAME) of the accelerated domain.
- domain
Name String - The name of the accelerated domain.
- force
Set String - Specifies whether to check the certificate name for duplicates. If you set the value to 1, the system does not perform the check and overwrites the information of the existing certificate with the same name.
- resource
Group StringId - The ID of the resource group.
- scope String
- The acceleration region.
- security
Token String - The top-level domain name.
- sources
List<Domain
Source> - The origin information. See
sources
below. - ssl
Pri String - The private key. Specify this parameter only if you enable the SSL certificate.
- ssl
Protocol String - Indicates whether the SSL certificate is enabled. Valid values:
on
enabled,off
disabled. - ssl
Pub String - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status String
- The status of DCDN Domain. Valid values:
online
,offline
. Default toonline
. - Map<String,Object>
- A mapping of tags to assign to the resource.
- top
Level StringDomain - The top-level domain name.
- cert
Name string - Indicates the name of the certificate if the HTTPS protocol is enabled.
- cert
Type string - The type of the certificate. Valid values:
free
: a free certificate.cas
: a certificate purchased from Alibaba Cloud SSL Certificates Service.upload
: a user uploaded certificate. - check
Url string - The URL that is used to test the accessibility of the origin.
- cname string
- (Available in 1.198.0+)- The canonical name (CNAME) of the accelerated domain.
- domain
Name string - The name of the accelerated domain.
- force
Set string - Specifies whether to check the certificate name for duplicates. If you set the value to 1, the system does not perform the check and overwrites the information of the existing certificate with the same name.
- resource
Group stringId - The ID of the resource group.
- scope string
- The acceleration region.
- security
Token string - The top-level domain name.
- sources
Domain
Source[] - The origin information. See
sources
below. - ssl
Pri string - The private key. Specify this parameter only if you enable the SSL certificate.
- ssl
Protocol string - Indicates whether the SSL certificate is enabled. Valid values:
on
enabled,off
disabled. - ssl
Pub string - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status string
- The status of DCDN Domain. Valid values:
online
,offline
. Default toonline
. - {[key: string]: any}
- A mapping of tags to assign to the resource.
- top
Level stringDomain - The top-level domain name.
- cert_
name str - Indicates the name of the certificate if the HTTPS protocol is enabled.
- cert_
type str - The type of the certificate. Valid values:
free
: a free certificate.cas
: a certificate purchased from Alibaba Cloud SSL Certificates Service.upload
: a user uploaded certificate. - check_
url str - The URL that is used to test the accessibility of the origin.
- cname str
- (Available in 1.198.0+)- The canonical name (CNAME) of the accelerated domain.
- domain_
name str - The name of the accelerated domain.
- force_
set str - Specifies whether to check the certificate name for duplicates. If you set the value to 1, the system does not perform the check and overwrites the information of the existing certificate with the same name.
- resource_
group_ strid - The ID of the resource group.
- scope str
- The acceleration region.
- security_
token str - The top-level domain name.
- sources
Sequence[Domain
Source Args] - The origin information. See
sources
below. - ssl_
pri str - The private key. Specify this parameter only if you enable the SSL certificate.
- ssl_
protocol str - Indicates whether the SSL certificate is enabled. Valid values:
on
enabled,off
disabled. - ssl_
pub str - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status str
- The status of DCDN Domain. Valid values:
online
,offline
. Default toonline
. - Mapping[str, Any]
- A mapping of tags to assign to the resource.
- top_
level_ strdomain - The top-level domain name.
- cert
Name String - Indicates the name of the certificate if the HTTPS protocol is enabled.
- cert
Type String - The type of the certificate. Valid values:
free
: a free certificate.cas
: a certificate purchased from Alibaba Cloud SSL Certificates Service.upload
: a user uploaded certificate. - check
Url String - The URL that is used to test the accessibility of the origin.
- cname String
- (Available in 1.198.0+)- The canonical name (CNAME) of the accelerated domain.
- domain
Name String - The name of the accelerated domain.
- force
Set String - Specifies whether to check the certificate name for duplicates. If you set the value to 1, the system does not perform the check and overwrites the information of the existing certificate with the same name.
- resource
Group StringId - The ID of the resource group.
- scope String
- The acceleration region.
- security
Token String - The top-level domain name.
- sources List<Property Map>
- The origin information. See
sources
below. - ssl
Pri String - The private key. Specify this parameter only if you enable the SSL certificate.
- ssl
Protocol String - Indicates whether the SSL certificate is enabled. Valid values:
on
enabled,off
disabled. - ssl
Pub String - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status String
- The status of DCDN Domain. Valid values:
online
,offline
. Default toonline
. - Map<Any>
- A mapping of tags to assign to the resource.
- top
Level StringDomain - The top-level domain name.
Supporting Types
DomainSource, DomainSourceArgs
- Content string
- The origin address.
- Type string
- The type of the origin. Valid values:
ipaddr
: The origin is configured using an IP address.domain
: The origin is configured using a domain name.oss
: The origin is configured using the Internet domain name of an Alibaba Cloud Object Storage Service (OSS) bucket. - Port int
- The port number. Valid values:
443
and80
. Default to80
. - Priority string
- The priority of the origin if multiple origins are specified. Default to
20
. - Weight string
- The weight of the origin if multiple origins are specified. Default to
10
.
- Content string
- The origin address.
- Type string
- The type of the origin. Valid values:
ipaddr
: The origin is configured using an IP address.domain
: The origin is configured using a domain name.oss
: The origin is configured using the Internet domain name of an Alibaba Cloud Object Storage Service (OSS) bucket. - Port int
- The port number. Valid values:
443
and80
. Default to80
. - Priority string
- The priority of the origin if multiple origins are specified. Default to
20
. - Weight string
- The weight of the origin if multiple origins are specified. Default to
10
.
- content String
- The origin address.
- type String
- The type of the origin. Valid values:
ipaddr
: The origin is configured using an IP address.domain
: The origin is configured using a domain name.oss
: The origin is configured using the Internet domain name of an Alibaba Cloud Object Storage Service (OSS) bucket. - port Integer
- The port number. Valid values:
443
and80
. Default to80
. - priority String
- The priority of the origin if multiple origins are specified. Default to
20
. - weight String
- The weight of the origin if multiple origins are specified. Default to
10
.
- content string
- The origin address.
- type string
- The type of the origin. Valid values:
ipaddr
: The origin is configured using an IP address.domain
: The origin is configured using a domain name.oss
: The origin is configured using the Internet domain name of an Alibaba Cloud Object Storage Service (OSS) bucket. - port number
- The port number. Valid values:
443
and80
. Default to80
. - priority string
- The priority of the origin if multiple origins are specified. Default to
20
. - weight string
- The weight of the origin if multiple origins are specified. Default to
10
.
- content str
- The origin address.
- type str
- The type of the origin. Valid values:
ipaddr
: The origin is configured using an IP address.domain
: The origin is configured using a domain name.oss
: The origin is configured using the Internet domain name of an Alibaba Cloud Object Storage Service (OSS) bucket. - port int
- The port number. Valid values:
443
and80
. Default to80
. - priority str
- The priority of the origin if multiple origins are specified. Default to
20
. - weight str
- The weight of the origin if multiple origins are specified. Default to
10
.
- content String
- The origin address.
- type String
- The type of the origin. Valid values:
ipaddr
: The origin is configured using an IP address.domain
: The origin is configured using a domain name.oss
: The origin is configured using the Internet domain name of an Alibaba Cloud Object Storage Service (OSS) bucket. - port Number
- The port number. Valid values:
443
and80
. Default to80
. - priority String
- The priority of the origin if multiple origins are specified. Default to
20
. - weight String
- The weight of the origin if multiple origins are specified. Default to
10
.
Import
DCDN Domain can be imported using the id or DCDN Domain name, e.g.
$ pulumi import alicloud:dcdn/domain:Domain example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.