io.burkard.cdk.services.chatbot.CfnSlackChannelConfiguration.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.chatbot
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnSlackChannelConfiguration {
def apply(
internalResourceId: String,
iamRoleArn: String,
slackChannelId: String,
slackWorkspaceId: String,
configurationName: String,
guardrailPolicies: Option[List[String]] = None,
loggingLevel: Option[String] = None,
snsTopicArns: Option[List[String]] = None,
userRoleRequired: Option[Boolean] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.chatbot.CfnSlackChannelConfiguration =
software.amazon.awscdk.services.chatbot.CfnSlackChannelConfiguration.Builder
.create(stackCtx, internalResourceId)
.iamRoleArn(iamRoleArn)
.slackChannelId(slackChannelId)
.slackWorkspaceId(slackWorkspaceId)
.configurationName(configurationName)
.guardrailPolicies(guardrailPolicies.map(_.asJava).orNull)
.loggingLevel(loggingLevel.orNull)
.snsTopicArns(snsTopicArns.map(_.asJava).orNull)
.userRoleRequired(userRoleRequired.map(Boolean.box).orNull)
.build()
}