@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
222 lines • 14.2 kB
JavaScript
// *** 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.Admin = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure admin users.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.system.Admin("trname", {
* accprofile: "super_admin",
* accprofileOverride: "disable",
* allowRemoveAdminSession: "enable",
* forcePasswordChange: "disable",
* guestAuth: "disable",
* hidden: 0,
* password: "fdafdace",
* passwordExpire: "0000-00-00 00:00:00",
* peerAuth: "disable",
* radiusVdomOverride: "disable",
* remoteAuth: "disable",
* twoFactor: "disable",
* vdoms: [{
* name: "root",
* }],
* wildcard: "disable",
* });
* ```
*
* ## Import
*
* System Admin can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:system/admin:Admin labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:system/admin:Admin labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Admin extends pulumi.CustomResource {
/**
* Get an existing Admin 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 Admin(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Admin. 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'] === Admin.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["accprofile"] = state ? state.accprofile : undefined;
resourceInputs["accprofileOverride"] = state ? state.accprofileOverride : undefined;
resourceInputs["allowRemoveAdminSession"] = state ? state.allowRemoveAdminSession : undefined;
resourceInputs["comments"] = state ? state.comments : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["emailTo"] = state ? state.emailTo : undefined;
resourceInputs["forcePasswordChange"] = state ? state.forcePasswordChange : undefined;
resourceInputs["fortitoken"] = state ? state.fortitoken : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["guestAuth"] = state ? state.guestAuth : undefined;
resourceInputs["guestLang"] = state ? state.guestLang : undefined;
resourceInputs["guestUsergroups"] = state ? state.guestUsergroups : undefined;
resourceInputs["guiDashboards"] = state ? state.guiDashboards : undefined;
resourceInputs["guiGlobalMenuFavorites"] = state ? state.guiGlobalMenuFavorites : undefined;
resourceInputs["guiNewFeatureAcknowledges"] = state ? state.guiNewFeatureAcknowledges : undefined;
resourceInputs["guiVdomMenuFavorites"] = state ? state.guiVdomMenuFavorites : undefined;
resourceInputs["hidden"] = state ? state.hidden : undefined;
resourceInputs["history0"] = state ? state.history0 : undefined;
resourceInputs["history1"] = state ? state.history1 : undefined;
resourceInputs["ip6Trusthost1"] = state ? state.ip6Trusthost1 : undefined;
resourceInputs["ip6Trusthost10"] = state ? state.ip6Trusthost10 : undefined;
resourceInputs["ip6Trusthost2"] = state ? state.ip6Trusthost2 : undefined;
resourceInputs["ip6Trusthost3"] = state ? state.ip6Trusthost3 : undefined;
resourceInputs["ip6Trusthost4"] = state ? state.ip6Trusthost4 : undefined;
resourceInputs["ip6Trusthost5"] = state ? state.ip6Trusthost5 : undefined;
resourceInputs["ip6Trusthost6"] = state ? state.ip6Trusthost6 : undefined;
resourceInputs["ip6Trusthost7"] = state ? state.ip6Trusthost7 : undefined;
resourceInputs["ip6Trusthost8"] = state ? state.ip6Trusthost8 : undefined;
resourceInputs["ip6Trusthost9"] = state ? state.ip6Trusthost9 : undefined;
resourceInputs["loginTimes"] = state ? state.loginTimes : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["password"] = state ? state.password : undefined;
resourceInputs["passwordExpire"] = state ? state.passwordExpire : undefined;
resourceInputs["peerAuth"] = state ? state.peerAuth : undefined;
resourceInputs["peerGroup"] = state ? state.peerGroup : undefined;
resourceInputs["radiusVdomOverride"] = state ? state.radiusVdomOverride : undefined;
resourceInputs["remoteAuth"] = state ? state.remoteAuth : undefined;
resourceInputs["remoteGroup"] = state ? state.remoteGroup : undefined;
resourceInputs["schedule"] = state ? state.schedule : undefined;
resourceInputs["smsCustomServer"] = state ? state.smsCustomServer : undefined;
resourceInputs["smsPhone"] = state ? state.smsPhone : undefined;
resourceInputs["smsServer"] = state ? state.smsServer : undefined;
resourceInputs["sshCertificate"] = state ? state.sshCertificate : undefined;
resourceInputs["sshPublicKey1"] = state ? state.sshPublicKey1 : undefined;
resourceInputs["sshPublicKey2"] = state ? state.sshPublicKey2 : undefined;
resourceInputs["sshPublicKey3"] = state ? state.sshPublicKey3 : 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["twoFactor"] = state ? state.twoFactor : undefined;
resourceInputs["twoFactorAuthentication"] = state ? state.twoFactorAuthentication : undefined;
resourceInputs["twoFactorNotification"] = state ? state.twoFactorNotification : undefined;
resourceInputs["vdomOverride"] = state ? state.vdomOverride : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
resourceInputs["vdoms"] = state ? state.vdoms : undefined;
resourceInputs["wildcard"] = state ? state.wildcard : undefined;
}
else {
const args = argsOrState;
resourceInputs["accprofile"] = args ? args.accprofile : undefined;
resourceInputs["accprofileOverride"] = args ? args.accprofileOverride : undefined;
resourceInputs["allowRemoveAdminSession"] = args ? args.allowRemoveAdminSession : undefined;
resourceInputs["comments"] = args ? args.comments : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["emailTo"] = args ? args.emailTo : undefined;
resourceInputs["forcePasswordChange"] = args ? args.forcePasswordChange : undefined;
resourceInputs["fortitoken"] = args ? args.fortitoken : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["guestAuth"] = args ? args.guestAuth : undefined;
resourceInputs["guestLang"] = args ? args.guestLang : undefined;
resourceInputs["guestUsergroups"] = args ? args.guestUsergroups : undefined;
resourceInputs["guiDashboards"] = args ? args.guiDashboards : undefined;
resourceInputs["guiGlobalMenuFavorites"] = args ? args.guiGlobalMenuFavorites : undefined;
resourceInputs["guiNewFeatureAcknowledges"] = args ? args.guiNewFeatureAcknowledges : undefined;
resourceInputs["guiVdomMenuFavorites"] = args ? args.guiVdomMenuFavorites : undefined;
resourceInputs["hidden"] = args ? args.hidden : undefined;
resourceInputs["history0"] = (args === null || args === void 0 ? void 0 : args.history0) ? pulumi.secret(args.history0) : undefined;
resourceInputs["history1"] = (args === null || args === void 0 ? void 0 : args.history1) ? pulumi.secret(args.history1) : undefined;
resourceInputs["ip6Trusthost1"] = args ? args.ip6Trusthost1 : undefined;
resourceInputs["ip6Trusthost10"] = args ? args.ip6Trusthost10 : undefined;
resourceInputs["ip6Trusthost2"] = args ? args.ip6Trusthost2 : undefined;
resourceInputs["ip6Trusthost3"] = args ? args.ip6Trusthost3 : undefined;
resourceInputs["ip6Trusthost4"] = args ? args.ip6Trusthost4 : undefined;
resourceInputs["ip6Trusthost5"] = args ? args.ip6Trusthost5 : undefined;
resourceInputs["ip6Trusthost6"] = args ? args.ip6Trusthost6 : undefined;
resourceInputs["ip6Trusthost7"] = args ? args.ip6Trusthost7 : undefined;
resourceInputs["ip6Trusthost8"] = args ? args.ip6Trusthost8 : undefined;
resourceInputs["ip6Trusthost9"] = args ? args.ip6Trusthost9 : undefined;
resourceInputs["loginTimes"] = args ? args.loginTimes : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
resourceInputs["passwordExpire"] = args ? args.passwordExpire : undefined;
resourceInputs["peerAuth"] = args ? args.peerAuth : undefined;
resourceInputs["peerGroup"] = args ? args.peerGroup : undefined;
resourceInputs["radiusVdomOverride"] = args ? args.radiusVdomOverride : undefined;
resourceInputs["remoteAuth"] = args ? args.remoteAuth : undefined;
resourceInputs["remoteGroup"] = args ? args.remoteGroup : undefined;
resourceInputs["schedule"] = args ? args.schedule : undefined;
resourceInputs["smsCustomServer"] = args ? args.smsCustomServer : undefined;
resourceInputs["smsPhone"] = args ? args.smsPhone : undefined;
resourceInputs["smsServer"] = args ? args.smsServer : undefined;
resourceInputs["sshCertificate"] = args ? args.sshCertificate : undefined;
resourceInputs["sshPublicKey1"] = (args === null || args === void 0 ? void 0 : args.sshPublicKey1) ? pulumi.secret(args.sshPublicKey1) : undefined;
resourceInputs["sshPublicKey2"] = (args === null || args === void 0 ? void 0 : args.sshPublicKey2) ? pulumi.secret(args.sshPublicKey2) : undefined;
resourceInputs["sshPublicKey3"] = (args === null || args === void 0 ? void 0 : args.sshPublicKey3) ? pulumi.secret(args.sshPublicKey3) : 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["twoFactor"] = args ? args.twoFactor : undefined;
resourceInputs["twoFactorAuthentication"] = args ? args.twoFactorAuthentication : undefined;
resourceInputs["twoFactorNotification"] = args ? args.twoFactorNotification : undefined;
resourceInputs["vdomOverride"] = args ? args.vdomOverride : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
resourceInputs["vdoms"] = args ? args.vdoms : undefined;
resourceInputs["wildcard"] = args ? args.wildcard : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["history0", "history1", "password", "sshPublicKey1", "sshPublicKey2", "sshPublicKey3"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(Admin.__pulumiType, name, resourceInputs, opts);
}
}
exports.Admin = Admin;
/** @internal */
Admin.__pulumiType = 'fortios:system/admin:Admin';
//# sourceMappingURL=admin.js.map
;