UNPKG

@pulumiverse/fortios

Version:

A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0

104 lines 5.36 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.AdminAdministrator = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides a resource to configure administrator accounts of FortiOS. * * !> **Warning:** The resource will be deprecated and replaced by new resource `fortios.system.Admin`, we recommend that you use the new resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const admintest = new fortios.system.AdminAdministrator("admintest", { * accprofile: "3d3", * comments: "comments", * password: "cc37331AC1", * trusthost1: "1.1.1.0 255.255.255.0", * trusthost2: "2.2.2.0 255.255.255.0", * vdoms: ["root"], * }); * ``` */ class AdminAdministrator extends pulumi.CustomResource { /** * Get an existing AdminAdministrator 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 AdminAdministrator(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of AdminAdministrator. 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'] === AdminAdministrator.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["accprofile"] = state ? state.accprofile : undefined; resourceInputs["comments"] = state ? state.comments : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["password"] = state ? state.password : undefined; resourceInputs["trusthost1"] = state ? state.trusthost1 : undefined; resourceInputs["trusthost10"] = state ? state.trusthost10 : undefined; resourceInputs["trusthost2"] = state ? state.trusthost2 : undefined; resourceInputs["trusthost3"] = state ? state.trusthost3 : undefined; resourceInputs["trusthost4"] = state ? state.trusthost4 : undefined; resourceInputs["trusthost5"] = state ? state.trusthost5 : undefined; resourceInputs["trusthost6"] = state ? state.trusthost6 : undefined; resourceInputs["trusthost7"] = state ? state.trusthost7 : undefined; resourceInputs["trusthost8"] = state ? state.trusthost8 : undefined; resourceInputs["trusthost9"] = state ? state.trusthost9 : undefined; resourceInputs["vdoms"] = state ? state.vdoms : undefined; } else { const args = argsOrState; if ((!args || args.accprofile === undefined) && !opts.urn) { throw new Error("Missing required property 'accprofile'"); } if ((!args || args.password === undefined) && !opts.urn) { throw new Error("Missing required property 'password'"); } resourceInputs["accprofile"] = args ? args.accprofile : undefined; resourceInputs["comments"] = args ? args.comments : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["password"] = args ? args.password : undefined; resourceInputs["trusthost1"] = args ? args.trusthost1 : undefined; resourceInputs["trusthost10"] = args ? args.trusthost10 : undefined; resourceInputs["trusthost2"] = args ? args.trusthost2 : undefined; resourceInputs["trusthost3"] = args ? args.trusthost3 : undefined; resourceInputs["trusthost4"] = args ? args.trusthost4 : undefined; resourceInputs["trusthost5"] = args ? args.trusthost5 : undefined; resourceInputs["trusthost6"] = args ? args.trusthost6 : undefined; resourceInputs["trusthost7"] = args ? args.trusthost7 : undefined; resourceInputs["trusthost8"] = args ? args.trusthost8 : undefined; resourceInputs["trusthost9"] = args ? args.trusthost9 : undefined; resourceInputs["vdoms"] = args ? args.vdoms : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(AdminAdministrator.__pulumiType, name, resourceInputs, opts); } } exports.AdminAdministrator = AdminAdministrator; /** @internal */ AdminAdministrator.__pulumiType = 'fortios:system/adminAdministrator:AdminAdministrator'; //# sourceMappingURL=adminAdministrator.js.map