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

com.pulumi.awsnative.lex.kotlin.outputs.BotFulfillmentCodeHookSetting.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.lex.kotlin.outputs

import kotlin.Boolean
import kotlin.Suppress

/**
 * Settings that determine if a Lambda function should be invoked to fulfill a specific intent.
 * @property enabled Indicates whether a Lambda function should be invoked to fulfill a specific intent.
 * @property fulfillmentUpdatesSpecification Provides settings for update messages sent to the user for long-running Lambda fulfillment functions. Fulfillment updates can be used only with streaming conversations.
 * @property isActive Determines whether the fulfillment code hook is used. When active is false, the code hook doesn't run.
 * @property postFulfillmentStatusSpecification Provides settings for messages sent to the user for after the Lambda fulfillment function completes. Post-fulfillment messages can be sent for both streaming and non-streaming conversations.
 */
public data class BotFulfillmentCodeHookSetting(
    public val enabled: Boolean,
    public val fulfillmentUpdatesSpecification: BotFulfillmentUpdatesSpecification? = null,
    public val isActive: Boolean? = null,
    public val postFulfillmentStatusSpecification: BotPostFulfillmentStatusSpecification? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotFulfillmentCodeHookSetting): BotFulfillmentCodeHookSetting = BotFulfillmentCodeHookSetting(
            enabled = javaType.enabled(),
            fulfillmentUpdatesSpecification = javaType.fulfillmentUpdatesSpecification().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotFulfillmentUpdatesSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            isActive = javaType.isActive().map({ args0 -> args0 }).orElse(null),
            postFulfillmentStatusSpecification = javaType.postFulfillmentStatusSpecification().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotPostFulfillmentStatusSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy