1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cdn
  5. DomainNew
Alibaba Cloud v3.43.1 published on Monday, Sep 11, 2023 by Pulumi

alicloud.cdn.DomainNew

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.43.1 published on Monday, Sep 11, 2023 by Pulumi

    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

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var domainName = config.Get("domainName") ?? "mycdndomain.alicloud-provider.cn";
        var @default = new AliCloud.Cdn.DomainNew("default", new()
        {
            Scope = "overseas",
            DomainName = domainName,
            CdnType = "web",
            Sources = new[]
            {
                new AliCloud.Cdn.Inputs.DomainNewSourceArgs
                {
                    Type = "ipaddr",
                    Content = "1.1.1.1",
                    Priority = 20,
                    Port = 80,
                    Weight = 15,
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cdn"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		domainName := "mycdndomain.alicloud-provider.cn"
    		if param := cfg.Get("domainName"); param != "" {
    			domainName = param
    		}
    		_, err := cdn.NewDomainNew(ctx, "default", &cdn.DomainNewArgs{
    			Scope:      pulumi.String("overseas"),
    			DomainName: pulumi.String(domainName),
    			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
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
            final var config = ctx.config();
            final var domainName = config.get("domainName").orElse("mycdndomain.alicloud-provider.cn");
            var default_ = new DomainNew("default", DomainNewArgs.builder()        
                .scope("overseas")
                .domainName(domainName)
                .cdnType("web")
                .sources(DomainNewSourceArgs.builder()
                    .type("ipaddr")
                    .content("1.1.1.1")
                    .priority(20)
                    .port(80)
                    .weight(15)
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    domain_name = config.get("domainName")
    if domain_name is None:
        domain_name = "mycdndomain.alicloud-provider.cn"
    default = alicloud.cdn.DomainNew("default",
        scope="overseas",
        domain_name=domain_name,
        cdn_type="web",
        sources=[alicloud.cdn.DomainNewSourceArgs(
            type="ipaddr",
            content="1.1.1.1",
            priority=20,
            port=80,
            weight=15,
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const domainName = config.get("domainName") || "mycdndomain.alicloud-provider.cn";
    const _default = new alicloud.cdn.DomainNew("default", {
        scope: "overseas",
        domainName: domainName,
        cdnType: "web",
        sources: [{
            type: "ipaddr",
            content: "1.1.1.1",
            priority: 20,
            port: 80,
            weight: 15,
        }],
    });
    
    configuration:
      domainName:
        type: string
        default: mycdndomain.alicloud-provider.cn
    resources:
      default:
        type: alicloud:cdn:DomainNew
        properties:
          scope: overseas
          domainName: ${domainName}
          cdnType: web
          sources:
            - type: ipaddr
              content: 1.1.1.1
              priority: 20
              port: 80
              weight: 15
    

    Create DomainNew Resource

    new DomainNew(name: string, args: DomainNewArgs, opts?: CustomResourceOptions);
    @overload
    def DomainNew(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  cdn_type: Optional[str] = None,
                  certificate_config: Optional[DomainNewCertificateConfigArgs] = None,
                  check_url: Optional[str] = None,
                  domain_name: Optional[str] = None,
                  resource_group_id: Optional[str] = None,
                  scope: Optional[str] = None,
                  sources: Optional[Sequence[DomainNewSourceArgs]] = None,
                  tags: Optional[Mapping[str, Any]] = None)
    @overload
    def DomainNew(resource_name: str,
                  args: DomainNewArgs,
                  opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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:

    CdnType string

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

    DomainName string

    Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

    Sources List<Pulumi.AliCloud.Cdn.Inputs.DomainNewSource>

    The source address list of the accelerated domain. Defaults to null. See sources below.

    CertificateConfig Pulumi.AliCloud.Cdn.Inputs.DomainNewCertificateConfig

    Certificate configuration. See certificate_config below.

    CheckUrl string

    Health test URL.

    ResourceGroupId string

    The ID of the resource group.

    Scope string

    Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:

    • domestic: Mainland China only.
    • overseas: Global (excluding Mainland China).
    • global: global. The default value is domestic.
    Tags Dictionary<string, object>

    The tag of the resource.

    CdnType string

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

    DomainName string

    Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

    Sources []DomainNewSourceArgs

    The source address list of the accelerated domain. Defaults to null. See sources below.

    CertificateConfig DomainNewCertificateConfigArgs

    Certificate configuration. See certificate_config below.

    CheckUrl string

    Health test URL.

    ResourceGroupId string

    The ID of the resource group.

    Scope string

    Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:

    • domestic: Mainland China only.
    • overseas: Global (excluding Mainland China).
    • global: global. The default value is domestic.
    Tags map[string]interface{}

    The tag of the resource.

    cdnType String

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

    domainName String

    Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

    sources List<DomainNewSource>

    The source address list of the accelerated domain. Defaults to null. See sources below.

    certificateConfig DomainNewCertificateConfig

    Certificate configuration. See certificate_config below.

    checkUrl String

    Health test URL.

    resourceGroupId String

    The ID of the resource group.

    scope String

    Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:

    • domestic: Mainland China only.
    • overseas: Global (excluding Mainland China).
    • global: global. The default value is domestic.
    tags Map<String,Object>

    The tag of the resource.

    cdnType string

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

    domainName string

    Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

    sources DomainNewSource[]

    The source address list of the accelerated domain. Defaults to null. See sources below.

    certificateConfig DomainNewCertificateConfig

    Certificate configuration. See certificate_config below.

    checkUrl string

    Health test URL.

    resourceGroupId string

    The ID of the resource group.

    scope string

    Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:

    • domestic: Mainland China only.
    • overseas: Global (excluding Mainland China).
    • global: global. The default value is domestic.
    tags {[key: string]: any}

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

    The source address list of the accelerated domain. Defaults to null. See sources below.

    certificate_config DomainNewCertificateConfigArgs

    Certificate configuration. See certificate_config below.

    check_url str

    Health test URL.

    resource_group_id str

    The ID of the resource group.

    scope str

    Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:

    • domestic: Mainland China only.
    • overseas: Global (excluding Mainland China).
    • global: global. The default value is domestic.
    tags Mapping[str, Any]

    The tag of the resource.

    cdnType String

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

    domainName String

    Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

    sources List<Property Map>

    The source address list of the accelerated domain. Defaults to null. See sources below.

    certificateConfig Property Map

    Certificate configuration. See certificate_config below.

    checkUrl String

    Health test URL.

    resourceGroupId String

    The ID of the resource group.

    scope String

    Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:

    • domestic: Mainland China only.
    • overseas: Global (excluding Mainland China).
    • global: global. The default value is domestic.
    tags Map<Any>

    The tag of the resource.

    Outputs

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

    Cname string

    The CNAME domain name corresponding to the accelerated domain name.

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    The status of the resource.

    Cname string

    The CNAME domain name corresponding to the accelerated domain name.

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    The status of the resource.

    cname String

    The CNAME domain name corresponding to the accelerated domain name.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    The status of the resource.

    cname string

    The CNAME domain name corresponding to the accelerated domain name.

    id string

    The provider-assigned unique ID for this managed resource.

    status string

    The status of the resource.

    cname str

    The CNAME domain name corresponding to the accelerated domain name.

    id str

    The provider-assigned unique ID for this managed resource.

    status str

    The status of the resource.

    cname String

    The CNAME domain name corresponding to the accelerated domain name.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    The status of the resource.

    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, Any]] = 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.
    The following state arguments are supported:
    CdnType string

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

    CertificateConfig Pulumi.AliCloud.Cdn.Inputs.DomainNewCertificateConfig

    Certificate configuration. See certificate_config below.

    CheckUrl string

    Health test URL.

    Cname string

    The CNAME domain name corresponding to the accelerated domain name.

    DomainName string

    Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

    ResourceGroupId string

    The ID of the resource group.

    Scope string

    Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:

    • domestic: Mainland China only.
    • overseas: Global (excluding Mainland China).
    • global: global. The default value is domestic.
    Sources List<Pulumi.AliCloud.Cdn.Inputs.DomainNewSource>

    The source address list of the accelerated domain. Defaults to null. See sources below.

    Status string

    The status of the resource.

    Tags Dictionary<string, object>

    The tag of the resource.

    CdnType string

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

    CertificateConfig DomainNewCertificateConfigArgs

    Certificate configuration. See certificate_config below.

    CheckUrl string

    Health test URL.

    Cname string

    The CNAME domain name corresponding to the accelerated domain name.

    DomainName string

    Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

    ResourceGroupId string

    The ID of the resource group.

    Scope string

    Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:

    • domestic: Mainland China only.
    • overseas: Global (excluding Mainland China).
    • global: global. The default value is domestic.
    Sources []DomainNewSourceArgs

    The source address list of the accelerated domain. Defaults to null. See sources below.

    Status string

    The status of the resource.

    Tags map[string]interface{}

    The tag of the resource.

    cdnType String

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

    certificateConfig DomainNewCertificateConfig

    Certificate configuration. See certificate_config below.

    checkUrl String

    Health test URL.

    cname String

    The CNAME domain name corresponding to the accelerated domain name.

    domainName String

    Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

    resourceGroupId String

    The ID of the resource group.

    scope String

    Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:

    • domestic: Mainland China only.
    • overseas: Global (excluding Mainland China).
    • global: global. The default value is domestic.
    sources List<DomainNewSource>

    The source address list of the accelerated domain. Defaults to null. See sources below.

    status String

    The status of the resource.

    tags Map<String,Object>

    The tag of the resource.

    cdnType string

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

    certificateConfig DomainNewCertificateConfig

    Certificate configuration. See certificate_config below.

    checkUrl string

    Health test URL.

    cname string

    The CNAME domain name corresponding to the accelerated domain name.

    domainName string

    Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

    resourceGroupId string

    The ID of the resource group.

    scope string

    Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:

    • domestic: Mainland China only.
    • overseas: Global (excluding Mainland China).
    • global: global. The default value is domestic.
    sources DomainNewSource[]

    The source address list of the accelerated domain. Defaults to null. See sources below.

    status string

    The status of the resource.

    tags {[key: string]: any}

    The tag of the resource.

    cdn_type str

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

    certificate_config DomainNewCertificateConfigArgs

    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_id str

    The ID of the resource group.

    scope str

    Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. Value:

    • domestic: Mainland China only.
    • overseas: Global (excluding Mainland China).
    • global: global. The default value is domestic.
    sources Sequence[DomainNewSourceArgs]

    The source address list of the accelerated domain. Defaults to null. See sources below.

    status str

    The status of the resource.

    tags Mapping[str, Any]

    The tag of the resource.

    cdnType String

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

    certificateConfig Property Map

    Certificate configuration. See certificate_config below.

    checkUrl String

    Health test URL.

    cname String

    The CNAME domain name corresponding to the accelerated domain name.

    domainName String

    Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

    resourceGroupId String

    The ID of the resource group.

    scope String

    Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users. 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.

    tags Map<Any>

    The tag of the resource.

    Supporting Types

    DomainNewCertificateConfig, DomainNewCertificateConfigArgs

    CertId string

    The ID of the certificate. It takes effect only when CertType = cas.

    CertName string

    Certificate name, only flyer names are supported.

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

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

    ForceSet string

    The force set of the security certificate.

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

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

    ServerCertificateStatus string

    Whether the HTTPS certificate is enabled. Value:

    • on(default): enabled.
    • off : not enabled.
    CertId string

    The ID of the certificate. It takes effect only when CertType = cas.

    CertName string

    Certificate name, only flyer names are supported.

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

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

    ForceSet string

    The force set of the security certificate.

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

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

    ServerCertificateStatus string

    Whether the HTTPS certificate is enabled. Value:

    • on(default): enabled.
    • off : not enabled.
    certId String

    The ID of the certificate. It takes effect only when CertType = cas.

    certName String

    Certificate name, only flyer names are supported.

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

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

    forceSet String

    The force set of the security certificate.

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

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

    serverCertificateStatus String

    Whether the HTTPS certificate is enabled. Value:

    • on(default): enabled.
    • off : not enabled.
    certId string

    The ID of the certificate. It takes effect only when CertType = cas.

    certName string

    Certificate name, only flyer names are supported.

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

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

    forceSet string

    The force set of the security certificate.

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

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

    serverCertificateStatus string

    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_status str

    Whether the HTTPS certificate is enabled. Value:

    • on(default): enabled.
    • off : not enabled.
    certId String

    The ID of the certificate. It takes effect only when CertType = cas.

    certName String

    Certificate name, only flyer names are supported.

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

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

    forceSet String

    The force set of the security certificate.

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

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

    serverCertificateStatus String

    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 and 80. Default value is 80.

    Priority int

    Priority of the source. Valid values are 0 and 100. Default value is 20.

    Type string

    The type of the source. Valid values are ipaddr, domain and oss.

    Weight int

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

    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 and 80. Default value is 80.

    Priority int

    Priority of the source. Valid values are 0 and 100. Default value is 20.

    Type string

    The type of the source. Valid values are ipaddr, domain and oss.

    Weight int

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

    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 and 80. Default value is 80.

    priority Integer

    Priority of the source. Valid values are 0 and 100. Default value is 20.

    type String

    The type of the source. Valid values are ipaddr, domain and oss.

    weight Integer

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

    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 and 80. Default value is 80.

    priority number

    Priority of the source. Valid values are 0 and 100. Default value is 20.

    type string

    The type of the source. Valid values are ipaddr, domain and oss.

    weight number

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

    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 and 80. Default value is 80.

    priority int

    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 int

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

    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 and 80. Default value is 80.

    priority Number

    Priority of the source. Valid values are 0 and 100. Default value is 20.

    type String

    The type of the source. Valid values are ipaddr, domain and oss.

    weight Number

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

    Import

    CDN Domain can be imported using the id, e.g.

     $ pulumi import alicloud:cdn/domainNew:DomainNew example <id>
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the alicloud Terraform Provider.

    alicloud logo
    Alibaba Cloud v3.43.1 published on Monday, Sep 11, 2023 by Pulumi