java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.stepfunctions.Timeout
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:39.966Z") @Stability(Stable) public abstract class Timeout extends software.amazon.jsii.JsiiObject
Timeout for a task or heartbeat.

Example:

 GlueStartJobRun.Builder.create(this, "Task")
         .glueJobName("my-glue-job")
         .arguments(TaskInput.fromObject(Map.of(
                 "key", "value")))
         .taskTimeout(Timeout.duration(Duration.minutes(30)))
         .notifyDelayAfter(Duration.minutes(5))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    Timeout(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Timeout(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Timeout
    at(String path)
    Use a dynamic timeout specified by a path in the state input.
    static Timeout
    duration(Duration duration)
    Use a duration as timeout.
    abstract String
    Path for this timeout.
    abstract Number
    Seconds for this timeout.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • Timeout

      protected Timeout(software.amazon.jsii.JsiiObjectRef objRef)
    • Timeout

      protected Timeout(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Timeout

      @Stability(Stable) protected Timeout()
  • Method Details

    • at

      @Stability(Stable) @NotNull public static Timeout at(@NotNull String path)
      Use a dynamic timeout specified by a path in the state input.

      The path must select a field whose value is a positive integer.

      Parameters:
      path - This parameter is required.
    • duration

      @Stability(Stable) @NotNull public static Timeout duration(@NotNull Duration duration)
      Use a duration as timeout.

      Parameters:
      duration - This parameter is required.
    • getPath

      @Stability(Stable) @Nullable public abstract String getPath()
      Path for this timeout.
    • getSeconds

      @Stability(Stable) @Nullable public abstract Number getSeconds()
      Seconds for this timeout.