updateCustomAction
inline suspend fun ChatbotClient.updateCustomAction(crossinline block: UpdateCustomActionRequest.Builder.() -> Unit): UpdateCustomActionResponse
Updates a custom action.
Samples
import aws.sdk.kotlin.services.chatbot.model.CustomActionDefinition
fun main() {
//sampleStart
// Updates the command text of a custom action without altering the existing alias name or attachment
// criteria
val resp = chatbotClient.updateCustomAction {
customActionArn = "arn:aws:chatbot::1234567890:custom-action/my-custom-action"
definition = CustomActionDefinition {
commandText = "lambda invoke MyNewFunction"
}
}
//sampleEnd
}