io.burkard.cdk.services.applicationinsights.CfnApplication.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.applicationinsights
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnApplication {
def apply(
internalResourceId: String,
resourceGroupName: String,
groupingType: Option[String] = None,
cweMonitorEnabled: Option[Boolean] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
componentMonitoringSettings: Option[List[_]] = None,
logPatternSets: Option[List[_]] = None,
customComponents: Option[List[_]] = None,
opsItemSnsTopicArn: Option[String] = None,
autoConfigurationEnabled: Option[Boolean] = None,
opsCenterEnabled: Option[Boolean] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.applicationinsights.CfnApplication =
software.amazon.awscdk.services.applicationinsights.CfnApplication.Builder
.create(stackCtx, internalResourceId)
.resourceGroupName(resourceGroupName)
.groupingType(groupingType.orNull)
.cweMonitorEnabled(cweMonitorEnabled.map(Boolean.box).orNull)
.tags(tags.map(_.asJava).orNull)
.componentMonitoringSettings(componentMonitoringSettings.map(_.asJava).orNull)
.logPatternSets(logPatternSets.map(_.asJava).orNull)
.customComponents(customComponents.map(_.asJava).orNull)
.opsItemSnsTopicArn(opsItemSnsTopicArn.orNull)
.autoConfigurationEnabled(autoConfigurationEnabled.map(Boolean.box).orNull)
.opsCenterEnabled(opsCenterEnabled.map(Boolean.box).orNull)
.build()
}