@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
115 lines • 5.33 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.Passwordpolicy = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure password policy for locally defined administrator passwords and IPsec VPN pre-shared keys.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.system.Passwordpolicy("trname", {
* applyTo: "admin-password",
* change4Characters: "disable",
* expireDay: 90,
* expireStatus: "disable",
* minLowerCaseLetter: 0,
* minNonAlphanumeric: 0,
* minNumber: 0,
* minUpperCaseLetter: 0,
* minimumLength: 8,
* reusePassword: "enable",
* status: "disable",
* });
* ```
*
* ## Import
*
* System PasswordPolicy can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:system/passwordpolicy:Passwordpolicy labelname SystemPasswordPolicy
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:system/passwordpolicy:Passwordpolicy labelname SystemPasswordPolicy
* ```
*
* $ 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["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(Passwordpolicy.__pulumiType, name, resourceInputs, opts);
}
}
exports.Passwordpolicy = Passwordpolicy;
/** @internal */
Passwordpolicy.__pulumiType = 'fortios:system/passwordpolicy:Passwordpolicy';
//# sourceMappingURL=passwordpolicy.js.map
;