@pulumi/cloudngfwaws
Version:
A Pulumi package for creating and managing Cloud NGFW for AWS resources.
86 lines • 2.72 kB
JavaScript
;
// *** 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.getCustomUrlCategoryOutput = exports.getCustomUrlCategory = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Data source for retrieving custom url category 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.getCustomUrlCategoryOutput({
* rulestack: r.name,
* name: "foobar",
* });
* ```
*/
function getCustomUrlCategory(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("cloudngfwaws:index/getCustomUrlCategory:getCustomUrlCategory", {
"configType": args.configType,
"name": args.name,
"rulestack": args.rulestack,
"scope": args.scope,
}, opts);
}
exports.getCustomUrlCategory = getCustomUrlCategory;
/**
* Data source for retrieving custom url category 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.getCustomUrlCategoryOutput({
* rulestack: r.name,
* name: "foobar",
* });
* ```
*/
function getCustomUrlCategoryOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("cloudngfwaws:index/getCustomUrlCategory:getCustomUrlCategory", {
"configType": args.configType,
"name": args.name,
"rulestack": args.rulestack,
"scope": args.scope,
}, opts);
}
exports.getCustomUrlCategoryOutput = getCustomUrlCategoryOutput;
//# sourceMappingURL=getCustomUrlCategory.js.map