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",
});
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")
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
})
}
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",
});
});
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());
}
}
resources:
domain:
type: tencentcloud:CssDomain
properties:
domainName: iac-tf.cloud
domainType: 0
isDelayLive: 0
isMiniProgramLive: 0
playType: 1
verifyOwnerType: dbCheck
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 string
- The unique name of the resource.
- args CssDomainArgs
- 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 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 string
- The unique name of the resource.
- args CssDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CssDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Domain
Name string - Domain Name.
- Domain
Type double - Domain type:
0
: push stream.1
: playback. - Css
Domain stringId - ID of the resource.
- Enable bool
- Switch. true: enable the specified domain, false: disable the specified domain.
- Is
Delay doubleLive - Whether it is LCB:
0
: LVB.1
: LCB. Default value is 0. - Is
Mini doubleProgram Live 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 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. - Verify
Owner stringType - Domain name attribution verification type.
dnsCheck
,fileCheck
,dbCheck
. The default isdbCheck
.
- Domain
Name string - Domain Name.
- Domain
Type float64 - Domain type:
0
: push stream.1
: playback. - Css
Domain stringId - ID of the resource.
- Enable bool
- Switch. true: enable the specified domain, false: disable the specified domain.
- Is
Delay float64Live - Whether it is LCB:
0
: LVB.1
: LCB. Default value is 0. - Is
Mini float64Program Live 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 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. - Verify
Owner stringType - Domain name attribution verification type.
dnsCheck
,fileCheck
,dbCheck
. The default isdbCheck
.
- domain
Name String - Domain Name.
- domain
Type Double - Domain type:
0
: push stream.1
: playback. - css
Domain StringId - ID of the resource.
- enable Boolean
- Switch. true: enable the specified domain, false: disable the specified domain.
- is
Delay DoubleLive - Whether it is LCB:
0
: LVB.1
: LCB. Default value is 0. - is
Mini DoubleProgram Live 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 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. - verify
Owner StringType - Domain name attribution verification type.
dnsCheck
,fileCheck
,dbCheck
. The default isdbCheck
.
- domain
Name string - Domain Name.
- domain
Type number - Domain type:
0
: push stream.1
: playback. - css
Domain stringId - ID of the resource.
- enable boolean
- Switch. true: enable the specified domain, false: disable the specified domain.
- is
Delay numberLive - Whether it is LCB:
0
: LVB.1
: LCB. Default value is 0. - is
Mini numberProgram Live 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 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. - verify
Owner stringType - Domain name attribution verification type.
dnsCheck
,fileCheck
,dbCheck
. The default isdbCheck
.
- domain_
name str - Domain Name.
- domain_
type float - Domain type:
0
: push stream.1
: playback. - css_
domain_ strid - ID of the resource.
- enable bool
- Switch. true: enable the specified domain, false: disable the specified domain.
- is_
delay_ floatlive - Whether it is LCB:
0
: LVB.1
: LCB. Default value is 0. - is_
mini_ floatprogram_ live 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_ strtype - Domain name attribution verification type.
dnsCheck
,fileCheck
,dbCheck
. The default isdbCheck
.
- domain
Name String - Domain Name.
- domain
Type Number - Domain type:
0
: push stream.1
: playback. - css
Domain StringId - ID of the resource.
- enable Boolean
- Switch. true: enable the specified domain, false: disable the specified domain.
- is
Delay NumberLive - Whether it is LCB:
0
: LVB.1
: LCB. Default value is 0. - is
Mini NumberProgram Live 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 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. - verify
Owner StringType - Domain name attribution verification type.
dnsCheck
,fileCheck
,dbCheck
. The default isdbCheck
.
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
- 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.
- Css
Domain stringId - ID of the resource.
- Domain
Name string - Domain Name.
- Domain
Type double - Domain type:
0
: push stream.1
: playback. - Enable bool
- Switch. true: enable the specified domain, false: disable the specified domain.
- Is
Delay doubleLive - Whether it is LCB:
0
: LVB.1
: LCB. Default value is 0. - Is
Mini doubleProgram Live 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 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. - Verify
Owner stringType - Domain name attribution verification type.
dnsCheck
,fileCheck
,dbCheck
. The default isdbCheck
.
- Css
Domain stringId - ID of the resource.
- Domain
Name string - Domain Name.
- Domain
Type float64 - Domain type:
0
: push stream.1
: playback. - Enable bool
- Switch. true: enable the specified domain, false: disable the specified domain.
- Is
Delay float64Live - Whether it is LCB:
0
: LVB.1
: LCB. Default value is 0. - Is
Mini float64Program Live 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 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. - Verify
Owner stringType - Domain name attribution verification type.
dnsCheck
,fileCheck
,dbCheck
. The default isdbCheck
.
- css
Domain StringId - ID of the resource.
- domain
Name String - Domain Name.
- domain
Type Double - Domain type:
0
: push stream.1
: playback. - enable Boolean
- Switch. true: enable the specified domain, false: disable the specified domain.
- is
Delay DoubleLive - Whether it is LCB:
0
: LVB.1
: LCB. Default value is 0. - is
Mini DoubleProgram Live 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 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. - verify
Owner StringType - Domain name attribution verification type.
dnsCheck
,fileCheck
,dbCheck
. The default isdbCheck
.
- css
Domain stringId - ID of the resource.
- domain
Name string - Domain Name.
- domain
Type number - Domain type:
0
: push stream.1
: playback. - enable boolean
- Switch. true: enable the specified domain, false: disable the specified domain.
- is
Delay numberLive - Whether it is LCB:
0
: LVB.1
: LCB. Default value is 0. - is
Mini numberProgram Live 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 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. - verify
Owner stringType - Domain name attribution verification type.
dnsCheck
,fileCheck
,dbCheck
. The default isdbCheck
.
- css_
domain_ strid - 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_ floatlive - Whether it is LCB:
0
: LVB.1
: LCB. Default value is 0. - is_
mini_ floatprogram_ live 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_ strtype - Domain name attribution verification type.
dnsCheck
,fileCheck
,dbCheck
. The default isdbCheck
.
- css
Domain StringId - ID of the resource.
- domain
Name String - Domain Name.
- domain
Type Number - Domain type:
0
: push stream.1
: playback. - enable Boolean
- Switch. true: enable the specified domain, false: disable the specified domain.
- is
Delay NumberLive - Whether it is LCB:
0
: LVB.1
: LCB. Default value is 0. - is
Mini NumberProgram Live 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 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. - verify
Owner StringType - Domain name attribution verification type.
dnsCheck
,fileCheck
,dbCheck
. The default isdbCheck
.
Import
css domain can be imported using the id, e.g.
$ pulumi import tencentcloud:index/cssDomain:CssDomain domain domain_name
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.