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