All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.fis.CfnExperimentTemplate.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.fis

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnExperimentTemplate {

  def apply(
    internalResourceId: String,
    targets: Map[String, _],
    stopConditions: List[_],
    description: String,
    tags: Map[String, String],
    roleArn: String,
    actions: Option[Map[String, _]] = None,
    logConfiguration: Option[software.amazon.awscdk.services.fis.CfnExperimentTemplate.ExperimentTemplateLogConfigurationProperty] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.fis.CfnExperimentTemplate =
    software.amazon.awscdk.services.fis.CfnExperimentTemplate.Builder
      .create(stackCtx, internalResourceId)
      .targets(targets.asJava)
      .stopConditions(stopConditions.asJava)
      .description(description)
      .tags(tags.asJava)
      .roleArn(roleArn)
      .actions(actions.map(_.asJava).orNull)
      .logConfiguration(logConfiguration.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy