
com.pulumi.awsnative.lex.kotlin.outputs.BotFulfillmentStartResponseSpecification.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 to the user when a fulfillment Lambda function starts running.
* @property allowInterrupt Determines whether the user can interrupt the start message while it is playing.
* @property delayInSeconds The delay between when the Lambda fulfillment function starts running and the start message is played. If the Lambda function returns before the delay is over, the start message isn't played.
* @property messageGroups 1 - 5 message groups that contain start messages. Amazon Lex chooses one of the messages to play to the user.
*/
public data class BotFulfillmentStartResponseSpecification(
public val allowInterrupt: Boolean? = null,
public val delayInSeconds: Int,
public val messageGroups: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotFulfillmentStartResponseSpecification): BotFulfillmentStartResponseSpecification = BotFulfillmentStartResponseSpecification(
allowInterrupt = javaType.allowInterrupt().map({ args0 -> args0 }).orElse(null),
delayInSeconds = javaType.delayInSeconds(),
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