1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CssDomainReferer
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.CssDomainReferer

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a css domain_referer

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const domainReferer = new tencentcloud.CssDomainReferer("domainReferer", {
        allowEmpty: 1,
        domainName: "test122.jingxhu.top",
        enable: 0,
        rules: "example.com",
        type: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    domain_referer = tencentcloud.CssDomainReferer("domainReferer",
        allow_empty=1,
        domain_name="test122.jingxhu.top",
        enable=0,
        rules="example.com",
        type=1)
    
    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.NewCssDomainReferer(ctx, "domainReferer", &tencentcloud.CssDomainRefererArgs{
    			AllowEmpty: pulumi.Float64(1),
    			DomainName: pulumi.String("test122.jingxhu.top"),
    			Enable:     pulumi.Float64(0),
    			Rules:      pulumi.String("example.com"),
    			Type:       pulumi.Float64(1),
    		})
    		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 domainReferer = new Tencentcloud.CssDomainReferer("domainReferer", new()
        {
            AllowEmpty = 1,
            DomainName = "test122.jingxhu.top",
            Enable = 0,
            Rules = "example.com",
            Type = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CssDomainReferer;
    import com.pulumi.tencentcloud.CssDomainRefererArgs;
    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 domainReferer = new CssDomainReferer("domainReferer", CssDomainRefererArgs.builder()
                .allowEmpty(1)
                .domainName("test122.jingxhu.top")
                .enable(0)
                .rules("example.com")
                .type(1)
                .build());
    
        }
    }
    
    resources:
      domainReferer:
        type: tencentcloud:CssDomainReferer
        properties:
          allowEmpty: 1
          domainName: test122.jingxhu.top
          enable: 0
          rules: example.com
          type: 1
    

    Create CssDomainReferer Resource

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

    Constructor syntax

    new CssDomainReferer(name: string, args: CssDomainRefererArgs, opts?: CustomResourceOptions);
    @overload
    def CssDomainReferer(resource_name: str,
                         args: CssDomainRefererArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def CssDomainReferer(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         allow_empty: Optional[float] = None,
                         domain_name: Optional[str] = None,
                         enable: Optional[float] = None,
                         rules: Optional[str] = None,
                         type: Optional[float] = None,
                         css_domain_referer_id: Optional[str] = None)
    func NewCssDomainReferer(ctx *Context, name string, args CssDomainRefererArgs, opts ...ResourceOption) (*CssDomainReferer, error)
    public CssDomainReferer(string name, CssDomainRefererArgs args, CustomResourceOptions? opts = null)
    public CssDomainReferer(String name, CssDomainRefererArgs args)
    public CssDomainReferer(String name, CssDomainRefererArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CssDomainReferer
    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 CssDomainRefererArgs
    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 CssDomainRefererArgs
    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 CssDomainRefererArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CssDomainRefererArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CssDomainRefererArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AllowEmpty double
    Allow blank referers, 0: not allowed, 1: allowed.
    DomainName string
    Domain Name.
    Enable double
    Whether to enable the referer blacklist authentication of the current domain name,0: off, 1: on.
    Rules string
    The list of referers to; separate.
    Type double
    List type: 0: blacklist, 1: whitelist.
    CssDomainRefererId string
    ID of the resource.
    AllowEmpty float64
    Allow blank referers, 0: not allowed, 1: allowed.
    DomainName string
    Domain Name.
    Enable float64
    Whether to enable the referer blacklist authentication of the current domain name,0: off, 1: on.
    Rules string
    The list of referers to; separate.
    Type float64
    List type: 0: blacklist, 1: whitelist.
    CssDomainRefererId string
    ID of the resource.
    allowEmpty Double
    Allow blank referers, 0: not allowed, 1: allowed.
    domainName String
    Domain Name.
    enable Double
    Whether to enable the referer blacklist authentication of the current domain name,0: off, 1: on.
    rules String
    The list of referers to; separate.
    type Double
    List type: 0: blacklist, 1: whitelist.
    cssDomainRefererId String
    ID of the resource.
    allowEmpty number
    Allow blank referers, 0: not allowed, 1: allowed.
    domainName string
    Domain Name.
    enable number
    Whether to enable the referer blacklist authentication of the current domain name,0: off, 1: on.
    rules string
    The list of referers to; separate.
    type number
    List type: 0: blacklist, 1: whitelist.
    cssDomainRefererId string
    ID of the resource.
    allow_empty float
    Allow blank referers, 0: not allowed, 1: allowed.
    domain_name str
    Domain Name.
    enable float
    Whether to enable the referer blacklist authentication of the current domain name,0: off, 1: on.
    rules str
    The list of referers to; separate.
    type float
    List type: 0: blacklist, 1: whitelist.
    css_domain_referer_id str
    ID of the resource.
    allowEmpty Number
    Allow blank referers, 0: not allowed, 1: allowed.
    domainName String
    Domain Name.
    enable Number
    Whether to enable the referer blacklist authentication of the current domain name,0: off, 1: on.
    rules String
    The list of referers to; separate.
    type Number
    List type: 0: blacklist, 1: whitelist.
    cssDomainRefererId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CssDomainReferer 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 CssDomainReferer Resource

    Get an existing CssDomainReferer 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?: CssDomainRefererState, opts?: CustomResourceOptions): CssDomainReferer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allow_empty: Optional[float] = None,
            css_domain_referer_id: Optional[str] = None,
            domain_name: Optional[str] = None,
            enable: Optional[float] = None,
            rules: Optional[str] = None,
            type: Optional[float] = None) -> CssDomainReferer
    func GetCssDomainReferer(ctx *Context, name string, id IDInput, state *CssDomainRefererState, opts ...ResourceOption) (*CssDomainReferer, error)
    public static CssDomainReferer Get(string name, Input<string> id, CssDomainRefererState? state, CustomResourceOptions? opts = null)
    public static CssDomainReferer get(String name, Output<String> id, CssDomainRefererState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CssDomainReferer    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.
    The following state arguments are supported:
    AllowEmpty double
    Allow blank referers, 0: not allowed, 1: allowed.
    CssDomainRefererId string
    ID of the resource.
    DomainName string
    Domain Name.
    Enable double
    Whether to enable the referer blacklist authentication of the current domain name,0: off, 1: on.
    Rules string
    The list of referers to; separate.
    Type double
    List type: 0: blacklist, 1: whitelist.
    AllowEmpty float64
    Allow blank referers, 0: not allowed, 1: allowed.
    CssDomainRefererId string
    ID of the resource.
    DomainName string
    Domain Name.
    Enable float64
    Whether to enable the referer blacklist authentication of the current domain name,0: off, 1: on.
    Rules string
    The list of referers to; separate.
    Type float64
    List type: 0: blacklist, 1: whitelist.
    allowEmpty Double
    Allow blank referers, 0: not allowed, 1: allowed.
    cssDomainRefererId String
    ID of the resource.
    domainName String
    Domain Name.
    enable Double
    Whether to enable the referer blacklist authentication of the current domain name,0: off, 1: on.
    rules String
    The list of referers to; separate.
    type Double
    List type: 0: blacklist, 1: whitelist.
    allowEmpty number
    Allow blank referers, 0: not allowed, 1: allowed.
    cssDomainRefererId string
    ID of the resource.
    domainName string
    Domain Name.
    enable number
    Whether to enable the referer blacklist authentication of the current domain name,0: off, 1: on.
    rules string
    The list of referers to; separate.
    type number
    List type: 0: blacklist, 1: whitelist.
    allow_empty float
    Allow blank referers, 0: not allowed, 1: allowed.
    css_domain_referer_id str
    ID of the resource.
    domain_name str
    Domain Name.
    enable float
    Whether to enable the referer blacklist authentication of the current domain name,0: off, 1: on.
    rules str
    The list of referers to; separate.
    type float
    List type: 0: blacklist, 1: whitelist.
    allowEmpty Number
    Allow blank referers, 0: not allowed, 1: allowed.
    cssDomainRefererId String
    ID of the resource.
    domainName String
    Domain Name.
    enable Number
    Whether to enable the referer blacklist authentication of the current domain name,0: off, 1: on.
    rules String
    The list of referers to; separate.
    type Number
    List type: 0: blacklist, 1: whitelist.

    Import

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

    $ pulumi import tencentcloud:index/cssDomainReferer:CssDomainReferer domain_referer domainName
    

    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack