io.burkard.cdk.services.frauddetector.CfnDetector.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.frauddetector
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnDetector {
def apply(
internalResourceId: String,
eventType: software.amazon.awscdk.services.frauddetector.CfnDetector.EventTypeProperty,
detectorId: String,
rules: List[_],
detectorVersionStatus: Option[String] = None,
description: Option[String] = None,
associatedModels: Option[List[_]] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
ruleExecutionMode: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.frauddetector.CfnDetector =
software.amazon.awscdk.services.frauddetector.CfnDetector.Builder
.create(stackCtx, internalResourceId)
.eventType(eventType)
.detectorId(detectorId)
.rules(rules.asJava)
.detectorVersionStatus(detectorVersionStatus.orNull)
.description(description.orNull)
.associatedModels(associatedModels.map(_.asJava).orNull)
.tags(tags.map(_.asJava).orNull)
.ruleExecutionMode(ruleExecutionMode.orNull)
.build()
}