com.pulumi.gcp.sql.kotlin.outputs.DatabaseInstanceSettingsPasswordValidationPolicy.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.sql.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property complexity Checks if the password is a combination of lowercase, uppercase, numeric, and non-alphanumeric characters.
* @property disallowUsernameSubstring Prevents the use of the username in the password.
* @property enablePasswordPolicy Enables or disable the password validation policy.
* @property minLength Specifies the minimum number of characters that the password must have.
* @property passwordChangeInterval Specifies the minimum duration after which you can change the password.
* @property reuseInterval Specifies the number of previous passwords that you can't reuse.
*/
public data class DatabaseInstanceSettingsPasswordValidationPolicy(
public val complexity: String? = null,
public val disallowUsernameSubstring: Boolean? = null,
public val enablePasswordPolicy: Boolean,
public val minLength: Int? = null,
public val passwordChangeInterval: String? = null,
public val reuseInterval: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.DatabaseInstanceSettingsPasswordValidationPolicy): DatabaseInstanceSettingsPasswordValidationPolicy =
DatabaseInstanceSettingsPasswordValidationPolicy(
complexity = javaType.complexity().map({ args0 -> args0 }).orElse(null),
disallowUsernameSubstring = javaType.disallowUsernameSubstring().map({ args0 ->
args0
}).orElse(null),
enablePasswordPolicy = javaType.enablePasswordPolicy(),
minLength = javaType.minLength().map({ args0 -> args0 }).orElse(null),
passwordChangeInterval = javaType.passwordChangeInterval().map({ args0 -> args0 }).orElse(null),
reuseInterval = javaType.reuseInterval().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy