io.burkard.cdk.services.datapipeline.CfnPipeline.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.datapipeline
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnPipeline {
def apply(
internalResourceId: String,
name: String,
parameterObjects: List[_],
description: Option[String] = None,
parameterValues: Option[List[_]] = None,
pipelineTags: Option[List[_]] = None,
pipelineObjects: Option[List[_]] = None,
activate: Option[Boolean] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.datapipeline.CfnPipeline =
software.amazon.awscdk.services.datapipeline.CfnPipeline.Builder
.create(stackCtx, internalResourceId)
.name(name)
.parameterObjects(parameterObjects.asJava)
.description(description.orNull)
.parameterValues(parameterValues.map(_.asJava).orNull)
.pipelineTags(pipelineTags.map(_.asJava).orNull)
.pipelineObjects(pipelineObjects.map(_.asJava).orNull)
.activate(activate.map(Boolean.box).orNull)
.build()
}