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

com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentInitialResponseSettingCodeHookArgs.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.V2modelsIntentInitialResponseSettingCodeHookArgs.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 V2modelsIntentInitialResponseSettingCodeHookArgs(
    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.V2modelsIntentInitialResponseSettingCodeHookArgs = com.pulumi.aws.lex.inputs.V2modelsIntentInitialResponseSettingCodeHookArgs.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 [V2modelsIntentInitialResponseSettingCodeHookArgs].
 */
@PulumiTagMarker
public class V2modelsIntentInitialResponseSettingCodeHookArgsBuilder 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("jwdkpkgtambskdhk")
    public suspend fun active(`value`: Output) {
        this.active = value
    }

    /**
     * @param value Whether a Lambda function should be invoked for the dialog.
     */
    @JvmName("pxyiyiefqbiwqcps")
    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("cmxrxxgnlrioayhm")
    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("amrhobvvskytrbex")
    public suspend fun postCodeHookSpecification(`value`: Output) {
        this.postCodeHookSpecification = value
    }

    /**
     * @param value Whether a dialog code hook is used when the intent is activated.
     */
    @JvmName("heeqiikiivwweinq")
    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("peidwcewjdackjjj")
    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("leprypmmhnclaufx")
    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("tjvdjhlyvtketmtt")
    public suspend fun postCodeHookSpecification(`value`: V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationArgs) {
        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("lmviuggunlxoobof")
    public suspend fun postCodeHookSpecification(argument: suspend V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped =
            V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.postCodeHookSpecification = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy