UNPKG

@lubyou/pulumi-fortios

Version:

A Pulumi package for creating and managing fortios cloud resources.

92 lines 5.54 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.SystemSnmpCommunity = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class SystemSnmpCommunity extends pulumi.CustomResource { /** * Get an existing SystemSnmpCommunity 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 SystemSnmpCommunity(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of SystemSnmpCommunity. 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'] === SystemSnmpCommunity.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["events"] = state ? state.events : undefined; resourceInputs["fosid"] = state ? state.fosid : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["hosts"] = state ? state.hosts : undefined; resourceInputs["hosts6s"] = state ? state.hosts6s : undefined; resourceInputs["mibView"] = state ? state.mibView : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["queryV1Port"] = state ? state.queryV1Port : undefined; resourceInputs["queryV1Status"] = state ? state.queryV1Status : undefined; resourceInputs["queryV2cPort"] = state ? state.queryV2cPort : undefined; resourceInputs["queryV2cStatus"] = state ? state.queryV2cStatus : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["trapV1Lport"] = state ? state.trapV1Lport : undefined; resourceInputs["trapV1Rport"] = state ? state.trapV1Rport : undefined; resourceInputs["trapV1Status"] = state ? state.trapV1Status : undefined; resourceInputs["trapV2cLport"] = state ? state.trapV2cLport : undefined; resourceInputs["trapV2cRport"] = state ? state.trapV2cRport : undefined; resourceInputs["trapV2cStatus"] = state ? state.trapV2cStatus : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["vdoms"] = state ? state.vdoms : undefined; } else { const args = argsOrState; if ((!args || args.fosid === undefined) && !opts.urn) { throw new Error("Missing required property 'fosid'"); } resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["events"] = args ? args.events : undefined; resourceInputs["fosid"] = args ? args.fosid : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["hosts"] = args ? args.hosts : undefined; resourceInputs["hosts6s"] = args ? args.hosts6s : undefined; resourceInputs["mibView"] = args ? args.mibView : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["queryV1Port"] = args ? args.queryV1Port : undefined; resourceInputs["queryV1Status"] = args ? args.queryV1Status : undefined; resourceInputs["queryV2cPort"] = args ? args.queryV2cPort : undefined; resourceInputs["queryV2cStatus"] = args ? args.queryV2cStatus : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["trapV1Lport"] = args ? args.trapV1Lport : undefined; resourceInputs["trapV1Rport"] = args ? args.trapV1Rport : undefined; resourceInputs["trapV1Status"] = args ? args.trapV1Status : undefined; resourceInputs["trapV2cLport"] = args ? args.trapV2cLport : undefined; resourceInputs["trapV2cRport"] = args ? args.trapV2cRport : undefined; resourceInputs["trapV2cStatus"] = args ? args.trapV2cStatus : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["vdoms"] = args ? args.vdoms : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(SystemSnmpCommunity.__pulumiType, name, resourceInputs, opts); } } exports.SystemSnmpCommunity = SystemSnmpCommunity; /** @internal */ SystemSnmpCommunity.__pulumiType = 'fortios:index/systemSnmpCommunity:SystemSnmpCommunity'; //# sourceMappingURL=systemSnmpCommunity.js.map