volcengine.cdn.CdnDomain
Explore with Pulumi AI
Provides a resource to manage cdn domain
Example Usage
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var fooCdnCertificate = new Volcengine.Cdn.CdnCertificate("fooCdnCertificate", new()
    {
        Certificate = "",
        PrivateKey = "",
        Desc = "tftest",
        Source = "cdn_cert_hosting",
    });
    var fooCdnDomain = new Volcengine.Cdn.CdnDomain("fooCdnDomain", new()
    {
        Domain = "tftest.byte-test.com",
        ServiceType = "web",
        Tags = new[]
        {
            new Volcengine.Cdn.Inputs.CdnDomainTagArgs
            {
                Key = "tfkey1",
                Value = "tfvalue1",
            },
            new Volcengine.Cdn.Inputs.CdnDomainTagArgs
            {
                Key = "tfkey2",
                Value = "tfvalue2",
            },
        },
        DomainConfig = fooCdnCertificate.Id.Apply(id => JsonSerializer.Serialize(new Dictionary<string, object?>
        {
            ["OriginProtocol"] = "https",
            ["Origin"] = new[]
            {
                new Dictionary<string, object?>
                {
                    ["OriginAction"] = new Dictionary<string, object?>
                    {
                        ["OriginLines"] = new[]
                        {
                            new Dictionary<string, object?>
                            {
                                ["Address"] = "1.1.1.1",
                                ["HttpPort"] = "80",
                                ["HttpsPort"] = "443",
                                ["InstanceType"] = "ip",
                                ["OriginType"] = "primary",
                                ["PrivateBucketAccess"] = false,
                                ["Weight"] = "2",
                            },
                        },
                    },
                },
            },
            ["HTTPS"] = new Dictionary<string, object?>
            {
                ["CertInfo"] = new Dictionary<string, object?>
                {
                    ["CertId"] = id,
                },
                ["DisableHttp"] = false,
                ["HTTP2"] = true,
                ["Switch"] = true,
                ["Ocsp"] = false,
                ["TlsVersion"] = new[]
                {
                    "tlsv1.1",
                    "tlsv1.2",
                },
            },
        })),
    });
});
package main
import (
	"encoding/json"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cdn"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooCdnCertificate, err := cdn.NewCdnCertificate(ctx, "fooCdnCertificate", &cdn.CdnCertificateArgs{
			Certificate: pulumi.String(""),
			PrivateKey:  pulumi.String(""),
			Desc:        pulumi.String("tftest"),
			Source:      pulumi.String("cdn_cert_hosting"),
		})
		if err != nil {
			return err
		}
		_, err = cdn.NewCdnDomain(ctx, "fooCdnDomain", &cdn.CdnDomainArgs{
			Domain:      pulumi.String("tftest.byte-test.com"),
			ServiceType: pulumi.String("web"),
			Tags: cdn.CdnDomainTagArray{
				&cdn.CdnDomainTagArgs{
					Key:   pulumi.String("tfkey1"),
					Value: pulumi.String("tfvalue1"),
				},
				&cdn.CdnDomainTagArgs{
					Key:   pulumi.String("tfkey2"),
					Value: pulumi.String("tfvalue2"),
				},
			},
			DomainConfig: fooCdnCertificate.ID().ApplyT(func(id string) (pulumi.String, error) {
				var _zero pulumi.String
				tmpJSON0, err := json.Marshal(map[string]interface{}{
					"OriginProtocol": "https",
					"Origin": []map[string]interface{}{
						map[string]interface{}{
							"OriginAction": map[string]interface{}{
								"OriginLines": []map[string]interface{}{
									map[string]interface{}{
										"Address":             "1.1.1.1",
										"HttpPort":            "80",
										"HttpsPort":           "443",
										"InstanceType":        "ip",
										"OriginType":          "primary",
										"PrivateBucketAccess": false,
										"Weight":              "2",
									},
								},
							},
						},
					},
					"HTTPS": map[string]interface{}{
						"CertInfo": map[string]interface{}{
							"CertId": id,
						},
						"DisableHttp": false,
						"HTTP2":       true,
						"Switch":      true,
						"Ocsp":        false,
						"TlsVersion": []string{
							"tlsv1.1",
							"tlsv1.2",
						},
					},
				})
				if err != nil {
					return _zero, err
				}
				json0 := string(tmpJSON0)
				return pulumi.String(json0), nil
			}).(pulumi.StringOutput),
		})
		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.volcengine.cdn.CdnCertificate;
import com.pulumi.volcengine.cdn.CdnCertificateArgs;
import com.pulumi.volcengine.cdn.CdnDomain;
import com.pulumi.volcengine.cdn.CdnDomainArgs;
import com.pulumi.volcengine.cdn.inputs.CdnDomainTagArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 fooCdnCertificate = new CdnCertificate("fooCdnCertificate", CdnCertificateArgs.builder()        
            .certificate("")
            .privateKey("")
            .desc("tftest")
            .source("cdn_cert_hosting")
            .build());
        var fooCdnDomain = new CdnDomain("fooCdnDomain", CdnDomainArgs.builder()        
            .domain("tftest.byte-test.com")
            .serviceType("web")
            .tags(            
                CdnDomainTagArgs.builder()
                    .key("tfkey1")
                    .value("tfvalue1")
                    .build(),
                CdnDomainTagArgs.builder()
                    .key("tfkey2")
                    .value("tfvalue2")
                    .build())
            .domainConfig(fooCdnCertificate.id().applyValue(id -> serializeJson(
                jsonObject(
                    jsonProperty("OriginProtocol", "https"),
                    jsonProperty("Origin", jsonArray(jsonObject(
                        jsonProperty("OriginAction", jsonObject(
                            jsonProperty("OriginLines", jsonArray(jsonObject(
                                jsonProperty("Address", "1.1.1.1"),
                                jsonProperty("HttpPort", "80"),
                                jsonProperty("HttpsPort", "443"),
                                jsonProperty("InstanceType", "ip"),
                                jsonProperty("OriginType", "primary"),
                                jsonProperty("PrivateBucketAccess", false),
                                jsonProperty("Weight", "2")
                            )))
                        ))
                    ))),
                    jsonProperty("HTTPS", jsonObject(
                        jsonProperty("CertInfo", jsonObject(
                            jsonProperty("CertId", id)
                        )),
                        jsonProperty("DisableHttp", false),
                        jsonProperty("HTTP2", true),
                        jsonProperty("Switch", true),
                        jsonProperty("Ocsp", false),
                        jsonProperty("TlsVersion", jsonArray(
                            "tlsv1.1", 
                            "tlsv1.2"
                        ))
                    ))
                ))))
            .build());
    }
}
import pulumi
import json
import pulumi_volcengine as volcengine
foo_cdn_certificate = volcengine.cdn.CdnCertificate("fooCdnCertificate",
    certificate="",
    private_key="",
    desc="tftest",
    source="cdn_cert_hosting")
foo_cdn_domain = volcengine.cdn.CdnDomain("fooCdnDomain",
    domain="tftest.byte-test.com",
    service_type="web",
    tags=[
        volcengine.cdn.CdnDomainTagArgs(
            key="tfkey1",
            value="tfvalue1",
        ),
        volcengine.cdn.CdnDomainTagArgs(
            key="tfkey2",
            value="tfvalue2",
        ),
    ],
    domain_config=foo_cdn_certificate.id.apply(lambda id: json.dumps({
        "OriginProtocol": "https",
        "Origin": [{
            "OriginAction": {
                "OriginLines": [{
                    "Address": "1.1.1.1",
                    "HttpPort": "80",
                    "HttpsPort": "443",
                    "InstanceType": "ip",
                    "OriginType": "primary",
                    "PrivateBucketAccess": False,
                    "Weight": "2",
                }],
            },
        }],
        "HTTPS": {
            "CertInfo": {
                "CertId": id,
            },
            "DisableHttp": False,
            "HTTP2": True,
            "Switch": True,
            "Ocsp": False,
            "TlsVersion": [
                "tlsv1.1",
                "tlsv1.2",
            ],
        },
    })))
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const fooCdnCertificate = new volcengine.cdn.CdnCertificate("fooCdnCertificate", {
    certificate: "",
    privateKey: "",
    desc: "tftest",
    source: "cdn_cert_hosting",
});
const fooCdnDomain = new volcengine.cdn.CdnDomain("fooCdnDomain", {
    domain: "tftest.byte-test.com",
    serviceType: "web",
    tags: [
        {
            key: "tfkey1",
            value: "tfvalue1",
        },
        {
            key: "tfkey2",
            value: "tfvalue2",
        },
    ],
    domainConfig: fooCdnCertificate.id.apply(id => JSON.stringify({
        OriginProtocol: "https",
        Origin: [{
            OriginAction: {
                OriginLines: [{
                    Address: "1.1.1.1",
                    HttpPort: "80",
                    HttpsPort: "443",
                    InstanceType: "ip",
                    OriginType: "primary",
                    PrivateBucketAccess: false,
                    Weight: "2",
                }],
            },
        }],
        HTTPS: {
            CertInfo: {
                CertId: id,
            },
            DisableHttp: false,
            HTTP2: true,
            Switch: true,
            Ocsp: false,
            TlsVersion: [
                "tlsv1.1",
                "tlsv1.2",
            ],
        },
    })),
});
resources:
  fooCdnCertificate:
    type: volcengine:cdn:CdnCertificate
    properties:
      certificate:
      privateKey:
      desc: tftest
      source: cdn_cert_hosting
  fooCdnDomain:
    type: volcengine:cdn:CdnDomain
    properties:
      domain: tftest.byte-test.com
      serviceType: web
      tags:
        - key: tfkey1
          value: tfvalue1
        - key: tfkey2
          value: tfvalue2
      domainConfig:
        fn::toJSON:
          OriginProtocol: https
          Origin:
            - OriginAction:
                OriginLines:
                  - Address: 1.1.1.1
                    HttpPort: '80'
                    HttpsPort: '443'
                    InstanceType: ip
                    OriginType: primary
                    PrivateBucketAccess: false
                    Weight: '2'
          HTTPS:
            CertInfo:
              CertId: ${fooCdnCertificate.id}
            DisableHttp: false
            HTTP2: true
            Switch: true
            Ocsp: false
            TlsVersion:
              - tlsv1.1
              - tlsv1.2
Create CdnDomain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CdnDomain(name: string, args: CdnDomainArgs, opts?: CustomResourceOptions);@overload
def CdnDomain(resource_name: str,
              args: CdnDomainArgs,
              opts: Optional[ResourceOptions] = None)
@overload
def CdnDomain(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              domain: Optional[str] = None,
              domain_config: Optional[str] = None,
              service_type: Optional[str] = None,
              project: Optional[str] = None,
              service_region: Optional[str] = None,
              shared_cname: Optional[CdnDomainSharedCnameArgs] = None,
              tags: Optional[Sequence[CdnDomainTagArgs]] = None)func NewCdnDomain(ctx *Context, name string, args CdnDomainArgs, opts ...ResourceOption) (*CdnDomain, error)public CdnDomain(string name, CdnDomainArgs args, CustomResourceOptions? opts = null)
public CdnDomain(String name, CdnDomainArgs args)
public CdnDomain(String name, CdnDomainArgs args, CustomResourceOptions options)
type: volcengine:cdn:CdnDomain
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 CdnDomainArgs
- 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 CdnDomainArgs
- 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 CdnDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdnDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CdnDomainArgs
- 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 cdnDomainResource = new Volcengine.Cdn.CdnDomain("cdnDomainResource", new()
{
    Domain = "string",
    DomainConfig = "string",
    ServiceType = "string",
    Project = "string",
    ServiceRegion = "string",
    SharedCname = new Volcengine.Cdn.Inputs.CdnDomainSharedCnameArgs
    {
        Cname = "string",
        Switch = false,
    },
    Tags = new[]
    {
        new Volcengine.Cdn.Inputs.CdnDomainTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
});
example, err := cdn.NewCdnDomain(ctx, "cdnDomainResource", &cdn.CdnDomainArgs{
	Domain:        pulumi.String("string"),
	DomainConfig:  pulumi.String("string"),
	ServiceType:   pulumi.String("string"),
	Project:       pulumi.String("string"),
	ServiceRegion: pulumi.String("string"),
	SharedCname: &cdn.CdnDomainSharedCnameArgs{
		Cname:  pulumi.String("string"),
		Switch: pulumi.Bool(false),
	},
	Tags: cdn.CdnDomainTagArray{
		&cdn.CdnDomainTagArgs{
			Key:   pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
})
var cdnDomainResource = new CdnDomain("cdnDomainResource", CdnDomainArgs.builder()
    .domain("string")
    .domainConfig("string")
    .serviceType("string")
    .project("string")
    .serviceRegion("string")
    .sharedCname(CdnDomainSharedCnameArgs.builder()
        .cname("string")
        .switch_(false)
        .build())
    .tags(CdnDomainTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .build());
cdn_domain_resource = volcengine.cdn.CdnDomain("cdnDomainResource",
    domain="string",
    domain_config="string",
    service_type="string",
    project="string",
    service_region="string",
    shared_cname={
        "cname": "string",
        "switch": False,
    },
    tags=[{
        "key": "string",
        "value": "string",
    }])
const cdnDomainResource = new volcengine.cdn.CdnDomain("cdnDomainResource", {
    domain: "string",
    domainConfig: "string",
    serviceType: "string",
    project: "string",
    serviceRegion: "string",
    sharedCname: {
        cname: "string",
        "switch": false,
    },
    tags: [{
        key: "string",
        value: "string",
    }],
});
type: volcengine:cdn:CdnDomain
properties:
    domain: string
    domainConfig: string
    project: string
    serviceRegion: string
    serviceType: string
    sharedCname:
        cname: string
        switch: false
    tags:
        - key: string
          value: string
CdnDomain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CdnDomain resource accepts the following input properties:
- Domain string
- You need to add a domain. The main account can add up to 200 accelerated domains.
- DomainConfig string
- Accelerate domain configuration. Please convert the configuration module structure into json and pass it into a string. You must specify the Origin module. The OriginProtocol parameter, OriginHost parameter, and other domain configuration modules are optional.
- ServiceType string
- The business type of the domain name is indicated by this parameter. The possible values are: download: for file downloads.web: for web pages.video: for audio and video on demand.
- Project string
- The project to which this domain name belongs. Default is default.
- ServiceRegion string
- Indicates the acceleration area. The parameter can take the following values: chinese_mainland: Indicates mainland China.global: Indicates global.outside_chinese_mainland: Indicates global (excluding mainland China).
- 
CdnDomain Shared Cname 
- Configuration for sharing CNAME.
- 
List<CdnDomain Tag> 
- Indicate the tags you have set for this domain name. You can set up to 10 tags.
- Domain string
- You need to add a domain. The main account can add up to 200 accelerated domains.
- DomainConfig string
- Accelerate domain configuration. Please convert the configuration module structure into json and pass it into a string. You must specify the Origin module. The OriginProtocol parameter, OriginHost parameter, and other domain configuration modules are optional.
- ServiceType string
- The business type of the domain name is indicated by this parameter. The possible values are: download: for file downloads.web: for web pages.video: for audio and video on demand.
- Project string
- The project to which this domain name belongs. Default is default.
- ServiceRegion string
- Indicates the acceleration area. The parameter can take the following values: chinese_mainland: Indicates mainland China.global: Indicates global.outside_chinese_mainland: Indicates global (excluding mainland China).
- 
CdnDomain Shared Cname Args 
- Configuration for sharing CNAME.
- 
[]CdnDomain Tag Args 
- Indicate the tags you have set for this domain name. You can set up to 10 tags.
- domain String
- You need to add a domain. The main account can add up to 200 accelerated domains.
- domainConfig String
- Accelerate domain configuration. Please convert the configuration module structure into json and pass it into a string. You must specify the Origin module. The OriginProtocol parameter, OriginHost parameter, and other domain configuration modules are optional.
- serviceType String
- The business type of the domain name is indicated by this parameter. The possible values are: download: for file downloads.web: for web pages.video: for audio and video on demand.
- project String
- The project to which this domain name belongs. Default is default.
- serviceRegion String
- Indicates the acceleration area. The parameter can take the following values: chinese_mainland: Indicates mainland China.global: Indicates global.outside_chinese_mainland: Indicates global (excluding mainland China).
- 
CdnDomain Shared Cname 
- Configuration for sharing CNAME.
- 
List<CdnDomain Tag> 
- Indicate the tags you have set for this domain name. You can set up to 10 tags.
- domain string
- You need to add a domain. The main account can add up to 200 accelerated domains.
- domainConfig string
- Accelerate domain configuration. Please convert the configuration module structure into json and pass it into a string. You must specify the Origin module. The OriginProtocol parameter, OriginHost parameter, and other domain configuration modules are optional.
- serviceType string
- The business type of the domain name is indicated by this parameter. The possible values are: download: for file downloads.web: for web pages.video: for audio and video on demand.
- project string
- The project to which this domain name belongs. Default is default.
- serviceRegion string
- Indicates the acceleration area. The parameter can take the following values: chinese_mainland: Indicates mainland China.global: Indicates global.outside_chinese_mainland: Indicates global (excluding mainland China).
- 
CdnDomain Shared Cname 
- Configuration for sharing CNAME.
- 
CdnDomain Tag[] 
- Indicate the tags you have set for this domain name. You can set up to 10 tags.
- domain str
- You need to add a domain. The main account can add up to 200 accelerated domains.
- domain_config str
- Accelerate domain configuration. Please convert the configuration module structure into json and pass it into a string. You must specify the Origin module. The OriginProtocol parameter, OriginHost parameter, and other domain configuration modules are optional.
- service_type str
- The business type of the domain name is indicated by this parameter. The possible values are: download: for file downloads.web: for web pages.video: for audio and video on demand.
- project str
- The project to which this domain name belongs. Default is default.
- service_region str
- Indicates the acceleration area. The parameter can take the following values: chinese_mainland: Indicates mainland China.global: Indicates global.outside_chinese_mainland: Indicates global (excluding mainland China).
- 
CdnDomain Shared Cname Args 
- Configuration for sharing CNAME.
- 
Sequence[CdnDomain Tag Args] 
- Indicate the tags you have set for this domain name. You can set up to 10 tags.
- domain String
- You need to add a domain. The main account can add up to 200 accelerated domains.
- domainConfig String
- Accelerate domain configuration. Please convert the configuration module structure into json and pass it into a string. You must specify the Origin module. The OriginProtocol parameter, OriginHost parameter, and other domain configuration modules are optional.
- serviceType String
- The business type of the domain name is indicated by this parameter. The possible values are: download: for file downloads.web: for web pages.video: for audio and video on demand.
- project String
- The project to which this domain name belongs. Default is default.
- serviceRegion String
- Indicates the acceleration area. The parameter can take the following values: chinese_mainland: Indicates mainland China.global: Indicates global.outside_chinese_mainland: Indicates global (excluding mainland China).
- Property Map
- Configuration for sharing CNAME.
- List<Property Map>
- Indicate the tags you have set for this domain name. You can set up to 10 tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the CdnDomain resource produces the following output properties:
Look up Existing CdnDomain Resource
Get an existing CdnDomain 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?: CdnDomainState, opts?: CustomResourceOptions): CdnDomain@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        domain: Optional[str] = None,
        domain_config: Optional[str] = None,
        project: Optional[str] = None,
        service_region: Optional[str] = None,
        service_type: Optional[str] = None,
        shared_cname: Optional[CdnDomainSharedCnameArgs] = None,
        status: Optional[str] = None,
        tags: Optional[Sequence[CdnDomainTagArgs]] = None) -> CdnDomainfunc GetCdnDomain(ctx *Context, name string, id IDInput, state *CdnDomainState, opts ...ResourceOption) (*CdnDomain, error)public static CdnDomain Get(string name, Input<string> id, CdnDomainState? state, CustomResourceOptions? opts = null)public static CdnDomain get(String name, Output<String> id, CdnDomainState 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.
- Domain string
- You need to add a domain. The main account can add up to 200 accelerated domains.
- DomainConfig string
- Accelerate domain configuration. Please convert the configuration module structure into json and pass it into a string. You must specify the Origin module. The OriginProtocol parameter, OriginHost parameter, and other domain configuration modules are optional.
- Project string
- The project to which this domain name belongs. Default is default.
- ServiceRegion string
- Indicates the acceleration area. The parameter can take the following values: chinese_mainland: Indicates mainland China.global: Indicates global.outside_chinese_mainland: Indicates global (excluding mainland China).
- ServiceType string
- The business type of the domain name is indicated by this parameter. The possible values are: download: for file downloads.web: for web pages.video: for audio and video on demand.
- 
CdnDomain Shared Cname 
- Configuration for sharing CNAME.
- Status string
- The status of the domain.
- 
List<CdnDomain Tag> 
- Indicate the tags you have set for this domain name. You can set up to 10 tags.
- Domain string
- You need to add a domain. The main account can add up to 200 accelerated domains.
- DomainConfig string
- Accelerate domain configuration. Please convert the configuration module structure into json and pass it into a string. You must specify the Origin module. The OriginProtocol parameter, OriginHost parameter, and other domain configuration modules are optional.
- Project string
- The project to which this domain name belongs. Default is default.
- ServiceRegion string
- Indicates the acceleration area. The parameter can take the following values: chinese_mainland: Indicates mainland China.global: Indicates global.outside_chinese_mainland: Indicates global (excluding mainland China).
- ServiceType string
- The business type of the domain name is indicated by this parameter. The possible values are: download: for file downloads.web: for web pages.video: for audio and video on demand.
- 
CdnDomain Shared Cname Args 
- Configuration for sharing CNAME.
- Status string
- The status of the domain.
- 
[]CdnDomain Tag Args 
- Indicate the tags you have set for this domain name. You can set up to 10 tags.
- domain String
- You need to add a domain. The main account can add up to 200 accelerated domains.
- domainConfig String
- Accelerate domain configuration. Please convert the configuration module structure into json and pass it into a string. You must specify the Origin module. The OriginProtocol parameter, OriginHost parameter, and other domain configuration modules are optional.
- project String
- The project to which this domain name belongs. Default is default.
- serviceRegion String
- Indicates the acceleration area. The parameter can take the following values: chinese_mainland: Indicates mainland China.global: Indicates global.outside_chinese_mainland: Indicates global (excluding mainland China).
- serviceType String
- The business type of the domain name is indicated by this parameter. The possible values are: download: for file downloads.web: for web pages.video: for audio and video on demand.
- 
CdnDomain Shared Cname 
- Configuration for sharing CNAME.
- status String
- The status of the domain.
- 
List<CdnDomain Tag> 
- Indicate the tags you have set for this domain name. You can set up to 10 tags.
- domain string
- You need to add a domain. The main account can add up to 200 accelerated domains.
- domainConfig string
- Accelerate domain configuration. Please convert the configuration module structure into json and pass it into a string. You must specify the Origin module. The OriginProtocol parameter, OriginHost parameter, and other domain configuration modules are optional.
- project string
- The project to which this domain name belongs. Default is default.
- serviceRegion string
- Indicates the acceleration area. The parameter can take the following values: chinese_mainland: Indicates mainland China.global: Indicates global.outside_chinese_mainland: Indicates global (excluding mainland China).
- serviceType string
- The business type of the domain name is indicated by this parameter. The possible values are: download: for file downloads.web: for web pages.video: for audio and video on demand.
- 
CdnDomain Shared Cname 
- Configuration for sharing CNAME.
- status string
- The status of the domain.
- 
CdnDomain Tag[] 
- Indicate the tags you have set for this domain name. You can set up to 10 tags.
- domain str
- You need to add a domain. The main account can add up to 200 accelerated domains.
- domain_config str
- Accelerate domain configuration. Please convert the configuration module structure into json and pass it into a string. You must specify the Origin module. The OriginProtocol parameter, OriginHost parameter, and other domain configuration modules are optional.
- project str
- The project to which this domain name belongs. Default is default.
- service_region str
- Indicates the acceleration area. The parameter can take the following values: chinese_mainland: Indicates mainland China.global: Indicates global.outside_chinese_mainland: Indicates global (excluding mainland China).
- service_type str
- The business type of the domain name is indicated by this parameter. The possible values are: download: for file downloads.web: for web pages.video: for audio and video on demand.
- 
CdnDomain Shared Cname Args 
- Configuration for sharing CNAME.
- status str
- The status of the domain.
- 
Sequence[CdnDomain Tag Args] 
- Indicate the tags you have set for this domain name. You can set up to 10 tags.
- domain String
- You need to add a domain. The main account can add up to 200 accelerated domains.
- domainConfig String
- Accelerate domain configuration. Please convert the configuration module structure into json and pass it into a string. You must specify the Origin module. The OriginProtocol parameter, OriginHost parameter, and other domain configuration modules are optional.
- project String
- The project to which this domain name belongs. Default is default.
- serviceRegion String
- Indicates the acceleration area. The parameter can take the following values: chinese_mainland: Indicates mainland China.global: Indicates global.outside_chinese_mainland: Indicates global (excluding mainland China).
- serviceType String
- The business type of the domain name is indicated by this parameter. The possible values are: download: for file downloads.web: for web pages.video: for audio and video on demand.
- Property Map
- Configuration for sharing CNAME.
- status String
- The status of the domain.
- List<Property Map>
- Indicate the tags you have set for this domain name. You can set up to 10 tags.
Supporting Types
CdnDomainSharedCname, CdnDomainSharedCnameArgs        
CdnDomainTag, CdnDomainTagArgs      
Import
CdnDomain can be imported using the domain, e.g.
 $ pulumi import volcengine:cdn/cdnDomain:CdnDomain default www.volcengine.com
Please note that when you execute destroy, we will first take the domain name offline and then delete it.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.