1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cdn
  5. DomainNew
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.cdn.DomainNew

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 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

    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=[alicloud.cdn.DomainNewSourceArgs(
            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.String(fmt.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, Any]] = 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.

    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", "any" },
        },
    });
    
    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.Map{
    		"string": pulumi.Any("any"),
    	},
    })
    
    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", "any"))
        .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": "any",
        })
    
    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: "any",
        },
    });
    
    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: any
    

    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>
    

    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.
    alicloud logo
    Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi