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

com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentConfirmationSettingCodeHookArgs.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.lex.kotlin.inputs

import com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingCodeHookArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property active Whether a dialog code hook is used when the intent is activated.
 * @property enableCodeHookInvocation Whether a Lambda function should be invoked for the dialog.
 * @property invocationLabel Label that indicates the dialog step from which the dialog code hook is happening.
 * @property postCodeHookSpecification Configuration block that contains the responses and actions that Amazon Lex takes after the Lambda function is complete. See `post_code_hook_specification`.
 */
public data class V2modelsIntentConfirmationSettingCodeHookArgs(
    public val active: Output,
    public val enableCodeHookInvocation: Output,
    public val invocationLabel: Output? = null,
    public val postCodeHookSpecification: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingCodeHookArgs =
        com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingCodeHookArgs.builder()
            .active(active.applyValue({ args0 -> args0 }))
            .enableCodeHookInvocation(enableCodeHookInvocation.applyValue({ args0 -> args0 }))
            .invocationLabel(invocationLabel?.applyValue({ args0 -> args0 }))
            .postCodeHookSpecification(
                postCodeHookSpecification.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [V2modelsIntentConfirmationSettingCodeHookArgs].
 */
@PulumiTagMarker
public class V2modelsIntentConfirmationSettingCodeHookArgsBuilder internal constructor() {
    private var active: Output? = null

    private var enableCodeHookInvocation: Output? = null

    private var invocationLabel: Output? = null

    private var postCodeHookSpecification:
        Output? = null

    /**
     * @param value Whether a dialog code hook is used when the intent is activated.
     */
    @JvmName("okdccgysskyabeob")
    public suspend fun active(`value`: Output) {
        this.active = value
    }

    /**
     * @param value Whether a Lambda function should be invoked for the dialog.
     */
    @JvmName("lmgwxcbiioitaogn")
    public suspend fun enableCodeHookInvocation(`value`: Output) {
        this.enableCodeHookInvocation = value
    }

    /**
     * @param value Label that indicates the dialog step from which the dialog code hook is happening.
     */
    @JvmName("bkmirjbndxdywsrg")
    public suspend fun invocationLabel(`value`: Output) {
        this.invocationLabel = value
    }

    /**
     * @param value Configuration block that contains the responses and actions that Amazon Lex takes after the Lambda function is complete. See `post_code_hook_specification`.
     */
    @JvmName("lnbhoovckddgciub")
    public suspend fun postCodeHookSpecification(`value`: Output) {
        this.postCodeHookSpecification = value
    }

    /**
     * @param value Whether a dialog code hook is used when the intent is activated.
     */
    @JvmName("ecoyraiauttefgeh")
    public suspend fun active(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.active = mapped
    }

    /**
     * @param value Whether a Lambda function should be invoked for the dialog.
     */
    @JvmName("xhaonaqmtdbbllpo")
    public suspend fun enableCodeHookInvocation(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableCodeHookInvocation = mapped
    }

    /**
     * @param value Label that indicates the dialog step from which the dialog code hook is happening.
     */
    @JvmName("pvmptytptxbwayin")
    public suspend fun invocationLabel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.invocationLabel = mapped
    }

    /**
     * @param value Configuration block that contains the responses and actions that Amazon Lex takes after the Lambda function is complete. See `post_code_hook_specification`.
     */
    @JvmName("xgmmnlmfqvmhiqaq")
    public suspend fun postCodeHookSpecification(`value`: V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.postCodeHookSpecification = mapped
    }

    /**
     * @param argument Configuration block that contains the responses and actions that Amazon Lex takes after the Lambda function is complete. See `post_code_hook_specification`.
     */
    @JvmName("dwrxeyrpuqiltsrr")
    public suspend fun postCodeHookSpecification(argument: suspend V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped =
            V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.postCodeHookSpecification = mapped
    }

    internal fun build(): V2modelsIntentConfirmationSettingCodeHookArgs =
        V2modelsIntentConfirmationSettingCodeHookArgs(
            active = active ?: throw PulumiNullFieldException("active"),
            enableCodeHookInvocation = enableCodeHookInvocation ?: throw
                PulumiNullFieldException("enableCodeHookInvocation"),
            invocationLabel = invocationLabel,
            postCodeHookSpecification = postCodeHookSpecification ?: throw
                PulumiNullFieldException("postCodeHookSpecification"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy