io.burkard.cdk.services.codepipeline.CfnWebhookProps.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 CfnWebhookProps {
def apply(
targetPipeline: String,
authentication: String,
authenticationConfiguration: software.amazon.awscdk.services.codepipeline.CfnWebhook.WebhookAuthConfigurationProperty,
filters: List[_],
targetAction: String,
targetPipelineVersion: Number,
name: Option[String] = None,
registerWithThirdParty: Option[Boolean] = None
): software.amazon.awscdk.services.codepipeline.CfnWebhookProps =
(new software.amazon.awscdk.services.codepipeline.CfnWebhookProps.Builder)
.targetPipeline(targetPipeline)
.authentication(authentication)
.authenticationConfiguration(authenticationConfiguration)
.filters(filters.asJava)
.targetAction(targetAction)
.targetPipelineVersion(targetPipelineVersion)
.name(name.orNull)
.registerWithThirdParty(registerWithThirdParty.map(Boolean.box).orNull)
.build()
}