Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.21.0 published on Tuesday, Jun 14, 2022 by Pulumi

Domain

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        // Add a CDN Accelerated Domain with configs.
        var domain = new AliCloud.Cdn.Domain("domain", new AliCloud.Cdn.DomainArgs
        {
            DomainName = your_cdn_domain_name,
            CdnType = "web",
            SourceType = "domain",
            Sources = 
            {
                your_cdn_domain_source1,
                your_cdn_domain_source2,
            },
            OptimizeEnable = "off",
            PageCompressEnable = "off",
            RangeEnable = "off",
            VideoSeekEnable = "off",
            BlockIps = 
            {
                "1.2.3.4",
                "111.222.111.111",
            },
            ParameterFilterConfig = new AliCloud.Cdn.Inputs.DomainParameterFilterConfigArgs
            {
                Enable = "on",
                HashKeyArgs = 
                {
                    "hello",
                    "youyouyou",
                },
            },
            Page404Config = new AliCloud.Cdn.Inputs.DomainPage404ConfigArgs
            {
                PageType = "other",
                CustomPageUrl = $"http://{your_cdn_domain_name}/notfound/",
            },
            ReferConfig = new AliCloud.Cdn.Inputs.DomainReferConfigArgs
            {
                ReferType = "block",
                ReferLists = 
                {
                    "www.xxxx.com",
                    "www.xxxx.cn",
                },
                AllowEmpty = "off",
            },
            AuthConfig = new AliCloud.Cdn.Inputs.DomainAuthConfigArgs
            {
                AuthType = "type_a",
                MasterKey = "helloworld1",
                SlaveKey = "helloworld2",
            },
            HttpHeaderConfigs = 
            {
                new AliCloud.Cdn.Inputs.DomainHttpHeaderConfigArgs
                {
                    HeaderKey = "Content-Type",
                    HeaderValue = "text/plain",
                },
                new AliCloud.Cdn.Inputs.DomainHttpHeaderConfigArgs
                {
                    HeaderKey = "Access-Control-Allow-Origin",
                    HeaderValue = "*",
                },
            },
            CacheConfigs = 
            {
                new AliCloud.Cdn.Inputs.DomainCacheConfigArgs
                {
                    CacheContent = "/hello/world",
                    Ttl = 1000,
                    CacheType = "path",
                },
                new AliCloud.Cdn.Inputs.DomainCacheConfigArgs
                {
                    CacheContent = "/hello/world/youyou",
                    Ttl = 1000,
                    CacheType = "path",
                },
                new AliCloud.Cdn.Inputs.DomainCacheConfigArgs
                {
                    CacheContent = "txt,jpg,png",
                    Ttl = 2000,
                    CacheType = "suffix",
                },
            },
        });
    }

}
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cdn"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cdn.NewDomain(ctx, "domain", &cdn.DomainArgs{
			DomainName: pulumi.Any(your_cdn_domain_name),
			CdnType:    pulumi.String("web"),
			SourceType: pulumi.String("domain"),
			Sources: pulumi.StringArray{
				pulumi.Any(your_cdn_domain_source1),
				pulumi.Any(your_cdn_domain_source2),
			},
			OptimizeEnable:     pulumi.String("off"),
			PageCompressEnable: pulumi.String("off"),
			RangeEnable:        pulumi.String("off"),
			VideoSeekEnable:    pulumi.String("off"),
			BlockIps: pulumi.StringArray{
				pulumi.String("1.2.3.4"),
				pulumi.String("111.222.111.111"),
			},
			ParameterFilterConfig: &cdn.DomainParameterFilterConfigArgs{
				Enable: pulumi.String("on"),
				HashKeyArgs: pulumi.StringArray{
					pulumi.String("hello"),
					pulumi.String("youyouyou"),
				},
			},
			Page404Config: &cdn.DomainPage404ConfigArgs{
				PageType:      pulumi.String("other"),
				CustomPageUrl: pulumi.String(fmt.Sprintf("%v%v%v", "http://", your_cdn_domain_name, "/notfound/")),
			},
			ReferConfig: &cdn.DomainReferConfigArgs{
				ReferType: pulumi.String("block"),
				ReferLists: pulumi.StringArray{
					pulumi.String("www.xxxx.com"),
					pulumi.String("www.xxxx.cn"),
				},
				AllowEmpty: pulumi.String("off"),
			},
			AuthConfig: &cdn.DomainAuthConfigArgs{
				AuthType:  pulumi.String("type_a"),
				MasterKey: pulumi.String("helloworld1"),
				SlaveKey:  pulumi.String("helloworld2"),
			},
			HttpHeaderConfigs: cdn.DomainHttpHeaderConfigArray{
				&cdn.DomainHttpHeaderConfigArgs{
					HeaderKey:   pulumi.String("Content-Type"),
					HeaderValue: pulumi.String("text/plain"),
				},
				&cdn.DomainHttpHeaderConfigArgs{
					HeaderKey:   pulumi.String("Access-Control-Allow-Origin"),
					HeaderValue: pulumi.String("*"),
				},
			},
			CacheConfigs: cdn.DomainCacheConfigArray{
				&cdn.DomainCacheConfigArgs{
					CacheContent: pulumi.String("/hello/world"),
					Ttl:          pulumi.Int(1000),
					CacheType:    pulumi.String("path"),
				},
				&cdn.DomainCacheConfigArgs{
					CacheContent: pulumi.String("/hello/world/youyou"),
					Ttl:          pulumi.Int(1000),
					CacheType:    pulumi.String("path"),
				},
				&cdn.DomainCacheConfigArgs{
					CacheContent: pulumi.String("txt,jpg,png"),
					Ttl:          pulumi.Int(2000),
					CacheType:    pulumi.String("suffix"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

# Add a CDN Accelerated Domain with configs.
domain = alicloud.cdn.Domain("domain",
    domain_name=your_cdn_domain_name,
    cdn_type="web",
    source_type="domain",
    sources=[
        your_cdn_domain_source1,
        your_cdn_domain_source2,
    ],
    optimize_enable="off",
    page_compress_enable="off",
    range_enable="off",
    video_seek_enable="off",
    block_ips=[
        "1.2.3.4",
        "111.222.111.111",
    ],
    parameter_filter_config=alicloud.cdn.DomainParameterFilterConfigArgs(
        enable="on",
        hash_key_args=[
            "hello",
            "youyouyou",
        ],
    ),
    page404_config=alicloud.cdn.DomainPage404ConfigArgs(
        page_type="other",
        custom_page_url=f"http://{your_cdn_domain_name}/notfound/",
    ),
    refer_config=alicloud.cdn.DomainReferConfigArgs(
        refer_type="block",
        refer_lists=[
            "www.xxxx.com",
            "www.xxxx.cn",
        ],
        allow_empty="off",
    ),
    auth_config=alicloud.cdn.DomainAuthConfigArgs(
        auth_type="type_a",
        master_key="helloworld1",
        slave_key="helloworld2",
    ),
    http_header_configs=[
        alicloud.cdn.DomainHttpHeaderConfigArgs(
            header_key="Content-Type",
            header_value="text/plain",
        ),
        alicloud.cdn.DomainHttpHeaderConfigArgs(
            header_key="Access-Control-Allow-Origin",
            header_value="*",
        ),
    ],
    cache_configs=[
        alicloud.cdn.DomainCacheConfigArgs(
            cache_content="/hello/world",
            ttl=1000,
            cache_type="path",
        ),
        alicloud.cdn.DomainCacheConfigArgs(
            cache_content="/hello/world/youyou",
            ttl=1000,
            cache_type="path",
        ),
        alicloud.cdn.DomainCacheConfigArgs(
            cache_content="txt,jpg,png",
            ttl=2000,
            cache_type="suffix",
        ),
    ])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

// Add a CDN Accelerated Domain with configs.
const domain = new alicloud.cdn.Domain("domain", {
    domainName: your_cdn_domain_name,
    cdnType: "web",
    sourceType: "domain",
    sources: [
        your_cdn_domain_source1,
        your_cdn_domain_source2,
    ],
    optimizeEnable: "off",
    pageCompressEnable: "off",
    rangeEnable: "off",
    videoSeekEnable: "off",
    blockIps: [
        "1.2.3.4",
        "111.222.111.111",
    ],
    parameterFilterConfig: {
        enable: "on",
        hashKeyArgs: [
            "hello",
            "youyouyou",
        ],
    },
    page404Config: {
        pageType: "other",
        customPageUrl: `http://${your_cdn_domain_name}/notfound/`,
    },
    referConfig: {
        referType: "block",
        referLists: [
            "www.xxxx.com",
            "www.xxxx.cn",
        ],
        allowEmpty: "off",
    },
    authConfig: {
        authType: "type_a",
        masterKey: "helloworld1",
        slaveKey: "helloworld2",
    },
    httpHeaderConfigs: [
        {
            headerKey: "Content-Type",
            headerValue: "text/plain",
        },
        {
            headerKey: "Access-Control-Allow-Origin",
            headerValue: "*",
        },
    ],
    cacheConfigs: [
        {
            cacheContent: "/hello/world",
            ttl: 1000,
            cacheType: "path",
        },
        {
            cacheContent: "/hello/world/youyou",
            ttl: 1000,
            cacheType: "path",
        },
        {
            cacheContent: "txt,jpg,png",
            ttl: 2000,
            cacheType: "suffix",
        },
    ],
});

Coming soon!

Create a Domain Resource

new Domain(name: string, args: DomainArgs, opts?: CustomResourceOptions);
@overload
def Domain(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           auth_config: Optional[DomainAuthConfigArgs] = None,
           block_ips: Optional[Sequence[str]] = None,
           cache_configs: Optional[Sequence[DomainCacheConfigArgs]] = None,
           cdn_type: Optional[str] = None,
           certificate_config: Optional[DomainCertificateConfigArgs] = None,
           domain_name: Optional[str] = None,
           http_header_configs: Optional[Sequence[DomainHttpHeaderConfigArgs]] = None,
           optimize_enable: Optional[str] = None,
           page404_config: Optional[DomainPage404ConfigArgs] = None,
           page_compress_enable: Optional[str] = None,
           parameter_filter_config: Optional[DomainParameterFilterConfigArgs] = None,
           range_enable: Optional[str] = None,
           refer_config: Optional[DomainReferConfigArgs] = None,
           scope: Optional[str] = None,
           source_port: Optional[int] = None,
           source_type: Optional[str] = None,
           sources: Optional[Sequence[str]] = None,
           video_seek_enable: Optional[str] = None)
@overload
def Domain(resource_name: str,
           args: DomainArgs,
           opts: Optional[ResourceOptions] = 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:cdn:Domain
properties: # The arguments to resource properties.
options: # 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.
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.

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:

CdnType string

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

DomainName string

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.

AuthConfig Pulumi.AliCloud.Cdn.Inputs.DomainAuthConfigArgs

The auth config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

BlockIps List<string>

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

CacheConfigs List<Pulumi.AliCloud.Cdn.Inputs.DomainCacheConfigArgs>

The cache configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

CertificateConfig Pulumi.AliCloud.Cdn.Inputs.DomainCertificateConfigArgs

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

HttpHeaderConfigs List<Pulumi.AliCloud.Cdn.Inputs.DomainHttpHeaderConfigArgs>

The http header configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

OptimizeEnable string

Page Optimize config of the accelerated domain. Valid values are on and off. Default value is off. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value is on.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

Page404Config Pulumi.AliCloud.Cdn.Inputs.DomainPage404ConfigArgs

The error page config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

PageCompressEnable string

Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

ParameterFilterConfig Pulumi.AliCloud.Cdn.Inputs.DomainParameterFilterConfigArgs

The parameter filter config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

RangeEnable string

Range Source config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

ReferConfig Pulumi.AliCloud.Cdn.Inputs.DomainReferConfigArgs

The refer config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

Scope string

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 .

SourcePort int

Source port of the accelerated domain. Valid values are 80 and 443. Default value is 80. You must use 80 when the source_type is oss.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block port argument instead.

SourceType string

Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block type argument instead.

Sources List<string>

Sources of the accelerated domain. It's a list of domain names or IP address and consists of at most 20 items. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources argument instead.

VideoSeekEnable string

Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

CdnType string

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

DomainName string

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.

AuthConfig DomainAuthConfigArgs

The auth config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

BlockIps []string

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

CacheConfigs []DomainCacheConfigArgs

The cache configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

CertificateConfig DomainCertificateConfigArgs

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

HttpHeaderConfigs []DomainHttpHeaderConfigArgs

The http header configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

OptimizeEnable string

Page Optimize config of the accelerated domain. Valid values are on and off. Default value is off. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value is on.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

Page404Config DomainPage404ConfigArgs

The error page config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

PageCompressEnable string

Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

ParameterFilterConfig DomainParameterFilterConfigArgs

The parameter filter config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

RangeEnable string

Range Source config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

ReferConfig DomainReferConfigArgs

The refer config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

Scope string

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 .

SourcePort int

Source port of the accelerated domain. Valid values are 80 and 443. Default value is 80. You must use 80 when the source_type is oss.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block port argument instead.

SourceType string

Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block type argument instead.

Sources []string

Sources of the accelerated domain. It's a list of domain names or IP address and consists of at most 20 items. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources argument instead.

VideoSeekEnable string

Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cdnType String

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

domainName String

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.

authConfig DomainAuthConfigArgs

The auth config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

blockIps List<String>

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cacheConfigs List<DomainCacheConfigArgs>

The cache configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

certificateConfig DomainCertificateConfigArgs

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

httpHeaderConfigs List<DomainHttpHeaderConfigArgs>

The http header configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

optimizeEnable String

Page Optimize config of the accelerated domain. Valid values are on and off. Default value is off. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value is on.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

page404Config DomainPage404ConfigArgs

The error page config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

pageCompressEnable String

Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

parameterFilterConfig DomainParameterFilterConfigArgs

The parameter filter config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

rangeEnable String

Range Source config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

referConfig DomainReferConfigArgs

The refer config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

scope String

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 .

sourcePort Integer

Source port of the accelerated domain. Valid values are 80 and 443. Default value is 80. You must use 80 when the source_type is oss.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block port argument instead.

sourceType String

Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block type argument instead.

sources List<String>

Sources of the accelerated domain. It's a list of domain names or IP address and consists of at most 20 items. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources argument instead.

videoSeekEnable String

Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cdnType string

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

domainName string

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.

authConfig DomainAuthConfigArgs

The auth config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

blockIps string[]

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cacheConfigs DomainCacheConfigArgs[]

The cache configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

certificateConfig DomainCertificateConfigArgs

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

httpHeaderConfigs DomainHttpHeaderConfigArgs[]

The http header configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

optimizeEnable string

Page Optimize config of the accelerated domain. Valid values are on and off. Default value is off. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value is on.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

page404Config DomainPage404ConfigArgs

The error page config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

pageCompressEnable string

Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

parameterFilterConfig DomainParameterFilterConfigArgs

The parameter filter config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

rangeEnable string

Range Source config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

referConfig DomainReferConfigArgs

The refer config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

scope string

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 .

sourcePort number

Source port of the accelerated domain. Valid values are 80 and 443. Default value is 80. You must use 80 when the source_type is oss.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block port argument instead.

sourceType string

Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block type argument instead.

sources string[]

Sources of the accelerated domain. It's a list of domain names or IP address and consists of at most 20 items. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources argument instead.

videoSeekEnable string

Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cdn_type str

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

domain_name str

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.

auth_config DomainAuthConfigArgs

The auth config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

block_ips Sequence[str]

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cache_configs Sequence[DomainCacheConfigArgs]

The cache configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

certificate_config DomainCertificateConfigArgs

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

http_header_configs Sequence[DomainHttpHeaderConfigArgs]

The http header configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

optimize_enable str

Page Optimize config of the accelerated domain. Valid values are on and off. Default value is off. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value is on.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

page404_config DomainPage404ConfigArgs

The error page config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

page_compress_enable str

Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

parameter_filter_config DomainParameterFilterConfigArgs

The parameter filter config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

range_enable str

Range Source config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

refer_config DomainReferConfigArgs

The refer config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

scope str

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 .

source_port int

Source port of the accelerated domain. Valid values are 80 and 443. Default value is 80. You must use 80 when the source_type is oss.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block port argument instead.

source_type str

Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block type argument instead.

sources Sequence[str]

Sources of the accelerated domain. It's a list of domain names or IP address and consists of at most 20 items. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources argument instead.

video_seek_enable str

Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cdnType String

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

domainName String

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.

authConfig Property Map

The auth config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

blockIps List<String>

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cacheConfigs List<Property Map>

The cache configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

certificateConfig Property Map

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

httpHeaderConfigs List<Property Map>

The http header configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

optimizeEnable String

Page Optimize config of the accelerated domain. Valid values are on and off. Default value is off. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value is on.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

page404Config Property Map

The error page config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

pageCompressEnable String

Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

parameterFilterConfig Property Map

The parameter filter config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

rangeEnable String

Range Source config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

referConfig Property Map

The refer config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

scope String

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 .

sourcePort Number

Source port of the accelerated domain. Valid values are 80 and 443. Default value is 80. You must use 80 when the source_type is oss.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block port argument instead.

sourceType String

Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block type argument instead.

sources List<String>

Sources of the accelerated domain. It's a list of domain names or IP address and consists of at most 20 items. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources argument instead.

videoSeekEnable String

Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

Outputs

All input properties are implicitly available as output properties. Additionally, the Domain resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an 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,
        auth_config: Optional[DomainAuthConfigArgs] = None,
        block_ips: Optional[Sequence[str]] = None,
        cache_configs: Optional[Sequence[DomainCacheConfigArgs]] = None,
        cdn_type: Optional[str] = None,
        certificate_config: Optional[DomainCertificateConfigArgs] = None,
        domain_name: Optional[str] = None,
        http_header_configs: Optional[Sequence[DomainHttpHeaderConfigArgs]] = None,
        optimize_enable: Optional[str] = None,
        page404_config: Optional[DomainPage404ConfigArgs] = None,
        page_compress_enable: Optional[str] = None,
        parameter_filter_config: Optional[DomainParameterFilterConfigArgs] = None,
        range_enable: Optional[str] = None,
        refer_config: Optional[DomainReferConfigArgs] = None,
        scope: Optional[str] = None,
        source_port: Optional[int] = None,
        source_type: Optional[str] = None,
        sources: Optional[Sequence[str]] = None,
        video_seek_enable: 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.
The following state arguments are supported:
AuthConfig Pulumi.AliCloud.Cdn.Inputs.DomainAuthConfigArgs

The auth config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

BlockIps List<string>

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

CacheConfigs List<Pulumi.AliCloud.Cdn.Inputs.DomainCacheConfigArgs>

The cache configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

CdnType string

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

CertificateConfig Pulumi.AliCloud.Cdn.Inputs.DomainCertificateConfigArgs

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

DomainName string

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.

HttpHeaderConfigs List<Pulumi.AliCloud.Cdn.Inputs.DomainHttpHeaderConfigArgs>

The http header configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

OptimizeEnable string

Page Optimize config of the accelerated domain. Valid values are on and off. Default value is off. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value is on.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

Page404Config Pulumi.AliCloud.Cdn.Inputs.DomainPage404ConfigArgs

The error page config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

PageCompressEnable string

Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

ParameterFilterConfig Pulumi.AliCloud.Cdn.Inputs.DomainParameterFilterConfigArgs

The parameter filter config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

RangeEnable string

Range Source config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

ReferConfig Pulumi.AliCloud.Cdn.Inputs.DomainReferConfigArgs

The refer config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

Scope string

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 .

SourcePort int

Source port of the accelerated domain. Valid values are 80 and 443. Default value is 80. You must use 80 when the source_type is oss.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block port argument instead.

SourceType string

Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block type argument instead.

Sources List<string>

Sources of the accelerated domain. It's a list of domain names or IP address and consists of at most 20 items. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources argument instead.

VideoSeekEnable string

Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

AuthConfig DomainAuthConfigArgs

The auth config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

BlockIps []string

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

CacheConfigs []DomainCacheConfigArgs

The cache configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

CdnType string

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

CertificateConfig DomainCertificateConfigArgs

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

DomainName string

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.

HttpHeaderConfigs []DomainHttpHeaderConfigArgs

The http header configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

OptimizeEnable string

Page Optimize config of the accelerated domain. Valid values are on and off. Default value is off. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value is on.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

Page404Config DomainPage404ConfigArgs

The error page config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

PageCompressEnable string

Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

ParameterFilterConfig DomainParameterFilterConfigArgs

The parameter filter config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

RangeEnable string

Range Source config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

ReferConfig DomainReferConfigArgs

The refer config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

Scope string

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 .

SourcePort int

Source port of the accelerated domain. Valid values are 80 and 443. Default value is 80. You must use 80 when the source_type is oss.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block port argument instead.

SourceType string

Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block type argument instead.

Sources []string

Sources of the accelerated domain. It's a list of domain names or IP address and consists of at most 20 items. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources argument instead.

VideoSeekEnable string

Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

authConfig DomainAuthConfigArgs

The auth config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

blockIps List<String>

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cacheConfigs List<DomainCacheConfigArgs>

The cache configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cdnType String

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

certificateConfig DomainCertificateConfigArgs

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

domainName String

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.

httpHeaderConfigs List<DomainHttpHeaderConfigArgs>

The http header configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

optimizeEnable String

Page Optimize config of the accelerated domain. Valid values are on and off. Default value is off. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value is on.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

page404Config DomainPage404ConfigArgs

The error page config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

pageCompressEnable String

Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

parameterFilterConfig DomainParameterFilterConfigArgs

The parameter filter config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

rangeEnable String

Range Source config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

referConfig DomainReferConfigArgs

The refer config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

scope String

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 .

sourcePort Integer

Source port of the accelerated domain. Valid values are 80 and 443. Default value is 80. You must use 80 when the source_type is oss.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block port argument instead.

sourceType String

Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block type argument instead.

sources List<String>

Sources of the accelerated domain. It's a list of domain names or IP address and consists of at most 20 items. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources argument instead.

videoSeekEnable String

Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

authConfig DomainAuthConfigArgs

The auth config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

blockIps string[]

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cacheConfigs DomainCacheConfigArgs[]

The cache configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cdnType string

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

certificateConfig DomainCertificateConfigArgs

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

domainName string

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.

httpHeaderConfigs DomainHttpHeaderConfigArgs[]

The http header configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

optimizeEnable string

Page Optimize config of the accelerated domain. Valid values are on and off. Default value is off. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value is on.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

page404Config DomainPage404ConfigArgs

The error page config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

pageCompressEnable string

Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

parameterFilterConfig DomainParameterFilterConfigArgs

The parameter filter config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

rangeEnable string

Range Source config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

referConfig DomainReferConfigArgs

The refer config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

scope string

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 .

sourcePort number

Source port of the accelerated domain. Valid values are 80 and 443. Default value is 80. You must use 80 when the source_type is oss.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block port argument instead.

sourceType string

Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block type argument instead.

sources string[]

Sources of the accelerated domain. It's a list of domain names or IP address and consists of at most 20 items. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources argument instead.

videoSeekEnable string

Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

auth_config DomainAuthConfigArgs

The auth config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

block_ips Sequence[str]

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cache_configs Sequence[DomainCacheConfigArgs]

The cache configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cdn_type str

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

certificate_config DomainCertificateConfigArgs

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

domain_name str

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.

http_header_configs Sequence[DomainHttpHeaderConfigArgs]

The http header configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

optimize_enable str

Page Optimize config of the accelerated domain. Valid values are on and off. Default value is off. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value is on.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

page404_config DomainPage404ConfigArgs

The error page config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

page_compress_enable str

Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

parameter_filter_config DomainParameterFilterConfigArgs

The parameter filter config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

range_enable str

Range Source config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

refer_config DomainReferConfigArgs

The refer config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

scope str

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 .

source_port int

Source port of the accelerated domain. Valid values are 80 and 443. Default value is 80. You must use 80 when the source_type is oss.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block port argument instead.

source_type str

Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block type argument instead.

sources Sequence[str]

Sources of the accelerated domain. It's a list of domain names or IP address and consists of at most 20 items. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources argument instead.

video_seek_enable str

Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

authConfig Property Map

The auth config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

blockIps List<String>

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cacheConfigs List<Property Map>

The cache configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cdnType String

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

certificateConfig Property Map

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

domainName String

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.

httpHeaderConfigs List<Property Map>

The http header configs of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

optimizeEnable String

Page Optimize config of the accelerated domain. Valid values are on and off. Default value is off. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value is on.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

page404Config Property Map

The error page config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

pageCompressEnable String

Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

parameterFilterConfig Property Map

The parameter filter config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

rangeEnable String

Range Source config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

referConfig Property Map

The refer config of the accelerated domain.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

scope String

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 .

sourcePort Number

Source port of the accelerated domain. Valid values are 80 and 443. Default value is 80. You must use 80 when the source_type is oss.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block port argument instead.

sourceType String

Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources block type argument instead.

sources List<String>

Sources of the accelerated domain. It's a list of domain names or IP address and consists of at most 20 items. You must set this parameter when cdn_type value is not liveStream.

Deprecated:

Use alicloud_cdn_domain_new configuration sources argument instead.

videoSeekEnable String

Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

Deprecated:

Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

Supporting Types

DomainAuthConfig

AuthType string

Auth type of the auth config. Valid values are no_auth, type_a, type_b and type_c. Default value is no_auth.

MasterKey string

Master authentication key of the auth config. This parameter can have a string of 6 to 32 characters and must contain only alphanumeric characters.

SlaveKey string

Slave authentication key of the auth config. This parameter can have a string of 6 to 32 characters and must contain only alphanumeric characters.

Timeout int

Authentication cache time of the auth config. Default value is 1800. It's value is valid only when the auth_type is type_b or type_c.

AuthType string

Auth type of the auth config. Valid values are no_auth, type_a, type_b and type_c. Default value is no_auth.

MasterKey string

Master authentication key of the auth config. This parameter can have a string of 6 to 32 characters and must contain only alphanumeric characters.

SlaveKey string

Slave authentication key of the auth config. This parameter can have a string of 6 to 32 characters and must contain only alphanumeric characters.

Timeout int

Authentication cache time of the auth config. Default value is 1800. It's value is valid only when the auth_type is type_b or type_c.

authType String

Auth type of the auth config. Valid values are no_auth, type_a, type_b and type_c. Default value is no_auth.

masterKey String

Master authentication key of the auth config. This parameter can have a string of 6 to 32 characters and must contain only alphanumeric characters.

slaveKey String

Slave authentication key of the auth config. This parameter can have a string of 6 to 32 characters and must contain only alphanumeric characters.

timeout Integer

Authentication cache time of the auth config. Default value is 1800. It's value is valid only when the auth_type is type_b or type_c.

authType string

Auth type of the auth config. Valid values are no_auth, type_a, type_b and type_c. Default value is no_auth.

masterKey string

Master authentication key of the auth config. This parameter can have a string of 6 to 32 characters and must contain only alphanumeric characters.

slaveKey string

Slave authentication key of the auth config. This parameter can have a string of 6 to 32 characters and must contain only alphanumeric characters.

timeout number

Authentication cache time of the auth config. Default value is 1800. It's value is valid only when the auth_type is type_b or type_c.

auth_type str

Auth type of the auth config. Valid values are no_auth, type_a, type_b and type_c. Default value is no_auth.

master_key str

Master authentication key of the auth config. This parameter can have a string of 6 to 32 characters and must contain only alphanumeric characters.

slave_key str

Slave authentication key of the auth config. This parameter can have a string of 6 to 32 characters and must contain only alphanumeric characters.

timeout int

Authentication cache time of the auth config. Default value is 1800. It's value is valid only when the auth_type is type_b or type_c.

authType String

Auth type of the auth config. Valid values are no_auth, type_a, type_b and type_c. Default value is no_auth.

masterKey String

Master authentication key of the auth config. This parameter can have a string of 6 to 32 characters and must contain only alphanumeric characters.

slaveKey String

Slave authentication key of the auth config. This parameter can have a string of 6 to 32 characters and must contain only alphanumeric characters.

timeout Number

Authentication cache time of the auth config. Default value is 1800. It's value is valid only when the auth_type is type_b or type_c.

DomainCacheConfig

CacheContent string

Cache content of the cache config. It's value is a path string when the cache_type is path. When the cache_type is suffix, it's value is a string which contains multiple file suffixes separated by commas.

CacheType string

Cache type of the cache config. Valid values are suffix and path.

Ttl int

Cache time of the cache config.

CacheId string
Weight int

Weight of the cache config. This parameter's value is between 1 and 99. Default value is 1. The higher the value, the higher the priority.

CacheContent string

Cache content of the cache config. It's value is a path string when the cache_type is path. When the cache_type is suffix, it's value is a string which contains multiple file suffixes separated by commas.

CacheType string

Cache type of the cache config. Valid values are suffix and path.

Ttl int

Cache time of the cache config.

CacheId string
Weight int

Weight of the cache config. This parameter's value is between 1 and 99. Default value is 1. The higher the value, the higher the priority.

cacheContent String

Cache content of the cache config. It's value is a path string when the cache_type is path. When the cache_type is suffix, it's value is a string which contains multiple file suffixes separated by commas.

cacheType String

Cache type of the cache config. Valid values are suffix and path.

ttl Integer

Cache time of the cache config.

cacheId String
weight Integer

Weight of the cache config. This parameter's value is between 1 and 99. Default value is 1. The higher the value, the higher the priority.

cacheContent string

Cache content of the cache config. It's value is a path string when the cache_type is path. When the cache_type is suffix, it's value is a string which contains multiple file suffixes separated by commas.

cacheType string

Cache type of the cache config. Valid values are suffix and path.

ttl number

Cache time of the cache config.

cacheId string
weight number

Weight of the cache config. This parameter's value is between 1 and 99. Default value is 1. The higher the value, the higher the priority.

cache_content str

Cache content of the cache config. It's value is a path string when the cache_type is path. When the cache_type is suffix, it's value is a string which contains multiple file suffixes separated by commas.

cache_type str

Cache type of the cache config. Valid values are suffix and path.

ttl int

Cache time of the cache config.

cache_id str
weight int

Weight of the cache config. This parameter's value is between 1 and 99. Default value is 1. The higher the value, the higher the priority.

cacheContent String

Cache content of the cache config. It's value is a path string when the cache_type is path. When the cache_type is suffix, it's value is a string which contains multiple file suffixes separated by commas.

cacheType String

Cache type of the cache config. Valid values are suffix and path.

ttl Number

Cache time of the cache config.

cacheId String
weight Number

Weight of the cache config. This parameter's value is between 1 and 99. Default value is 1. The higher the value, the higher the priority.

DomainCertificateConfig

PrivateKey string

The SSL private key. This is required if server_certificate_status is on

ServerCertificate string

The SSL server certificate string. This is required if server_certificate_status is on

ServerCertificateStatus string

This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

PrivateKey string

The SSL private key. This is required if server_certificate_status is on

ServerCertificate string

The SSL server certificate string. This is required if server_certificate_status is on

ServerCertificateStatus string

This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

privateKey String

The SSL private key. This is required if server_certificate_status is on

serverCertificate String

The SSL server certificate string. This is required if server_certificate_status is on

serverCertificateStatus String

This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

privateKey string

The SSL private key. This is required if server_certificate_status is on

serverCertificate string

The SSL server certificate string. This is required if server_certificate_status is on

serverCertificateStatus string

This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

private_key str

The SSL private key. This is required if server_certificate_status is on

server_certificate str

The SSL server certificate string. This is required if server_certificate_status is on

server_certificate_status str

This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

privateKey String

The SSL private key. This is required if server_certificate_status is on

serverCertificate String

The SSL server certificate string. This is required if server_certificate_status is on

serverCertificateStatus String

This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

DomainHttpHeaderConfig

HeaderKey string

Header key of the http header. Valid values are Content-Type, Cache-Control, Content-Disposition, Content-LanguageExpires, Access-Control-Allow-Origin, Access-Control-Allow-Methods and Access-Control-Max-Age.

HeaderValue string

Header value of the http header.

HeaderId string
HeaderKey string

Header key of the http header. Valid values are Content-Type, Cache-Control, Content-Disposition, Content-LanguageExpires, Access-Control-Allow-Origin, Access-Control-Allow-Methods and Access-Control-Max-Age.

HeaderValue string

Header value of the http header.

HeaderId string
headerKey String

Header key of the http header. Valid values are Content-Type, Cache-Control, Content-Disposition, Content-LanguageExpires, Access-Control-Allow-Origin, Access-Control-Allow-Methods and Access-Control-Max-Age.

headerValue String

Header value of the http header.

headerId String
headerKey string

Header key of the http header. Valid values are Content-Type, Cache-Control, Content-Disposition, Content-LanguageExpires, Access-Control-Allow-Origin, Access-Control-Allow-Methods and Access-Control-Max-Age.

headerValue string

Header value of the http header.

headerId string
header_key str

Header key of the http header. Valid values are Content-Type, Cache-Control, Content-Disposition, Content-LanguageExpires, Access-Control-Allow-Origin, Access-Control-Allow-Methods and Access-Control-Max-Age.

header_value str

Header value of the http header.

header_id str
headerKey String

Header key of the http header. Valid values are Content-Type, Cache-Control, Content-Disposition, Content-LanguageExpires, Access-Control-Allow-Origin, Access-Control-Allow-Methods and Access-Control-Max-Age.

headerValue String

Header value of the http header.

headerId String

DomainPage404Config

CustomPageUrl string

Custom page url of the error page. It must be the full path under the accelerated domain name. It's value must be http://promotion.alicdn.com/help/oss/error.html when page_type value is charity and It can not be set when page_type value is default.

ErrorCode string
PageType string

Page type of the error page. Valid values are default, charity, other. Default value is default.

CustomPageUrl string

Custom page url of the error page. It must be the full path under the accelerated domain name. It's value must be http://promotion.alicdn.com/help/oss/error.html when page_type value is charity and It can not be set when page_type value is default.

ErrorCode string
PageType string

Page type of the error page. Valid values are default, charity, other. Default value is default.

customPageUrl String

Custom page url of the error page. It must be the full path under the accelerated domain name. It's value must be http://promotion.alicdn.com/help/oss/error.html when page_type value is charity and It can not be set when page_type value is default.

errorCode String
pageType String

Page type of the error page. Valid values are default, charity, other. Default value is default.

customPageUrl string

Custom page url of the error page. It must be the full path under the accelerated domain name. It's value must be http://promotion.alicdn.com/help/oss/error.html when page_type value is charity and It can not be set when page_type value is default.

errorCode string
pageType string

Page type of the error page. Valid values are default, charity, other. Default value is default.

custom_page_url str

Custom page url of the error page. It must be the full path under the accelerated domain name. It's value must be http://promotion.alicdn.com/help/oss/error.html when page_type value is charity and It can not be set when page_type value is default.

error_code str
page_type str

Page type of the error page. Valid values are default, charity, other. Default value is default.

customPageUrl String

Custom page url of the error page. It must be the full path under the accelerated domain name. It's value must be http://promotion.alicdn.com/help/oss/error.html when page_type value is charity and It can not be set when page_type value is default.

errorCode String
pageType String

Page type of the error page. Valid values are default, charity, other. Default value is default.

DomainParameterFilterConfig

Enable string

This parameter indicates whether or not the parameter_filter_config is enable. Valid values are on and off. Default value is off.

HashKeyArgs List<string>

Reserved parameters of parameter_filter_config. It's a list of string and consists of at most 10 items.

Enable string

This parameter indicates whether or not the parameter_filter_config is enable. Valid values are on and off. Default value is off.

HashKeyArgs []string

Reserved parameters of parameter_filter_config. It's a list of string and consists of at most 10 items.

enable String

This parameter indicates whether or not the parameter_filter_config is enable. Valid values are on and off. Default value is off.

hashKeyArgs List<String>

Reserved parameters of parameter_filter_config. It's a list of string and consists of at most 10 items.

enable string

This parameter indicates whether or not the parameter_filter_config is enable. Valid values are on and off. Default value is off.

hashKeyArgs string[]

Reserved parameters of parameter_filter_config. It's a list of string and consists of at most 10 items.

enable str

This parameter indicates whether or not the parameter_filter_config is enable. Valid values are on and off. Default value is off.

hash_key_args Sequence[str]

Reserved parameters of parameter_filter_config. It's a list of string and consists of at most 10 items.

enable String

This parameter indicates whether or not the parameter_filter_config is enable. Valid values are on and off. Default value is off.

hashKeyArgs List<String>

Reserved parameters of parameter_filter_config. It's a list of string and consists of at most 10 items.

DomainReferConfig

ReferLists List<string>

A list of domain names of the refer config.

AllowEmpty string

This parameter indicates whether or not to allow empty refer access. Valid values are on and off. Default value is on.

ReferType string

Refer type of the refer config. Valid values are block and allow. Default value is block.

ReferLists []string

A list of domain names of the refer config.

AllowEmpty string

This parameter indicates whether or not to allow empty refer access. Valid values are on and off. Default value is on.

ReferType string

Refer type of the refer config. Valid values are block and allow. Default value is block.

referLists List<String>

A list of domain names of the refer config.

allowEmpty String

This parameter indicates whether or not to allow empty refer access. Valid values are on and off. Default value is on.

referType String

Refer type of the refer config. Valid values are block and allow. Default value is block.

referLists string[]

A list of domain names of the refer config.

allowEmpty string

This parameter indicates whether or not to allow empty refer access. Valid values are on and off. Default value is on.

referType string

Refer type of the refer config. Valid values are block and allow. Default value is block.

refer_lists Sequence[str]

A list of domain names of the refer config.

allow_empty str

This parameter indicates whether or not to allow empty refer access. Valid values are on and off. Default value is on.

refer_type str

Refer type of the refer config. Valid values are block and allow. Default value is block.

referLists List<String>

A list of domain names of the refer config.

allowEmpty String

This parameter indicates whether or not to allow empty refer access. Valid values are on and off. Default value is on.

referType String

Refer type of the refer config. Valid values are block and allow. Default value is block.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.