@pulumi/fastly
Version:
A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4
74 lines (73 loc) • 2.31 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Use this data source to get a list of [Fastly Next-Gen WAF Virtual Patches][1] for a given workspace.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fastly from "@pulumi/fastly";
*
* const listPatches = fastly.getNgwafVirtualPatches({
* workspaceId: testVirtualPatchesWorkspace.id,
* });
* export const fastlyNgwafVirtualPatchesAll = listPatches;
* ```
*
* [1]: https://www.fastly.com/documentation/reference/api/ngwaf/virtual-patches/
*/
export declare function getNgwafVirtualPatches(args: GetNgwafVirtualPatchesArgs, opts?: pulumi.InvokeOptions): Promise<GetNgwafVirtualPatchesResult>;
/**
* A collection of arguments for invoking getNgwafVirtualPatches.
*/
export interface GetNgwafVirtualPatchesArgs {
/**
* The ID of the workspace.
*/
workspaceId: string;
}
/**
* A collection of values returned by getNgwafVirtualPatches.
*/
export interface GetNgwafVirtualPatchesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* List of all virtual patches for a given workspace.
*/
readonly virtualPatches: outputs.GetNgwafVirtualPatchesVirtualPatch[];
/**
* The ID of the workspace.
*/
readonly workspaceId: string;
}
/**
* Use this data source to get a list of [Fastly Next-Gen WAF Virtual Patches][1] for a given workspace.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fastly from "@pulumi/fastly";
*
* const listPatches = fastly.getNgwafVirtualPatches({
* workspaceId: testVirtualPatchesWorkspace.id,
* });
* export const fastlyNgwafVirtualPatchesAll = listPatches;
* ```
*
* [1]: https://www.fastly.com/documentation/reference/api/ngwaf/virtual-patches/
*/
export declare function getNgwafVirtualPatchesOutput(args: GetNgwafVirtualPatchesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNgwafVirtualPatchesResult>;
/**
* A collection of arguments for invoking getNgwafVirtualPatches.
*/
export interface GetNgwafVirtualPatchesOutputArgs {
/**
* The ID of the workspace.
*/
workspaceId: pulumi.Input<string>;
}