associateToConfiguration
inline suspend fun ChatbotClient.associateToConfiguration(crossinline block: AssociateToConfigurationRequest.Builder.() -> Unit): AssociateToConfigurationResponse
Links a resource (for example, a custom action) to a channel configuration.
Samples
fun main() {
//sampleStart
// Associate a custom action to a channel configuration, allowing it to be used in that channel
val resp = chatbotClient.associateToConfiguration {
resource = "arn:aws:chatbot::1234567890:custom-action/my-custom-action"
chatConfiguration = "arn:aws:chatbot::1234567890:chat-configuration/slack-channel/my-channel"
}
//sampleEnd
}