alicloud.cdn.DomainNew
Explore with Pulumi AI
Provides a CDN Domain resource. CDN domain name.
For information about CDN Domain and how to use it, see What is Domain.
NOTE: Available since v1.34.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const _default = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const defaultDomainNew = new alicloud.cdn.DomainNew("default", {
scope: "overseas",
domainName: `mycdndomain-${_default.result}.alicloud-provider.cn`,
cdnType: "web",
sources: [{
type: "ipaddr",
content: "1.1.1.1",
priority: 20,
port: 80,
weight: 15,
}],
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
min=10000,
max=99999)
default_domain_new = alicloud.cdn.DomainNew("default",
scope="overseas",
domain_name=f"mycdndomain-{default['result']}.alicloud-provider.cn",
cdn_type="web",
sources=[{
"type": "ipaddr",
"content": "1.1.1.1",
"priority": 20,
"port": 80,
"weight": 15,
}])
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cdn"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
_, err = cdn.NewDomainNew(ctx, "default", &cdn.DomainNewArgs{
Scope: pulumi.String("overseas"),
DomainName: pulumi.Sprintf("mycdndomain-%v.alicloud-provider.cn", _default.Result),
CdnType: pulumi.String("web"),
Sources: cdn.DomainNewSourceArray{
&cdn.DomainNewSourceArgs{
Type: pulumi.String("ipaddr"),
Content: pulumi.String("1.1.1.1"),
Priority: pulumi.Int(20),
Port: pulumi.Int(80),
Weight: pulumi.Int(15),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var @default = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var defaultDomainNew = new AliCloud.Cdn.DomainNew("default", new()
{
Scope = "overseas",
DomainName = $"mycdndomain-{@default.Result}.alicloud-provider.cn",
CdnType = "web",
Sources = new[]
{
new AliCloud.Cdn.Inputs.DomainNewSourceArgs
{
Type = "ipaddr",
Content = "1.1.1.1",
Priority = 20,
Port = 80,
Weight = 15,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.cdn.DomainNew;
import com.pulumi.alicloud.cdn.DomainNewArgs;
import com.pulumi.alicloud.cdn.inputs.DomainNewSourceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Integer("default", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
var defaultDomainNew = new DomainNew("defaultDomainNew", DomainNewArgs.builder()
.scope("overseas")
.domainName(String.format("mycdndomain-%s.alicloud-provider.cn", default_.result()))
.cdnType("web")
.sources(DomainNewSourceArgs.builder()
.type("ipaddr")
.content("1.1.1.1")
.priority(20)
.port(80)
.weight(15)
.build())
.build());
}
}
resources:
default:
type: random:integer
properties:
min: 10000
max: 99999
defaultDomainNew:
type: alicloud:cdn:DomainNew
name: default
properties:
scope: overseas
domainName: mycdndomain-${default.result}.alicloud-provider.cn
cdnType: web
sources:
- type: ipaddr
content: 1.1.1.1
priority: 20
port: 80
weight: 15
Create DomainNew Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DomainNew(name: string, args: DomainNewArgs, opts?: CustomResourceOptions);
@overload
def DomainNew(resource_name: str,
args: DomainNewArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DomainNew(resource_name: str,
opts: Optional[ResourceOptions] = None,
cdn_type: Optional[str] = None,
domain_name: Optional[str] = None,
sources: Optional[Sequence[DomainNewSourceArgs]] = None,
certificate_config: Optional[DomainNewCertificateConfigArgs] = None,
check_url: Optional[str] = None,
resource_group_id: Optional[str] = None,
scope: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewDomainNew(ctx *Context, name string, args DomainNewArgs, opts ...ResourceOption) (*DomainNew, error)
public DomainNew(string name, DomainNewArgs args, CustomResourceOptions? opts = null)
public DomainNew(String name, DomainNewArgs args)
public DomainNew(String name, DomainNewArgs args, CustomResourceOptions options)
type: alicloud:cdn:DomainNew
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DomainNewArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DomainNewArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DomainNewArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainNewArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DomainNewArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var domainNewResource = new AliCloud.Cdn.DomainNew("domainNewResource", new()
{
CdnType = "string",
DomainName = "string",
Sources = new[]
{
new AliCloud.Cdn.Inputs.DomainNewSourceArgs
{
Content = "string",
Port = 0,
Priority = 0,
Type = "string",
Weight = 0,
},
},
CertificateConfig = new AliCloud.Cdn.Inputs.DomainNewCertificateConfigArgs
{
CertId = "string",
CertName = "string",
CertRegion = "string",
CertType = "string",
ForceSet = "string",
PrivateKey = "string",
ServerCertificate = "string",
ServerCertificateStatus = "string",
},
CheckUrl = "string",
ResourceGroupId = "string",
Scope = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := cdn.NewDomainNew(ctx, "domainNewResource", &cdn.DomainNewArgs{
CdnType: pulumi.String("string"),
DomainName: pulumi.String("string"),
Sources: cdn.DomainNewSourceArray{
&cdn.DomainNewSourceArgs{
Content: pulumi.String("string"),
Port: pulumi.Int(0),
Priority: pulumi.Int(0),
Type: pulumi.String("string"),
Weight: pulumi.Int(0),
},
},
CertificateConfig: &cdn.DomainNewCertificateConfigArgs{
CertId: pulumi.String("string"),
CertName: pulumi.String("string"),
CertRegion: pulumi.String("string"),
CertType: pulumi.String("string"),
ForceSet: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
ServerCertificate: pulumi.String("string"),
ServerCertificateStatus: pulumi.String("string"),
},
CheckUrl: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
Scope: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var domainNewResource = new DomainNew("domainNewResource", DomainNewArgs.builder()
.cdnType("string")
.domainName("string")
.sources(DomainNewSourceArgs.builder()
.content("string")
.port(0)
.priority(0)
.type("string")
.weight(0)
.build())
.certificateConfig(DomainNewCertificateConfigArgs.builder()
.certId("string")
.certName("string")
.certRegion("string")
.certType("string")
.forceSet("string")
.privateKey("string")
.serverCertificate("string")
.serverCertificateStatus("string")
.build())
.checkUrl("string")
.resourceGroupId("string")
.scope("string")
.tags(Map.of("string", "string"))
.build());
domain_new_resource = alicloud.cdn.DomainNew("domainNewResource",
cdn_type="string",
domain_name="string",
sources=[alicloud.cdn.DomainNewSourceArgs(
content="string",
port=0,
priority=0,
type="string",
weight=0,
)],
certificate_config=alicloud.cdn.DomainNewCertificateConfigArgs(
cert_id="string",
cert_name="string",
cert_region="string",
cert_type="string",
force_set="string",
private_key="string",
server_certificate="string",
server_certificate_status="string",
),
check_url="string",
resource_group_id="string",
scope="string",
tags={
"string": "string",
})
const domainNewResource = new alicloud.cdn.DomainNew("domainNewResource", {
cdnType: "string",
domainName: "string",
sources: [{
content: "string",
port: 0,
priority: 0,
type: "string",
weight: 0,
}],
certificateConfig: {
certId: "string",
certName: "string",
certRegion: "string",
certType: "string",
forceSet: "string",
privateKey: "string",
serverCertificate: "string",
serverCertificateStatus: "string",
},
checkUrl: "string",
resourceGroupId: "string",
scope: "string",
tags: {
string: "string",
},
});
type: alicloud:cdn:DomainNew
properties:
cdnType: string
certificateConfig:
certId: string
certName: string
certRegion: string
certType: string
forceSet: string
privateKey: string
serverCertificate: string
serverCertificateStatus: string
checkUrl: string
domainName: string
resourceGroupId: string
scope: string
sources:
- content: string
port: 0
priority: 0
type: string
weight: 0
tags:
string: string
DomainNew Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DomainNew resource accepts the following input properties:
- Cdn
Type string - Cdn type of the accelerated domain. Valid values are
web
,download
,video
. - Domain
Name 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. - Sources
List<Pulumi.
Ali Cloud. Cdn. Inputs. Domain New Source> - The source address list of the accelerated domain. Defaults to null. See
sources
below. - Certificate
Config Pulumi.Ali Cloud. Cdn. Inputs. Domain New Certificate Config - Certificate configuration. See
certificate_config
below. - Check
Url string - Health test URL.
- Resource
Group stringId - The ID of the resource group.
- Scope string
- 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. Value:- domestic: Mainland China only.
- overseas: Global (excluding Mainland China).
- global: global. The default value is domestic.
- Dictionary<string, string>
- The tag of the resource.
- Cdn
Type string - Cdn type of the accelerated domain. Valid values are
web
,download
,video
. - Domain
Name 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. - Sources
[]Domain
New Source Args - The source address list of the accelerated domain. Defaults to null. See
sources
below. - Certificate
Config DomainNew Certificate Config Args - Certificate configuration. See
certificate_config
below. - Check
Url string - Health test URL.
- Resource
Group stringId - The ID of the resource group.
- Scope string
- 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. Value:- domestic: Mainland China only.
- overseas: Global (excluding Mainland China).
- global: global. The default value is domestic.
- map[string]string
- The tag of the resource.
- cdn
Type String - Cdn type of the accelerated domain. Valid values are
web
,download
,video
. - domain
Name 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. - sources
List<Domain
New Source> - The source address list of the accelerated domain. Defaults to null. See
sources
below. - certificate
Config DomainNew Certificate Config - Certificate configuration. See
certificate_config
below. - check
Url String - Health test URL.
- resource
Group StringId - The ID of the resource group.
- scope String
- 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. Value:- domestic: Mainland China only.
- overseas: Global (excluding Mainland China).
- global: global. The default value is domestic.
- Map<String,String>
- The tag of the resource.
- cdn
Type string - Cdn type of the accelerated domain. Valid values are
web
,download
,video
. - domain
Name 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. - sources
Domain
New Source[] - The source address list of the accelerated domain. Defaults to null. See
sources
below. - certificate
Config DomainNew Certificate Config - Certificate configuration. See
certificate_config
below. - check
Url string - Health test URL.
- resource
Group stringId - The ID of the resource group.
- scope string
- 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. Value:- domestic: Mainland China only.
- overseas: Global (excluding Mainland China).
- global: global. The default value is domestic.
- {[key: string]: string}
- The tag of the resource.
- cdn_
type str - Cdn type of the accelerated domain. Valid values are
web
,download
,video
. - 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. - sources
Sequence[Domain
New Source Args] - The source address list of the accelerated domain. Defaults to null. See
sources
below. - certificate_
config DomainNew Certificate Config Args - Certificate configuration. See
certificate_config
below. - check_
url str - Health test URL.
- resource_
group_ strid - The ID of the resource group.
- scope 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. Value:- domestic: Mainland China only.
- overseas: Global (excluding Mainland China).
- global: global. The default value is domestic.
- Mapping[str, str]
- The tag of the resource.
- cdn
Type String - Cdn type of the accelerated domain. Valid values are
web
,download
,video
. - domain
Name 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. - sources List<Property Map>
- The source address list of the accelerated domain. Defaults to null. See
sources
below. - certificate
Config Property Map - Certificate configuration. See
certificate_config
below. - check
Url String - Health test URL.
- resource
Group StringId - The ID of the resource group.
- scope String
- 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. Value:- domestic: Mainland China only.
- overseas: Global (excluding Mainland China).
- global: global. The default value is domestic.
- Map<String>
- The tag of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DomainNew resource produces the following output properties:
Look up Existing DomainNew Resource
Get an existing DomainNew 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?: DomainNewState, opts?: CustomResourceOptions): DomainNew
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cdn_type: Optional[str] = None,
certificate_config: Optional[DomainNewCertificateConfigArgs] = None,
check_url: Optional[str] = None,
cname: Optional[str] = None,
domain_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
scope: Optional[str] = None,
sources: Optional[Sequence[DomainNewSourceArgs]] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> DomainNew
func GetDomainNew(ctx *Context, name string, id IDInput, state *DomainNewState, opts ...ResourceOption) (*DomainNew, error)
public static DomainNew Get(string name, Input<string> id, DomainNewState? state, CustomResourceOptions? opts = null)
public static DomainNew get(String name, Output<String> id, DomainNewState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cdn
Type string - Cdn type of the accelerated domain. Valid values are
web
,download
,video
. - Certificate
Config Pulumi.Ali Cloud. Cdn. Inputs. Domain New Certificate Config - Certificate configuration. See
certificate_config
below. - Check
Url string - Health test URL.
- Cname string
- The CNAME domain name corresponding to the accelerated domain name.
- Domain
Name 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. - Resource
Group stringId - The ID of the resource group.
- Scope string
- 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. Value:- domestic: Mainland China only.
- overseas: Global (excluding Mainland China).
- global: global. The default value is domestic.
- Sources
List<Pulumi.
Ali Cloud. Cdn. Inputs. Domain New Source> - The source address list of the accelerated domain. Defaults to null. See
sources
below. - Status string
- The status of the resource.
- Dictionary<string, string>
- The tag of the resource.
- Cdn
Type string - Cdn type of the accelerated domain. Valid values are
web
,download
,video
. - Certificate
Config DomainNew Certificate Config Args - Certificate configuration. See
certificate_config
below. - Check
Url string - Health test URL.
- Cname string
- The CNAME domain name corresponding to the accelerated domain name.
- Domain
Name 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. - Resource
Group stringId - The ID of the resource group.
- Scope string
- 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. Value:- domestic: Mainland China only.
- overseas: Global (excluding Mainland China).
- global: global. The default value is domestic.
- Sources
[]Domain
New Source Args - The source address list of the accelerated domain. Defaults to null. See
sources
below. - Status string
- The status of the resource.
- map[string]string
- The tag of the resource.
- cdn
Type String - Cdn type of the accelerated domain. Valid values are
web
,download
,video
. - certificate
Config DomainNew Certificate Config - Certificate configuration. See
certificate_config
below. - check
Url String - Health test URL.
- cname String
- The CNAME domain name corresponding to the accelerated domain name.
- domain
Name 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. - resource
Group StringId - The ID of the resource group.
- scope String
- 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. Value:- domestic: Mainland China only.
- overseas: Global (excluding Mainland China).
- global: global. The default value is domestic.
- sources
List<Domain
New Source> - The source address list of the accelerated domain. Defaults to null. See
sources
below. - status String
- The status of the resource.
- Map<String,String>
- The tag of the resource.
- cdn
Type string - Cdn type of the accelerated domain. Valid values are
web
,download
,video
. - certificate
Config DomainNew Certificate Config - Certificate configuration. See
certificate_config
below. - check
Url string - Health test URL.
- cname string
- The CNAME domain name corresponding to the accelerated domain name.
- domain
Name 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. - resource
Group stringId - The ID of the resource group.
- scope string
- 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. Value:- domestic: Mainland China only.
- overseas: Global (excluding Mainland China).
- global: global. The default value is domestic.
- sources
Domain
New Source[] - The source address list of the accelerated domain. Defaults to null. See
sources
below. - status string
- The status of the resource.
- {[key: string]: string}
- The tag of the resource.
- cdn_
type str - Cdn type of the accelerated domain. Valid values are
web
,download
,video
. - certificate_
config DomainNew Certificate Config Args - Certificate configuration. See
certificate_config
below. - check_
url str - Health test URL.
- cname str
- The CNAME domain name corresponding to the accelerated domain name.
- 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. - resource_
group_ strid - The ID of the resource group.
- scope 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. Value:- domestic: Mainland China only.
- overseas: Global (excluding Mainland China).
- global: global. The default value is domestic.
- sources
Sequence[Domain
New Source Args] - The source address list of the accelerated domain. Defaults to null. See
sources
below. - status str
- The status of the resource.
- Mapping[str, str]
- The tag of the resource.
- cdn
Type String - Cdn type of the accelerated domain. Valid values are
web
,download
,video
. - certificate
Config Property Map - Certificate configuration. See
certificate_config
below. - check
Url String - Health test URL.
- cname String
- The CNAME domain name corresponding to the accelerated domain name.
- domain
Name 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. - resource
Group StringId - The ID of the resource group.
- scope String
- 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. Value:- domestic: Mainland China only.
- overseas: Global (excluding Mainland China).
- global: global. The default value is domestic.
- sources List<Property Map>
- The source address list of the accelerated domain. Defaults to null. See
sources
below. - status String
- The status of the resource.
- Map<String>
- The tag of the resource.
Supporting Types
DomainNewCertificateConfig, DomainNewCertificateConfigArgs
- Cert
Id string - The ID of the certificate. It takes effect only when CertType = cas.
- Cert
Name string - Certificate name, only flyer names are supported.
- Cert
Region string - The certificate region, which takes effect only when CertType = cas, supports cn-hangzhou (domestic) and ap-southeast-1 (International), and is cn-hangzhou by default.
- Cert
Type string Certificate type. Value:
- upload: upload certificate.
- cas: Cloud Shield certificate.
- free: free certificate.
If the certificate type is cas, PrivateKey does not need to pass parameters.
- Force
Set string - The force set of the security certificate.
- Private
Key string - The content of the private key. If the certificate is not enabled, you do not need to enter the content of the private key. To configure the certificate, enter the content of the private key.
- Server
Certificate string - The content of the security certificate. If the certificate is not enabled, you do not need to enter the content of the security certificate. Please enter the content of the certificate to configure the certificate.
- Server
Certificate stringStatus - Whether the HTTPS certificate is enabled. Value:
- on(default): enabled.
- off : not enabled.
- Cert
Id string - The ID of the certificate. It takes effect only when CertType = cas.
- Cert
Name string - Certificate name, only flyer names are supported.
- Cert
Region string - The certificate region, which takes effect only when CertType = cas, supports cn-hangzhou (domestic) and ap-southeast-1 (International), and is cn-hangzhou by default.
- Cert
Type string Certificate type. Value:
- upload: upload certificate.
- cas: Cloud Shield certificate.
- free: free certificate.
If the certificate type is cas, PrivateKey does not need to pass parameters.
- Force
Set string - The force set of the security certificate.
- Private
Key string - The content of the private key. If the certificate is not enabled, you do not need to enter the content of the private key. To configure the certificate, enter the content of the private key.
- Server
Certificate string - The content of the security certificate. If the certificate is not enabled, you do not need to enter the content of the security certificate. Please enter the content of the certificate to configure the certificate.
- Server
Certificate stringStatus - Whether the HTTPS certificate is enabled. Value:
- on(default): enabled.
- off : not enabled.
- cert
Id String - The ID of the certificate. It takes effect only when CertType = cas.
- cert
Name String - Certificate name, only flyer names are supported.
- cert
Region String - The certificate region, which takes effect only when CertType = cas, supports cn-hangzhou (domestic) and ap-southeast-1 (International), and is cn-hangzhou by default.
- cert
Type String Certificate type. Value:
- upload: upload certificate.
- cas: Cloud Shield certificate.
- free: free certificate.
If the certificate type is cas, PrivateKey does not need to pass parameters.
- force
Set String - The force set of the security certificate.
- private
Key String - The content of the private key. If the certificate is not enabled, you do not need to enter the content of the private key. To configure the certificate, enter the content of the private key.
- server
Certificate String - The content of the security certificate. If the certificate is not enabled, you do not need to enter the content of the security certificate. Please enter the content of the certificate to configure the certificate.
- server
Certificate StringStatus - Whether the HTTPS certificate is enabled. Value:
- on(default): enabled.
- off : not enabled.
- cert
Id string - The ID of the certificate. It takes effect only when CertType = cas.
- cert
Name string - Certificate name, only flyer names are supported.
- cert
Region string - The certificate region, which takes effect only when CertType = cas, supports cn-hangzhou (domestic) and ap-southeast-1 (International), and is cn-hangzhou by default.
- cert
Type string Certificate type. Value:
- upload: upload certificate.
- cas: Cloud Shield certificate.
- free: free certificate.
If the certificate type is cas, PrivateKey does not need to pass parameters.
- force
Set string - The force set of the security certificate.
- private
Key string - The content of the private key. If the certificate is not enabled, you do not need to enter the content of the private key. To configure the certificate, enter the content of the private key.
- server
Certificate string - The content of the security certificate. If the certificate is not enabled, you do not need to enter the content of the security certificate. Please enter the content of the certificate to configure the certificate.
- server
Certificate stringStatus - Whether the HTTPS certificate is enabled. Value:
- on(default): enabled.
- off : not enabled.
- cert_
id str - The ID of the certificate. It takes effect only when CertType = cas.
- cert_
name str - Certificate name, only flyer names are supported.
- cert_
region str - The certificate region, which takes effect only when CertType = cas, supports cn-hangzhou (domestic) and ap-southeast-1 (International), and is cn-hangzhou by default.
- cert_
type str Certificate type. Value:
- upload: upload certificate.
- cas: Cloud Shield certificate.
- free: free certificate.
If the certificate type is cas, PrivateKey does not need to pass parameters.
- force_
set str - The force set of the security certificate.
- private_
key str - The content of the private key. If the certificate is not enabled, you do not need to enter the content of the private key. To configure the certificate, enter the content of the private key.
- server_
certificate str - The content of the security certificate. If the certificate is not enabled, you do not need to enter the content of the security certificate. Please enter the content of the certificate to configure the certificate.
- server_
certificate_ strstatus - Whether the HTTPS certificate is enabled. Value:
- on(default): enabled.
- off : not enabled.
- cert
Id String - The ID of the certificate. It takes effect only when CertType = cas.
- cert
Name String - Certificate name, only flyer names are supported.
- cert
Region String - The certificate region, which takes effect only when CertType = cas, supports cn-hangzhou (domestic) and ap-southeast-1 (International), and is cn-hangzhou by default.
- cert
Type String Certificate type. Value:
- upload: upload certificate.
- cas: Cloud Shield certificate.
- free: free certificate.
If the certificate type is cas, PrivateKey does not need to pass parameters.
- force
Set String - The force set of the security certificate.
- private
Key String - The content of the private key. If the certificate is not enabled, you do not need to enter the content of the private key. To configure the certificate, enter the content of the private key.
- server
Certificate String - The content of the security certificate. If the certificate is not enabled, you do not need to enter the content of the security certificate. Please enter the content of the certificate to configure the certificate.
- server
Certificate StringStatus - Whether the HTTPS certificate is enabled. Value:
- on(default): enabled.
- off : not enabled.
DomainNewSource, DomainNewSourceArgs
- Content string
- The address of source. Valid values can be ip or doaminName. Each item's
content
can not be repeated. - Port int
- The port of source. Valid values are
443
and80
. Default value is80
. - Priority int
- Priority of the source. Valid values are
0
and100
. Default value is20
. - Type string
- The type of the source. Valid values are
ipaddr
,domain
andoss
. - Weight int
- Weight of the source. Valid values are from
0
to100
. Default value is10
, but if type isipaddr
, the value can only be10
. .
- Content string
- The address of source. Valid values can be ip or doaminName. Each item's
content
can not be repeated. - Port int
- The port of source. Valid values are
443
and80
. Default value is80
. - Priority int
- Priority of the source. Valid values are
0
and100
. Default value is20
. - Type string
- The type of the source. Valid values are
ipaddr
,domain
andoss
. - Weight int
- Weight of the source. Valid values are from
0
to100
. Default value is10
, but if type isipaddr
, the value can only be10
. .
- content String
- The address of source. Valid values can be ip or doaminName. Each item's
content
can not be repeated. - port Integer
- The port of source. Valid values are
443
and80
. Default value is80
. - priority Integer
- Priority of the source. Valid values are
0
and100
. Default value is20
. - type String
- The type of the source. Valid values are
ipaddr
,domain
andoss
. - weight Integer
- Weight of the source. Valid values are from
0
to100
. Default value is10
, but if type isipaddr
, the value can only be10
. .
- content string
- The address of source. Valid values can be ip or doaminName. Each item's
content
can not be repeated. - port number
- The port of source. Valid values are
443
and80
. Default value is80
. - priority number
- Priority of the source. Valid values are
0
and100
. Default value is20
. - type string
- The type of the source. Valid values are
ipaddr
,domain
andoss
. - weight number
- Weight of the source. Valid values are from
0
to100
. Default value is10
, but if type isipaddr
, the value can only be10
. .
- content str
- The address of source. Valid values can be ip or doaminName. Each item's
content
can not be repeated. - port int
- The port of source. Valid values are
443
and80
. Default value is80
. - priority int
- Priority of the source. Valid values are
0
and100
. Default value is20
. - type str
- The type of the source. Valid values are
ipaddr
,domain
andoss
. - weight int
- Weight of the source. Valid values are from
0
to100
. Default value is10
, but if type isipaddr
, the value can only be10
. .
- content String
- The address of source. Valid values can be ip or doaminName. Each item's
content
can not be repeated. - port Number
- The port of source. Valid values are
443
and80
. Default value is80
. - priority Number
- Priority of the source. Valid values are
0
and100
. Default value is20
. - type String
- The type of the source. Valid values are
ipaddr
,domain
andoss
. - weight Number
- Weight of the source. Valid values are from
0
to100
. Default value is10
, but if type isipaddr
, the value can only be10
. .
Import
CDN Domain can be imported using the id, e.g.
$ pulumi import alicloud:cdn/domainNew:DomainNew example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.