@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
130 lines (129 loc) • 3.36 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of waf prohibitions
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.waf.getProhibitions({
* endTime: 1749808824,
* host: "www.tf-test.com",
* startTime: 1749805224,
* });
* ```
*/
/** @deprecated volcengine.waf.Prohibitions has been deprecated in favor of volcengine.waf.getProhibitions */
export declare function prohibitions(args: ProhibitionsArgs, opts?: pulumi.InvokeOptions): Promise<ProhibitionsResult>;
/**
* A collection of arguments for invoking Prohibitions.
*/
export interface ProhibitionsArgs {
/**
* end time.
*/
endTime: number;
/**
* The domain name of the website that needs to be queried.
*/
host: string;
/**
* The list shows the order.
*/
letterOrderBy?: string;
/**
* A Name Regex of Resource.
*/
nameRegex?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* Attack type filtering.
*/
reasons?: string[];
/**
* starting time.
*/
startTime: number;
}
/**
* A collection of values returned by Prohibitions.
*/
export interface ProhibitionsResult {
readonly endTime: number;
readonly host: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Details of the attack IP.
*/
readonly ipAggGroups: outputs.waf.ProhibitionsIpAggGroup[];
readonly letterOrderBy?: string;
readonly nameRegex?: string;
readonly outputFile?: string;
/**
* Reason for the ban.
*/
readonly reasons?: string[];
readonly startTime: number;
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of waf prohibitions
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.waf.getProhibitions({
* endTime: 1749808824,
* host: "www.tf-test.com",
* startTime: 1749805224,
* });
* ```
*/
/** @deprecated volcengine.waf.Prohibitions has been deprecated in favor of volcengine.waf.getProhibitions */
export declare function prohibitionsOutput(args: ProhibitionsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<ProhibitionsResult>;
/**
* A collection of arguments for invoking Prohibitions.
*/
export interface ProhibitionsOutputArgs {
/**
* end time.
*/
endTime: pulumi.Input<number>;
/**
* The domain name of the website that needs to be queried.
*/
host: pulumi.Input<string>;
/**
* The list shows the order.
*/
letterOrderBy?: pulumi.Input<string>;
/**
* A Name Regex of Resource.
*/
nameRegex?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* Attack type filtering.
*/
reasons?: pulumi.Input<pulumi.Input<string>[]>;
/**
* starting time.
*/
startTime: pulumi.Input<number>;
}