io.burkard.cdk.services.ecr.RepositoryProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ecr
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object RepositoryProps {
def apply(
repositoryName: Option[String] = None,
lifecycleRules: Option[List[_ <: software.amazon.awscdk.services.ecr.LifecycleRule]] = None,
imageScanOnPush: Option[Boolean] = None,
imageTagMutability: Option[software.amazon.awscdk.services.ecr.TagMutability] = None,
encryption: Option[software.amazon.awscdk.services.ecr.RepositoryEncryption] = None,
lifecycleRegistryId: Option[String] = None,
encryptionKey: Option[software.amazon.awscdk.services.kms.IKey] = None,
removalPolicy: Option[software.amazon.awscdk.RemovalPolicy] = None
): software.amazon.awscdk.services.ecr.RepositoryProps =
(new software.amazon.awscdk.services.ecr.RepositoryProps.Builder)
.repositoryName(repositoryName.orNull)
.lifecycleRules(lifecycleRules.map(_.asJava).orNull)
.imageScanOnPush(imageScanOnPush.map(Boolean.box).orNull)
.imageTagMutability(imageTagMutability.orNull)
.encryption(encryption.orNull)
.lifecycleRegistryId(lifecycleRegistryId.orNull)
.encryptionKey(encryptionKey.orNull)
.removalPolicy(removalPolicy.orNull)
.build()
}