import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Example Usage * * ## Import * * ```sh * $ pulumi import cloudflare:index/ruleset:Ruleset example '<{accounts|zones}/{account_id|zone_id}>/' * ``` */ export declare class Ruleset extends pulumi.CustomResource { /** * Get an existing Ruleset resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: RulesetState, opts?: pulumi.CustomResourceOptions): Ruleset; /** * Returns true if the given object is an instance of Ruleset. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Ruleset; /** * The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ readonly accountId: pulumi.Output; /** * An informative description of the ruleset. */ readonly description: pulumi.Output; /** * The kind of the ruleset. * Available values: "managed", "custom", "root", "zone". */ readonly kind: pulumi.Output; /** * The human-readable name of the ruleset. */ readonly name: pulumi.Output; /** * The phase of the ruleset. * Available values: "ddos*l4", "ddos*l7", "http*config*settings", "http*custom*errors", "http*log*custom*fields", "http*ratelimit", "http*request*cache*settings", "http*request*dynamic*redirect", "http*request*firewall*custom", "http*request*firewall*managed", "http*request*late*transform", "http*request*origin", "http*request*redirect", "http*request*sanitize", "http*request*sbfm", "http*request*transform", "http*response*compression", "http*response*firewall*managed", "http*response*headers*transform", "magic*transit", "magic*transit*ids*managed", "magic*transit*managed", "magic*transit_ratelimit". */ readonly phase: pulumi.Output; /** * The list of rules in the ruleset. */ readonly rules: pulumi.Output; /** * The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ readonly zoneId: pulumi.Output; /** * Create a Ruleset resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: RulesetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Ruleset resources. */ export interface RulesetState { /** * The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId?: pulumi.Input; /** * An informative description of the ruleset. */ description?: pulumi.Input; /** * The kind of the ruleset. * Available values: "managed", "custom", "root", "zone". */ kind?: pulumi.Input; /** * The human-readable name of the ruleset. */ name?: pulumi.Input; /** * The phase of the ruleset. * Available values: "ddos*l4", "ddos*l7", "http*config*settings", "http*custom*errors", "http*log*custom*fields", "http*ratelimit", "http*request*cache*settings", "http*request*dynamic*redirect", "http*request*firewall*custom", "http*request*firewall*managed", "http*request*late*transform", "http*request*origin", "http*request*redirect", "http*request*sanitize", "http*request*sbfm", "http*request*transform", "http*response*compression", "http*response*firewall*managed", "http*response*headers*transform", "magic*transit", "magic*transit*ids*managed", "magic*transit*managed", "magic*transit_ratelimit". */ phase?: pulumi.Input; /** * The list of rules in the ruleset. */ rules?: pulumi.Input[]>; /** * The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a Ruleset resource. */ export interface RulesetArgs { /** * The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId?: pulumi.Input; /** * An informative description of the ruleset. */ description?: pulumi.Input; /** * The kind of the ruleset. * Available values: "managed", "custom", "root", "zone". */ kind: pulumi.Input; /** * The human-readable name of the ruleset. */ name: pulumi.Input; /** * The phase of the ruleset. * Available values: "ddos*l4", "ddos*l7", "http*config*settings", "http*custom*errors", "http*log*custom*fields", "http*ratelimit", "http*request*cache*settings", "http*request*dynamic*redirect", "http*request*firewall*custom", "http*request*firewall*managed", "http*request*late*transform", "http*request*origin", "http*request*redirect", "http*request*sanitize", "http*request*sbfm", "http*request*transform", "http*response*compression", "http*response*firewall*managed", "http*response*headers*transform", "magic*transit", "magic*transit*ids*managed", "magic*transit*managed", "magic*transit_ratelimit". */ phase: pulumi.Input; /** * The list of rules in the ruleset. */ rules?: pulumi.Input[]>; /** * The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId?: pulumi.Input; }