UNPKG

@pulumi/cloudngfwaws

Version:

A Pulumi package for creating and managing Cloud NGFW for AWS resources.

86 lines 2.6 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.getPrefixListOutput = exports.getPrefixList = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Data source for retrieving prefix list information. * * ## Admin Permission Type * * * `Rulestack` (for `scope="Local"`) * * `Global Rulestack` (for `scope="Global"`) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudngfwaws from "@pulumi/cloudngfwaws"; * * const r = new cloudngfwaws.Rulestack("r", { * name: "my-rulestack", * scope: "Local", * accountId: "12345", * description: "Made by Pulumi", * profileConfig: { * antiSpyware: "BestPractice", * }, * }); * const example = cloudngfwaws.getPrefixListOutput({ * rulestack: r.name, * name: "foobar", * }); * ``` */ function getPrefixList(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("cloudngfwaws:index/getPrefixList:getPrefixList", { "configType": args.configType, "name": args.name, "rulestack": args.rulestack, "scope": args.scope, }, opts); } exports.getPrefixList = getPrefixList; /** * Data source for retrieving prefix list information. * * ## Admin Permission Type * * * `Rulestack` (for `scope="Local"`) * * `Global Rulestack` (for `scope="Global"`) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudngfwaws from "@pulumi/cloudngfwaws"; * * const r = new cloudngfwaws.Rulestack("r", { * name: "my-rulestack", * scope: "Local", * accountId: "12345", * description: "Made by Pulumi", * profileConfig: { * antiSpyware: "BestPractice", * }, * }); * const example = cloudngfwaws.getPrefixListOutput({ * rulestack: r.name, * name: "foobar", * }); * ``` */ function getPrefixListOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("cloudngfwaws:index/getPrefixList:getPrefixList", { "configType": args.configType, "name": args.name, "rulestack": args.rulestack, "scope": args.scope, }, opts); } exports.getPrefixListOutput = getPrefixListOutput; //# sourceMappingURL=getPrefixList.js.map