io.burkard.cdk.pipelines.CodeBuildStep.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.pipelines
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CodeBuildStep {
def apply(
id: String,
projectName: Option[String] = None,
rolePolicyStatements: Option[List[_ <: software.amazon.awscdk.services.iam.PolicyStatement]] = None,
role: Option[software.amazon.awscdk.services.iam.IRole] = None,
additionalInputs: Option[Map[String, _ <: software.amazon.awscdk.pipelines.IFileSetProducer]] = None,
actionRole: Option[software.amazon.awscdk.services.iam.IRole] = None,
subnetSelection: Option[software.amazon.awscdk.services.ec2.SubnetSelection] = None,
cache: Option[software.amazon.awscdk.services.codebuild.Cache] = None,
buildEnvironment: Option[software.amazon.awscdk.services.codebuild.BuildEnvironment] = None,
primaryOutputDirectory: Option[String] = None,
securityGroups: Option[List[_ <: software.amazon.awscdk.services.ec2.ISecurityGroup]] = None,
installCommands: Option[List[String]] = None,
vpc: Option[software.amazon.awscdk.services.ec2.IVpc] = None,
envFromCfnOutputs: Option[Map[String, _ <: software.amazon.awscdk.CfnOutput]] = None,
timeout: Option[software.amazon.awscdk.Duration] = None,
commands: Option[List[String]] = None,
input: Option[software.amazon.awscdk.pipelines.IFileSetProducer] = None,
partialBuildSpec: Option[software.amazon.awscdk.services.codebuild.BuildSpec] = None,
env: Option[Map[String, String]] = None
): software.amazon.awscdk.pipelines.CodeBuildStep =
software.amazon.awscdk.pipelines.CodeBuildStep.Builder
.create(id)
.projectName(projectName.orNull)
.rolePolicyStatements(rolePolicyStatements.map(_.asJava).orNull)
.role(role.orNull)
.additionalInputs(additionalInputs.map(_.asJava).orNull)
.actionRole(actionRole.orNull)
.subnetSelection(subnetSelection.orNull)
.cache(cache.orNull)
.buildEnvironment(buildEnvironment.orNull)
.primaryOutputDirectory(primaryOutputDirectory.orNull)
.securityGroups(securityGroups.map(_.asJava).orNull)
.installCommands(installCommands.map(_.asJava).orNull)
.vpc(vpc.orNull)
.envFromCfnOutputs(envFromCfnOutputs.map(_.asJava).orNull)
.timeout(timeout.orNull)
.commands(commands.map(_.asJava).orNull)
.input(input.orNull)
.partialBuildSpec(partialBuildSpec.orNull)
.env(env.map(_.asJava).orNull)
.build()
}