import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource which manages Cloudflare custom error pages. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * const basicChallenge = new cloudflare.CustomPages("basic_challenge", { * state: "customized", * type: "basic_challenge", * url: "https://example.com/challenge.html", * zoneId: "d41d8cd98f00b204e9800998ecf8427e", * }); * ``` * * ## Import * * Custom pages can be imported using a composite ID formed of* `customPageLevel` - Either `account` or `zone`. * `identifier` - The ID of the account or zone you intend to manage. * `pageType` - The value from the `type` argument. Example for a zone * * ```sh * $ pulumi import cloudflare:index/customPages:CustomPages basic_challenge zone/d41d8cd98f00b204e9800998ecf8427e/basic_challenge * ``` * * Example for an account * * ```sh * $ pulumi import cloudflare:index/customPages:CustomPages basic_challenge account/e268443e43d93dab7ebef303bbe9642f/basic_challenge * ``` */ export declare class CustomPages extends pulumi.CustomResource { /** * Get an existing CustomPages 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?: CustomPagesState, opts?: pulumi.CustomResourceOptions): CustomPages; /** * Returns true if the given object is an instance of CustomPages. 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 CustomPages; /** * The account ID where the custom pages should be * updated. Either `accountId` or `zoneId` must be provided. If * `accountId` is present, it will override the zone setting. */ readonly accountId: pulumi.Output; readonly state: pulumi.Output; /** * The type of custom page you wish to update. Must * be one of `basicChallenge`, `wafChallenge`, `wafBlock`, * `ratelimitBlock`, `countryChallenge`, `ipBlock`, `underAttack`, * `500Errors`, `1000Errors`, `alwaysOnline`, `managedChallenge`. */ readonly type: pulumi.Output; /** * URL of where the custom page source is located. */ readonly url: pulumi.Output; /** * The zone ID where the custom pages should be * updated. Either `zoneId` or `accountId` must be provided. */ readonly zoneId: pulumi.Output; /** * Create a CustomPages 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: CustomPagesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CustomPages resources. */ export interface CustomPagesState { /** * The account ID where the custom pages should be * updated. Either `accountId` or `zoneId` must be provided. If * `accountId` is present, it will override the zone setting. */ accountId?: pulumi.Input; state?: pulumi.Input; /** * The type of custom page you wish to update. Must * be one of `basicChallenge`, `wafChallenge`, `wafBlock`, * `ratelimitBlock`, `countryChallenge`, `ipBlock`, `underAttack`, * `500Errors`, `1000Errors`, `alwaysOnline`, `managedChallenge`. */ type?: pulumi.Input; /** * URL of where the custom page source is located. */ url?: pulumi.Input; /** * The zone ID where the custom pages should be * updated. Either `zoneId` or `accountId` must be provided. */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a CustomPages resource. */ export interface CustomPagesArgs { /** * The account ID where the custom pages should be * updated. Either `accountId` or `zoneId` must be provided. If * `accountId` is present, it will override the zone setting. */ accountId?: pulumi.Input; state?: pulumi.Input; /** * The type of custom page you wish to update. Must * be one of `basicChallenge`, `wafChallenge`, `wafBlock`, * `ratelimitBlock`, `countryChallenge`, `ipBlock`, `underAttack`, * `500Errors`, `1000Errors`, `alwaysOnline`, `managedChallenge`. */ type: pulumi.Input; /** * URL of where the custom page source is located. */ url: pulumi.Input; /** * The zone ID where the custom pages should be * updated. Either `zoneId` or `accountId` must be provided. */ zoneId?: pulumi.Input; }