UNPKG

@pulumiverse/fortios

Version:

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

106 lines 4.97 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.Passwordpolicy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure user password policy. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.user.Passwordpolicy("trname", { * expireDays: 22, * warnDays: 13, * }); * ``` * * ## Import * * User PasswordPolicy can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:user/passwordpolicy:Passwordpolicy labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:user/passwordpolicy:Passwordpolicy labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Passwordpolicy extends pulumi.CustomResource { /** * Get an existing Passwordpolicy 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 Passwordpolicy(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Passwordpolicy. 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'] === Passwordpolicy.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["expireDays"] = state ? state.expireDays : undefined; resourceInputs["expireStatus"] = state ? state.expireStatus : undefined; resourceInputs["expiredPasswordRenewal"] = state ? state.expiredPasswordRenewal : undefined; resourceInputs["minChangeCharacters"] = state ? state.minChangeCharacters : undefined; resourceInputs["minLowerCaseLetter"] = state ? state.minLowerCaseLetter : undefined; resourceInputs["minNonAlphanumeric"] = state ? state.minNonAlphanumeric : undefined; resourceInputs["minNumber"] = state ? state.minNumber : undefined; resourceInputs["minUpperCaseLetter"] = state ? state.minUpperCaseLetter : undefined; resourceInputs["minimumLength"] = state ? state.minimumLength : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["reusePassword"] = state ? state.reusePassword : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["warnDays"] = state ? state.warnDays : undefined; } else { const args = argsOrState; resourceInputs["expireDays"] = args ? args.expireDays : undefined; resourceInputs["expireStatus"] = args ? args.expireStatus : undefined; resourceInputs["expiredPasswordRenewal"] = args ? args.expiredPasswordRenewal : undefined; resourceInputs["minChangeCharacters"] = args ? args.minChangeCharacters : undefined; resourceInputs["minLowerCaseLetter"] = args ? args.minLowerCaseLetter : undefined; resourceInputs["minNonAlphanumeric"] = args ? args.minNonAlphanumeric : undefined; resourceInputs["minNumber"] = args ? args.minNumber : undefined; resourceInputs["minUpperCaseLetter"] = args ? args.minUpperCaseLetter : undefined; resourceInputs["minimumLength"] = args ? args.minimumLength : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["reusePassword"] = args ? args.reusePassword : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["warnDays"] = args ? args.warnDays : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Passwordpolicy.__pulumiType, name, resourceInputs, opts); } } exports.Passwordpolicy = Passwordpolicy; /** @internal */ Passwordpolicy.__pulumiType = 'fortios:user/passwordpolicy:Passwordpolicy'; //# sourceMappingURL=passwordpolicy.js.map