@pulumi/fastly
Version:
A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4
70 lines (69 loc) • 1.99 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Use this data source to get a Fastly Next-Gen WAF Workspace Rule.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fastly from "@pulumi/fastly";
*
* const workspaceRules = fastly.getNgwafWorkspaceRules({
* workspaceId: example.id,
* });
* export const fastlyNgwafWorkspaceRulesAll = workspaceRules;
* ```
*/
export declare function getNgwafWorkspaceRules(args: GetNgwafWorkspaceRulesArgs, opts?: pulumi.InvokeOptions): Promise<GetNgwafWorkspaceRulesResult>;
/**
* A collection of arguments for invoking getNgwafWorkspaceRules.
*/
export interface GetNgwafWorkspaceRulesArgs {
/**
* The ID of the workspace.
*/
workspaceId: string;
}
/**
* A collection of values returned by getNgwafWorkspaceRules.
*/
export interface GetNgwafWorkspaceRulesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The list of rules.
*/
readonly rules: outputs.GetNgwafWorkspaceRulesRule[];
/**
* The ID of the workspace.
*/
readonly workspaceId: string;
}
/**
* Use this data source to get a Fastly Next-Gen WAF Workspace Rule.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fastly from "@pulumi/fastly";
*
* const workspaceRules = fastly.getNgwafWorkspaceRules({
* workspaceId: example.id,
* });
* export const fastlyNgwafWorkspaceRulesAll = workspaceRules;
* ```
*/
export declare function getNgwafWorkspaceRulesOutput(args: GetNgwafWorkspaceRulesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNgwafWorkspaceRulesResult>;
/**
* A collection of arguments for invoking getNgwafWorkspaceRules.
*/
export interface GetNgwafWorkspaceRulesOutputArgs {
/**
* The ID of the workspace.
*/
workspaceId: pulumi.Input<string>;
}