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

com.pulumi.awsnative.lex.kotlin.inputs.BotAliasLambdaCodeHookArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.lex.kotlin.inputs

import com.pulumi.awsnative.lex.inputs.BotAliasLambdaCodeHookArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Contains information about code hooks that Amazon Lex calls during a conversation.
 * @property codeHookInterfaceVersion The version of the request-response that you want Amazon Lex to use to invoke your Lambda function.
 * @property lambdaArn The Amazon Resource Name (ARN) of the Lambda function.
 */
public data class BotAliasLambdaCodeHookArgs(
    public val codeHookInterfaceVersion: Output,
    public val lambdaArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotAliasLambdaCodeHookArgs =
        com.pulumi.awsnative.lex.inputs.BotAliasLambdaCodeHookArgs.builder()
            .codeHookInterfaceVersion(codeHookInterfaceVersion.applyValue({ args0 -> args0 }))
            .lambdaArn(lambdaArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BotAliasLambdaCodeHookArgs].
 */
@PulumiTagMarker
public class BotAliasLambdaCodeHookArgsBuilder internal constructor() {
    private var codeHookInterfaceVersion: Output? = null

    private var lambdaArn: Output? = null

    /**
     * @param value The version of the request-response that you want Amazon Lex to use to invoke your Lambda function.
     */
    @JvmName("kfqajsdpvntmtluq")
    public suspend fun codeHookInterfaceVersion(`value`: Output) {
        this.codeHookInterfaceVersion = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the Lambda function.
     */
    @JvmName("mtrkexocadrodaqj")
    public suspend fun lambdaArn(`value`: Output) {
        this.lambdaArn = value
    }

    /**
     * @param value The version of the request-response that you want Amazon Lex to use to invoke your Lambda function.
     */
    @JvmName("kvnvkousiwpycunb")
    public suspend fun codeHookInterfaceVersion(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.codeHookInterfaceVersion = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the Lambda function.
     */
    @JvmName("qnwxuhaftghwucby")
    public suspend fun lambdaArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.lambdaArn = mapped
    }

    internal fun build(): BotAliasLambdaCodeHookArgs = BotAliasLambdaCodeHookArgs(
        codeHookInterfaceVersion = codeHookInterfaceVersion ?: throw
            PulumiNullFieldException("codeHookInterfaceVersion"),
        lambdaArn = lambdaArn ?: throw PulumiNullFieldException("lambdaArn"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy