io.burkard.cdk.services.ecr.CfnRepositoryProps.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 CfnRepositoryProps {
def apply(
repositoryName: Option[String] = None,
encryptionConfiguration: Option[software.amazon.awscdk.services.ecr.CfnRepository.EncryptionConfigurationProperty] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
lifecyclePolicy: Option[software.amazon.awscdk.services.ecr.CfnRepository.LifecyclePolicyProperty] = None,
imageTagMutability: Option[String] = None,
repositoryPolicyText: Option[AnyRef] = None,
imageScanningConfiguration: Option[software.amazon.awscdk.services.ecr.CfnRepository.ImageScanningConfigurationProperty] = None
): software.amazon.awscdk.services.ecr.CfnRepositoryProps =
(new software.amazon.awscdk.services.ecr.CfnRepositoryProps.Builder)
.repositoryName(repositoryName.orNull)
.encryptionConfiguration(encryptionConfiguration.orNull)
.tags(tags.map(_.asJava).orNull)
.lifecyclePolicy(lifecyclePolicy.orNull)
.imageTagMutability(imageTagMutability.orNull)
.repositoryPolicyText(repositoryPolicyText.orNull)
.imageScanningConfiguration(imageScanningConfiguration.orNull)
.build()
}