io.burkard.cdk.services.codepipeline.CfnWebhook.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 CfnWebhook {
def apply(
internalResourceId: String,
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
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.codepipeline.CfnWebhook =
software.amazon.awscdk.services.codepipeline.CfnWebhook.Builder
.create(stackCtx, internalResourceId)
.targetPipeline(targetPipeline)
.authentication(authentication)
.authenticationConfiguration(authenticationConfiguration)
.filters(filters.asJava)
.targetAction(targetAction)
.targetPipelineVersion(targetPipelineVersion)
.name(name.orNull)
.registerWithThirdParty(registerWithThirdParty.map(Boolean.box).orNull)
.build()
}