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

com.pulumi.awsnative.cognito.kotlin.UserPoolUserArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cognito.kotlin

import com.pulumi.awsnative.cognito.UserPoolUserArgs.builder
import com.pulumi.awsnative.cognito.kotlin.inputs.UserPoolUserAttributeTypeArgs
import com.pulumi.awsnative.cognito.kotlin.inputs.UserPoolUserAttributeTypeArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Cognito::UserPoolUser
 * @property clientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
 * You create custom workflows by assigning AWS Lambda functions to user pool triggers. When you use the AdminCreateUser API action, Amazon Cognito invokes the function that is assigned to the *pre sign-up* trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute, which provides the data that you assigned to the ClientMetadata parameter in your AdminCreateUser request. In your function code in AWS Lambda , you can process the `clientMetadata` value to enhance your workflow for your specific needs.
 * For more information, see [Customizing user pool Workflows with Lambda Triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) in the *Amazon Cognito Developer Guide* .
 * > When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
 * >
 * > - Store the ClientMetadata value. This data is available only to AWS Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
 * > - Validate the ClientMetadata value.
 * > - Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
 * @property desiredDeliveryMediums Specify `"EMAIL"` if email will be used to send the welcome message. Specify `"SMS"` if the phone number will be used. The default value is `"SMS"` . You can specify more than one value.
 * @property forceAliasCreation This parameter is used only if the `phone_number_verified` or `email_verified` attribute is set to `True` . Otherwise, it is ignored.
 * If this parameter is set to `True` and the phone number or email address specified in the UserAttributes parameter already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user. The previous user will no longer be able to log in using that alias.
 * If this parameter is set to `False` , the API throws an `AliasExistsException` error if the alias already exists. The default value is `False` .
 * @property messageAction Set to `RESEND` to resend the invitation message to a user that already exists and reset the expiration limit on the user's account. Set to `SUPPRESS` to suppress sending the message. You can specify only one value.
 * @property userAttributes An array of name-value pairs that contain user attributes and attribute values.
 * @property userPoolId The user pool ID for the user pool where the user will be created.
 * @property username The value that you want to set as the username sign-in attribute. The following conditions apply to the username parameter.
 * - The username can't be a duplicate of another username in the same user pool.
 * - You can't change the value of a username after you create it.
 * - You can only provide a value if usernames are a valid sign-in attribute for your user pool. If your user pool only supports phone numbers or email addresses as sign-in attributes, Amazon Cognito automatically generates a username value. For more information, see [Customizing sign-in attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-aliases) .
 * @property validationData Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.
 * Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.
 * For more information about the pre sign-up Lambda trigger, see [Pre sign-up Lambda trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html) .
 */
public data class UserPoolUserArgs(
    public val clientMetadata: Output>? = null,
    public val desiredDeliveryMediums: Output>? = null,
    public val forceAliasCreation: Output? = null,
    public val messageAction: Output? = null,
    public val userAttributes: Output>? = null,
    public val userPoolId: Output? = null,
    public val username: Output? = null,
    public val validationData: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cognito.UserPoolUserArgs =
        com.pulumi.awsnative.cognito.UserPoolUserArgs.builder()
            .clientMetadata(
                clientMetadata?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .desiredDeliveryMediums(
                desiredDeliveryMediums?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .forceAliasCreation(forceAliasCreation?.applyValue({ args0 -> args0 }))
            .messageAction(messageAction?.applyValue({ args0 -> args0 }))
            .userAttributes(
                userAttributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .userPoolId(userPoolId?.applyValue({ args0 -> args0 }))
            .username(username?.applyValue({ args0 -> args0 }))
            .validationData(
                validationData?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var desiredDeliveryMediums: Output>? = null

    private var forceAliasCreation: Output? = null

    private var messageAction: Output? = null

    private var userAttributes: Output>? = null

    private var userPoolId: Output? = null

    private var username: Output? = null

    private var validationData: Output>? = null

    /**
     * @param value A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
     * You create custom workflows by assigning AWS Lambda functions to user pool triggers. When you use the AdminCreateUser API action, Amazon Cognito invokes the function that is assigned to the *pre sign-up* trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute, which provides the data that you assigned to the ClientMetadata parameter in your AdminCreateUser request. In your function code in AWS Lambda , you can process the `clientMetadata` value to enhance your workflow for your specific needs.
     * For more information, see [Customizing user pool Workflows with Lambda Triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) in the *Amazon Cognito Developer Guide* .
     * > When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
     * >
     * > - Store the ClientMetadata value. This data is available only to AWS Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
     * > - Validate the ClientMetadata value.
     * > - Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
     */
    @JvmName("pcmlalhawsuohbpk")
    public suspend fun clientMetadata(`value`: Output>) {
        this.clientMetadata = value
    }

    /**
     * @param value Specify `"EMAIL"` if email will be used to send the welcome message. Specify `"SMS"` if the phone number will be used. The default value is `"SMS"` . You can specify more than one value.
     */
    @JvmName("urmmmmwplwonaevr")
    public suspend fun desiredDeliveryMediums(`value`: Output>) {
        this.desiredDeliveryMediums = value
    }

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

    /**
     * @param values Specify `"EMAIL"` if email will be used to send the welcome message. Specify `"SMS"` if the phone number will be used. The default value is `"SMS"` . You can specify more than one value.
     */
    @JvmName("yhhfkobqossgwaqk")
    public suspend fun desiredDeliveryMediums(values: List>) {
        this.desiredDeliveryMediums = Output.all(values)
    }

    /**
     * @param value This parameter is used only if the `phone_number_verified` or `email_verified` attribute is set to `True` . Otherwise, it is ignored.
     * If this parameter is set to `True` and the phone number or email address specified in the UserAttributes parameter already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user. The previous user will no longer be able to log in using that alias.
     * If this parameter is set to `False` , the API throws an `AliasExistsException` error if the alias already exists. The default value is `False` .
     */
    @JvmName("jcvhlsavaevucnoh")
    public suspend fun forceAliasCreation(`value`: Output) {
        this.forceAliasCreation = value
    }

    /**
     * @param value Set to `RESEND` to resend the invitation message to a user that already exists and reset the expiration limit on the user's account. Set to `SUPPRESS` to suppress sending the message. You can specify only one value.
     */
    @JvmName("gqoorktfuetjxgom")
    public suspend fun messageAction(`value`: Output) {
        this.messageAction = value
    }

    /**
     * @param value An array of name-value pairs that contain user attributes and attribute values.
     */
    @JvmName("eoboodavjbnnbktr")
    public suspend fun userAttributes(`value`: Output>) {
        this.userAttributes = value
    }

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

    /**
     * @param values An array of name-value pairs that contain user attributes and attribute values.
     */
    @JvmName("sbvejtkaxwoebrie")
    public suspend fun userAttributes(values: List>) {
        this.userAttributes = Output.all(values)
    }

    /**
     * @param value The user pool ID for the user pool where the user will be created.
     */
    @JvmName("puyfdaurvxcrdixc")
    public suspend fun userPoolId(`value`: Output) {
        this.userPoolId = value
    }

    /**
     * @param value The value that you want to set as the username sign-in attribute. The following conditions apply to the username parameter.
     * - The username can't be a duplicate of another username in the same user pool.
     * - You can't change the value of a username after you create it.
     * - You can only provide a value if usernames are a valid sign-in attribute for your user pool. If your user pool only supports phone numbers or email addresses as sign-in attributes, Amazon Cognito automatically generates a username value. For more information, see [Customizing sign-in attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-aliases) .
     */
    @JvmName("gpytrxxfxxflthpq")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.
     * Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.
     * For more information about the pre sign-up Lambda trigger, see [Pre sign-up Lambda trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html) .
     */
    @JvmName("gqkptodorgrnkici")
    public suspend fun validationData(`value`: Output>) {
        this.validationData = value
    }

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

    /**
     * @param values Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.
     * Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.
     * For more information about the pre sign-up Lambda trigger, see [Pre sign-up Lambda trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html) .
     */
    @JvmName("scfmktotpxfgvyxr")
    public suspend fun validationData(values: List>) {
        this.validationData = Output.all(values)
    }

    /**
     * @param value A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
     * You create custom workflows by assigning AWS Lambda functions to user pool triggers. When you use the AdminCreateUser API action, Amazon Cognito invokes the function that is assigned to the *pre sign-up* trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute, which provides the data that you assigned to the ClientMetadata parameter in your AdminCreateUser request. In your function code in AWS Lambda , you can process the `clientMetadata` value to enhance your workflow for your specific needs.
     * For more information, see [Customizing user pool Workflows with Lambda Triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) in the *Amazon Cognito Developer Guide* .
     * > When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
     * >
     * > - Store the ClientMetadata value. This data is available only to AWS Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
     * > - Validate the ClientMetadata value.
     * > - Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
     */
    @JvmName("tcchdfccpdfitjto")
    public suspend fun clientMetadata(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientMetadata = mapped
    }

    /**
     * @param values A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
     * You create custom workflows by assigning AWS Lambda functions to user pool triggers. When you use the AdminCreateUser API action, Amazon Cognito invokes the function that is assigned to the *pre sign-up* trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute, which provides the data that you assigned to the ClientMetadata parameter in your AdminCreateUser request. In your function code in AWS Lambda , you can process the `clientMetadata` value to enhance your workflow for your specific needs.
     * For more information, see [Customizing user pool Workflows with Lambda Triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) in the *Amazon Cognito Developer Guide* .
     * > When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
     * >
     * > - Store the ClientMetadata value. This data is available only to AWS Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
     * > - Validate the ClientMetadata value.
     * > - Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
     */
    @JvmName("lttsruqkekcrvbau")
    public fun clientMetadata(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientMetadata = mapped
    }

    /**
     * @param value Specify `"EMAIL"` if email will be used to send the welcome message. Specify `"SMS"` if the phone number will be used. The default value is `"SMS"` . You can specify more than one value.
     */
    @JvmName("yqoefjpwvjuvykhm")
    public suspend fun desiredDeliveryMediums(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.desiredDeliveryMediums = mapped
    }

    /**
     * @param values Specify `"EMAIL"` if email will be used to send the welcome message. Specify `"SMS"` if the phone number will be used. The default value is `"SMS"` . You can specify more than one value.
     */
    @JvmName("cithiflspaorredk")
    public suspend fun desiredDeliveryMediums(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.desiredDeliveryMediums = mapped
    }

    /**
     * @param value This parameter is used only if the `phone_number_verified` or `email_verified` attribute is set to `True` . Otherwise, it is ignored.
     * If this parameter is set to `True` and the phone number or email address specified in the UserAttributes parameter already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user. The previous user will no longer be able to log in using that alias.
     * If this parameter is set to `False` , the API throws an `AliasExistsException` error if the alias already exists. The default value is `False` .
     */
    @JvmName("dkgwtpnyeekcahxq")
    public suspend fun forceAliasCreation(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.forceAliasCreation = mapped
    }

    /**
     * @param value Set to `RESEND` to resend the invitation message to a user that already exists and reset the expiration limit on the user's account. Set to `SUPPRESS` to suppress sending the message. You can specify only one value.
     */
    @JvmName("tcsdnqykcjruiapf")
    public suspend fun messageAction(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.messageAction = mapped
    }

    /**
     * @param value An array of name-value pairs that contain user attributes and attribute values.
     */
    @JvmName("omaortfotjryblev")
    public suspend fun userAttributes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userAttributes = mapped
    }

    /**
     * @param argument An array of name-value pairs that contain user attributes and attribute values.
     */
    @JvmName("itejpadrhgynnxxq")
    public suspend fun userAttributes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            UserPoolUserAttributeTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.userAttributes = mapped
    }

    /**
     * @param argument An array of name-value pairs that contain user attributes and attribute values.
     */
    @JvmName("rphqgrihjnqbnmuw")
    public suspend fun userAttributes(vararg argument: suspend UserPoolUserAttributeTypeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            UserPoolUserAttributeTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.userAttributes = mapped
    }

    /**
     * @param argument An array of name-value pairs that contain user attributes and attribute values.
     */
    @JvmName("vebihafbjvhsrqkk")
    public suspend fun userAttributes(argument: suspend UserPoolUserAttributeTypeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            UserPoolUserAttributeTypeArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.userAttributes = mapped
    }

    /**
     * @param values An array of name-value pairs that contain user attributes and attribute values.
     */
    @JvmName("yfksohictuwgxdmu")
    public suspend fun userAttributes(vararg values: UserPoolUserAttributeTypeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.userAttributes = mapped
    }

    /**
     * @param value The user pool ID for the user pool where the user will be created.
     */
    @JvmName("weyrkrywjlonnyrj")
    public suspend fun userPoolId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userPoolId = mapped
    }

    /**
     * @param value The value that you want to set as the username sign-in attribute. The following conditions apply to the username parameter.
     * - The username can't be a duplicate of another username in the same user pool.
     * - You can't change the value of a username after you create it.
     * - You can only provide a value if usernames are a valid sign-in attribute for your user pool. If your user pool only supports phone numbers or email addresses as sign-in attributes, Amazon Cognito automatically generates a username value. For more information, see [Customizing sign-in attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-aliases) .
     */
    @JvmName("ehhogyifmrxobinl")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.username = mapped
    }

    /**
     * @param value Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.
     * Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.
     * For more information about the pre sign-up Lambda trigger, see [Pre sign-up Lambda trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html) .
     */
    @JvmName("nmwgboasopkrrxwu")
    public suspend fun validationData(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.validationData = mapped
    }

    /**
     * @param argument Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.
     * Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.
     * For more information about the pre sign-up Lambda trigger, see [Pre sign-up Lambda trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html) .
     */
    @JvmName("owleirxvcxcyfxvw")
    public suspend fun validationData(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            UserPoolUserAttributeTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.validationData = mapped
    }

    /**
     * @param argument Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.
     * Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.
     * For more information about the pre sign-up Lambda trigger, see [Pre sign-up Lambda trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html) .
     */
    @JvmName("rwupvcwinrskunla")
    public suspend fun validationData(vararg argument: suspend UserPoolUserAttributeTypeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            UserPoolUserAttributeTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.validationData = mapped
    }

    /**
     * @param argument Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.
     * Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.
     * For more information about the pre sign-up Lambda trigger, see [Pre sign-up Lambda trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html) .
     */
    @JvmName("fgrugpxcnbdqqbma")
    public suspend fun validationData(argument: suspend UserPoolUserAttributeTypeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            UserPoolUserAttributeTypeArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.validationData = mapped
    }

    /**
     * @param values Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.
     * Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.
     * For more information about the pre sign-up Lambda trigger, see [Pre sign-up Lambda trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html) .
     */
    @JvmName("dnkdkitpunilerko")
    public suspend fun validationData(vararg values: UserPoolUserAttributeTypeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.validationData = mapped
    }

    internal fun build(): UserPoolUserArgs = UserPoolUserArgs(
        clientMetadata = clientMetadata,
        desiredDeliveryMediums = desiredDeliveryMediums,
        forceAliasCreation = forceAliasCreation,
        messageAction = messageAction,
        userAttributes = userAttributes,
        userPoolId = userPoolId,
        username = username,
        validationData = validationData,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy