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

io.burkard.cdk.services.stepfunctions.StateMachineProps.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.stepfunctions

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object StateMachineProps {

  def apply(
    definition: software.amazon.awscdk.services.stepfunctions.IChainable,
    role: Option[software.amazon.awscdk.services.iam.IRole] = None,
    tracingEnabled: Option[Boolean] = None,
    stateMachineType: Option[software.amazon.awscdk.services.stepfunctions.StateMachineType] = None,
    stateMachineName: Option[String] = None,
    logs: Option[software.amazon.awscdk.services.stepfunctions.LogOptions] = None,
    timeout: Option[software.amazon.awscdk.Duration] = None
  ): software.amazon.awscdk.services.stepfunctions.StateMachineProps =
    (new software.amazon.awscdk.services.stepfunctions.StateMachineProps.Builder)
      .definition(definition)
      .role(role.orNull)
      .tracingEnabled(tracingEnabled.map(Boolean.box).orNull)
      .stateMachineType(stateMachineType.orNull)
      .stateMachineName(stateMachineName.orNull)
      .logs(logs.orNull)
      .timeout(timeout.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy