Interface CreateWorkflowRequest.Builder

  • Method Details

    • description

      CreateWorkflowRequest.Builder description(String description)

      A textual description for the workflow.

      Parameters:
      description - A textual description for the workflow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • steps

      Specifies the details for the steps that are in the specified workflow.

      The TYPE specifies which of the following actions is being taken for this step.

      • COPY - Copy the file to another location.

      • CUSTOM - Perform a custom step with an Lambda function target.

      • DECRYPT - Decrypt a file that was encrypted before it was uploaded.

      • DELETE - Delete the file.

      • TAG - Add a tag to the file.

      Currently, copying and tagging are supported only on S3.

      For file location, you specify either the Amazon S3 bucket and key, or the Amazon EFS file system ID and path.

      Parameters:
      steps - Specifies the details for the steps that are in the specified workflow.

      The TYPE specifies which of the following actions is being taken for this step.

      • COPY - Copy the file to another location.

      • CUSTOM - Perform a custom step with an Lambda function target.

      • DECRYPT - Decrypt a file that was encrypted before it was uploaded.

      • DELETE - Delete the file.

      • TAG - Add a tag to the file.

      Currently, copying and tagging are supported only on S3.

      For file location, you specify either the Amazon S3 bucket and key, or the Amazon EFS file system ID and path.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • steps

      Specifies the details for the steps that are in the specified workflow.

      The TYPE specifies which of the following actions is being taken for this step.

      • COPY - Copy the file to another location.

      • CUSTOM - Perform a custom step with an Lambda function target.

      • DECRYPT - Decrypt a file that was encrypted before it was uploaded.

      • DELETE - Delete the file.

      • TAG - Add a tag to the file.

      Currently, copying and tagging are supported only on S3.

      For file location, you specify either the Amazon S3 bucket and key, or the Amazon EFS file system ID and path.

      Parameters:
      steps - Specifies the details for the steps that are in the specified workflow.

      The TYPE specifies which of the following actions is being taken for this step.

      • COPY - Copy the file to another location.

      • CUSTOM - Perform a custom step with an Lambda function target.

      • DECRYPT - Decrypt a file that was encrypted before it was uploaded.

      • DELETE - Delete the file.

      • TAG - Add a tag to the file.

      Currently, copying and tagging are supported only on S3.

      For file location, you specify either the Amazon S3 bucket and key, or the Amazon EFS file system ID and path.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • steps

      Specifies the details for the steps that are in the specified workflow.

      The TYPE specifies which of the following actions is being taken for this step.

      • COPY - Copy the file to another location.

      • CUSTOM - Perform a custom step with an Lambda function target.

      • DECRYPT - Decrypt a file that was encrypted before it was uploaded.

      • DELETE - Delete the file.

      • TAG - Add a tag to the file.

      Currently, copying and tagging are supported only on S3.

      For file location, you specify either the Amazon S3 bucket and key, or the Amazon EFS file system ID and path.

      This is a convenience method that creates an instance of the WorkflowStep.Builder avoiding the need to create one manually via WorkflowStep.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to steps(List<WorkflowStep>).

      Parameters:
      steps - a consumer that will call methods on WorkflowStep.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • onExceptionSteps

      CreateWorkflowRequest.Builder onExceptionSteps(Collection<WorkflowStep> onExceptionSteps)

      Specifies the steps (actions) to take if errors are encountered during execution of the workflow.

      For custom steps, the Lambda function needs to send FAILURE to the call back API to kick off the exception steps. Additionally, if the Lambda does not send SUCCESS before it times out, the exception steps are executed.

      Parameters:
      onExceptionSteps - Specifies the steps (actions) to take if errors are encountered during execution of the workflow.

      For custom steps, the Lambda function needs to send FAILURE to the call back API to kick off the exception steps. Additionally, if the Lambda does not send SUCCESS before it times out, the exception steps are executed.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • onExceptionSteps

      CreateWorkflowRequest.Builder onExceptionSteps(WorkflowStep... onExceptionSteps)

      Specifies the steps (actions) to take if errors are encountered during execution of the workflow.

      For custom steps, the Lambda function needs to send FAILURE to the call back API to kick off the exception steps. Additionally, if the Lambda does not send SUCCESS before it times out, the exception steps are executed.

      Parameters:
      onExceptionSteps - Specifies the steps (actions) to take if errors are encountered during execution of the workflow.

      For custom steps, the Lambda function needs to send FAILURE to the call back API to kick off the exception steps. Additionally, if the Lambda does not send SUCCESS before it times out, the exception steps are executed.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • onExceptionSteps

      CreateWorkflowRequest.Builder onExceptionSteps(Consumer<WorkflowStep.Builder>... onExceptionSteps)

      Specifies the steps (actions) to take if errors are encountered during execution of the workflow.

      For custom steps, the Lambda function needs to send FAILURE to the call back API to kick off the exception steps. Additionally, if the Lambda does not send SUCCESS before it times out, the exception steps are executed.

      This is a convenience method that creates an instance of the WorkflowStep.Builder avoiding the need to create one manually via WorkflowStep.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to onExceptionSteps(List<WorkflowStep>).

      Parameters:
      onExceptionSteps - a consumer that will call methods on WorkflowStep.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tags

      Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.

      Parameters:
      tags - Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.

      Parameters:
      tags - Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateWorkflowRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.