UNPKG

@lubyou/pulumi-fortios

Version:

A Pulumi package for creating and managing fortios cloud resources.

95 lines 5.83 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.SystemSnmpUser = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class SystemSnmpUser extends pulumi.CustomResource { /** * Get an existing SystemSnmpUser 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 SystemSnmpUser(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of SystemSnmpUser. 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'] === SystemSnmpUser.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["authProto"] = state ? state.authProto : undefined; resourceInputs["authPwd"] = state ? state.authPwd : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["events"] = state ? state.events : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["haDirect"] = state ? state.haDirect : undefined; resourceInputs["mibView"] = state ? state.mibView : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["notifyHosts"] = state ? state.notifyHosts : undefined; resourceInputs["notifyHosts6"] = state ? state.notifyHosts6 : undefined; resourceInputs["privProto"] = state ? state.privProto : undefined; resourceInputs["privPwd"] = state ? state.privPwd : undefined; resourceInputs["queries"] = state ? state.queries : undefined; resourceInputs["queryPort"] = state ? state.queryPort : undefined; resourceInputs["securityLevel"] = state ? state.securityLevel : undefined; resourceInputs["sourceIp"] = state ? state.sourceIp : undefined; resourceInputs["sourceIpv6"] = state ? state.sourceIpv6 : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["trapLport"] = state ? state.trapLport : undefined; resourceInputs["trapRport"] = state ? state.trapRport : undefined; resourceInputs["trapStatus"] = state ? state.trapStatus : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["vdoms"] = state ? state.vdoms : undefined; } else { const args = argsOrState; resourceInputs["authProto"] = args ? args.authProto : undefined; resourceInputs["authPwd"] = (args === null || args === void 0 ? void 0 : args.authPwd) ? pulumi.secret(args.authPwd) : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["events"] = args ? args.events : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["haDirect"] = args ? args.haDirect : undefined; resourceInputs["mibView"] = args ? args.mibView : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["notifyHosts"] = args ? args.notifyHosts : undefined; resourceInputs["notifyHosts6"] = args ? args.notifyHosts6 : undefined; resourceInputs["privProto"] = args ? args.privProto : undefined; resourceInputs["privPwd"] = (args === null || args === void 0 ? void 0 : args.privPwd) ? pulumi.secret(args.privPwd) : undefined; resourceInputs["queries"] = args ? args.queries : undefined; resourceInputs["queryPort"] = args ? args.queryPort : undefined; resourceInputs["securityLevel"] = args ? args.securityLevel : undefined; resourceInputs["sourceIp"] = args ? args.sourceIp : undefined; resourceInputs["sourceIpv6"] = args ? args.sourceIpv6 : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["trapLport"] = args ? args.trapLport : undefined; resourceInputs["trapRport"] = args ? args.trapRport : undefined; resourceInputs["trapStatus"] = args ? args.trapStatus : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["vdoms"] = args ? args.vdoms : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["authPwd", "privPwd"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(SystemSnmpUser.__pulumiType, name, resourceInputs, opts); } } exports.SystemSnmpUser = SystemSnmpUser; /** @internal */ SystemSnmpUser.__pulumiType = 'fortios:index/systemSnmpUser:SystemSnmpUser'; //# sourceMappingURL=systemSnmpUser.js.map