Skip to content

UpdateWorkflowRequest

Source code in docs_src/capo_mwaa_serverless/types/update_workflow_request.py
class UpdateWorkflowRequest(TypedDict, closed=True):
    workflow_arn: "capo_mwaa_serverless.types.workflow_arn.WorkflowArn"
    """<p>The Amazon Resource Name (ARN) of the workflow you want to update.</p>"""
    definition_s3_location: (
        "capo_mwaa_serverless.types.definition_s3_location.DefinitionS3Location"
    )
    """<p>The Amazon S3 location where the updated workflow definition file is stored.</p>"""
    code: NotRequired["capo_mwaa_serverless.types.code.Code"]
    """<p>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.</p>"""
    role_arn: "capo_mwaa_serverless.types.role_arn.RoleARN"
    """<p>The Amazon Resource Name (ARN) of the IAM role that Amazon Managed Workflows for Apache Airflow Serverless assumes when it executes the updated workflow.</p>"""
    description: NotRequired[
        "capo_mwaa_serverless.types.description_string.DescriptionString"
    ]
    """<p>An updated description for the workflow.</p>"""
    logging_configuration: NotRequired[
        "capo_mwaa_serverless.types.logging_configuration.LoggingConfiguration"
    ]
    """<p>Updated logging configuration for the workflow.</p>"""
    engine_version: NotRequired[
        "capo_mwaa_serverless.types.engine_version.EngineVersion"
    ]
    """<p>The version of the Amazon Managed Workflows for Apache Airflow Serverless engine that you want to use for the updated workflow.</p>"""
    network_configuration: NotRequired[
        "capo_mwaa_serverless.types.network_configuration.NetworkConfiguration"
    ]
    """<p>Updated network configuration for the workflow execution environment.</p>"""
    environment: NotRequired["capo_mwaa_serverless.types.environment.Environment"]
    """<p>The environment variables to set for tasks in the workflow.</p> <important> <p>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.</p> </important>"""
    trigger_mode: NotRequired["capo_mwaa_serverless.types.generic_string.GenericString"]
    """<p>The trigger mode for the workflow execution.</p>"""
    on_behalf_of: NotRequired[
        "capo_mwaa_serverless.types.on_behalf_of_identity.OnBehalfOfIdentity"
    ]
    """<p>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:</p> <ul> <li> <p> <code>EXECUTION_ROLE</code> – If you specify this value, scheduled runs use only the execution role that you specify in <code>RoleArn</code>.</p> </li> <li> <p> <code>ORIGIN_IDENTITY</code> – If you specify this value, scheduled runs use the execution role that you specify in <code>RoleArn</code>, 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.</p> </li> </ul> <important> <p>If you don't specify this parameter, the new workflow version uses <code>EXECUTION_ROLE</code>, and its scheduled runs no longer carry your identity context. To keep your identity context attached to scheduled runs, specify <code>ORIGIN_IDENTITY</code> again. Scheduled runs of the new version then carry the identity context from your update request.</p> </important>"""

code instance-attribute

code: NotRequired[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.

definition_s3_location instance-attribute

definition_s3_location: DefinitionS3Location

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

description instance-attribute

description: NotRequired[DescriptionString]

An updated description for the workflow.

engine_version instance-attribute

engine_version: NotRequired[EngineVersion]

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

environment instance-attribute

environment: NotRequired[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.

logging_configuration instance-attribute

logging_configuration: NotRequired[LoggingConfiguration]

Updated logging configuration for the workflow.

network_configuration instance-attribute

network_configuration: NotRequired[NetworkConfiguration]

Updated network configuration for the workflow execution environment.

on_behalf_of instance-attribute

on_behalf_of: NotRequired[OnBehalfOfIdentity]

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.

role_arn instance-attribute

role_arn: 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.

trigger_mode instance-attribute

trigger_mode: NotRequired[GenericString]

The trigger mode for the workflow execution.

workflow_arn instance-attribute

workflow_arn: WorkflowArn

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