io.burkard.cdk.cxapi.NestedCloudAssemblyArtifact.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.cxapi
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object NestedCloudAssemblyArtifact {
def apply(
assembly: software.amazon.awscdk.cxapi.CloudAssembly,
name: String,
displayName: String,
properties0: Option[software.amazon.awscdk.cloudassembly.schema.TreeArtifactProperties] = None,
properties1: Option[software.amazon.awscdk.cloudassembly.schema.AssetManifestProperties] = None,
properties2: Option[software.amazon.awscdk.cloudassembly.schema.AwsCloudFormationStackProperties] = None,
properties3: Option[software.amazon.awscdk.cloudassembly.schema.NestedCloudAssemblyProperties] = None,
environment: Option[String] = None,
metadata: Option[Map[String, _ <: List[_ <: software.amazon.awscdk.cloudassembly.schema.MetadataEntry]]] = None,
`type`: Option[software.amazon.awscdk.cloudassembly.schema.ArtifactType] = None,
dependencies: Option[List[String]] = None
): software.amazon.awscdk.cxapi.NestedCloudAssemblyArtifact =
software.amazon.awscdk.cxapi.NestedCloudAssemblyArtifact.Builder
.create(assembly, name)
.displayName(displayName)
.properties(properties0.orNull)
.properties(properties1.orNull)
.properties(properties2.orNull)
.properties(properties3.orNull)
.environment(environment.orNull)
.metadata(metadata.map(_.mapValues(_.asJava).toMap.asJava).orNull)
.`type`(`type`.orNull)
.dependencies(dependencies.map(_.asJava).orNull)
.build()
}