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.shand.telare 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 areonandoff. Default value isoff. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value ison. :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 areonandoff. Default value isoff. :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 areonandoff. Default value isoff. :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 aredomestic,overseas,global. Default value isdomestic. 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 are80and443. Default value is80. You must use80when thesource_typeisoss. :param pulumi.Input[str] source_type: Source type of the accelerated domain. Valid values areipaddr,domain,oss. You must set this parameter whencdn_typevalue is notliveStream. :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 whencdn_typevalue is notliveStream. :param pulumi.Input[str] video_seek_enable: Video Seek config of the accelerated domain. Valid values areonandoff. Default value isoff.The auth_config object supports the following:
auth_type(pulumi.Input[str]) - Auth type of the auth config. Valid values areno_auth,type_a,type_bandtype_c. Default value isno_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 is1800. It’s value is valid only when theauth_typeistype_bortype_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 thecache_typeispath. When thecache_typeissuffix, 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 aresuffixandpath.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 is1. 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 ifserver_certificate_statusisonserver_certificate(pulumi.Input[str]) - The SSL server certificate string. This is required ifserver_certificate_statusisonserverCertificateStatus(pulumi.Input[str]) - This parameter indicates whether or not enable https. Valid values areonandoff. Default value ison.
The http_header_configs object supports the following:
headerId(pulumi.Input[str])headerKey(pulumi.Input[str]) - Header key of the http header. Valid values areContent-Type,Cache-Control,Content-Disposition,Content-Language,Expires,Access-Control-Allow-Origin,Access-Control-Allow-MethodsandAccess-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 behttp://promotion.alicdn.com/help/oss/error.htmlwhenpage_typevalue ischarityand It can not be set whenpage_typevalue isdefault.errorCode(pulumi.Input[str])pageType(pulumi.Input[str]) - Page type of the error page. Valid values aredefault,charity,other. Default value isdefault.
The parameter_filter_config object supports the following:
enable(pulumi.Input[str]) - This parameter indicates whether or not theparameter_filter_configis enable. Valid values areonandoff. Default value isoff.hashKeyArgs(pulumi.Input[list]) - Reserved parameters ofparameter_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 areonandoff. Default value ison.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 areblockandallow. Default value isblock.
auth_config: pulumi.Output[dict] = None¶The auth config of the accelerated domain.
auth_type(str) - Auth type of the auth config. Valid values areno_auth,type_a,type_bandtype_c. Default value isno_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 is1800. It’s value is valid only when theauth_typeistype_bortype_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 thecache_typeispath. When thecache_typeissuffix, 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 aresuffixandpath.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 is1. 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
.shand.telare 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 areContent-Type,Cache-Control,Content-Disposition,Content-Language,Expires,Access-Control-Allow-Origin,Access-Control-Allow-MethodsandAccess-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
onandoff. Default value isoff. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value ison.
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 behttp://promotion.alicdn.com/help/oss/error.htmlwhenpage_typevalue ischarityand It can not be set whenpage_typevalue isdefault.errorCode(str)pageType(str) - Page type of the error page. Valid values aredefault,charity,other. Default value isdefault.
page_compress_enable: pulumi.Output[str] = None¶Page Compress config of the accelerated domain. Valid values are
onandoff. Default value isoff.
parameter_filter_config: pulumi.Output[dict] = None¶The parameter filter config of the accelerated domain.
enable(str) - This parameter indicates whether or not theparameter_filter_configis enable. Valid values areonandoff. Default value isoff.hashKeyArgs(list) - Reserved parameters ofparameter_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
onandoff. Default value isoff.
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 areonandoff. Default value ison.referLists(list) - A list of domain names of the refer config.referType(str) - Refer type of the refer config. Valid values areblockandallow. Default value isblock.
scope: pulumi.Output[str] = None¶Scope of the accelerated domain. Valid values are
domestic,overseas,global. Default value isdomestic. 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
80and443. Default value is80. You must use80when thesource_typeisoss.
source_type: pulumi.Output[str] = None¶Source type of the accelerated domain. Valid values are
ipaddr,domain,oss. You must set this parameter whencdn_typevalue is notliveStream.
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_typevalue is notliveStream.
video_seek_enable: pulumi.Output[str] = None¶Video Seek config of the accelerated domain. Valid values are
onandoff. Default value isoff.
- 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
.shand.telare 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
onandoff. Default value isoff. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value ison.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
onandoff. Default value isoff.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
onandoff. Default value isoff.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 isdomestic. 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
80and443. Default value is80. You must use80when thesource_typeisoss.source_type (pulumi.Input[str]) – Source type of the accelerated domain. Valid values are
ipaddr,domain,oss. You must set this parameter whencdn_typevalue is notliveStream.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_typevalue is notliveStream.video_seek_enable (pulumi.Input[str]) – Video Seek config of the accelerated domain. Valid values are
onandoff. Default value isoff.
The auth_config object supports the following:
auth_type(pulumi.Input[str]) - Auth type of the auth config. Valid values areno_auth,type_a,type_bandtype_c. Default value isno_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 is1800. It’s value is valid only when theauth_typeistype_bortype_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 thecache_typeispath. When thecache_typeissuffix, 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 aresuffixandpath.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 is1. 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 ifserver_certificate_statusisonserver_certificate(pulumi.Input[str]) - The SSL server certificate string. This is required ifserver_certificate_statusisonserverCertificateStatus(pulumi.Input[str]) - This parameter indicates whether or not enable https. Valid values areonandoff. Default value ison.
The http_header_configs object supports the following:
headerId(pulumi.Input[str])headerKey(pulumi.Input[str]) - Header key of the http header. Valid values areContent-Type,Cache-Control,Content-Disposition,Content-Language,Expires,Access-Control-Allow-Origin,Access-Control-Allow-MethodsandAccess-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 behttp://promotion.alicdn.com/help/oss/error.htmlwhenpage_typevalue ischarityand It can not be set whenpage_typevalue isdefault.errorCode(pulumi.Input[str])pageType(pulumi.Input[str]) - Page type of the error page. Valid values aredefault,charity,other. Default value isdefault.
The parameter_filter_config object supports the following:
enable(pulumi.Input[str]) - This parameter indicates whether or not theparameter_filter_configis enable. Valid values areonandoff. Default value isoff.hashKeyArgs(pulumi.Input[list]) - Reserved parameters ofparameter_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 areonandoff. Default value ison.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 areblockandallow. Default value isblock.
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
.shand.telare 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
.shand.telare 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
.shand.telare 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.shand.telare not supported. :param pulumi.Input[str] resource_group_id: Resource group ID. :param pulumi.Input[str] scope: Scope of the accelerated domain. Valid values aredomestic,overseas,global. Default value isdomestic. 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]) - Set1to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set0to work the verification.private_key(pulumi.Input[str]) - The SSL private key. This is required ifserver_certificate_statusisonserver_certificate(pulumi.Input[str]) - The SSL server certificate string. This is required ifserver_certificate_statusisonserverCertificateStatus(pulumi.Input[str]) - This parameter indicates whether or not enable https. Valid values areonandoff. Default value ison.
The sources object supports the following:
content(pulumi.Input[str]) - The adress of source. Valid values can be ip or doaminName. Each item’scontentcan not be repeated.port(pulumi.Input[float]) - The port of source. Valid values are443and80. Default value is80.priority(pulumi.Input[float]) - Priority of the source. Valid values are0and100. Default value is20.type(pulumi.Input[str]) - The type of the source. Valid values areipaddr,domainandoss.weight(pulumi.Input[float]) - Weight of the source. Valid values are from0to100. Default value is10, but if type isipaddr, the value can only be10.
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) - Set1to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set0to work the verification.private_key(str) - The SSL private key. This is required ifserver_certificate_statusisonserver_certificate(str) - The SSL server certificate string. This is required ifserver_certificate_statusisonserverCertificateStatus(str) - This parameter indicates whether or not enable https. Valid values areonandoff. Default value ison.
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
.shand.telare 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 isdomestic. 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’scontentcan not be repeated.port(float) - The port of source. Valid values are443and80. Default value is80.priority(float) - Priority of the source. Valid values are0and100. Default value is20.type(str) - The type of the source. Valid values areipaddr,domainandoss.weight(float) - Weight of the source. Valid values are from0to100. Default value is10, but if type isipaddr, the value can only be10.
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
.shand.telare 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 isdomestic. 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]) - Set1to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set0to work the verification.private_key(pulumi.Input[str]) - The SSL private key. This is required ifserver_certificate_statusisonserver_certificate(pulumi.Input[str]) - The SSL server certificate string. This is required ifserver_certificate_statusisonserverCertificateStatus(pulumi.Input[str]) - This parameter indicates whether or not enable https. Valid values areonandoff. Default value ison.
The sources object supports the following:
content(pulumi.Input[str]) - The adress of source. Valid values can be ip or doaminName. Each item’scontentcan not be repeated.port(pulumi.Input[float]) - The port of source. Valid values are443and80. Default value is80.priority(pulumi.Input[float]) - Priority of the source. Valid values are0and100. Default value is20.type(pulumi.Input[str]) - The type of the source. Valid values areipaddr,domainandoss.weight(pulumi.Input[float]) - Weight of the source. Valid values are from0to100. Default value is10, but if type isipaddr, the value can only be10.
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