This page documents the language specification for the alicloud package. If you're looking for help working with the inputs, outputs, or functions of alicloud resources in a Pulumi program, please see the resource documentation for examples and API reference.

cdn

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-alicloud repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-alicloud repo.

class pulumi_alicloud.cdn.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, __name__=None, __opts__=None)

Create a Domain resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[dict] auth_config: The auth config of the accelerated domain. :param pulumi.Input[list] cache_configs: The cache configs of the accelerated domain. :param pulumi.Input[str] cdn_type: Cdn type of the accelerated domain. Valid values are web, download, video, liveStream. :param pulumi.Input[str] domain_name: 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. :param pulumi.Input[list] http_header_configs: The http header configs of the accelerated domain. :param pulumi.Input[str] optimize_enable: 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. :param pulumi.Input[dict] page404_config: The error page config of the accelerated domain. :param pulumi.Input[str] page_compress_enable: Page Compress config of the accelerated domain. Valid values are on and off. Default value is off. :param pulumi.Input[dict] parameter_filter_config: The parameter filter config of the accelerated domain. :param pulumi.Input[str] range_enable: Range Source config of the accelerated domain. Valid values are on and off. Default value is off. :param pulumi.Input[dict] refer_config: The refer config of the accelerated domain. :param pulumi.Input[str] scope: 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 . :param pulumi.Input[float] source_port: 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. :param pulumi.Input[str] source_type: Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream. :param pulumi.Input[list] sources: 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. :param pulumi.Input[str] video_seek_enable: Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

The auth_config object supports the following:

  • auth_type (pulumi.Input[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 (pulumi.Input[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 (pulumi.Input[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 (pulumi.Input[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.

The cache_configs object supports the following:

  • cacheContent (pulumi.Input[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.

  • cacheId (pulumi.Input[str])

  • cacheType (pulumi.Input[str]) - Cache type of the cache config. Valid values are suffix and path.

  • ttl (pulumi.Input[float]) - Cache time of the cache config.

  • weight (pulumi.Input[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.

The certificate_config object supports the following:

  • private_key (pulumi.Input[str]) - The SSL private key. This is required if server_certificate_status is on

  • server_certificate (pulumi.Input[str]) - The SSL server certificate string. This is required if server_certificate_status is on

  • serverCertificateStatus (pulumi.Input[str]) - This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

The http_header_configs object supports the following:

  • headerId (pulumi.Input[str])

  • headerKey (pulumi.Input[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.

  • headerValue (pulumi.Input[str]) - Header value of the http header.

The page404_config object supports the following:

  • customPageUrl (pulumi.Input[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 (pulumi.Input[str])

  • pageType (pulumi.Input[str]) - Page type of the error page. Valid values are default, charity, other. Default value is default.

The parameter_filter_config object supports the following:

  • enable (pulumi.Input[str]) - This parameter indicates whether or not the parameter_filter_config is enable. Valid values are on and off. Default value is off.

  • hashKeyArgs (pulumi.Input[list]) - Reserved parameters of parameter_filter_config. It’s a list of string and consists of at most 10 items.

The refer_config object supports the following:

  • allowEmpty (pulumi.Input[str]) - This parameter indicates whether or not to allow empty refer access. Valid values are on and off. Default value is on.

  • referLists (pulumi.Input[list]) - A list of domain names of the refer config.

  • referType (pulumi.Input[str]) - Refer type of the refer config. Valid values are block and allow. Default value is block.

auth_config: pulumi.Output[dict] = None

The auth config of the accelerated domain.

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

cache_configs: pulumi.Output[list] = None

The cache configs of the accelerated domain.

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

  • cacheId (str)

  • cacheType (str) - Cache type of the cache config. Valid values are suffix and path.

  • ttl (float) - Cache time of the cache config.

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

cdn_type: pulumi.Output[str] = None

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

domain_name: pulumi.Output[str] = None

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: pulumi.Output[list] = None

The http header configs of the accelerated domain.

  • headerId (str)

  • headerKey (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.

  • headerValue (str) - Header value of the http header.

optimize_enable: pulumi.Output[str] = None

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.

page404_config: pulumi.Output[dict] = None

The error page config of the accelerated domain.

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

page_compress_enable: pulumi.Output[str] = None

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

parameter_filter_config: pulumi.Output[dict] = None

The parameter filter config of the accelerated domain.

  • 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) - Reserved parameters of parameter_filter_config. It’s a list of string and consists of at most 10 items.

range_enable: pulumi.Output[str] = None

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

refer_config: pulumi.Output[dict] = None

The refer config of the accelerated domain.

  • allowEmpty (str) - This parameter indicates whether or not to allow empty refer access. Valid values are on and off. Default value is on.

  • referLists (list) - A list of domain names of the refer config.

  • referType (str) - Refer type of the refer config. Valid values are block and allow. Default value is block.

scope: pulumi.Output[str] = None

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: pulumi.Output[float] = None

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.

source_type: pulumi.Output[str] = None

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

sources: pulumi.Output[list] = None

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.

video_seek_enable: pulumi.Output[str] = None

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

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)

Get an existing Domain resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • auth_config (pulumi.Input[dict]) – The auth config of the accelerated domain.

  • cache_configs (pulumi.Input[list]) – The cache configs of the accelerated domain.

  • cdn_type (pulumi.Input[str]) – Cdn type of the accelerated domain. Valid values are web, download, video, liveStream.

  • domain_name (pulumi.Input[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 (pulumi.Input[list]) – The http header configs of the accelerated domain.

  • optimize_enable (pulumi.Input[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.

  • page404_config (pulumi.Input[dict]) – The error page config of the accelerated domain.

  • page_compress_enable (pulumi.Input[str]) – Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.

  • parameter_filter_config (pulumi.Input[dict]) – The parameter filter config of the accelerated domain.

  • range_enable (pulumi.Input[str]) – Range Source config of the accelerated domain. Valid values are on and off. Default value is off.

  • refer_config (pulumi.Input[dict]) – The refer config of the accelerated domain.

  • scope (pulumi.Input[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 (pulumi.Input[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.

  • source_type (pulumi.Input[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.

  • sources (pulumi.Input[list]) – 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.

  • video_seek_enable (pulumi.Input[str]) – Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.

The auth_config object supports the following:

  • auth_type (pulumi.Input[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 (pulumi.Input[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 (pulumi.Input[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 (pulumi.Input[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.

The cache_configs object supports the following:

  • cacheContent (pulumi.Input[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.

  • cacheId (pulumi.Input[str])

  • cacheType (pulumi.Input[str]) - Cache type of the cache config. Valid values are suffix and path.

  • ttl (pulumi.Input[float]) - Cache time of the cache config.

  • weight (pulumi.Input[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.

The certificate_config object supports the following:

  • private_key (pulumi.Input[str]) - The SSL private key. This is required if server_certificate_status is on

  • server_certificate (pulumi.Input[str]) - The SSL server certificate string. This is required if server_certificate_status is on

  • serverCertificateStatus (pulumi.Input[str]) - This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

The http_header_configs object supports the following:

  • headerId (pulumi.Input[str])

  • headerKey (pulumi.Input[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.

  • headerValue (pulumi.Input[str]) - Header value of the http header.

The page404_config object supports the following:

  • customPageUrl (pulumi.Input[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 (pulumi.Input[str])

  • pageType (pulumi.Input[str]) - Page type of the error page. Valid values are default, charity, other. Default value is default.

The parameter_filter_config object supports the following:

  • enable (pulumi.Input[str]) - This parameter indicates whether or not the parameter_filter_config is enable. Valid values are on and off. Default value is off.

  • hashKeyArgs (pulumi.Input[list]) - Reserved parameters of parameter_filter_config. It’s a list of string and consists of at most 10 items.

The refer_config object supports the following:

  • allowEmpty (pulumi.Input[str]) - This parameter indicates whether or not to allow empty refer access. Valid values are on and off. Default value is on.

  • referLists (pulumi.Input[list]) - A list of domain names of the refer config.

  • referType (pulumi.Input[str]) - Refer type of the refer config. Valid values are block and allow. Default value is block.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.cdn.DomainConfig(resource_name, opts=None, domain_name=None, function_args=None, function_name=None, __props__=None, __name__=None, __opts__=None)

Provides a CDN Accelerated Domain resource.

For information about domain config and how to use it, see Batch set config

NOTE: Available in v1.34.0+.

import pulumi
import pulumi_alicloud as alicloud

# Create a new Domain config.
domain = alicloud.cdn.DomainNew("domain",
    cdn_type="web",
    domain_name="tf-testacc%d.xiaozhu.com",
    scope="overseas",
    sources={
        "content": "1.1.1.1",
        "port": 80,
        "priority": "20",
        "type": "ipaddr",
        "weight": "15",
    })
config = alicloud.cdn.DomainConfig("config",
    domain_name=domain.domain_name,
    function_args=[{
        "argName": "ip_list",
        "argValue": "110.110.110.110",
    }],
    function_name="ip_allow_list_set")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • domain_name (pulumi.Input[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.

  • function_args (pulumi.Input[list]) – The args of the domain config.

  • function_name (pulumi.Input[str]) – The name of the domain config.

The function_args object supports the following:

  • argName (pulumi.Input[str]) - The name of arg.

  • argValue (pulumi.Input[str]) - The value of arg.

domain_name: pulumi.Output[str] = None

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.

function_args: pulumi.Output[list] = None

The args of the domain config.

  • argName (str) - The name of arg.

  • argValue (str) - The value of arg.

function_name: pulumi.Output[str] = None

The name of the domain config.

static get(resource_name, id, opts=None, domain_name=None, function_args=None, function_name=None)

Get an existing DomainConfig resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • domain_name (pulumi.Input[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.

  • function_args (pulumi.Input[list]) – The args of the domain config.

  • function_name (pulumi.Input[str]) – The name of the domain config.

The function_args object supports the following:

  • argName (pulumi.Input[str]) - The name of arg.

  • argValue (pulumi.Input[str]) - The value of arg.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.cdn.DomainNew(resource_name, opts=None, cdn_type=None, certificate_config=None, domain_name=None, resource_group_id=None, scope=None, sources=None, tags=None, __props__=None, __name__=None, __opts__=None)

Create a DomainNew resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] cdn_type: Cdn type of the accelerated domain. Valid values are web, download, video. :param pulumi.Input[dict] certificate_config: Certificate config of the accelerated domain. It’s a list and consist of at most 1 item. :param pulumi.Input[str] domain_name: 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. :param pulumi.Input[str] resource_group_id: Resource group ID. :param pulumi.Input[str] scope: 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 . :param pulumi.Input[dict] sources: The source address list of the accelerated domain. Defaults to null. See Block Sources. :param pulumi.Input[dict] tags: A mapping of tags to assign to the resource.

The certificate_config object supports the following:

  • certName (pulumi.Input[str]) - The SSL certificate name.

  • certType (pulumi.Input[str]) - The SSL certificate type, can be “upload”, “cas” and “free”.

  • forceSet (pulumi.Input[str]) - Set 1 to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set 0 to work the verification.

  • private_key (pulumi.Input[str]) - The SSL private key. This is required if server_certificate_status is on

  • server_certificate (pulumi.Input[str]) - The SSL server certificate string. This is required if server_certificate_status is on

  • serverCertificateStatus (pulumi.Input[str]) - This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

The sources object supports the following:

  • content (pulumi.Input[str]) - The adress of source. Valid values can be ip or doaminName. Each item’s content can not be repeated.

  • port (pulumi.Input[float]) - The port of source. Valid values are 443 and 80. Default value is 80.

  • priority (pulumi.Input[float]) - Priority of the source. Valid values are 0 and 100. Default value is 20.

  • type (pulumi.Input[str]) - The type of the source. Valid values are ipaddr, domain and oss.

  • weight (pulumi.Input[float]) - Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.

cdn_type: pulumi.Output[str] = None

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

certificate_config: pulumi.Output[dict] = None

Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.

  • certName (str) - The SSL certificate name.

  • certType (str) - The SSL certificate type, can be “upload”, “cas” and “free”.

  • forceSet (str) - Set 1 to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set 0 to work the verification.

  • 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

  • serverCertificateStatus (str) - This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

domain_name: pulumi.Output[str] = None

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.

resource_group_id: pulumi.Output[str] = None

Resource group ID.

scope: pulumi.Output[str] = None

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 .

sources: pulumi.Output[dict] = None

The source address list of the accelerated domain. Defaults to null. See Block Sources.

  • content (str) - The adress of source. Valid values can be ip or doaminName. Each item’s content can not be repeated.

  • port (float) - The port of source. Valid values are 443 and 80. Default value is 80.

  • priority (float) - Priority of the source. Valid values are 0 and 100. Default value is 20.

  • type (str) - The type of the source. Valid values are ipaddr, domain and oss.

  • weight (float) - Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.

tags: pulumi.Output[dict] = None

A mapping of tags to assign to the resource.

static get(resource_name, id, opts=None, cdn_type=None, certificate_config=None, domain_name=None, resource_group_id=None, scope=None, sources=None, tags=None)

Get an existing DomainNew resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • cdn_type (pulumi.Input[str]) – Cdn type of the accelerated domain. Valid values are web, download, video.

  • certificate_config (pulumi.Input[dict]) – Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.

  • domain_name (pulumi.Input[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.

  • resource_group_id (pulumi.Input[str]) – Resource group ID.

  • scope (pulumi.Input[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 .

  • sources (pulumi.Input[dict]) – The source address list of the accelerated domain. Defaults to null. See Block Sources.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

The certificate_config object supports the following:

  • certName (pulumi.Input[str]) - The SSL certificate name.

  • certType (pulumi.Input[str]) - The SSL certificate type, can be “upload”, “cas” and “free”.

  • forceSet (pulumi.Input[str]) - Set 1 to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set 0 to work the verification.

  • private_key (pulumi.Input[str]) - The SSL private key. This is required if server_certificate_status is on

  • server_certificate (pulumi.Input[str]) - The SSL server certificate string. This is required if server_certificate_status is on

  • serverCertificateStatus (pulumi.Input[str]) - This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

The sources object supports the following:

  • content (pulumi.Input[str]) - The adress of source. Valid values can be ip or doaminName. Each item’s content can not be repeated.

  • port (pulumi.Input[float]) - The port of source. Valid values are 443 and 80. Default value is 80.

  • priority (pulumi.Input[float]) - Priority of the source. Valid values are 0 and 100. Default value is 20.

  • type (pulumi.Input[str]) - The type of the source. Valid values are ipaddr, domain and oss.

  • weight (pulumi.Input[float]) - Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str