@pulumi/fastly
Version:
A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4
177 lines (176 loc) • 5.42 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a Fastly Next-Gen WAF Threshold. Operations related to managing workspace thresholds.
*
* ## Example Usage
*
* Basic usage:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fastly from "@pulumi/fastly";
*
* const demo = new fastly.NgwafThresholds("demo", {
* action: "block",
* dontNotify: false,
* duration: 86400,
* enabled: true,
* interval: 3600,
* limit: 10,
* name: "%s",
* signal: "SQLI",
* workspaceId: example.id,
* });
* ```
*
* ## Import
*
* Fastly Next-Gen WAF Thresholds can be imported using their workspace and Threshold ID, e.g.
*
* ```sh
* $ pulumi import fastly:index/ngwafThresholds:NgwafThresholds example <workspace_id>/<threshold_id>
* ```
*/
export declare class NgwafThresholds extends pulumi.CustomResource {
/**
* Get an existing NgwafThresholds 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?: NgwafThresholdsState, opts?: pulumi.CustomResourceOptions): NgwafThresholds;
/**
* Returns true if the given object is an instance of NgwafThresholds. 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 NgwafThresholds;
/**
* Action to take when threshold is exceeded.
*/
readonly action: pulumi.Output<string>;
/**
* Whether to silence notifications when action is taken.
*/
readonly dontNotify: pulumi.Output<boolean>;
/**
* Duration the action is in place, in seconds. Minimum 1 and maximum 31,556,900.
*/
readonly duration: pulumi.Output<number | undefined>;
/**
* Whether this threshold is active.
*/
readonly enabled: pulumi.Output<boolean>;
/**
* Threshold interval in seconds. Accepted values are `60`, `600`, and `3600`.
*/
readonly interval: pulumi.Output<number>;
/**
* Threshold limit. Minimum 1 and maximum 10,000.
*/
readonly limit: pulumi.Output<number>;
/**
* The name of the threshold.
*/
readonly name: pulumi.Output<string>;
/**
* The name of the signal this threshold is acting on.
*/
readonly signal: pulumi.Output<string>;
/**
* The ID of the workspace.
*/
readonly workspaceId: pulumi.Output<string>;
/**
* Create a NgwafThresholds 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: NgwafThresholdsArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering NgwafThresholds resources.
*/
export interface NgwafThresholdsState {
/**
* Action to take when threshold is exceeded.
*/
action?: pulumi.Input<string>;
/**
* Whether to silence notifications when action is taken.
*/
dontNotify?: pulumi.Input<boolean>;
/**
* Duration the action is in place, in seconds. Minimum 1 and maximum 31,556,900.
*/
duration?: pulumi.Input<number>;
/**
* Whether this threshold is active.
*/
enabled?: pulumi.Input<boolean>;
/**
* Threshold interval in seconds. Accepted values are `60`, `600`, and `3600`.
*/
interval?: pulumi.Input<number>;
/**
* Threshold limit. Minimum 1 and maximum 10,000.
*/
limit?: pulumi.Input<number>;
/**
* The name of the threshold.
*/
name?: pulumi.Input<string>;
/**
* The name of the signal this threshold is acting on.
*/
signal?: pulumi.Input<string>;
/**
* The ID of the workspace.
*/
workspaceId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a NgwafThresholds resource.
*/
export interface NgwafThresholdsArgs {
/**
* Action to take when threshold is exceeded.
*/
action: pulumi.Input<string>;
/**
* Whether to silence notifications when action is taken.
*/
dontNotify: pulumi.Input<boolean>;
/**
* Duration the action is in place, in seconds. Minimum 1 and maximum 31,556,900.
*/
duration?: pulumi.Input<number>;
/**
* Whether this threshold is active.
*/
enabled: pulumi.Input<boolean>;
/**
* Threshold interval in seconds. Accepted values are `60`, `600`, and `3600`.
*/
interval: pulumi.Input<number>;
/**
* Threshold limit. Minimum 1 and maximum 10,000.
*/
limit: pulumi.Input<number>;
/**
* The name of the threshold.
*/
name?: pulumi.Input<string>;
/**
* The name of the signal this threshold is acting on.
*/
signal: pulumi.Input<string>;
/**
* The ID of the workspace.
*/
workspaceId: pulumi.Input<string>;
}