io.burkard.cdk.services.codepipeline.CustomActionRegistration.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.codepipeline
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CustomActionRegistration {
def apply(
internalResourceId: String,
artifactBounds: software.amazon.awscdk.services.codepipeline.ActionArtifactBounds,
provider: String,
category: software.amazon.awscdk.services.codepipeline.ActionCategory,
entityUrl: Option[String] = None,
version: Option[String] = None,
executionUrl: Option[String] = None,
actionProperties: Option[List[_ <: software.amazon.awscdk.services.codepipeline.CustomActionProperty]] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.codepipeline.CustomActionRegistration =
software.amazon.awscdk.services.codepipeline.CustomActionRegistration.Builder
.create(stackCtx, internalResourceId)
.artifactBounds(artifactBounds)
.provider(provider)
.category(category)
.entityUrl(entityUrl.orNull)
.version(version.orNull)
.executionUrl(executionUrl.orNull)
.actionProperties(actionProperties.map(_.asJava).orNull)
.build()
}