Class Task.Builder

java.lang.Object
software.amazon.awscdk.services.stepfunctions.Task.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Task>
Enclosing class:
Task

@Stability(Deprecated) @Deprecated public static final class Task.Builder extends Object implements software.amazon.jsii.Builder<Task>
Deprecated.
(deprecated) A fluent builder for Task.
  • Method Details

    • create

      @Stability(Deprecated) @Deprecated public static Task.Builder create(software.constructs.Construct scope, String id)
      Deprecated.
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of Task.Builder.
    • task

      @Stability(Deprecated) @Deprecated public Task.Builder task(IStepFunctionsTask task)
      Deprecated.
      (deprecated) Actual task to be invoked in this workflow.

      Parameters:
      task - Actual task to be invoked in this workflow. This parameter is required.
      Returns:
      this
    • comment

      @Stability(Deprecated) @Deprecated public Task.Builder comment(String comment)
      Deprecated.
      (deprecated) An optional description for this state.

      Default: No comment

      Parameters:
      comment - An optional description for this state. This parameter is required.
      Returns:
      this
    • inputPath

      @Stability(Deprecated) @Deprecated public Task.Builder inputPath(String inputPath)
      Deprecated.
      (deprecated) JSONPath expression to select part of the state to be the input to this state.

      May also be the special value JsonPath.DISCARD, which will cause the effective input to be the empty object {}.

      Default: $

      Parameters:
      inputPath - JSONPath expression to select part of the state to be the input to this state. This parameter is required.
      Returns:
      this
    • outputPath

      @Stability(Deprecated) @Deprecated public Task.Builder outputPath(String outputPath)
      Deprecated.
      (deprecated) JSONPath expression to select part of the state to be the output to this state.

      May also be the special value JsonPath.DISCARD, which will cause the effective output to be the empty object {}.

      Default: $

      Parameters:
      outputPath - JSONPath expression to select part of the state to be the output to this state. This parameter is required.
      Returns:
      this
    • parameters

      @Stability(Deprecated) @Deprecated public Task.Builder parameters(Map<String,? extends Object> parameters)
      Deprecated.
      (deprecated) Parameters to invoke the task with.

      It is not recommended to use this field. The object that is passed in the task property will take care of returning the right values for the Parameters field in the Step Functions definition.

      The various classes that implement IStepFunctionsTask will take a properties which make sense for the task type. For example, for InvokeFunction the field that populates the parameters field will be called payload, and for the PublishToTopic the parameters field will be populated via a combination of the referenced topic, subject and message.

      If passed anyway, the keys in this map will override the parameters returned by the task object.

      Default: - Use the parameters implied by the `task` property

      Parameters:
      parameters - Parameters to invoke the task with. This parameter is required.
      Returns:
      this
      See Also:
    • resultPath

      @Stability(Deprecated) @Deprecated public Task.Builder resultPath(String resultPath)
      Deprecated.
      (deprecated) JSONPath expression to indicate where to inject the state's output.

      May also be the special value JsonPath.DISCARD, which will cause the state's input to become its output.

      Default: $

      Parameters:
      resultPath - JSONPath expression to indicate where to inject the state's output. This parameter is required.
      Returns:
      this
    • timeout

      @Stability(Deprecated) @Deprecated public Task.Builder timeout(Duration timeout)
      Deprecated.
      (deprecated) Maximum run time of this state.

      If the state takes longer than this amount of time to complete, a 'Timeout' error is raised.

      Default: 60

      Parameters:
      timeout - Maximum run time of this state. This parameter is required.
      Returns:
      this
    • build

      @Stability(Deprecated) @Deprecated public Task build()
      Deprecated.
      Specified by:
      build in interface software.amazon.jsii.Builder<Task>
      Returns:
      a newly built instance of Task.