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

com.pulumi.awsnative.cognito.kotlin.inputs.UserPoolStringAttributeConstraintsArgs.kt Maven / Gradle / Ivy

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

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

import com.pulumi.awsnative.cognito.inputs.UserPoolStringAttributeConstraintsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property maxLength The maximum length of a string attribute value. Must be a number less than or equal to `2^1023` , represented as a string with a length of 131072 characters or fewer.
 * @property minLength The minimum length.
 */
public data class UserPoolStringAttributeConstraintsArgs(
    public val maxLength: Output? = null,
    public val minLength: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cognito.inputs.UserPoolStringAttributeConstraintsArgs = com.pulumi.awsnative.cognito.inputs.UserPoolStringAttributeConstraintsArgs.builder()
        .maxLength(maxLength?.applyValue({ args0 -> args0 }))
        .minLength(minLength?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UserPoolStringAttributeConstraintsArgs].
 */
@PulumiTagMarker
public class UserPoolStringAttributeConstraintsArgsBuilder internal constructor() {
    private var maxLength: Output? = null

    private var minLength: Output? = null

    /**
     * @param value The maximum length of a string attribute value. Must be a number less than or equal to `2^1023` , represented as a string with a length of 131072 characters or fewer.
     */
    @JvmName("ehplywajwhcqnqjt")
    public suspend fun maxLength(`value`: Output) {
        this.maxLength = value
    }

    /**
     * @param value The minimum length.
     */
    @JvmName("kwntnnnaiwwbsbms")
    public suspend fun minLength(`value`: Output) {
        this.minLength = value
    }

    /**
     * @param value The maximum length of a string attribute value. Must be a number less than or equal to `2^1023` , represented as a string with a length of 131072 characters or fewer.
     */
    @JvmName("lstfsjgiqacblmec")
    public suspend fun maxLength(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxLength = mapped
    }

    /**
     * @param value The minimum length.
     */
    @JvmName("pitafrabsobtyiph")
    public suspend fun minLength(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minLength = mapped
    }

    internal fun build(): UserPoolStringAttributeConstraintsArgs =
        UserPoolStringAttributeConstraintsArgs(
            maxLength = maxLength,
            minLength = minLength,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy