io.burkard.cdk.services.codepipeline.PipelineProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.codepipeline
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object PipelineProps {
def apply(
restartExecutionOnUpdate: Option[Boolean] = None,
stages: Option[List[_ <: software.amazon.awscdk.services.codepipeline.StageProps]] = None,
role: Option[software.amazon.awscdk.services.iam.IRole] = None,
artifactBucket: Option[software.amazon.awscdk.services.s3.IBucket] = None,
crossRegionReplicationBuckets: Option[Map[String, _ <: software.amazon.awscdk.services.s3.IBucket]] = None,
reuseCrossRegionSupportStacks: Option[Boolean] = None,
crossAccountKeys: Option[Boolean] = None,
pipelineName: Option[String] = None,
enableKeyRotation: Option[Boolean] = None
): software.amazon.awscdk.services.codepipeline.PipelineProps =
(new software.amazon.awscdk.services.codepipeline.PipelineProps.Builder)
.restartExecutionOnUpdate(restartExecutionOnUpdate.map(Boolean.box).orNull)
.stages(stages.map(_.asJava).orNull)
.role(role.orNull)
.artifactBucket(artifactBucket.orNull)
.crossRegionReplicationBuckets(crossRegionReplicationBuckets.map(_.asJava).orNull)
.reuseCrossRegionSupportStacks(reuseCrossRegionSupportStacks.map(Boolean.box).orNull)
.crossAccountKeys(crossAccountKeys.map(Boolean.box).orNull)
.pipelineName(pipelineName.orNull)
.enableKeyRotation(enableKeyRotation.map(Boolean.box).orNull)
.build()
}