@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
226 lines (225 loc) • 8.81 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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"
*/
export declare 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: string, id: pulumi.Input<pulumi.ID>, state?: PasswordpolicyState, opts?: pulumi.CustomResourceOptions): Passwordpolicy;
/**
* 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: any): obj is Passwordpolicy;
/**
* Time in days before the user's password expires.
*/
readonly expireDays: pulumi.Output<number>;
/**
* Enable/disable password expiration. Valid values: `enable`, `disable`.
*/
readonly expireStatus: pulumi.Output<string>;
/**
* Enable/disable renewal of a password that already is expired. Valid values: `enable`, `disable`.
*/
readonly expiredPasswordRenewal: pulumi.Output<string>;
/**
* Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
*/
readonly minChangeCharacters: pulumi.Output<number>;
/**
* Minimum number of lowercase characters in password (0 - 128, default = 0).
*/
readonly minLowerCaseLetter: pulumi.Output<number>;
/**
* Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
*/
readonly minNonAlphanumeric: pulumi.Output<number>;
/**
* Minimum number of numeric characters in password (0 - 128, default = 0).
*/
readonly minNumber: pulumi.Output<number>;
/**
* Minimum number of uppercase characters in password (0 - 128, default = 0).
*/
readonly minUpperCaseLetter: pulumi.Output<number>;
/**
* Minimum password length (8 - 128, default = 8).
*/
readonly minimumLength: pulumi.Output<number>;
/**
* Password policy name.
*/
readonly name: pulumi.Output<string>;
/**
* Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values: `enable`, `disable`.
*/
readonly reusePassword: pulumi.Output<string>;
/**
* Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
*/
readonly vdomparam: pulumi.Output<string>;
/**
* Time in days before a password expiration warning message is displayed to the user upon login.
*/
readonly warnDays: pulumi.Output<number>;
/**
* Create a Passwordpolicy resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: PasswordpolicyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Passwordpolicy resources.
*/
export interface PasswordpolicyState {
/**
* Time in days before the user's password expires.
*/
expireDays?: pulumi.Input<number>;
/**
* Enable/disable password expiration. Valid values: `enable`, `disable`.
*/
expireStatus?: pulumi.Input<string>;
/**
* Enable/disable renewal of a password that already is expired. Valid values: `enable`, `disable`.
*/
expiredPasswordRenewal?: pulumi.Input<string>;
/**
* Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
*/
minChangeCharacters?: pulumi.Input<number>;
/**
* Minimum number of lowercase characters in password (0 - 128, default = 0).
*/
minLowerCaseLetter?: pulumi.Input<number>;
/**
* Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
*/
minNonAlphanumeric?: pulumi.Input<number>;
/**
* Minimum number of numeric characters in password (0 - 128, default = 0).
*/
minNumber?: pulumi.Input<number>;
/**
* Minimum number of uppercase characters in password (0 - 128, default = 0).
*/
minUpperCaseLetter?: pulumi.Input<number>;
/**
* Minimum password length (8 - 128, default = 8).
*/
minimumLength?: pulumi.Input<number>;
/**
* Password policy name.
*/
name?: pulumi.Input<string>;
/**
* Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values: `enable`, `disable`.
*/
reusePassword?: pulumi.Input<string>;
/**
* Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
*/
vdomparam?: pulumi.Input<string>;
/**
* Time in days before a password expiration warning message is displayed to the user upon login.
*/
warnDays?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a Passwordpolicy resource.
*/
export interface PasswordpolicyArgs {
/**
* Time in days before the user's password expires.
*/
expireDays?: pulumi.Input<number>;
/**
* Enable/disable password expiration. Valid values: `enable`, `disable`.
*/
expireStatus?: pulumi.Input<string>;
/**
* Enable/disable renewal of a password that already is expired. Valid values: `enable`, `disable`.
*/
expiredPasswordRenewal?: pulumi.Input<string>;
/**
* Minimum number of unique characters in new password which do not exist in old password (0 - 128, default = 0. This attribute overrides reuse-password if both are enabled).
*/
minChangeCharacters?: pulumi.Input<number>;
/**
* Minimum number of lowercase characters in password (0 - 128, default = 0).
*/
minLowerCaseLetter?: pulumi.Input<number>;
/**
* Minimum number of non-alphanumeric characters in password (0 - 128, default = 0).
*/
minNonAlphanumeric?: pulumi.Input<number>;
/**
* Minimum number of numeric characters in password (0 - 128, default = 0).
*/
minNumber?: pulumi.Input<number>;
/**
* Minimum number of uppercase characters in password (0 - 128, default = 0).
*/
minUpperCaseLetter?: pulumi.Input<number>;
/**
* Minimum password length (8 - 128, default = 8).
*/
minimumLength?: pulumi.Input<number>;
/**
* Password policy name.
*/
name?: pulumi.Input<string>;
/**
* Enable/disable reuse of password. If both reuse-password and min-change-characters are enabled, min-change-characters overrides. Valid values: `enable`, `disable`.
*/
reusePassword?: pulumi.Input<string>;
/**
* Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
*/
vdomparam?: pulumi.Input<string>;
/**
* Time in days before a password expiration warning message is displayed to the user upon login.
*/
warnDays?: pulumi.Input<number>;
}