tencentcloud.CssDomainReferer
Explore with Pulumi AI
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:
- Allow
Empty double - Allow blank referers, 0: not allowed, 1: allowed.
- Domain
Name 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.
- Css
Domain stringReferer Id - ID of the resource.
- Allow
Empty float64 - Allow blank referers, 0: not allowed, 1: allowed.
- Domain
Name 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.
- Css
Domain stringReferer Id - ID of the resource.
- allow
Empty Double - Allow blank referers, 0: not allowed, 1: allowed.
- domain
Name 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.
- css
Domain StringReferer Id - ID of the resource.
- allow
Empty number - Allow blank referers, 0: not allowed, 1: allowed.
- domain
Name 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.
- css
Domain stringReferer Id - 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_ strreferer_ id - ID of the resource.
- allow
Empty Number - Allow blank referers, 0: not allowed, 1: allowed.
- domain
Name 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.
- css
Domain StringReferer Id - 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.
- Allow
Empty double - Allow blank referers, 0: not allowed, 1: allowed.
- Css
Domain stringReferer Id - ID of the resource.
- Domain
Name 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.
- Allow
Empty float64 - Allow blank referers, 0: not allowed, 1: allowed.
- Css
Domain stringReferer Id - ID of the resource.
- Domain
Name 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.
- allow
Empty Double - Allow blank referers, 0: not allowed, 1: allowed.
- css
Domain StringReferer Id - ID of the resource.
- domain
Name 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.
- allow
Empty number - Allow blank referers, 0: not allowed, 1: allowed.
- css
Domain stringReferer Id - ID of the resource.
- domain
Name 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_ strreferer_ id - 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.
- allow
Empty Number - Allow blank referers, 0: not allowed, 1: allowed.
- css
Domain StringReferer Id - ID of the resource.
- domain
Name 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.