io.burkard.cdk.services.codeartifact.CfnRepository.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.codeartifact
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnRepository {
def apply(
internalResourceId: String,
repositoryName: String,
domainName: String,
permissionsPolicyDocument: Option[AnyRef] = None,
description: Option[String] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
upstreams: Option[List[String]] = None,
externalConnections: Option[List[String]] = None,
domainOwner: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.codeartifact.CfnRepository =
software.amazon.awscdk.services.codeartifact.CfnRepository.Builder
.create(stackCtx, internalResourceId)
.repositoryName(repositoryName)
.domainName(domainName)
.permissionsPolicyDocument(permissionsPolicyDocument.orNull)
.description(description.orNull)
.tags(tags.map(_.asJava).orNull)
.upstreams(upstreams.map(_.asJava).orNull)
.externalConnections(externalConnections.map(_.asJava).orNull)
.domainOwner(domainOwner.orNull)
.build()
}