All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.sql.kotlin.outputs.UserPasswordPolicy.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.sql.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property allowedFailedAttempts Number of failed attempts allowed before the user get locked.
 * @property enableFailedAttemptsCheck If true, the check that will lock user after too many failed login attempts will be enabled.
 * @property enablePasswordVerification If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
 * @property passwordExpirationDuration Password expiration duration with one week grace period.
 * @property statuses
 */
public data class UserPasswordPolicy(
    public val allowedFailedAttempts: Int? = null,
    public val enableFailedAttemptsCheck: Boolean? = null,
    public val enablePasswordVerification: Boolean? = null,
    public val passwordExpirationDuration: String? = null,
    public val statuses: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.UserPasswordPolicy): UserPasswordPolicy = UserPasswordPolicy(
            allowedFailedAttempts = javaType.allowedFailedAttempts().map({ args0 -> args0 }).orElse(null),
            enableFailedAttemptsCheck = javaType.enableFailedAttemptsCheck().map({ args0 ->
                args0
            }).orElse(null),
            enablePasswordVerification = javaType.enablePasswordVerification().map({ args0 ->
                args0
            }).orElse(null),
            passwordExpirationDuration = javaType.passwordExpirationDuration().map({ args0 ->
                args0
            }).orElse(null),
            statuses = javaType.statuses().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.sql.kotlin.outputs.UserPasswordPolicyStatus.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy