Domain

Create a Domain Resource

new Domain(name: string, args: DomainArgs, opts?: CustomResourceOptions);
def Domain(resource_name, opts=None, auth_config=None, block_ips=None, cache_configs=None, cdn_type=None, certificate_config=None, domain_name=None, http_header_configs=None, optimize_enable=None, page404_config=None, page_compress_enable=None, parameter_filter_config=None, range_enable=None, refer_config=None, scope=None, source_port=None, source_type=None, sources=None, video_seek_enable=None, __props__=None);
func NewDomain(ctx *Context, name string, args DomainArgs, opts ...ResourceOption) (*Domain, error)
public Domain(string name, DomainArgs args, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

Domain Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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 DomainAuthConfig

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 []DomainCacheConfig

The cache configs of the accelerated domain.

Deprecated: Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

CertificateConfig DomainCertificateConfig

Deprecated: Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

HttpHeaderConfigs []DomainHttpHeaderConfig

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 DomainPage404Config

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 DomainParameterFilterConfig

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 DomainReferConfig

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 DomainAuthConfig

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 DomainCacheConfig[]

The cache configs of the accelerated domain.

Deprecated: Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

certificateConfig DomainCertificateConfig

Deprecated: Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

httpHeaderConfigs DomainHttpHeaderConfig[]

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 DomainPage404Config

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 DomainParameterFilterConfig

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 DomainReferConfig

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 Dict[DomainAuthConfig]

The auth config of the accelerated domain.

Deprecated: Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

block_ips List[str]

Deprecated: Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cache_configs List[DomainCacheConfig]

The cache configs of the accelerated domain.

Deprecated: Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

certificate_config Dict[DomainCertificateConfig]

Deprecated: Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

http_header_configs List[DomainHttpHeaderConfig]

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 Dict[DomainPage404Config]

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 Dict[DomainParameterFilterConfig]

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 Dict[DomainReferConfig]

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 float

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 List[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.

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 str
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
static get(resource_name, id, opts=None, auth_config=None, block_ips=None, cache_configs=None, cdn_type=None, certificate_config=None, domain_name=None, http_header_configs=None, optimize_enable=None, page404_config=None, page_compress_enable=None, parameter_filter_config=None, range_enable=None, refer_config=None, scope=None, source_port=None, source_type=None, sources=None, video_seek_enable=None, __props__=None);
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)
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.

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 DomainAuthConfig

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 []DomainCacheConfig

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 DomainCertificateConfig

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 []DomainHttpHeaderConfig

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 DomainPage404Config

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 DomainParameterFilterConfig

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 DomainReferConfig

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 DomainAuthConfig

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 DomainCacheConfig[]

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 DomainCertificateConfig

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 DomainHttpHeaderConfig[]

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 DomainPage404Config

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 DomainParameterFilterConfig

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 DomainReferConfig

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 Dict[DomainAuthConfig]

The auth config of the accelerated domain.

Deprecated: Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

block_ips List[str]

Deprecated: Use alicloud_cdn_domain_config configuration function_name and function_args arguments instead.

cache_configs List[DomainCacheConfig]

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 Dict[DomainCertificateConfig]

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 List[DomainHttpHeaderConfig]

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 Dict[DomainPage404Config]

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 Dict[DomainParameterFilterConfig]

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 Dict[DomainReferConfig]

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 float

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 List[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.

Supporting Types

DomainAuthConfig

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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

masterKey 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.

slaveKey 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 float

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

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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

cacheContent 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.

cacheType str

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

ttl float

Cache time of the cache config.

cacheId str
weight float

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

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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

serverCertificateStatus str

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

server_certificate str

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

DomainHttpHeaderConfig

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

HeaderKey string

Header key of the http header. Valid values are Content-Type, Cache-Control, Content-Disposition, Content-Language,Expires, 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-Language,Expires, 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-Language,Expires, Access-Control-Allow-Origin, Access-Control-Allow-Methods and Access-Control-Max-Age.

headerValue string

Header value of the http header.

headerId string
headerKey str

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

headerValue str

Header value of the http header.

headerId str

DomainPage404Config

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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

errorCode str
pageType str

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

DomainParameterFilterConfig

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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

hashKeyArgs List[str]

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

DomainReferConfig

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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 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[str]

A list of domain names of the refer config.

allowEmpty str

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

referType str

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.