com.pulumi.awsnative.cognito.kotlin.outputs.UserPoolPasswordPolicy.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cognito.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
/**
*
* @property minimumLength The minimum length of the password in the policy that you have set. This value can't be less than 6.
* @property requireLowercase In the password policy that you have set, refers to whether you have required users to use at least one lowercase letter in their password.
* @property requireNumbers In the password policy that you have set, refers to whether you have required users to use at least one number in their password.
* @property requireSymbols In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.
* @property requireUppercase In the password policy that you have set, refers to whether you have required users to use at least one uppercase letter in their password.
* @property temporaryPasswordValidityDays The number of days a temporary password is valid in the password policy. If the user doesn't sign in during this time, an administrator must reset their password. Defaults to `7` . If you submit a value of `0` , Amazon Cognito treats it as a null value and sets `TemporaryPasswordValidityDays` to its default value.
* > When you set `TemporaryPasswordValidityDays` for a user pool, you can no longer set a value for the legacy `UnusedAccountValidityDays` parameter in that user pool.
*/
public data class UserPoolPasswordPolicy(
public val minimumLength: Int? = null,
public val requireLowercase: Boolean? = null,
public val requireNumbers: Boolean? = null,
public val requireSymbols: Boolean? = null,
public val requireUppercase: Boolean? = null,
public val temporaryPasswordValidityDays: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.cognito.outputs.UserPoolPasswordPolicy): UserPoolPasswordPolicy = UserPoolPasswordPolicy(
minimumLength = javaType.minimumLength().map({ args0 -> args0 }).orElse(null),
requireLowercase = javaType.requireLowercase().map({ args0 -> args0 }).orElse(null),
requireNumbers = javaType.requireNumbers().map({ args0 -> args0 }).orElse(null),
requireSymbols = javaType.requireSymbols().map({ args0 -> args0 }).orElse(null),
requireUppercase = javaType.requireUppercase().map({ args0 -> args0 }).orElse(null),
temporaryPasswordValidityDays = javaType.temporaryPasswordValidityDays().map({ args0 ->
args0
}).orElse(null),
)
}
}