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

com.pulumi.awsnative.lex.kotlin.outputs.BotFulfillmentUpdateResponseSpecification.kt Maven / Gradle / Ivy

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

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

import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.collections.List

/**
 * Provides settings for a message that is sent periodically to the user while a fulfillment Lambda function is running.
 * @property allowInterrupt Determines whether the user can interrupt an update message while it is playing.
 * @property frequencyInSeconds The frequency that a message is sent to the user. When the period ends, Amazon Lex chooses a message from the message groups and plays it to the user. If the fulfillment Lambda returns before the first period ends, an update message is not played to the user.
 * @property messageGroups 1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.
 */
public data class BotFulfillmentUpdateResponseSpecification(
    public val allowInterrupt: Boolean? = null,
    public val frequencyInSeconds: Int,
    public val messageGroups: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotFulfillmentUpdateResponseSpecification): BotFulfillmentUpdateResponseSpecification = BotFulfillmentUpdateResponseSpecification(
            allowInterrupt = javaType.allowInterrupt().map({ args0 -> args0 }).orElse(null),
            frequencyInSeconds = javaType.frequencyInSeconds(),
            messageGroups = javaType.messageGroups().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotMessageGroup.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy