1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. TokenValidationRules
Cloudflare v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi
cloudflare logo
Cloudflare v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleTokenValidationRules = new cloudflare.TokenValidationRules("example_token_validation_rules", {
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        action: "log",
        description: "Long description for Token Validation Rule",
        enabled: true,
        expression: "is_jwt_valid(\"52973293-cb04-4a97-8f55-e7d2ad1107dd\") or is_jwt_valid(\"46eab8d1-6376-45e3-968f-2c649d77d423\")",
        selector: {
            excludes: [{
                operationIds: [
                    "f9c5615e-fe15-48ce-bec6-cfc1946f1bec",
                    "56828eae-035a-4396-ba07-51c66d680a04",
                ],
            }],
            includes: [{
                host: [
                    "v1.example.com",
                    "v2.example.com",
                ],
            }],
        },
        title: "Example Token Validation Rule",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_token_validation_rules = cloudflare.TokenValidationRules("example_token_validation_rules",
        zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        action="log",
        description="Long description for Token Validation Rule",
        enabled=True,
        expression="is_jwt_valid(\"52973293-cb04-4a97-8f55-e7d2ad1107dd\") or is_jwt_valid(\"46eab8d1-6376-45e3-968f-2c649d77d423\")",
        selector={
            "excludes": [{
                "operation_ids": [
                    "f9c5615e-fe15-48ce-bec6-cfc1946f1bec",
                    "56828eae-035a-4396-ba07-51c66d680a04",
                ],
            }],
            "includes": [{
                "host": [
                    "v1.example.com",
                    "v2.example.com",
                ],
            }],
        },
        title="Example Token Validation Rule")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewTokenValidationRules(ctx, "example_token_validation_rules", &cloudflare.TokenValidationRulesArgs{
    			ZoneId:      pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			Action:      pulumi.String("log"),
    			Description: pulumi.String("Long description for Token Validation Rule"),
    			Enabled:     pulumi.Bool(true),
    			Expression:  pulumi.String("is_jwt_valid(\"52973293-cb04-4a97-8f55-e7d2ad1107dd\") or is_jwt_valid(\"46eab8d1-6376-45e3-968f-2c649d77d423\")"),
    			Selector: &cloudflare.TokenValidationRulesSelectorArgs{
    				Excludes: cloudflare.TokenValidationRulesSelectorExcludeArray{
    					&cloudflare.TokenValidationRulesSelectorExcludeArgs{
    						OperationIds: pulumi.StringArray{
    							pulumi.String("f9c5615e-fe15-48ce-bec6-cfc1946f1bec"),
    							pulumi.String("56828eae-035a-4396-ba07-51c66d680a04"),
    						},
    					},
    				},
    				Includes: cloudflare.TokenValidationRulesSelectorIncludeArray{
    					&cloudflare.TokenValidationRulesSelectorIncludeArgs{
    						Host: []string{
    							"v1.example.com",
    							"v2.example.com",
    						},
    					},
    				},
    			},
    			Title: pulumi.String("Example Token Validation Rule"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleTokenValidationRules = new Cloudflare.TokenValidationRules("example_token_validation_rules", new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            Action = "log",
            Description = "Long description for Token Validation Rule",
            Enabled = true,
            Expression = "is_jwt_valid(\"52973293-cb04-4a97-8f55-e7d2ad1107dd\") or is_jwt_valid(\"46eab8d1-6376-45e3-968f-2c649d77d423\")",
            Selector = new Cloudflare.Inputs.TokenValidationRulesSelectorArgs
            {
                Excludes = new[]
                {
                    new Cloudflare.Inputs.TokenValidationRulesSelectorExcludeArgs
                    {
                        OperationIds = new[]
                        {
                            "f9c5615e-fe15-48ce-bec6-cfc1946f1bec",
                            "56828eae-035a-4396-ba07-51c66d680a04",
                        },
                    },
                },
                Includes = new[]
                {
                    new Cloudflare.Inputs.TokenValidationRulesSelectorIncludeArgs
                    {
                        Host = new[]
                        {
                            "v1.example.com",
                            "v2.example.com",
                        },
                    },
                },
            },
            Title = "Example Token Validation Rule",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.TokenValidationRules;
    import com.pulumi.cloudflare.TokenValidationRulesArgs;
    import com.pulumi.cloudflare.inputs.TokenValidationRulesSelectorArgs;
    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 exampleTokenValidationRules = new TokenValidationRules("exampleTokenValidationRules", TokenValidationRulesArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .action("log")
                .description("Long description for Token Validation Rule")
                .enabled(true)
                .expression("is_jwt_valid(\"52973293-cb04-4a97-8f55-e7d2ad1107dd\") or is_jwt_valid(\"46eab8d1-6376-45e3-968f-2c649d77d423\")")
                .selector(TokenValidationRulesSelectorArgs.builder()
                    .excludes(TokenValidationRulesSelectorExcludeArgs.builder()
                        .operationIds(                    
                            "f9c5615e-fe15-48ce-bec6-cfc1946f1bec",
                            "56828eae-035a-4396-ba07-51c66d680a04")
                        .build())
                    .includes(TokenValidationRulesSelectorIncludeArgs.builder()
                        .host(List.of(                    
                            "v1.example.com",
                            "v2.example.com"))
                        .build())
                    .build())
                .title("Example Token Validation Rule")
                .build());
    
        }
    }
    
    resources:
      exampleTokenValidationRules:
        type: cloudflare:TokenValidationRules
        name: example_token_validation_rules
        properties:
          zoneId: 023e105f4ecef8ad9ca31a8372d0c353
          action: log
          description: Long description for Token Validation Rule
          enabled: true
          expression: is_jwt_valid("52973293-cb04-4a97-8f55-e7d2ad1107dd") or is_jwt_valid("46eab8d1-6376-45e3-968f-2c649d77d423")
          selector:
            excludes:
              - operationIds:
                  - f9c5615e-fe15-48ce-bec6-cfc1946f1bec
                  - 56828eae-035a-4396-ba07-51c66d680a04
            includes:
              - host:
                  - v1.example.com
                  - v2.example.com
          title: Example Token Validation Rule
    

    Create TokenValidationRules Resource

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

    Constructor syntax

    new TokenValidationRules(name: string, args: TokenValidationRulesArgs, opts?: CustomResourceOptions);
    @overload
    def TokenValidationRules(resource_name: str,
                             args: TokenValidationRulesArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def TokenValidationRules(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             action: Optional[str] = None,
                             description: Optional[str] = None,
                             enabled: Optional[bool] = None,
                             expression: Optional[str] = None,
                             selector: Optional[TokenValidationRulesSelectorArgs] = None,
                             title: Optional[str] = None,
                             zone_id: Optional[str] = None,
                             position: Optional[TokenValidationRulesPositionArgs] = None)
    func NewTokenValidationRules(ctx *Context, name string, args TokenValidationRulesArgs, opts ...ResourceOption) (*TokenValidationRules, error)
    public TokenValidationRules(string name, TokenValidationRulesArgs args, CustomResourceOptions? opts = null)
    public TokenValidationRules(String name, TokenValidationRulesArgs args)
    public TokenValidationRules(String name, TokenValidationRulesArgs args, CustomResourceOptions options)
    
    type: cloudflare:TokenValidationRules
    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 TokenValidationRulesArgs
    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 TokenValidationRulesArgs
    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 TokenValidationRulesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TokenValidationRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TokenValidationRulesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var tokenValidationRulesResource = new Cloudflare.TokenValidationRules("tokenValidationRulesResource", new()
    {
        Action = "string",
        Description = "string",
        Enabled = false,
        Expression = "string",
        Selector = new Cloudflare.Inputs.TokenValidationRulesSelectorArgs
        {
            Excludes = new[]
            {
                new Cloudflare.Inputs.TokenValidationRulesSelectorExcludeArgs
                {
                    OperationIds = new[]
                    {
                        "string",
                    },
                },
            },
            Includes = new[]
            {
                new Cloudflare.Inputs.TokenValidationRulesSelectorIncludeArgs
                {
                    Hosts = new[]
                    {
                        "string",
                    },
                },
            },
        },
        Title = "string",
        ZoneId = "string",
        Position = new Cloudflare.Inputs.TokenValidationRulesPositionArgs
        {
            After = "string",
            Before = "string",
            Index = 0,
        },
    });
    
    example, err := cloudflare.NewTokenValidationRules(ctx, "tokenValidationRulesResource", &cloudflare.TokenValidationRulesArgs{
    	Action:      pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Enabled:     pulumi.Bool(false),
    	Expression:  pulumi.String("string"),
    	Selector: &cloudflare.TokenValidationRulesSelectorArgs{
    		Excludes: cloudflare.TokenValidationRulesSelectorExcludeArray{
    			&cloudflare.TokenValidationRulesSelectorExcludeArgs{
    				OperationIds: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    		Includes: cloudflare.TokenValidationRulesSelectorIncludeArray{
    			&cloudflare.TokenValidationRulesSelectorIncludeArgs{
    				Hosts: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Title:  pulumi.String("string"),
    	ZoneId: pulumi.String("string"),
    	Position: &cloudflare.TokenValidationRulesPositionArgs{
    		After:  pulumi.String("string"),
    		Before: pulumi.String("string"),
    		Index:  pulumi.Int(0),
    	},
    })
    
    var tokenValidationRulesResource = new TokenValidationRules("tokenValidationRulesResource", TokenValidationRulesArgs.builder()
        .action("string")
        .description("string")
        .enabled(false)
        .expression("string")
        .selector(TokenValidationRulesSelectorArgs.builder()
            .excludes(TokenValidationRulesSelectorExcludeArgs.builder()
                .operationIds("string")
                .build())
            .includes(TokenValidationRulesSelectorIncludeArgs.builder()
                .hosts("string")
                .build())
            .build())
        .title("string")
        .zoneId("string")
        .position(TokenValidationRulesPositionArgs.builder()
            .after("string")
            .before("string")
            .index(0)
            .build())
        .build());
    
    token_validation_rules_resource = cloudflare.TokenValidationRules("tokenValidationRulesResource",
        action="string",
        description="string",
        enabled=False,
        expression="string",
        selector={
            "excludes": [{
                "operation_ids": ["string"],
            }],
            "includes": [{
                "hosts": ["string"],
            }],
        },
        title="string",
        zone_id="string",
        position={
            "after": "string",
            "before": "string",
            "index": 0,
        })
    
    const tokenValidationRulesResource = new cloudflare.TokenValidationRules("tokenValidationRulesResource", {
        action: "string",
        description: "string",
        enabled: false,
        expression: "string",
        selector: {
            excludes: [{
                operationIds: ["string"],
            }],
            includes: [{
                hosts: ["string"],
            }],
        },
        title: "string",
        zoneId: "string",
        position: {
            after: "string",
            before: "string",
            index: 0,
        },
    });
    
    type: cloudflare:TokenValidationRules
    properties:
        action: string
        description: string
        enabled: false
        expression: string
        position:
            after: string
            before: string
            index: 0
        selector:
            excludes:
                - operationIds:
                    - string
            includes:
                - hosts:
                    - string
        title: string
        zoneId: string
    

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

    Action string
    Action to take on requests that match operations included in selector and fail expression. Available values: "log", "block".
    Description string
    A human-readable description that gives more details than title.
    Enabled bool
    Toggle rule on or off.
    Expression string
    Rule expression. Requests that fail to match this expression will be subject to action.
    Selector TokenValidationRulesSelector

    Select operations covered by this rule.

    For details on selectors, see the Cloudflare Docs.

    Title string
    A human-readable name for the rule.
    ZoneId string
    Identifier.
    Position TokenValidationRulesPosition
    Update rule order among zone rules.
    Action string
    Action to take on requests that match operations included in selector and fail expression. Available values: "log", "block".
    Description string
    A human-readable description that gives more details than title.
    Enabled bool
    Toggle rule on or off.
    Expression string
    Rule expression. Requests that fail to match this expression will be subject to action.
    Selector TokenValidationRulesSelectorArgs

    Select operations covered by this rule.

    For details on selectors, see the Cloudflare Docs.

    Title string
    A human-readable name for the rule.
    ZoneId string
    Identifier.
    Position TokenValidationRulesPositionArgs
    Update rule order among zone rules.
    action String
    Action to take on requests that match operations included in selector and fail expression. Available values: "log", "block".
    description String
    A human-readable description that gives more details than title.
    enabled Boolean
    Toggle rule on or off.
    expression String
    Rule expression. Requests that fail to match this expression will be subject to action.
    selector TokenValidationRulesSelector

    Select operations covered by this rule.

    For details on selectors, see the Cloudflare Docs.

    title String
    A human-readable name for the rule.
    zoneId String
    Identifier.
    position TokenValidationRulesPosition
    Update rule order among zone rules.
    action string
    Action to take on requests that match operations included in selector and fail expression. Available values: "log", "block".
    description string
    A human-readable description that gives more details than title.
    enabled boolean
    Toggle rule on or off.
    expression string
    Rule expression. Requests that fail to match this expression will be subject to action.
    selector TokenValidationRulesSelector

    Select operations covered by this rule.

    For details on selectors, see the Cloudflare Docs.

    title string
    A human-readable name for the rule.
    zoneId string
    Identifier.
    position TokenValidationRulesPosition
    Update rule order among zone rules.
    action str
    Action to take on requests that match operations included in selector and fail expression. Available values: "log", "block".
    description str
    A human-readable description that gives more details than title.
    enabled bool
    Toggle rule on or off.
    expression str
    Rule expression. Requests that fail to match this expression will be subject to action.
    selector TokenValidationRulesSelectorArgs

    Select operations covered by this rule.

    For details on selectors, see the Cloudflare Docs.

    title str
    A human-readable name for the rule.
    zone_id str
    Identifier.
    position TokenValidationRulesPositionArgs
    Update rule order among zone rules.
    action String
    Action to take on requests that match operations included in selector and fail expression. Available values: "log", "block".
    description String
    A human-readable description that gives more details than title.
    enabled Boolean
    Toggle rule on or off.
    expression String
    Rule expression. Requests that fail to match this expression will be subject to action.
    selector Property Map

    Select operations covered by this rule.

    For details on selectors, see the Cloudflare Docs.

    title String
    A human-readable name for the rule.
    zoneId String
    Identifier.
    position Property Map
    Update rule order among zone rules.

    Outputs

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

    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdated string
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated str
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String

    Look up Existing TokenValidationRules Resource

    Get an existing TokenValidationRules 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?: TokenValidationRulesState, opts?: CustomResourceOptions): TokenValidationRules
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            expression: Optional[str] = None,
            last_updated: Optional[str] = None,
            position: Optional[TokenValidationRulesPositionArgs] = None,
            selector: Optional[TokenValidationRulesSelectorArgs] = None,
            title: Optional[str] = None,
            zone_id: Optional[str] = None) -> TokenValidationRules
    func GetTokenValidationRules(ctx *Context, name string, id IDInput, state *TokenValidationRulesState, opts ...ResourceOption) (*TokenValidationRules, error)
    public static TokenValidationRules Get(string name, Input<string> id, TokenValidationRulesState? state, CustomResourceOptions? opts = null)
    public static TokenValidationRules get(String name, Output<String> id, TokenValidationRulesState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:TokenValidationRules    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:
    Action string
    Action to take on requests that match operations included in selector and fail expression. Available values: "log", "block".
    CreatedAt string
    Description string
    A human-readable description that gives more details than title.
    Enabled bool
    Toggle rule on or off.
    Expression string
    Rule expression. Requests that fail to match this expression will be subject to action.
    LastUpdated string
    Position TokenValidationRulesPosition
    Update rule order among zone rules.
    Selector TokenValidationRulesSelector

    Select operations covered by this rule.

    For details on selectors, see the Cloudflare Docs.

    Title string
    A human-readable name for the rule.
    ZoneId string
    Identifier.
    Action string
    Action to take on requests that match operations included in selector and fail expression. Available values: "log", "block".
    CreatedAt string
    Description string
    A human-readable description that gives more details than title.
    Enabled bool
    Toggle rule on or off.
    Expression string
    Rule expression. Requests that fail to match this expression will be subject to action.
    LastUpdated string
    Position TokenValidationRulesPositionArgs
    Update rule order among zone rules.
    Selector TokenValidationRulesSelectorArgs

    Select operations covered by this rule.

    For details on selectors, see the Cloudflare Docs.

    Title string
    A human-readable name for the rule.
    ZoneId string
    Identifier.
    action String
    Action to take on requests that match operations included in selector and fail expression. Available values: "log", "block".
    createdAt String
    description String
    A human-readable description that gives more details than title.
    enabled Boolean
    Toggle rule on or off.
    expression String
    Rule expression. Requests that fail to match this expression will be subject to action.
    lastUpdated String
    position TokenValidationRulesPosition
    Update rule order among zone rules.
    selector TokenValidationRulesSelector

    Select operations covered by this rule.

    For details on selectors, see the Cloudflare Docs.

    title String
    A human-readable name for the rule.
    zoneId String
    Identifier.
    action string
    Action to take on requests that match operations included in selector and fail expression. Available values: "log", "block".
    createdAt string
    description string
    A human-readable description that gives more details than title.
    enabled boolean
    Toggle rule on or off.
    expression string
    Rule expression. Requests that fail to match this expression will be subject to action.
    lastUpdated string
    position TokenValidationRulesPosition
    Update rule order among zone rules.
    selector TokenValidationRulesSelector

    Select operations covered by this rule.

    For details on selectors, see the Cloudflare Docs.

    title string
    A human-readable name for the rule.
    zoneId string
    Identifier.
    action str
    Action to take on requests that match operations included in selector and fail expression. Available values: "log", "block".
    created_at str
    description str
    A human-readable description that gives more details than title.
    enabled bool
    Toggle rule on or off.
    expression str
    Rule expression. Requests that fail to match this expression will be subject to action.
    last_updated str
    position TokenValidationRulesPositionArgs
    Update rule order among zone rules.
    selector TokenValidationRulesSelectorArgs

    Select operations covered by this rule.

    For details on selectors, see the Cloudflare Docs.

    title str
    A human-readable name for the rule.
    zone_id str
    Identifier.
    action String
    Action to take on requests that match operations included in selector and fail expression. Available values: "log", "block".
    createdAt String
    description String
    A human-readable description that gives more details than title.
    enabled Boolean
    Toggle rule on or off.
    expression String
    Rule expression. Requests that fail to match this expression will be subject to action.
    lastUpdated String
    position Property Map
    Update rule order among zone rules.
    selector Property Map

    Select operations covered by this rule.

    For details on selectors, see the Cloudflare Docs.

    title String
    A human-readable name for the rule.
    zoneId String
    Identifier.

    Supporting Types

    TokenValidationRulesPosition, TokenValidationRulesPositionArgs

    After string
    Move rule to after rule with this ID.
    Before string
    Move rule to before rule with this ID.
    Index int
    Move rule to this position
    After string
    Move rule to after rule with this ID.
    Before string
    Move rule to before rule with this ID.
    Index int
    Move rule to this position
    after String
    Move rule to after rule with this ID.
    before String
    Move rule to before rule with this ID.
    index Integer
    Move rule to this position
    after string
    Move rule to after rule with this ID.
    before string
    Move rule to before rule with this ID.
    index number
    Move rule to this position
    after str
    Move rule to after rule with this ID.
    before str
    Move rule to before rule with this ID.
    index int
    Move rule to this position
    after String
    Move rule to after rule with this ID.
    before String
    Move rule to before rule with this ID.
    index Number
    Move rule to this position

    TokenValidationRulesSelector, TokenValidationRulesSelectorArgs

    Excludes List<TokenValidationRulesSelectorExclude>
    Ignore operations that were otherwise included by include.
    Includes List<TokenValidationRulesSelectorInclude>
    Select all matching operations.
    Excludes []TokenValidationRulesSelectorExclude
    Ignore operations that were otherwise included by include.
    Includes []TokenValidationRulesSelectorInclude
    Select all matching operations.
    excludes List<TokenValidationRulesSelectorExclude>
    Ignore operations that were otherwise included by include.
    includes List<TokenValidationRulesSelectorInclude>
    Select all matching operations.
    excludes TokenValidationRulesSelectorExclude[]
    Ignore operations that were otherwise included by include.
    includes TokenValidationRulesSelectorInclude[]
    Select all matching operations.
    excludes Sequence[TokenValidationRulesSelectorExclude]
    Ignore operations that were otherwise included by include.
    includes Sequence[TokenValidationRulesSelectorInclude]
    Select all matching operations.
    excludes List<Property Map>
    Ignore operations that were otherwise included by include.
    includes List<Property Map>
    Select all matching operations.

    TokenValidationRulesSelectorExclude, TokenValidationRulesSelectorExcludeArgs

    OperationIds List<string>
    Excluded operation IDs.
    OperationIds []string
    Excluded operation IDs.
    operationIds List<String>
    Excluded operation IDs.
    operationIds string[]
    Excluded operation IDs.
    operation_ids Sequence[str]
    Excluded operation IDs.
    operationIds List<String>
    Excluded operation IDs.

    TokenValidationRulesSelectorInclude, TokenValidationRulesSelectorIncludeArgs

    Hosts List<string>
    Included hostnames.
    Hosts []string
    Included hostnames.
    hosts List<String>
    Included hostnames.
    hosts string[]
    Included hostnames.
    hosts Sequence[str]
    Included hostnames.
    hosts List<String>
    Included hostnames.

    Import

    $ pulumi import cloudflare:index/tokenValidationRules:TokenValidationRules example '<zone_id>/<rule_id>'
    

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

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate