io.burkard.cdk.services.codebuild.S3LoggingOptions.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.codebuild
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object S3LoggingOptions {
def apply(
bucket: software.amazon.awscdk.services.s3.IBucket,
prefix: Option[String] = None,
enabled: Option[Boolean] = None,
encrypted: Option[Boolean] = None
): software.amazon.awscdk.services.codebuild.S3LoggingOptions =
(new software.amazon.awscdk.services.codebuild.S3LoggingOptions.Builder)
.bucket(bucket)
.prefix(prefix.orNull)
.enabled(enabled.map(Boolean.box).orNull)
.encrypted(encrypted.map(Boolean.box).orNull)
.build()
}