UNPKG

@pulumi/fastly

Version:

A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4

56 lines 2.17 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getNgwafVirtualPatchesOutput = exports.getNgwafVirtualPatches = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * 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/ */ function getNgwafVirtualPatches(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("fastly:index/getNgwafVirtualPatches:getNgwafVirtualPatches", { "workspaceId": args.workspaceId, }, opts); } exports.getNgwafVirtualPatches = getNgwafVirtualPatches; /** * 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/ */ function getNgwafVirtualPatchesOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getNgwafVirtualPatches:getNgwafVirtualPatches", { "workspaceId": args.workspaceId, }, opts); } exports.getNgwafVirtualPatchesOutput = getNgwafVirtualPatchesOutput; //# sourceMappingURL=getNgwafVirtualPatches.js.map