Interface UpdateWorkflowRequest.Builder

  • Method Details

    • workflowArn

      UpdateWorkflowRequest.Builder workflowArn(String workflowArn)

      The Amazon Resource Name (ARN) of the workflow you want to update.

      Parameters:
      workflowArn - The Amazon Resource Name (ARN) of the workflow you want to update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definitionS3Location

      UpdateWorkflowRequest.Builder definitionS3Location(DefinitionS3Location definitionS3Location)

      The Amazon S3 location where the updated workflow definition file is stored.

      Parameters:
      definitionS3Location - The Amazon S3 location where the updated workflow definition file is stored.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definitionS3Location

      default UpdateWorkflowRequest.Builder definitionS3Location(Consumer<DefinitionS3Location.Builder> definitionS3Location)

      The Amazon S3 location where the updated workflow definition file is stored.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to definitionS3Location(DefinitionS3Location).

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

      The location of code artifacts in Amazon S3 for the updated workflow. The service copies the code from this location at the time of the request.

      Parameters:
      code - The location of code artifacts in Amazon S3 for the updated workflow. The service copies the code from this location at the time of the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • code

      The location of code artifacts in Amazon S3 for the updated workflow. The service copies the code from this location at the time of the request.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to code(Code).

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

      The Amazon Resource Name (ARN) of the IAM role that Amazon Managed Workflows for Apache Airflow Serverless assumes when it executes the updated workflow.

      Parameters:
      roleArn - The Amazon Resource Name (ARN) of the IAM role that Amazon Managed Workflows for Apache Airflow Serverless assumes when it executes the updated workflow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      UpdateWorkflowRequest.Builder description(String description)

      An updated description for the workflow.

      Parameters:
      description - An updated description for the workflow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • loggingConfiguration

      UpdateWorkflowRequest.Builder loggingConfiguration(LoggingConfiguration loggingConfiguration)

      Updated logging configuration for the workflow.

      Parameters:
      loggingConfiguration - Updated logging configuration for the workflow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • loggingConfiguration

      default UpdateWorkflowRequest.Builder loggingConfiguration(Consumer<LoggingConfiguration.Builder> loggingConfiguration)

      Updated logging configuration for the workflow.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to loggingConfiguration(LoggingConfiguration).

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

      UpdateWorkflowRequest.Builder engineVersion(Integer engineVersion)

      The version of the Amazon Managed Workflows for Apache Airflow Serverless engine that you want to use for the updated workflow.

      Parameters:
      engineVersion - The version of the Amazon Managed Workflows for Apache Airflow Serverless engine that you want to use for the updated workflow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkConfiguration

      UpdateWorkflowRequest.Builder networkConfiguration(NetworkConfiguration networkConfiguration)

      Updated network configuration for the workflow execution environment.

      Parameters:
      networkConfiguration - Updated network configuration for the workflow execution environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkConfiguration

      default UpdateWorkflowRequest.Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)

      Updated network configuration for the workflow execution environment.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to networkConfiguration(NetworkConfiguration).

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

      UpdateWorkflowRequest.Builder environment(Environment environment)

      The environment variables to set for tasks in the workflow.

      The variables that you specify replace all existing environment variables for the workflow. If you don't specify this parameter, the workflow has no environment variables. To keep existing environment variables, include them in the request.

      Parameters:
      environment - The environment variables to set for tasks in the workflow.

      The variables that you specify replace all existing environment variables for the workflow. If you don't specify this parameter, the workflow has no environment variables. To keep existing environment variables, include them in the request.

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

      default UpdateWorkflowRequest.Builder environment(Consumer<Environment.Builder> environment)

      The environment variables to set for tasks in the workflow.

      The variables that you specify replace all existing environment variables for the workflow. If you don't specify this parameter, the workflow has no environment variables. To keep existing environment variables, include them in the request.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to environment(Environment).

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

      UpdateWorkflowRequest.Builder triggerMode(String triggerMode)

      The trigger mode for the workflow execution.

      Parameters:
      triggerMode - The trigger mode for the workflow execution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • onBehalfOf

      UpdateWorkflowRequest.Builder onBehalfOf(String onBehalfOf)

      Specifies whether scheduled runs of the new workflow version carry your identity context in addition to the execution role. Identity context is information about your user identity that Amazon Web Services propagates with your credentials, for example when you sign in through IAM Identity Center. Specify one of the following values:

      • EXECUTION_ROLE – If you specify this value, scheduled runs use only the execution role that you specify in RoleArn.

      • ORIGIN_IDENTITY – If you specify this value, scheduled runs use the execution role that you specify in RoleArn, with your identity context attached. To use this value, the workflow definition must include a schedule. The credentials that you sign the request with must also include identity context.

      If you don't specify this parameter, the new workflow version uses EXECUTION_ROLE, and its scheduled runs no longer carry your identity context. To keep your identity context attached to scheduled runs, specify ORIGIN_IDENTITY again. Scheduled runs of the new version then carry the identity context from your update request.

      Parameters:
      onBehalfOf - Specifies whether scheduled runs of the new workflow version carry your identity context in addition to the execution role. Identity context is information about your user identity that Amazon Web Services propagates with your credentials, for example when you sign in through IAM Identity Center. Specify one of the following values:

      • EXECUTION_ROLE – If you specify this value, scheduled runs use only the execution role that you specify in RoleArn.

      • ORIGIN_IDENTITY – If you specify this value, scheduled runs use the execution role that you specify in RoleArn, with your identity context attached. To use this value, the workflow definition must include a schedule. The credentials that you sign the request with must also include identity context.

      If you don't specify this parameter, the new workflow version uses EXECUTION_ROLE, and its scheduled runs no longer carry your identity context. To keep your identity context attached to scheduled runs, specify ORIGIN_IDENTITY again. Scheduled runs of the new version then carry the identity context from your update request.

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

      Specifies whether scheduled runs of the new workflow version carry your identity context in addition to the execution role. Identity context is information about your user identity that Amazon Web Services propagates with your credentials, for example when you sign in through IAM Identity Center. Specify one of the following values:

      • EXECUTION_ROLE – If you specify this value, scheduled runs use only the execution role that you specify in RoleArn.

      • ORIGIN_IDENTITY – If you specify this value, scheduled runs use the execution role that you specify in RoleArn, with your identity context attached. To use this value, the workflow definition must include a schedule. The credentials that you sign the request with must also include identity context.

      If you don't specify this parameter, the new workflow version uses EXECUTION_ROLE, and its scheduled runs no longer carry your identity context. To keep your identity context attached to scheduled runs, specify ORIGIN_IDENTITY again. Scheduled runs of the new version then carry the identity context from your update request.

      Parameters:
      onBehalfOf - Specifies whether scheduled runs of the new workflow version carry your identity context in addition to the execution role. Identity context is information about your user identity that Amazon Web Services propagates with your credentials, for example when you sign in through IAM Identity Center. Specify one of the following values:

      • EXECUTION_ROLE – If you specify this value, scheduled runs use only the execution role that you specify in RoleArn.

      • ORIGIN_IDENTITY – If you specify this value, scheduled runs use the execution role that you specify in RoleArn, with your identity context attached. To use this value, the workflow definition must include a schedule. The credentials that you sign the request with must also include identity context.

      If you don't specify this parameter, the new workflow version uses EXECUTION_ROLE, and its scheduled runs no longer carry your identity context. To keep your identity context attached to scheduled runs, specify ORIGIN_IDENTITY again. Scheduled runs of the new version then carry the identity context from your update request.

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

      UpdateWorkflowRequest.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.