import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "./types"; /** * IP Lists are a set of IP addresses or CIDR ranges that are configured on the account level. Once created, IP Lists can be * used in Firewall Rules across all zones within the same account. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * const example = new cloudflare.IpList("example", { * accountId: "d41d8cd98f00b204e9800998ecf8427e", * description: "list description", * items: [ * { * comment: "Office IP", * value: "192.0.2.1", * }, * { * comment: "Datacenter range", * value: "203.0.113.0/24", * }, * ], * kind: "ip", * name: "example_list", * }); * ``` * * ## Import * * An existing IP List can be imported using the account ID and list ID * * ```sh * $ pulumi import cloudflare:index/ipList:IpList example d41d8cd98f00b204e9800998ecf8427e/cb029e245cfdd66dc8d2e570d5dd3322 * ``` */ export declare class IpList extends pulumi.CustomResource { /** * Get an existing IpList 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?: IpListState, opts?: pulumi.CustomResourceOptions): IpList; /** * Returns true if the given object is an instance of IpList. 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 IpList; /** * The ID of the account where the IP List is being created. */ readonly accountId: pulumi.Output; /** * A note that can be used to annotate the List. Maximum Length: 500 */ readonly description: pulumi.Output; readonly items: pulumi.Output; /** * The kind of values in the List. Valid values: `ip`. */ readonly kind: pulumi.Output; /** * The name of the list (used in filter expressions). Valid pattern: `^[a-zA-Z0-9_]+$`. Maximum Length: 50 */ readonly name: pulumi.Output; /** * Create a IpList 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: IpListArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IpList resources. */ export interface IpListState { /** * The ID of the account where the IP List is being created. */ accountId?: pulumi.Input; /** * A note that can be used to annotate the List. Maximum Length: 500 */ description?: pulumi.Input; items?: pulumi.Input[]>; /** * The kind of values in the List. Valid values: `ip`. */ kind?: pulumi.Input; /** * The name of the list (used in filter expressions). Valid pattern: `^[a-zA-Z0-9_]+$`. Maximum Length: 50 */ name?: pulumi.Input; } /** * The set of arguments for constructing a IpList resource. */ export interface IpListArgs { /** * The ID of the account where the IP List is being created. */ accountId: pulumi.Input; /** * A note that can be used to annotate the List. Maximum Length: 500 */ description?: pulumi.Input; items?: pulumi.Input[]>; /** * The kind of values in the List. Valid values: `ip`. */ kind: pulumi.Input; /** * The name of the list (used in filter expressions). Valid pattern: `^[a-zA-Z0-9_]+$`. Maximum Length: 50 */ name: pulumi.Input; }