All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.codepipeline.actions.LambdaInvokeAction.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.codepipeline.actions

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object LambdaInvokeAction {

  def apply(
    lambda: software.amazon.awscdk.services.lambda.IFunction,
    role: Option[software.amazon.awscdk.services.iam.IRole] = None,
    userParametersString: Option[String] = None,
    outputs: Option[List[_ <: software.amazon.awscdk.services.codepipeline.Artifact]] = None,
    variablesNamespace: Option[String] = None,
    inputs: Option[List[_ <: software.amazon.awscdk.services.codepipeline.Artifact]] = None,
    runOrder: Option[Number] = None,
    actionName: Option[String] = None,
    userParameters: Option[Map[String, _]] = None
  ): software.amazon.awscdk.services.codepipeline.actions.LambdaInvokeAction =
    software.amazon.awscdk.services.codepipeline.actions.LambdaInvokeAction.Builder
      .create()
      .lambda(lambda)
      .role(role.orNull)
      .userParametersString(userParametersString.orNull)
      .outputs(outputs.map(_.asJava).orNull)
      .variablesNamespace(variablesNamespace.orNull)
      .inputs(inputs.map(_.asJava).orNull)
      .runOrder(runOrder.orNull)
      .actionName(actionName.orNull)
      .userParameters(userParameters.map(_.asJava).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy