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

com.pulumi.awsnative.cognito.kotlin.UserPoolRiskConfigurationAttachmentArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cognito.kotlin

import com.pulumi.awsnative.cognito.UserPoolRiskConfigurationAttachmentArgs.builder
import com.pulumi.awsnative.cognito.kotlin.inputs.UserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypeArgs
import com.pulumi.awsnative.cognito.kotlin.inputs.UserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypeArgsBuilder
import com.pulumi.awsnative.cognito.kotlin.inputs.UserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypeArgs
import com.pulumi.awsnative.cognito.kotlin.inputs.UserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypeArgsBuilder
import com.pulumi.awsnative.cognito.kotlin.inputs.UserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypeArgs
import com.pulumi.awsnative.cognito.kotlin.inputs.UserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypeArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Cognito::UserPoolRiskConfigurationAttachment
 * @property accountTakeoverRiskConfiguration The account takeover risk configuration object, including the `NotifyConfiguration` object and `Actions` to take if there is an account takeover.
 * @property clientId The app client ID. You can specify the risk configuration for a single client (with a specific ClientId) or for all clients (by setting the ClientId to `ALL` ).
 * @property compromisedCredentialsRiskConfiguration The compromised credentials risk configuration object, including the `EventFilter` and the `EventAction` .
 * @property riskExceptionConfiguration The configuration to override the risk decision.
 * @property userPoolId The user pool ID.
 */
public data class UserPoolRiskConfigurationAttachmentArgs(
    public val accountTakeoverRiskConfiguration: Output? = null,
    public val clientId: Output? = null,
    public val compromisedCredentialsRiskConfiguration: Output? =
        null,
    public val riskExceptionConfiguration: Output? = null,
    public val userPoolId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cognito.UserPoolRiskConfigurationAttachmentArgs =
        com.pulumi.awsnative.cognito.UserPoolRiskConfigurationAttachmentArgs.builder()
            .accountTakeoverRiskConfiguration(
                accountTakeoverRiskConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .clientId(clientId?.applyValue({ args0 -> args0 }))
            .compromisedCredentialsRiskConfiguration(
                compromisedCredentialsRiskConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .riskExceptionConfiguration(
                riskExceptionConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .userPoolId(userPoolId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UserPoolRiskConfigurationAttachmentArgs].
 */
@PulumiTagMarker
public class UserPoolRiskConfigurationAttachmentArgsBuilder internal constructor() {
    private var accountTakeoverRiskConfiguration:
        Output? = null

    private var clientId: Output? = null

    private var compromisedCredentialsRiskConfiguration:
        Output? =
        null

    private var riskExceptionConfiguration:
        Output? = null

    private var userPoolId: Output? = null

    /**
     * @param value The account takeover risk configuration object, including the `NotifyConfiguration` object and `Actions` to take if there is an account takeover.
     */
    @JvmName("icitbmknhvamobcn")
    public suspend fun accountTakeoverRiskConfiguration(`value`: Output) {
        this.accountTakeoverRiskConfiguration = value
    }

    /**
     * @param value The app client ID. You can specify the risk configuration for a single client (with a specific ClientId) or for all clients (by setting the ClientId to `ALL` ).
     */
    @JvmName("yqgccgqibqejtiuy")
    public suspend fun clientId(`value`: Output) {
        this.clientId = value
    }

    /**
     * @param value The compromised credentials risk configuration object, including the `EventFilter` and the `EventAction` .
     */
    @JvmName("hgxwrltevtmynmsx")
    public suspend fun compromisedCredentialsRiskConfiguration(`value`: Output) {
        this.compromisedCredentialsRiskConfiguration = value
    }

    /**
     * @param value The configuration to override the risk decision.
     */
    @JvmName("ykelhfjxgsekbblu")
    public suspend fun riskExceptionConfiguration(`value`: Output) {
        this.riskExceptionConfiguration = value
    }

    /**
     * @param value The user pool ID.
     */
    @JvmName("bbxrewmoyrtilpsc")
    public suspend fun userPoolId(`value`: Output) {
        this.userPoolId = value
    }

    /**
     * @param value The account takeover risk configuration object, including the `NotifyConfiguration` object and `Actions` to take if there is an account takeover.
     */
    @JvmName("mqpgivnlbvwoakfg")
    public suspend fun accountTakeoverRiskConfiguration(`value`: UserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountTakeoverRiskConfiguration = mapped
    }

    /**
     * @param argument The account takeover risk configuration object, including the `NotifyConfiguration` object and `Actions` to take if there is an account takeover.
     */
    @JvmName("vehffaipwxogyqsf")
    public suspend fun accountTakeoverRiskConfiguration(argument: suspend UserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypeArgsBuilder.() -> Unit) {
        val toBeMapped =
            UserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypeArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.accountTakeoverRiskConfiguration = mapped
    }

    /**
     * @param value The app client ID. You can specify the risk configuration for a single client (with a specific ClientId) or for all clients (by setting the ClientId to `ALL` ).
     */
    @JvmName("cyxdihxiunikgckb")
    public suspend fun clientId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientId = mapped
    }

    /**
     * @param value The compromised credentials risk configuration object, including the `EventFilter` and the `EventAction` .
     */
    @JvmName("nunyoccionhvmbtg")
    public suspend fun compromisedCredentialsRiskConfiguration(`value`: UserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.compromisedCredentialsRiskConfiguration = mapped
    }

    /**
     * @param argument The compromised credentials risk configuration object, including the `EventFilter` and the `EventAction` .
     */
    @JvmName("vmvanismdousctib")
    public suspend fun compromisedCredentialsRiskConfiguration(argument: suspend UserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypeArgsBuilder.() -> Unit) {
        val toBeMapped =
            UserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypeArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.compromisedCredentialsRiskConfiguration = mapped
    }

    /**
     * @param value The configuration to override the risk decision.
     */
    @JvmName("pieresqbtclppsxg")
    public suspend fun riskExceptionConfiguration(`value`: UserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.riskExceptionConfiguration = mapped
    }

    /**
     * @param argument The configuration to override the risk decision.
     */
    @JvmName("lehaficlcsmovmke")
    public suspend fun riskExceptionConfiguration(argument: suspend UserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypeArgsBuilder.() -> Unit) {
        val toBeMapped =
            UserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypeArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.riskExceptionConfiguration = mapped
    }

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

    internal fun build(): UserPoolRiskConfigurationAttachmentArgs =
        UserPoolRiskConfigurationAttachmentArgs(
            accountTakeoverRiskConfiguration = accountTakeoverRiskConfiguration,
            clientId = clientId,
            compromisedCredentialsRiskConfiguration = compromisedCredentialsRiskConfiguration,
            riskExceptionConfiguration = riskExceptionConfiguration,
            userPoolId = userPoolId,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy