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

com.pulumi.awsnative.cognito.kotlin.inputs.UserPoolPasswordPolicyArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cognito.kotlin.inputs

import com.pulumi.awsnative.cognito.inputs.UserPoolPasswordPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @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 UserPoolPasswordPolicyArgs(
    public val minimumLength: Output? = null,
    public val requireLowercase: Output? = null,
    public val requireNumbers: Output? = null,
    public val requireSymbols: Output? = null,
    public val requireUppercase: Output? = null,
    public val temporaryPasswordValidityDays: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cognito.inputs.UserPoolPasswordPolicyArgs =
        com.pulumi.awsnative.cognito.inputs.UserPoolPasswordPolicyArgs.builder()
            .minimumLength(minimumLength?.applyValue({ args0 -> args0 }))
            .requireLowercase(requireLowercase?.applyValue({ args0 -> args0 }))
            .requireNumbers(requireNumbers?.applyValue({ args0 -> args0 }))
            .requireSymbols(requireSymbols?.applyValue({ args0 -> args0 }))
            .requireUppercase(requireUppercase?.applyValue({ args0 -> args0 }))
            .temporaryPasswordValidityDays(
                temporaryPasswordValidityDays?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [UserPoolPasswordPolicyArgs].
 */
@PulumiTagMarker
public class UserPoolPasswordPolicyArgsBuilder internal constructor() {
    private var minimumLength: Output? = null

    private var requireLowercase: Output? = null

    private var requireNumbers: Output? = null

    private var requireSymbols: Output? = null

    private var requireUppercase: Output? = null

    private var temporaryPasswordValidityDays: Output? = null

    /**
     * @param value The minimum length of the password in the policy that you have set. This value can't be less than 6.
     */
    @JvmName("dtflhmyrvqgsbeav")
    public suspend fun minimumLength(`value`: Output) {
        this.minimumLength = value
    }

    /**
     * @param value 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.
     */
    @JvmName("frqvfudqtedokwkl")
    public suspend fun requireLowercase(`value`: Output) {
        this.requireLowercase = value
    }

    /**
     * @param value In the password policy that you have set, refers to whether you have required users to use at least one number in their password.
     */
    @JvmName("cadfeqlvqknrkufx")
    public suspend fun requireNumbers(`value`: Output) {
        this.requireNumbers = value
    }

    /**
     * @param value In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.
     */
    @JvmName("btpsimqmuhvnwpok")
    public suspend fun requireSymbols(`value`: Output) {
        this.requireSymbols = value
    }

    /**
     * @param value 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.
     */
    @JvmName("fmnrrcxpitrlbtwk")
    public suspend fun requireUppercase(`value`: Output) {
        this.requireUppercase = value
    }

    /**
     * @param value 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.
     */
    @JvmName("ccpoqldipmawtxrx")
    public suspend fun temporaryPasswordValidityDays(`value`: Output) {
        this.temporaryPasswordValidityDays = value
    }

    /**
     * @param value The minimum length of the password in the policy that you have set. This value can't be less than 6.
     */
    @JvmName("mknlbxfnmdgyvvmw")
    public suspend fun minimumLength(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minimumLength = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("qqhvlfjthwadmtgt")
    public suspend fun requireLowercase(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireLowercase = mapped
    }

    /**
     * @param value In the password policy that you have set, refers to whether you have required users to use at least one number in their password.
     */
    @JvmName("cikhtafctirmdqum")
    public suspend fun requireNumbers(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireNumbers = mapped
    }

    /**
     * @param value In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.
     */
    @JvmName("jhtssproiqirkuka")
    public suspend fun requireSymbols(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireSymbols = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("stmbjtlwyvbgkvid")
    public suspend fun requireUppercase(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireUppercase = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("ejkufusitwixvyyn")
    public suspend fun temporaryPasswordValidityDays(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.temporaryPasswordValidityDays = mapped
    }

    internal fun build(): UserPoolPasswordPolicyArgs = UserPoolPasswordPolicyArgs(
        minimumLength = minimumLength,
        requireLowercase = requireLowercase,
        requireNumbers = requireNumbers,
        requireSymbols = requireSymbols,
        requireUppercase = requireUppercase,
        temporaryPasswordValidityDays = temporaryPasswordValidityDays,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy