io.burkard.cdk.pipelines.ExternalDockerCredentialOptions.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.pipelines
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object ExternalDockerCredentialOptions {
def apply(
secretPasswordField: Option[String] = None,
secretUsernameField: Option[String] = None,
assumeRole: Option[software.amazon.awscdk.services.iam.IRole] = None,
usages: Option[List[_ <: software.amazon.awscdk.pipelines.DockerCredentialUsage]] = None
): software.amazon.awscdk.pipelines.ExternalDockerCredentialOptions =
(new software.amazon.awscdk.pipelines.ExternalDockerCredentialOptions.Builder)
.secretPasswordField(secretPasswordField.orNull)
.secretUsernameField(secretUsernameField.orNull)
.assumeRole(assumeRole.orNull)
.usages(usages.map(_.asJava).orNull)
.build()
}