tencentcloud.TeoFunctionRule
Explore with Pulumi AI
Provides a resource to create a teo teo_function_rule
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const teoFunctionRule = new tencentcloud.TeoFunctionRule("teoFunctionRule", {
functionId: "ef-txx7fnua",
remark: "aaa",
zoneId: "zone-2qtuhspy7cr6",
functionRuleConditions: [
{
ruleConditions: [
{
ignoreCase: false,
name: undefined,
operator: "equal",
target: "host",
values: ["aaa.makn.cn"],
},
{
ignoreCase: false,
name: undefined,
operator: "equal",
target: "extension",
values: [".txt"],
},
],
},
{
ruleConditions: [
{
ignoreCase: false,
name: undefined,
operator: "notequal",
target: "host",
values: ["aaa.makn.cn"],
},
{
ignoreCase: false,
name: undefined,
operator: "equal",
target: "extension",
values: [".png"],
},
],
},
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
teo_function_rule = tencentcloud.TeoFunctionRule("teoFunctionRule",
function_id="ef-txx7fnua",
remark="aaa",
zone_id="zone-2qtuhspy7cr6",
function_rule_conditions=[
{
"rule_conditions": [
{
"ignore_case": False,
"name": None,
"operator": "equal",
"target": "host",
"values": ["aaa.makn.cn"],
},
{
"ignore_case": False,
"name": None,
"operator": "equal",
"target": "extension",
"values": [".txt"],
},
],
},
{
"rule_conditions": [
{
"ignore_case": False,
"name": None,
"operator": "notequal",
"target": "host",
"values": ["aaa.makn.cn"],
},
{
"ignore_case": False,
"name": None,
"operator": "equal",
"target": "extension",
"values": [".png"],
},
],
},
])
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.NewTeoFunctionRule(ctx, "teoFunctionRule", &tencentcloud.TeoFunctionRuleArgs{
FunctionId: pulumi.String("ef-txx7fnua"),
Remark: pulumi.String("aaa"),
ZoneId: pulumi.String("zone-2qtuhspy7cr6"),
FunctionRuleConditions: tencentcloud.TeoFunctionRuleFunctionRuleConditionArray{
&tencentcloud.TeoFunctionRuleFunctionRuleConditionArgs{
RuleConditions: tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArray{
&tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs{
IgnoreCase: pulumi.Bool(false),
Name: nil,
Operator: pulumi.String("equal"),
Target: pulumi.String("host"),
Values: pulumi.StringArray{
pulumi.String("aaa.makn.cn"),
},
},
&tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs{
IgnoreCase: pulumi.Bool(false),
Name: nil,
Operator: pulumi.String("equal"),
Target: pulumi.String("extension"),
Values: pulumi.StringArray{
pulumi.String(".txt"),
},
},
},
},
&tencentcloud.TeoFunctionRuleFunctionRuleConditionArgs{
RuleConditions: tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArray{
&tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs{
IgnoreCase: pulumi.Bool(false),
Name: nil,
Operator: pulumi.String("notequal"),
Target: pulumi.String("host"),
Values: pulumi.StringArray{
pulumi.String("aaa.makn.cn"),
},
},
&tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs{
IgnoreCase: pulumi.Bool(false),
Name: nil,
Operator: pulumi.String("equal"),
Target: pulumi.String("extension"),
Values: pulumi.StringArray{
pulumi.String(".png"),
},
},
},
},
},
})
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 teoFunctionRule = new Tencentcloud.TeoFunctionRule("teoFunctionRule", new()
{
FunctionId = "ef-txx7fnua",
Remark = "aaa",
ZoneId = "zone-2qtuhspy7cr6",
FunctionRuleConditions = new[]
{
new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionArgs
{
RuleConditions = new[]
{
new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs
{
IgnoreCase = false,
Name = null,
Operator = "equal",
Target = "host",
Values = new[]
{
"aaa.makn.cn",
},
},
new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs
{
IgnoreCase = false,
Name = null,
Operator = "equal",
Target = "extension",
Values = new[]
{
".txt",
},
},
},
},
new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionArgs
{
RuleConditions = new[]
{
new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs
{
IgnoreCase = false,
Name = null,
Operator = "notequal",
Target = "host",
Values = new[]
{
"aaa.makn.cn",
},
},
new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs
{
IgnoreCase = false,
Name = null,
Operator = "equal",
Target = "extension",
Values = new[]
{
".png",
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoFunctionRule;
import com.pulumi.tencentcloud.TeoFunctionRuleArgs;
import com.pulumi.tencentcloud.inputs.TeoFunctionRuleFunctionRuleConditionArgs;
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 teoFunctionRule = new TeoFunctionRule("teoFunctionRule", TeoFunctionRuleArgs.builder()
.functionId("ef-txx7fnua")
.remark("aaa")
.zoneId("zone-2qtuhspy7cr6")
.functionRuleConditions(
TeoFunctionRuleFunctionRuleConditionArgs.builder()
.ruleConditions(
TeoFunctionRuleFunctionRuleConditionRuleConditionArgs.builder()
.ignoreCase(false)
.name(null)
.operator("equal")
.target("host")
.values("aaa.makn.cn")
.build(),
TeoFunctionRuleFunctionRuleConditionRuleConditionArgs.builder()
.ignoreCase(false)
.name(null)
.operator("equal")
.target("extension")
.values(".txt")
.build())
.build(),
TeoFunctionRuleFunctionRuleConditionArgs.builder()
.ruleConditions(
TeoFunctionRuleFunctionRuleConditionRuleConditionArgs.builder()
.ignoreCase(false)
.name(null)
.operator("notequal")
.target("host")
.values("aaa.makn.cn")
.build(),
TeoFunctionRuleFunctionRuleConditionRuleConditionArgs.builder()
.ignoreCase(false)
.name(null)
.operator("equal")
.target("extension")
.values(".png")
.build())
.build())
.build());
}
}
resources:
teoFunctionRule:
type: tencentcloud:TeoFunctionRule
properties:
functionId: ef-txx7fnua
remark: aaa
zoneId: zone-2qtuhspy7cr6
functionRuleConditions:
- ruleConditions:
- ignoreCase: false
name: null
operator: equal
target: host
values:
- aaa.makn.cn
- ignoreCase: false
name: null
operator: equal
target: extension
values:
- .txt
- ruleConditions:
- ignoreCase: false
name: null
operator: notequal
target: host
values:
- aaa.makn.cn
- ignoreCase: false
name: null
operator: equal
target: extension
values:
- .png
Create TeoFunctionRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeoFunctionRule(name: string, args: TeoFunctionRuleArgs, opts?: CustomResourceOptions);
@overload
def TeoFunctionRule(resource_name: str,
args: TeoFunctionRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeoFunctionRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
function_id: Optional[str] = None,
function_rule_conditions: Optional[Sequence[TeoFunctionRuleFunctionRuleConditionArgs]] = None,
zone_id: Optional[str] = None,
remark: Optional[str] = None,
teo_function_rule_id: Optional[str] = None)
func NewTeoFunctionRule(ctx *Context, name string, args TeoFunctionRuleArgs, opts ...ResourceOption) (*TeoFunctionRule, error)
public TeoFunctionRule(string name, TeoFunctionRuleArgs args, CustomResourceOptions? opts = null)
public TeoFunctionRule(String name, TeoFunctionRuleArgs args)
public TeoFunctionRule(String name, TeoFunctionRuleArgs args, CustomResourceOptions options)
type: tencentcloud:TeoFunctionRule
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 TeoFunctionRuleArgs
- 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 TeoFunctionRuleArgs
- 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 TeoFunctionRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeoFunctionRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeoFunctionRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TeoFunctionRule 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 TeoFunctionRule resource accepts the following input properties:
- Function
Id string - ID of the Function.
- Function
Rule List<TeoConditions Function Rule Function Rule Condition> - The list of rule conditions, where the conditions are connected by an "OR" relationship.
- Zone
Id string - ID of the site.
- Remark string
- Rule description, maximum support of 60 characters.
- Teo
Function stringRule Id - ID of the resource.
- Function
Id string - ID of the Function.
- Function
Rule []TeoConditions Function Rule Function Rule Condition Args - The list of rule conditions, where the conditions are connected by an "OR" relationship.
- Zone
Id string - ID of the site.
- Remark string
- Rule description, maximum support of 60 characters.
- Teo
Function stringRule Id - ID of the resource.
- function
Id String - ID of the Function.
- function
Rule List<TeoConditions Function Rule Function Rule Condition> - The list of rule conditions, where the conditions are connected by an "OR" relationship.
- zone
Id String - ID of the site.
- remark String
- Rule description, maximum support of 60 characters.
- teo
Function StringRule Id - ID of the resource.
- function
Id string - ID of the Function.
- function
Rule TeoConditions Function Rule Function Rule Condition[] - The list of rule conditions, where the conditions are connected by an "OR" relationship.
- zone
Id string - ID of the site.
- remark string
- Rule description, maximum support of 60 characters.
- teo
Function stringRule Id - ID of the resource.
- function_
id str - ID of the Function.
- function_
rule_ Sequence[Teoconditions Function Rule Function Rule Condition Args] - The list of rule conditions, where the conditions are connected by an "OR" relationship.
- zone_
id str - ID of the site.
- remark str
- Rule description, maximum support of 60 characters.
- teo_
function_ strrule_ id - ID of the resource.
- function
Id String - ID of the Function.
- function
Rule List<Property Map>Conditions - The list of rule conditions, where the conditions are connected by an "OR" relationship.
- zone
Id String - ID of the site.
- remark String
- Rule description, maximum support of 60 characters.
- teo
Function StringRule Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoFunctionRule resource produces the following output properties:
- Function
Name string - The name of the function.
- Id string
- The provider-assigned unique ID for this managed resource.
- Priority double
- The priority of the function trigger rule. A higher numerical value indicates a higher priority.
- Rule
Id string - ID of the Function Rule.
- Function
Name string - The name of the function.
- Id string
- The provider-assigned unique ID for this managed resource.
- Priority float64
- The priority of the function trigger rule. A higher numerical value indicates a higher priority.
- Rule
Id string - ID of the Function Rule.
- function
Name String - The name of the function.
- id String
- The provider-assigned unique ID for this managed resource.
- priority Double
- The priority of the function trigger rule. A higher numerical value indicates a higher priority.
- rule
Id String - ID of the Function Rule.
- function
Name string - The name of the function.
- id string
- The provider-assigned unique ID for this managed resource.
- priority number
- The priority of the function trigger rule. A higher numerical value indicates a higher priority.
- rule
Id string - ID of the Function Rule.
- function_
name str - The name of the function.
- id str
- The provider-assigned unique ID for this managed resource.
- priority float
- The priority of the function trigger rule. A higher numerical value indicates a higher priority.
- rule_
id str - ID of the Function Rule.
- function
Name String - The name of the function.
- id String
- The provider-assigned unique ID for this managed resource.
- priority Number
- The priority of the function trigger rule. A higher numerical value indicates a higher priority.
- rule
Id String - ID of the Function Rule.
Look up Existing TeoFunctionRule Resource
Get an existing TeoFunctionRule 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?: TeoFunctionRuleState, opts?: CustomResourceOptions): TeoFunctionRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
function_id: Optional[str] = None,
function_name: Optional[str] = None,
function_rule_conditions: Optional[Sequence[TeoFunctionRuleFunctionRuleConditionArgs]] = None,
priority: Optional[float] = None,
remark: Optional[str] = None,
rule_id: Optional[str] = None,
teo_function_rule_id: Optional[str] = None,
zone_id: Optional[str] = None) -> TeoFunctionRule
func GetTeoFunctionRule(ctx *Context, name string, id IDInput, state *TeoFunctionRuleState, opts ...ResourceOption) (*TeoFunctionRule, error)
public static TeoFunctionRule Get(string name, Input<string> id, TeoFunctionRuleState? state, CustomResourceOptions? opts = null)
public static TeoFunctionRule get(String name, Output<String> id, TeoFunctionRuleState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TeoFunctionRule 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.
- Function
Id string - ID of the Function.
- Function
Name string - The name of the function.
- Function
Rule List<TeoConditions Function Rule Function Rule Condition> - The list of rule conditions, where the conditions are connected by an "OR" relationship.
- Priority double
- The priority of the function trigger rule. A higher numerical value indicates a higher priority.
- Remark string
- Rule description, maximum support of 60 characters.
- Rule
Id string - ID of the Function Rule.
- Teo
Function stringRule Id - ID of the resource.
- Zone
Id string - ID of the site.
- Function
Id string - ID of the Function.
- Function
Name string - The name of the function.
- Function
Rule []TeoConditions Function Rule Function Rule Condition Args - The list of rule conditions, where the conditions are connected by an "OR" relationship.
- Priority float64
- The priority of the function trigger rule. A higher numerical value indicates a higher priority.
- Remark string
- Rule description, maximum support of 60 characters.
- Rule
Id string - ID of the Function Rule.
- Teo
Function stringRule Id - ID of the resource.
- Zone
Id string - ID of the site.
- function
Id String - ID of the Function.
- function
Name String - The name of the function.
- function
Rule List<TeoConditions Function Rule Function Rule Condition> - The list of rule conditions, where the conditions are connected by an "OR" relationship.
- priority Double
- The priority of the function trigger rule. A higher numerical value indicates a higher priority.
- remark String
- Rule description, maximum support of 60 characters.
- rule
Id String - ID of the Function Rule.
- teo
Function StringRule Id - ID of the resource.
- zone
Id String - ID of the site.
- function
Id string - ID of the Function.
- function
Name string - The name of the function.
- function
Rule TeoConditions Function Rule Function Rule Condition[] - The list of rule conditions, where the conditions are connected by an "OR" relationship.
- priority number
- The priority of the function trigger rule. A higher numerical value indicates a higher priority.
- remark string
- Rule description, maximum support of 60 characters.
- rule
Id string - ID of the Function Rule.
- teo
Function stringRule Id - ID of the resource.
- zone
Id string - ID of the site.
- function_
id str - ID of the Function.
- function_
name str - The name of the function.
- function_
rule_ Sequence[Teoconditions Function Rule Function Rule Condition Args] - The list of rule conditions, where the conditions are connected by an "OR" relationship.
- priority float
- The priority of the function trigger rule. A higher numerical value indicates a higher priority.
- remark str
- Rule description, maximum support of 60 characters.
- rule_
id str - ID of the Function Rule.
- teo_
function_ strrule_ id - ID of the resource.
- zone_
id str - ID of the site.
- function
Id String - ID of the Function.
- function
Name String - The name of the function.
- function
Rule List<Property Map>Conditions - The list of rule conditions, where the conditions are connected by an "OR" relationship.
- priority Number
- The priority of the function trigger rule. A higher numerical value indicates a higher priority.
- remark String
- Rule description, maximum support of 60 characters.
- rule
Id String - ID of the Function Rule.
- teo
Function StringRule Id - ID of the resource.
- zone
Id String - ID of the site.
Supporting Types
TeoFunctionRuleFunctionRuleCondition, TeoFunctionRuleFunctionRuleConditionArgs
- Rule
Conditions List<TeoFunction Rule Function Rule Condition Rule Condition> - For edge function trigger rule conditions, if all items in the list are satisfied, then the condition is considered fulfilled.
- Rule
Conditions []TeoFunction Rule Function Rule Condition Rule Condition - For edge function trigger rule conditions, if all items in the list are satisfied, then the condition is considered fulfilled.
- rule
Conditions List<TeoFunction Rule Function Rule Condition Rule Condition> - For edge function trigger rule conditions, if all items in the list are satisfied, then the condition is considered fulfilled.
- rule
Conditions TeoFunction Rule Function Rule Condition Rule Condition[] - For edge function trigger rule conditions, if all items in the list are satisfied, then the condition is considered fulfilled.
- rule_
conditions Sequence[TeoFunction Rule Function Rule Condition Rule Condition] - For edge function trigger rule conditions, if all items in the list are satisfied, then the condition is considered fulfilled.
- rule
Conditions List<Property Map> - For edge function trigger rule conditions, if all items in the list are satisfied, then the condition is considered fulfilled.
TeoFunctionRuleFunctionRuleConditionRuleCondition, TeoFunctionRuleFunctionRuleConditionRuleConditionArgs
- Operator string
- Operator. Valid values:
- Target string
- The match type. Values:
- Ignore
Case bool - Whether the parameter value is case insensitive. Default value: false.
- Name string
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - Values List<string>
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- Operator string
- Operator. Valid values:
- Target string
- The match type. Values:
- Ignore
Case bool - Whether the parameter value is case insensitive. Default value: false.
- Name string
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - Values []string
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- operator String
- Operator. Valid values:
- target String
- The match type. Values:
- ignore
Case Boolean - Whether the parameter value is case insensitive. Default value: false.
- name String
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - values List<String>
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- operator string
- Operator. Valid values:
- target string
- The match type. Values:
- ignore
Case boolean - Whether the parameter value is case insensitive. Default value: false.
- name string
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - values string[]
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- operator str
- Operator. Valid values:
- target str
- The match type. Values:
- ignore_
case bool - Whether the parameter value is case insensitive. Default value: false.
- name str
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - values Sequence[str]
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
- operator String
- Operator. Valid values:
- target String
- The match type. Values:
- ignore
Case Boolean - Whether the parameter value is case insensitive. Default value: false.
- name String
- The parameter name of the match type. This field is required only when
Target=query_string/request_header
. - values List<String>
- The parameter value of the match type. It can be an empty string only when
Target=query string/request header
andOperator=exist/notexist
.- When
Target=extension
, enter the file extension, such as "jpg" and "txt". - When
Target=filename
, enter the file name, such as "foo" in "foo.jpg". - When
Target=all
, it indicates any site request. - When
Target=host
, enter the host under the current site, such as "www.maxx55.com". - When
Target=url
, enter the partial URL path under the current site, such as "/example". - When
Target=full_url
, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example". - When
Target=client_country
, enter the ISO-3166 country/region code. - When
Target=query_string
, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1". - When
Target=request_header
, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
- When
Import
teo teo_function_rule can be imported using the id, e.g.
$ pulumi import tencentcloud:index/teoFunctionRule:TeoFunctionRule teo_function_rule zone_id#function_id#rule_id
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.