UNPKG

@lubyou/pulumi-fortios

Version:

A Pulumi package for creating and managing fortios cloud resources.

73 lines 4.29 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.SystemPasswordPolicy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class SystemPasswordPolicy extends pulumi.CustomResource { /** * Get an existing SystemPasswordPolicy 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 SystemPasswordPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of SystemPasswordPolicy. 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'] === SystemPasswordPolicy.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["applyTo"] = state ? state.applyTo : undefined; resourceInputs["change4Characters"] = state ? state.change4Characters : undefined; resourceInputs["expireDay"] = state ? state.expireDay : undefined; resourceInputs["expireStatus"] = state ? state.expireStatus : 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["reusePassword"] = state ? state.reusePassword : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; resourceInputs["applyTo"] = args ? args.applyTo : undefined; resourceInputs["change4Characters"] = args ? args.change4Characters : undefined; resourceInputs["expireDay"] = args ? args.expireDay : undefined; resourceInputs["expireStatus"] = args ? args.expireStatus : 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["reusePassword"] = args ? args.reusePassword : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(SystemPasswordPolicy.__pulumiType, name, resourceInputs, opts); } } exports.SystemPasswordPolicy = SystemPasswordPolicy; /** @internal */ SystemPasswordPolicy.__pulumiType = 'fortios:index/systemPasswordPolicy:SystemPasswordPolicy'; //# sourceMappingURL=systemPasswordPolicy.js.map