com.pulumi.aws.cognito.kotlin.inputs.UserPoolAccountRecoverySettingRecoveryMechanismArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.cognito.kotlin.inputs
import com.pulumi.aws.cognito.inputs.UserPoolAccountRecoverySettingRecoveryMechanismArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property name Recovery method for a user. Can be of the following: `verified_email`, `verified_phone_number`, and `admin_only`.
* @property priority Positive integer specifying priority of a method with 1 being the highest priority.
*/
public data class UserPoolAccountRecoverySettingRecoveryMechanismArgs(
public val name: Output,
public val priority: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.cognito.inputs.UserPoolAccountRecoverySettingRecoveryMechanismArgs =
com.pulumi.aws.cognito.inputs.UserPoolAccountRecoverySettingRecoveryMechanismArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.priority(priority.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [UserPoolAccountRecoverySettingRecoveryMechanismArgs].
*/
@PulumiTagMarker
public class UserPoolAccountRecoverySettingRecoveryMechanismArgsBuilder internal constructor() {
private var name: Output? = null
private var priority: Output? = null
/**
* @param value Recovery method for a user. Can be of the following: `verified_email`, `verified_phone_number`, and `admin_only`.
*/
@JvmName("wkuowubadfshiiyp")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Positive integer specifying priority of a method with 1 being the highest priority.
*/
@JvmName("visbqmjeoqqlcwbq")
public suspend fun priority(`value`: Output) {
this.priority = value
}
/**
* @param value Recovery method for a user. Can be of the following: `verified_email`, `verified_phone_number`, and `admin_only`.
*/
@JvmName("jhontpqegwcigbbj")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Positive integer specifying priority of a method with 1 being the highest priority.
*/
@JvmName("akxwasevuxbfuhbn")
public suspend fun priority(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.priority = mapped
}
internal fun build(): UserPoolAccountRecoverySettingRecoveryMechanismArgs =
UserPoolAccountRecoverySettingRecoveryMechanismArgs(
name = name ?: throw PulumiNullFieldException("name"),
priority = priority ?: throw PulumiNullFieldException("priority"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy