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

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

package com.pulumi.aws.cognito.kotlin.inputs

import com.pulumi.aws.cognito.inputs.UserPoolUserAttributeUpdateSettingsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property attributesRequireVerificationBeforeUpdates A list of attributes requiring verification before update. If set, the provided value(s) must also be set in `auto_verified_attributes`. Valid values: `email`, `phone_number`.
 */
public data class UserPoolUserAttributeUpdateSettingsArgs(
    public val attributesRequireVerificationBeforeUpdates: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.cognito.inputs.UserPoolUserAttributeUpdateSettingsArgs =
        com.pulumi.aws.cognito.inputs.UserPoolUserAttributeUpdateSettingsArgs.builder()
            .attributesRequireVerificationBeforeUpdates(
                attributesRequireVerificationBeforeUpdates.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            ).build()
}

/**
 * Builder for [UserPoolUserAttributeUpdateSettingsArgs].
 */
@PulumiTagMarker
public class UserPoolUserAttributeUpdateSettingsArgsBuilder internal constructor() {
    private var attributesRequireVerificationBeforeUpdates: Output>? = null

    /**
     * @param value A list of attributes requiring verification before update. If set, the provided value(s) must also be set in `auto_verified_attributes`. Valid values: `email`, `phone_number`.
     */
    @JvmName("cpaxexlknhpwvgwt")
    public suspend fun attributesRequireVerificationBeforeUpdates(`value`: Output>) {
        this.attributesRequireVerificationBeforeUpdates = value
    }

    @JvmName("cikoepahcjnlnmmo")
    public suspend fun attributesRequireVerificationBeforeUpdates(vararg values: Output) {
        this.attributesRequireVerificationBeforeUpdates = Output.all(values.asList())
    }

    /**
     * @param values A list of attributes requiring verification before update. If set, the provided value(s) must also be set in `auto_verified_attributes`. Valid values: `email`, `phone_number`.
     */
    @JvmName("krmxlkrbpujxtqxu")
    public suspend fun attributesRequireVerificationBeforeUpdates(values: List>) {
        this.attributesRequireVerificationBeforeUpdates = Output.all(values)
    }

    /**
     * @param value A list of attributes requiring verification before update. If set, the provided value(s) must also be set in `auto_verified_attributes`. Valid values: `email`, `phone_number`.
     */
    @JvmName("vnwwrbrtosavfnbp")
    public suspend fun attributesRequireVerificationBeforeUpdates(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributesRequireVerificationBeforeUpdates = mapped
    }

    /**
     * @param values A list of attributes requiring verification before update. If set, the provided value(s) must also be set in `auto_verified_attributes`. Valid values: `email`, `phone_number`.
     */
    @JvmName("lfroljdlqephdjso")
    public suspend fun attributesRequireVerificationBeforeUpdates(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributesRequireVerificationBeforeUpdates = mapped
    }

    internal fun build(): UserPoolUserAttributeUpdateSettingsArgs =
        UserPoolUserAttributeUpdateSettingsArgs(
            attributesRequireVerificationBeforeUpdates = attributesRequireVerificationBeforeUpdates ?: throw
                PulumiNullFieldException("attributesRequireVerificationBeforeUpdates"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy