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

io.burkard.cdk.pipelines.CodeBuildOptions.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 CodeBuildOptions {

  def apply(
    rolePolicy: Option[List[_ <: software.amazon.awscdk.services.iam.PolicyStatement]] = 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,
    securityGroups: Option[List[_ <: software.amazon.awscdk.services.ec2.ISecurityGroup]] = None,
    vpc: Option[software.amazon.awscdk.services.ec2.IVpc] = None,
    timeout: Option[software.amazon.awscdk.Duration] = None,
    partialBuildSpec: Option[software.amazon.awscdk.services.codebuild.BuildSpec] = None
  ): software.amazon.awscdk.pipelines.CodeBuildOptions =
    (new software.amazon.awscdk.pipelines.CodeBuildOptions.Builder)
      .rolePolicy(rolePolicy.map(_.asJava).orNull)
      .subnetSelection(subnetSelection.orNull)
      .cache(cache.orNull)
      .buildEnvironment(buildEnvironment.orNull)
      .securityGroups(securityGroups.map(_.asJava).orNull)
      .vpc(vpc.orNull)
      .timeout(timeout.orNull)
      .partialBuildSpec(partialBuildSpec.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy