@pulumi/cloudngfwaws
Version:
A Pulumi package for creating and managing Cloud NGFW for AWS resources.
118 lines • 5.05 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.IntelligentFeed = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Resource for intelligent feed manipulation.
*
* ## 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: "terraform-rulestack",
* scope: "Local",
* accountId: "123456789",
* description: "Made by Pulumi",
* profileConfig: {
* antiSpyware: "BestPractice",
* },
* });
* // Retrieve the feed information every day at midnight.
* const example = new cloudngfwaws.IntelligentFeed("example", {
* rulestack: r.name,
* name: "tf-feed",
* description: "Also configured by Terraform",
* url: "https://foobar.net",
* type: "URL_LIST",
* frequency: "DAILY",
* time: 0,
* });
* ```
*
* ## Import
*
* import name is <scope>:<rulestack>:<intelligent_feed_name>
*
* ```sh
* $ pulumi import cloudngfwaws:index/intelligentFeed:IntelligentFeed example Local:terraform-rulestack:tf-feed
* ```
*/
class IntelligentFeed extends pulumi.CustomResource {
/**
* Get an existing IntelligentFeed resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new IntelligentFeed(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of IntelligentFeed. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === IntelligentFeed.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["auditComment"] = state ? state.auditComment : undefined;
resourceInputs["certificate"] = state ? state.certificate : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["frequency"] = state ? state.frequency : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["rulestack"] = state ? state.rulestack : undefined;
resourceInputs["scope"] = state ? state.scope : undefined;
resourceInputs["time"] = state ? state.time : undefined;
resourceInputs["type"] = state ? state.type : undefined;
resourceInputs["updateToken"] = state ? state.updateToken : undefined;
resourceInputs["url"] = state ? state.url : undefined;
}
else {
const args = argsOrState;
if ((!args || args.rulestack === undefined) && !opts.urn) {
throw new Error("Missing required property 'rulestack'");
}
if ((!args || args.url === undefined) && !opts.urn) {
throw new Error("Missing required property 'url'");
}
resourceInputs["auditComment"] = args ? args.auditComment : undefined;
resourceInputs["certificate"] = args ? args.certificate : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["frequency"] = args ? args.frequency : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["rulestack"] = args ? args.rulestack : undefined;
resourceInputs["scope"] = args ? args.scope : undefined;
resourceInputs["time"] = args ? args.time : undefined;
resourceInputs["type"] = args ? args.type : undefined;
resourceInputs["url"] = args ? args.url : undefined;
resourceInputs["updateToken"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(IntelligentFeed.__pulumiType, name, resourceInputs, opts);
}
}
exports.IntelligentFeed = IntelligentFeed;
/** @internal */
IntelligentFeed.__pulumiType = 'cloudngfwaws:index/intelligentFeed:IntelligentFeed';
//# sourceMappingURL=intelligentFeed.js.map