@pulumi/fastly
Version:
A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4
126 lines (125 loc) • 4.13 kB
TypeScript
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: "List of known bot IPs shared across workspaces",
* type: "ip",
* entries: [
* "1.2.3.4",
* "5.6.7.8",
* "203.0.113.42",
* ],
* });
* ```
*
* ## 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 <listID>
* ```
*/
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<pulumi.ID>, 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<string[]>;
/**
* The description of the list.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The values in the list.
*/
readonly entries: pulumi.Output<string[]>;
/**
* The name of the list.
*/
readonly name: pulumi.Output<string>;
/**
* The type of list. Accepted values are `string`, `wildcard`, `ip`, `country`, and `signal`.
*/
readonly type: pulumi.Output<string>;
/**
* 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<pulumi.Input<string>[]>;
/**
* The description of the list.
*/
description?: pulumi.Input<string>;
/**
* The values in the list.
*/
entries?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The name of the list.
*/
name?: pulumi.Input<string>;
/**
* The type of list. Accepted values are `string`, `wildcard`, `ip`, `country`, and `signal`.
*/
type?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a NgwafAccountList resource.
*/
export interface NgwafAccountListArgs {
/**
* The description of the list.
*/
description?: pulumi.Input<string>;
/**
* The values in the list.
*/
entries: pulumi.Input<pulumi.Input<string>[]>;
/**
* The name of the list.
*/
name?: pulumi.Input<string>;
/**
* The type of list. Accepted values are `string`, `wildcard`, `ip`, `country`, and `signal`.
*/
type: pulumi.Input<string>;
}