1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CssDomain
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.CssDomain

Explore with Pulumi AI

Provides a resource to create a css domain

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const domain = new tencentcloud.CssDomain("domain", {
    domainName: "iac-tf.cloud",
    domainType: 0,
    isDelayLive: 0,
    isMiniProgramLive: 0,
    playType: 1,
    verifyOwnerType: "dbCheck",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

domain = tencentcloud.CssDomain("domain",
    domain_name="iac-tf.cloud",
    domain_type=0,
    is_delay_live=0,
    is_mini_program_live=0,
    play_type=1,
    verify_owner_type="dbCheck")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.NewCssDomain(ctx, "domain", &tencentcloud.CssDomainArgs{
			DomainName:        pulumi.String("iac-tf.cloud"),
			DomainType:        pulumi.Float64(0),
			IsDelayLive:       pulumi.Float64(0),
			IsMiniProgramLive: pulumi.Float64(0),
			PlayType:          pulumi.Float64(1),
			VerifyOwnerType:   pulumi.String("dbCheck"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var domain = new Tencentcloud.CssDomain("domain", new()
    {
        DomainName = "iac-tf.cloud",
        DomainType = 0,
        IsDelayLive = 0,
        IsMiniProgramLive = 0,
        PlayType = 1,
        VerifyOwnerType = "dbCheck",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CssDomain;
import com.pulumi.tencentcloud.CssDomainArgs;
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 domain = new CssDomain("domain", CssDomainArgs.builder()
            .domainName("iac-tf.cloud")
            .domainType(0)
            .isDelayLive(0)
            .isMiniProgramLive(0)
            .playType(1)
            .verifyOwnerType("dbCheck")
            .build());

    }
}
Copy
resources:
  domain:
    type: tencentcloud:CssDomain
    properties:
      domainName: iac-tf.cloud
      domainType: 0
      isDelayLive: 0
      isMiniProgramLive: 0
      playType: 1
      verifyOwnerType: dbCheck
Copy

Create CssDomain Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CssDomain(name: string, args: CssDomainArgs, opts?: CustomResourceOptions);
@overload
def CssDomain(resource_name: str,
              args: CssDomainArgs,
              opts: Optional[ResourceOptions] = None)

@overload
def CssDomain(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              domain_name: Optional[str] = None,
              domain_type: Optional[float] = None,
              css_domain_id: Optional[str] = None,
              enable: Optional[bool] = None,
              is_delay_live: Optional[float] = None,
              is_mini_program_live: Optional[float] = None,
              play_type: Optional[float] = None,
              verify_owner_type: Optional[str] = None)
func NewCssDomain(ctx *Context, name string, args CssDomainArgs, opts ...ResourceOption) (*CssDomain, error)
public CssDomain(string name, CssDomainArgs args, CustomResourceOptions? opts = null)
public CssDomain(String name, CssDomainArgs args)
public CssDomain(String name, CssDomainArgs args, CustomResourceOptions options)
type: tencentcloud:CssDomain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CssDomainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CssDomainArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CssDomainArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CssDomainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CssDomainArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CssDomain 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 CssDomain resource accepts the following input properties:

DomainName This property is required. string
Domain Name.
DomainType This property is required. double
Domain type: 0: push stream. 1: playback.
CssDomainId string
ID of the resource.
Enable bool
Switch. true: enable the specified domain, false: disable the specified domain.
IsDelayLive double
Whether it is LCB: 0: LVB. 1: LCB. Default value is 0.
IsMiniProgramLive double
0: LVB. 1: LVB on Mini Program. Note: this field may return null, indicating that no valid values can be obtained. Default value is 0.
PlayType double
Play Type. This parameter is valid only if DomainType is 1. Available values: 1: in Mainland China. 2: global. 3: outside Mainland China. Default value is 1.
VerifyOwnerType string
Domain name attribution verification type. dnsCheck, fileCheck, dbCheck. The default is dbCheck.
DomainName This property is required. string
Domain Name.
DomainType This property is required. float64
Domain type: 0: push stream. 1: playback.
CssDomainId string
ID of the resource.
Enable bool
Switch. true: enable the specified domain, false: disable the specified domain.
IsDelayLive float64
Whether it is LCB: 0: LVB. 1: LCB. Default value is 0.
IsMiniProgramLive float64
0: LVB. 1: LVB on Mini Program. Note: this field may return null, indicating that no valid values can be obtained. Default value is 0.
PlayType float64
Play Type. This parameter is valid only if DomainType is 1. Available values: 1: in Mainland China. 2: global. 3: outside Mainland China. Default value is 1.
VerifyOwnerType string
Domain name attribution verification type. dnsCheck, fileCheck, dbCheck. The default is dbCheck.
domainName This property is required. String
Domain Name.
domainType This property is required. Double
Domain type: 0: push stream. 1: playback.
cssDomainId String
ID of the resource.
enable Boolean
Switch. true: enable the specified domain, false: disable the specified domain.
isDelayLive Double
Whether it is LCB: 0: LVB. 1: LCB. Default value is 0.
isMiniProgramLive Double
0: LVB. 1: LVB on Mini Program. Note: this field may return null, indicating that no valid values can be obtained. Default value is 0.
playType Double
Play Type. This parameter is valid only if DomainType is 1. Available values: 1: in Mainland China. 2: global. 3: outside Mainland China. Default value is 1.
verifyOwnerType String
Domain name attribution verification type. dnsCheck, fileCheck, dbCheck. The default is dbCheck.
domainName This property is required. string
Domain Name.
domainType This property is required. number
Domain type: 0: push stream. 1: playback.
cssDomainId string
ID of the resource.
enable boolean
Switch. true: enable the specified domain, false: disable the specified domain.
isDelayLive number
Whether it is LCB: 0: LVB. 1: LCB. Default value is 0.
isMiniProgramLive number
0: LVB. 1: LVB on Mini Program. Note: this field may return null, indicating that no valid values can be obtained. Default value is 0.
playType number
Play Type. This parameter is valid only if DomainType is 1. Available values: 1: in Mainland China. 2: global. 3: outside Mainland China. Default value is 1.
verifyOwnerType string
Domain name attribution verification type. dnsCheck, fileCheck, dbCheck. The default is dbCheck.
domain_name This property is required. str
Domain Name.
domain_type This property is required. float
Domain type: 0: push stream. 1: playback.
css_domain_id str
ID of the resource.
enable bool
Switch. true: enable the specified domain, false: disable the specified domain.
is_delay_live float
Whether it is LCB: 0: LVB. 1: LCB. Default value is 0.
is_mini_program_live float
0: LVB. 1: LVB on Mini Program. Note: this field may return null, indicating that no valid values can be obtained. Default value is 0.
play_type float
Play Type. This parameter is valid only if DomainType is 1. Available values: 1: in Mainland China. 2: global. 3: outside Mainland China. Default value is 1.
verify_owner_type str
Domain name attribution verification type. dnsCheck, fileCheck, dbCheck. The default is dbCheck.
domainName This property is required. String
Domain Name.
domainType This property is required. Number
Domain type: 0: push stream. 1: playback.
cssDomainId String
ID of the resource.
enable Boolean
Switch. true: enable the specified domain, false: disable the specified domain.
isDelayLive Number
Whether it is LCB: 0: LVB. 1: LCB. Default value is 0.
isMiniProgramLive Number
0: LVB. 1: LVB on Mini Program. Note: this field may return null, indicating that no valid values can be obtained. Default value is 0.
playType Number
Play Type. This parameter is valid only if DomainType is 1. Available values: 1: in Mainland China. 2: global. 3: outside Mainland China. Default value is 1.
verifyOwnerType String
Domain name attribution verification type. dnsCheck, fileCheck, dbCheck. The default is dbCheck.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing CssDomain Resource

Get an existing CssDomain 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?: CssDomainState, opts?: CustomResourceOptions): CssDomain
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        css_domain_id: Optional[str] = None,
        domain_name: Optional[str] = None,
        domain_type: Optional[float] = None,
        enable: Optional[bool] = None,
        is_delay_live: Optional[float] = None,
        is_mini_program_live: Optional[float] = None,
        play_type: Optional[float] = None,
        verify_owner_type: Optional[str] = None) -> CssDomain
func GetCssDomain(ctx *Context, name string, id IDInput, state *CssDomainState, opts ...ResourceOption) (*CssDomain, error)
public static CssDomain Get(string name, Input<string> id, CssDomainState? state, CustomResourceOptions? opts = null)
public static CssDomain get(String name, Output<String> id, CssDomainState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:CssDomain    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CssDomainId string
ID of the resource.
DomainName string
Domain Name.
DomainType double
Domain type: 0: push stream. 1: playback.
Enable bool
Switch. true: enable the specified domain, false: disable the specified domain.
IsDelayLive double
Whether it is LCB: 0: LVB. 1: LCB. Default value is 0.
IsMiniProgramLive double
0: LVB. 1: LVB on Mini Program. Note: this field may return null, indicating that no valid values can be obtained. Default value is 0.
PlayType double
Play Type. This parameter is valid only if DomainType is 1. Available values: 1: in Mainland China. 2: global. 3: outside Mainland China. Default value is 1.
VerifyOwnerType string
Domain name attribution verification type. dnsCheck, fileCheck, dbCheck. The default is dbCheck.
CssDomainId string
ID of the resource.
DomainName string
Domain Name.
DomainType float64
Domain type: 0: push stream. 1: playback.
Enable bool
Switch. true: enable the specified domain, false: disable the specified domain.
IsDelayLive float64
Whether it is LCB: 0: LVB. 1: LCB. Default value is 0.
IsMiniProgramLive float64
0: LVB. 1: LVB on Mini Program. Note: this field may return null, indicating that no valid values can be obtained. Default value is 0.
PlayType float64
Play Type. This parameter is valid only if DomainType is 1. Available values: 1: in Mainland China. 2: global. 3: outside Mainland China. Default value is 1.
VerifyOwnerType string
Domain name attribution verification type. dnsCheck, fileCheck, dbCheck. The default is dbCheck.
cssDomainId String
ID of the resource.
domainName String
Domain Name.
domainType Double
Domain type: 0: push stream. 1: playback.
enable Boolean
Switch. true: enable the specified domain, false: disable the specified domain.
isDelayLive Double
Whether it is LCB: 0: LVB. 1: LCB. Default value is 0.
isMiniProgramLive Double
0: LVB. 1: LVB on Mini Program. Note: this field may return null, indicating that no valid values can be obtained. Default value is 0.
playType Double
Play Type. This parameter is valid only if DomainType is 1. Available values: 1: in Mainland China. 2: global. 3: outside Mainland China. Default value is 1.
verifyOwnerType String
Domain name attribution verification type. dnsCheck, fileCheck, dbCheck. The default is dbCheck.
cssDomainId string
ID of the resource.
domainName string
Domain Name.
domainType number
Domain type: 0: push stream. 1: playback.
enable boolean
Switch. true: enable the specified domain, false: disable the specified domain.
isDelayLive number
Whether it is LCB: 0: LVB. 1: LCB. Default value is 0.
isMiniProgramLive number
0: LVB. 1: LVB on Mini Program. Note: this field may return null, indicating that no valid values can be obtained. Default value is 0.
playType number
Play Type. This parameter is valid only if DomainType is 1. Available values: 1: in Mainland China. 2: global. 3: outside Mainland China. Default value is 1.
verifyOwnerType string
Domain name attribution verification type. dnsCheck, fileCheck, dbCheck. The default is dbCheck.
css_domain_id str
ID of the resource.
domain_name str
Domain Name.
domain_type float
Domain type: 0: push stream. 1: playback.
enable bool
Switch. true: enable the specified domain, false: disable the specified domain.
is_delay_live float
Whether it is LCB: 0: LVB. 1: LCB. Default value is 0.
is_mini_program_live float
0: LVB. 1: LVB on Mini Program. Note: this field may return null, indicating that no valid values can be obtained. Default value is 0.
play_type float
Play Type. This parameter is valid only if DomainType is 1. Available values: 1: in Mainland China. 2: global. 3: outside Mainland China. Default value is 1.
verify_owner_type str
Domain name attribution verification type. dnsCheck, fileCheck, dbCheck. The default is dbCheck.
cssDomainId String
ID of the resource.
domainName String
Domain Name.
domainType Number
Domain type: 0: push stream. 1: playback.
enable Boolean
Switch. true: enable the specified domain, false: disable the specified domain.
isDelayLive Number
Whether it is LCB: 0: LVB. 1: LCB. Default value is 0.
isMiniProgramLive Number
0: LVB. 1: LVB on Mini Program. Note: this field may return null, indicating that no valid values can be obtained. Default value is 0.
playType Number
Play Type. This parameter is valid only if DomainType is 1. Available values: 1: in Mainland China. 2: global. 3: outside Mainland China. Default value is 1.
verifyOwnerType String
Domain name attribution verification type. dnsCheck, fileCheck, dbCheck. The default is dbCheck.

Import

css domain can be imported using the id, e.g.

$ pulumi import tencentcloud:index/cssDomain:CssDomain domain domain_name
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.