import * as pulumi from "@pulumi/pulumi"; /** * Provides a Fastly Next-Gen WAF **List** resource scoped to an **account**. * * Account-scoped lists are reusable across all workspaces in the account and can be referenced in account-level or workspace-level rules. * * ## Example Usage * * Basic usage: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fastly from "@pulumi/fastly"; * * const example = new fastly.NgwafAccountList("example", { * name: "shared-bot-ip-list", * description: "Account list of known bot IPs shared across workspaces", * type: "ip", * entries: [ * "1.2.3.4", * "5.6.7.8", * "203.0.113.42", * ], * }); * // Example usage with a rule. * const exampleNgwafWorkspaceRule = new fastly.NgwafWorkspaceRule("example", { * workspaceId: exampleFastlyNgwafWorkspace.id, * type: "request", * description: "Example usage of a workspace list rule", * enabled: true, * requestLogging: "sampled", * conditions: [{ * field: "ip", * operator: "not_in_list", * value: pulumi.interpolate`corp.${example.name}`, * }], * actions: [{ * type: "block", * }], * }, { * dependsOn: [example], * }); * ``` * * ## Import * * Fastly Next-Gen WAF account-scoped lists can be imported using just the list ID, e.g.: * * ```sh * $ pulumi import fastly:index/ngwafAccountList:NgwafAccountList demo * ``` */ export declare class NgwafAccountList extends pulumi.CustomResource { /** * Get an existing NgwafAccountList 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?: NgwafAccountListState, opts?: pulumi.CustomResourceOptions): NgwafAccountList; /** * Returns true if the given object is an instance of NgwafAccountList. 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 NgwafAccountList; /** * INTERNAL: Used to build scope for account-scoped lists. Not user-configurable. */ readonly appliesTos: pulumi.Output; /** * The description of the list. */ readonly description: pulumi.Output; /** * The values in the list. */ readonly entries: pulumi.Output; /** * The name of the list. */ readonly name: pulumi.Output; /** * The type of list. Accepted values are `string`, `wildcard`, `ip`, `country`, and `signal`. */ readonly type: pulumi.Output; /** * Create a NgwafAccountList 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: NgwafAccountListArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NgwafAccountList resources. */ export interface NgwafAccountListState { /** * INTERNAL: Used to build scope for account-scoped lists. Not user-configurable. */ appliesTos?: pulumi.Input[] | undefined>; /** * The description of the list. */ description?: pulumi.Input; /** * The values in the list. */ entries?: pulumi.Input[] | undefined>; /** * The name of the list. */ name?: pulumi.Input; /** * The type of list. Accepted values are `string`, `wildcard`, `ip`, `country`, and `signal`. */ type?: pulumi.Input; } /** * The set of arguments for constructing a NgwafAccountList resource. */ export interface NgwafAccountListArgs { /** * The description of the list. */ description?: pulumi.Input; /** * The values in the list. */ entries: pulumi.Input[]>; /** * The name of the list. */ name?: pulumi.Input; /** * The type of list. Accepted values are `string`, `wildcard`, `ip`, `country`, and `signal`. */ type: pulumi.Input; } //# sourceMappingURL=ngwafAccountList.d.ts.map