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

com.pulumi.aws.cognito.kotlin.inputs.UserPoolSchemaStringAttributeConstraintsArgs.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.UserPoolSchemaStringAttributeConstraintsArgs.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 Maximum length of an attribute value of the string type.
 * @property minLength Minimum length of an attribute value of the string type.
 */
public data class UserPoolSchemaStringAttributeConstraintsArgs(
    public val maxLength: Output? = null,
    public val minLength: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.cognito.inputs.UserPoolSchemaStringAttributeConstraintsArgs = com.pulumi.aws.cognito.inputs.UserPoolSchemaStringAttributeConstraintsArgs.builder()
        .maxLength(maxLength?.applyValue({ args0 -> args0 }))
        .minLength(minLength?.applyValue({ args0 -> args0 })).build()
}

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

    private var minLength: Output? = null

    /**
     * @param value Maximum length of an attribute value of the string type.
     */
    @JvmName("jbqlhbbeeepvamkl")
    public suspend fun maxLength(`value`: Output) {
        this.maxLength = value
    }

    /**
     * @param value Minimum length of an attribute value of the string type.
     */
    @JvmName("afklpipfxlgnpcqc")
    public suspend fun minLength(`value`: Output) {
        this.minLength = value
    }

    /**
     * @param value Maximum length of an attribute value of the string type.
     */
    @JvmName("peehgnoxvxwextrj")
    public suspend fun maxLength(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxLength = mapped
    }

    /**
     * @param value Minimum length of an attribute value of the string type.
     */
    @JvmName("kvdtxdytpiikarvb")
    public suspend fun minLength(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minLength = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy