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/pageRule:PageRule example '/' * ``` */ export declare class PageRule extends pulumi.CustomResource { /** * Get an existing PageRule 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?: PageRuleState, opts?: pulumi.CustomResourceOptions): PageRule; /** * Returns true if the given object is an instance of PageRule. 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 PageRule; readonly actions: pulumi.Output; /** * The timestamp of when the Page Rule was created. */ readonly createdOn: pulumi.Output; /** * The timestamp of when the Page Rule was last modified. */ readonly modifiedOn: pulumi.Output; /** * The priority of the rule, used to define which Page Rule is processed * over another. A higher number indicates a higher priority. For example, * if you have a catch-all Page Rule (rule A: `/images/*`) but want a more * specific Page Rule to take precedence (rule B: `/images/special/*`), * specify a higher priority for rule B so it overrides rule A. */ readonly priority: pulumi.Output; /** * The status of the Page Rule. * Available values: "active", "disabled". */ readonly status: pulumi.Output; readonly target: pulumi.Output; /** * Identifier. */ readonly zoneId: pulumi.Output; /** * Create a PageRule 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: PageRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PageRule resources. */ export interface PageRuleState { actions?: pulumi.Input; /** * The timestamp of when the Page Rule was created. */ createdOn?: pulumi.Input; /** * The timestamp of when the Page Rule was last modified. */ modifiedOn?: pulumi.Input; /** * The priority of the rule, used to define which Page Rule is processed * over another. A higher number indicates a higher priority. For example, * if you have a catch-all Page Rule (rule A: `/images/*`) but want a more * specific Page Rule to take precedence (rule B: `/images/special/*`), * specify a higher priority for rule B so it overrides rule A. */ priority?: pulumi.Input; /** * The status of the Page Rule. * Available values: "active", "disabled". */ status?: pulumi.Input; target?: pulumi.Input; /** * Identifier. */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a PageRule resource. */ export interface PageRuleArgs { actions: pulumi.Input; /** * The priority of the rule, used to define which Page Rule is processed * over another. A higher number indicates a higher priority. For example, * if you have a catch-all Page Rule (rule A: `/images/*`) but want a more * specific Page Rule to take precedence (rule B: `/images/special/*`), * specify a higher priority for rule B so it overrides rule A. */ priority?: pulumi.Input; /** * The status of the Page Rule. * Available values: "active", "disabled". */ status?: pulumi.Input; target: pulumi.Input; /** * Identifier. */ zoneId: pulumi.Input; }