UNPKG

@pulumi/cloudngfwaws

Version:

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

110 lines 4.34 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.FqdnList = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Resource for fqdn list 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", * }, * }); * const example = new cloudngfwaws.FqdnList("example", { * rulestack: r.name, * name: "tf-fqdn-list", * description: "Also configured by Terraform", * fqdnLists: [ * "example.com", * "foobar.org", * ], * auditComment: "initial config", * }); * ``` * * ## Import * * import name is <scope>:<rulestack>:<fqdn_list_name> * * ```sh * $ pulumi import cloudngfwaws:index/fqdnList:FqdnList example Local:terraform-rulestack:tf-fqdn-list * ``` */ class FqdnList extends pulumi.CustomResource { /** * Get an existing FqdnList 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 FqdnList(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of FqdnList. 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'] === FqdnList.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["auditComment"] = state ? state.auditComment : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["fqdnLists"] = state ? state.fqdnLists : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["rulestack"] = state ? state.rulestack : undefined; resourceInputs["scope"] = state ? state.scope : undefined; resourceInputs["updateToken"] = state ? state.updateToken : undefined; } else { const args = argsOrState; if ((!args || args.fqdnLists === undefined) && !opts.urn) { throw new Error("Missing required property 'fqdnLists'"); } if ((!args || args.rulestack === undefined) && !opts.urn) { throw new Error("Missing required property 'rulestack'"); } resourceInputs["auditComment"] = args ? args.auditComment : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["fqdnLists"] = args ? args.fqdnLists : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["rulestack"] = args ? args.rulestack : undefined; resourceInputs["scope"] = args ? args.scope : undefined; resourceInputs["updateToken"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(FqdnList.__pulumiType, name, resourceInputs, opts); } } exports.FqdnList = FqdnList; /** @internal */ FqdnList.__pulumiType = 'cloudngfwaws:index/fqdnList:FqdnList'; //# sourceMappingURL=fqdnList.js.map