AmazonMWAAServerless

2026/11/29 - AmazonMWAAServerless - 4 updated api methods

Changes  Add support of Onbehalf of scheduling

CreateWorkflow (updated) Link ¶
Changes (request)
{'OnBehalfOf': 'EXECUTION_ROLE | ORIGIN_IDENTITY'}

Creates a new workflow in Amazon Managed Workflows for Apache Airflow Serverless. This operation initializes a workflow with the specified configuration including the workflow definition, execution role, and optional settings for encryption, logging, and networking. You must provide the workflow definition as a YAML file stored in Amazon S3 that defines the DAG structure using supported Amazon Web Services operators. Amazon Managed Workflows for Apache Airflow Serverless automatically creates the first version of the workflow and sets up the necessary execution environment with multi-tenant isolation and security controls.

See also: AWS API Documentation

Request Syntax

client.create_workflow(
    Name='string',
    ClientToken='string',
    DefinitionS3Location={
        'Bucket': 'string',
        'ObjectKey': 'string',
        'VersionId': 'string'
    },
    Code={
        'S3Location': {
            'Bucket': 'string',
            'ObjectKey': 'string',
            'VersionId': 'string'
        }
    },
    RoleArn='string',
    Description='string',
    EncryptionConfiguration={
        'Type': 'AWS_MANAGED_KEY'|'CUSTOMER_MANAGED_KEY',
        'KmsKeyId': 'string'
    },
    LoggingConfiguration={
        'LogGroupName': 'string'
    },
    EngineVersion=123,
    NetworkConfiguration={
        'SecurityGroupIds': [
            'string',
        ],
        'SubnetIds': [
            'string',
        ]
    },
    Environment={
        'Variables': {
            'string': 'string'
        }
    },
    Tags={
        'string': 'string'
    },
    TriggerMode='string',
    OnBehalfOf='EXECUTION_ROLE'|'ORIGIN_IDENTITY'
)
type Name:

string

param Name:

[REQUIRED]

The name of the workflow. You must use unique workflow names within your Amazon Web Services account. The service generates a unique identifier that is appended to ensure temporal uniqueness across the account lifecycle.

type ClientToken:

string

param ClientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token prevents duplicate workflow creation requests.

This field is autopopulated if not provided.

type DefinitionS3Location:

dict

param DefinitionS3Location:

[REQUIRED]

The Amazon S3 location where the workflow definition file is stored. This must point to a valid YAML file that defines the workflow structure using supported Amazon Web Services operators and tasks. Amazon Managed Workflows for Apache Airflow Serverless takes a snapshot of the definition at creation time, so subsequent changes to the Amazon S3 object will not affect the workflow unless you create a new version. In your YAML definition, include task dependencies, scheduling information, and operator configurations that are compatible with the Amazon Managed Workflows for Apache Airflow Serverless execution environment.

  • Bucket (string) -- [REQUIRED]

    The name of the Amazon S3 bucket that contains the workflow definition file.

  • ObjectKey (string) -- [REQUIRED]

    The key (name) of the workflow definition file within the S3 bucket.

  • VersionId (string) --

    Optional. The version ID of the workflow definition file in Amazon S3. If you don't specify a version, we use the latest version.

type Code:

dict

param Code:

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

  • S3Location (dict) --

    The Amazon S3 location of the code artifacts that your workflow tasks use during execution.

    • Bucket (string) -- [REQUIRED]

      The name of the Amazon S3 bucket.

    • ObjectKey (string) -- [REQUIRED]

      The key of the code artifact within the Amazon S3 bucket.

    • VersionId (string) --

      Specifies the version ID of the object in Amazon S3. If you don't specify a version, we use the latest version.

type RoleArn:

string

param RoleArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the IAM role that Amazon Managed Workflows for Apache Airflow Serverless assumes when executing the workflow. This role must have the necessary permissions to access the required Amazon Web Services services and resources that your workflow tasks will interact with. The role is used for task execution in the isolated, multi-tenant environment and should follow the principle of least privilege. Amazon Managed Workflows for Apache Airflow Serverless validates role access during workflow creation but runtime permission checks are performed by the target services.

type Description:

string

param Description:

An optional description of the workflow that you can use to provide additional context about the workflow's purpose and functionality.

type EncryptionConfiguration:

dict

param EncryptionConfiguration:

The configuration for encrypting workflow data at rest and in transit. Specifies the encryption type and optional KMS key for customer-managed encryption.

  • Type (string) -- [REQUIRED]

    The type of encryption to use. Values are AWS_MANAGED_KEY (Amazon Web Services manages the encryption key) or CUSTOMER_MANAGED_KEY (you provide a KMS key).

  • KmsKeyId (string) --

    The ID or ARN of the Amazon Web Services KMS key to use for encryption. Required when Type is CUSTOMER_MANAGED_KEY.

type LoggingConfiguration:

dict

param LoggingConfiguration:

The configuration for workflow logging. Specifies the CloudWatch log group where workflow execution logs are stored. Amazon Managed Workflows for Apache Airflow Serverless automatically exports worker logs and task-level information to the specified log group in your account using remote logging functionality. This provides comprehensive observability for debugging and monitoring workflow execution across the distributed, serverless environment.

  • LogGroupName (string) -- [REQUIRED]

    The name of the CloudWatch log group where workflow execution logs are stored.

type EngineVersion:

integer

param EngineVersion:

The version of the Amazon Managed Workflows for Apache Airflow Serverless engine that you want to use for this workflow. This determines the feature set, supported operators, and execution environment capabilities available to your workflow. Amazon Managed Workflows for Apache Airflow Serverless maintains backward compatibility across versions while introducing new features and improvements. Currently supports version 1 with plans for additional versions as the service evolves.

type NetworkConfiguration:

dict

param NetworkConfiguration:

Network configuration for the workflow execution environment, including VPC security groups and subnets for secure network access. When specified, Amazon Managed Workflows for Apache Airflow Serverless deploys ECS worker tasks in your customer VPC to provide secure connectivity to your resources. If not specified, tasks run in the service's default worker VPC with network isolation from other customers. This configuration enables secure access to VPC-only resources like RDS databases or private endpoints.

  • SecurityGroupIds (list) --

    A list of VPC security group IDs to associate with the workflow execution environment.

    • (string) --

  • SubnetIds (list) --

    A list of VPC subnet IDs where the workflow execution environment is deployed.

    • (string) --

type Environment:

dict

param Environment:

The environment variables to set for tasks in the workflow. If you don't specify this parameter, the workflow has no environment variables.

  • Variables (dict) --

    A map of environment variable names to values. Your workflow tasks use these variables while they run. You can specify up to 50 environment variables. Each name must be between 1 and 128 characters, start with a letter, and contain only letters, numbers, and underscores. Each value can be up to 255 characters.

    Names that start with AWS_ or AIRFLOW__ are reserved. You can use the following Apache Airflow secrets backend settings, which are exceptions:

    • AIRFLOW__WORKERS__SECRETS_BACKEND – The secrets backend class that workers use.

    • AIRFLOW__WORKERS__SECRETS_BACKEND_KWARGS – The keyword arguments for the secrets backend, as a JSON string.

    • AIRFLOW__WORKERS__SECRETS_BACKEND_KWARG__* – Names with this prefix, for additional secrets backend configuration.

    If you set EncryptionConfiguration to use a customer managed AWS KMS key, we encrypt the environment variables with that key. Otherwise, we store them with default encryption at rest.

    • (string) --

      • (string) --

type Tags:

dict

param Tags:

A map of tags to assign to the workflow resource. Tags are key-value pairs that are used for resource organization and cost allocation.

  • (string) --

    • (string) --

type TriggerMode:

string

param TriggerMode:

The trigger mode for the workflow execution.

type OnBehalfOf:

string

param OnBehalfOf:

Specifies whether scheduled runs of the workflow 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. This is the default value.

  • 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, scheduled runs use EXECUTION_ROLE.

rtype:

dict

returns:

Response Syntax

{
    'WorkflowArn': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'RevisionId': 'string',
    'WorkflowStatus': 'READY'|'DELETING',
    'WorkflowVersion': 'string',
    'IsLatestVersion': True|False,
    'Warnings': [
        'string',
    ]
}

Response Structure

  • (dict) --

    • WorkflowArn (string) --

      The Amazon Resource Name (ARN) of the newly created workflow. This ARN uniquely identifies the workflow resource.

    • CreatedAt (datetime) --

      The timestamp when the workflow was created, in ISO 8601 date-time format.

    • RevisionId (string) --

      A unique identifier for this revision of the workflow configuration. This ID changes when the workflow is updated and you can use it for optimistic concurrency control in update operations. The revision ID helps prevent conflicting updates and ensures that updates are applied to the expected version of the workflow configuration.

    • WorkflowStatus (string) --

      The current status of the workflow. Possible values are READY (workflow is ready to run) and DELETING (workflow is being deleted).

    • WorkflowVersion (string) --

      The version identifier of the workflow. This is a service-generated alphanumeric string that uniquely identifies this version of the workflow. Amazon Managed Workflows for Apache Airflow Serverless uses a version-first approach where each workflow can have multiple immutable versions, which allows you to maintain different configurations and roll back to previous versions as needed. The version identifier is used in ARNs and API operations to reference specific workflow versions.

    • IsLatestVersion (boolean) --

      A Boolean flag that indicates whether this workflow version is the latest version of the workflow.

    • Warnings (list) --

      Warning messages generated during workflow creation.

      • (string) --

GetWorkflow (updated) Link ¶
Changes (response)
{'IdentityContextStatus': {'ExpiresAt': 'timestamp',
                           'Reason': 'string',
                           'Status': 'ACTIVE | EXPIRED'},
 'OnBehalfOf': {'Subject': 'string'}}

Retrieves detailed information about a workflow, including its configuration, status, and metadata.

See also: AWS API Documentation

Request Syntax

client.get_workflow(
    WorkflowArn='string',
    WorkflowVersion='string'
)
type WorkflowArn:

string

param WorkflowArn:

[REQUIRED]

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

type WorkflowVersion:

string

param WorkflowVersion:

Optional. The specific version of the workflow to retrieve. If not specified, the latest version is returned.

rtype:

dict

returns:

Response Syntax

{
    'WorkflowArn': 'string',
    'WorkflowVersion': 'string',
    'Name': 'string',
    'Description': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'ModifiedAt': datetime(2015, 1, 1),
    'EncryptionConfiguration': {
        'Type': 'AWS_MANAGED_KEY'|'CUSTOMER_MANAGED_KEY',
        'KmsKeyId': 'string'
    },
    'LoggingConfiguration': {
        'LogGroupName': 'string'
    },
    'EngineVersion': 123,
    'WorkflowStatus': 'READY'|'DELETING',
    'DefinitionS3Location': {
        'Bucket': 'string',
        'ObjectKey': 'string',
        'VersionId': 'string'
    },
    'Code': {
        'S3Location': {
            'Bucket': 'string',
            'ObjectKey': 'string',
            'VersionId': 'string'
        }
    },
    'CodeSnapshottedAt': datetime(2015, 1, 1),
    'ScheduleConfiguration': {
        'CronExpression': 'string'
    },
    'RoleArn': 'string',
    'NetworkConfiguration': {
        'SecurityGroupIds': [
            'string',
        ],
        'SubnetIds': [
            'string',
        ]
    },
    'Environment': {
        'Variables': {
            'string': 'string'
        }
    },
    'TriggerMode': 'string',
    'WorkflowDefinition': 'string',
    'OnBehalfOf': {
        'Subject': 'string'
    },
    'IdentityContextStatus': {
        'Status': 'ACTIVE'|'EXPIRED',
        'Reason': 'string',
        'ExpiresAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • WorkflowArn (string) --

      The Amazon Resource Name (ARN) of the workflow.

    • WorkflowVersion (string) --

      The version identifier of the workflow.

    • Name (string) --

      The name of the workflow.

    • Description (string) --

      The description of the workflow.

    • CreatedAt (datetime) --

      The timestamp when the workflow was created, in ISO 8601 date-time format.

    • ModifiedAt (datetime) --

      The timestamp when the workflow was last modified, in ISO 8601 date-time format.

    • EncryptionConfiguration (dict) --

      The encryption configuration for the workflow.

      • Type (string) --

        The type of encryption to use. Values are AWS_MANAGED_KEY (Amazon Web Services manages the encryption key) or CUSTOMER_MANAGED_KEY (you provide a KMS key).

      • KmsKeyId (string) --

        The ID or ARN of the Amazon Web Services KMS key to use for encryption. Required when Type is CUSTOMER_MANAGED_KEY.

    • LoggingConfiguration (dict) --

      The logging configuration for the workflow.

      • LogGroupName (string) --

        The name of the CloudWatch log group where workflow execution logs are stored.

    • EngineVersion (integer) --

      The version of the Amazon Managed Workflows for Apache Airflow Serverless engine that this workflow uses.

    • WorkflowStatus (string) --

      The current status of the workflow.

    • DefinitionS3Location (dict) --

      The Amazon S3 location of the workflow definition file.

      • Bucket (string) --

        The name of the Amazon S3 bucket that contains the workflow definition file.

      • ObjectKey (string) --

        The key (name) of the workflow definition file within the S3 bucket.

      • VersionId (string) --

        Optional. The version ID of the workflow definition file in Amazon S3. If you don't specify a version, we use the latest version.

    • Code (dict) --

      The Amazon S3 location of the code artifacts provided during workflow creation or update.

      • S3Location (dict) --

        The Amazon S3 location of the code artifacts that your workflow tasks use during execution.

        • Bucket (string) --

          The name of the Amazon S3 bucket.

        • ObjectKey (string) --

          The key of the code artifact within the Amazon S3 bucket.

        • VersionId (string) --

          Specifies the version ID of the object in Amazon S3. If you don't specify a version, we use the latest version.

    • CodeSnapshottedAt (datetime) --

      The time at which the code artifacts were copied for this workflow, in ISO 8601 date-time format.

    • ScheduleConfiguration (dict) --

      The schedule configuration for the workflow. Only one version of a workflow can have an active schedule at any given time.

      • CronExpression (string) --

        The schedule expression that determines when the workflow runs, as specified in the schedule parameter of the workflow's YAML definition. You can specify one of the following types of schedule expressions:

        • Apache Airflow cron expression – Five fields, such as 0 12 1 * *.

        • Apache Airflow schedule preset – @hourly, @daily, @weekly, @monthly, @yearly, or @annually.

        • EventBridge Scheduler rate expression – For example, rate(5 minutes). Supported units are minutes, hours, and days.

        • EventBridge Scheduler cron expression – Six fields, such as cron(0 12 * * ? *).

        In a cron expression, specify either a day-of-month or a day-of-week, not both.

    • RoleArn (string) --

      The Amazon Resource Name (ARN) of the IAM role used for workflow execution.

    • NetworkConfiguration (dict) --

      The network configuration for the workflow execution environment.

      • SecurityGroupIds (list) --

        A list of VPC security group IDs to associate with the workflow execution environment.

        • (string) --

      • SubnetIds (list) --

        A list of VPC subnet IDs where the workflow execution environment is deployed.

        • (string) --

    • Environment (dict) --

      The environment variables that tasks in the workflow use during execution.

      • Variables (dict) --

        A map of environment variable names to values. Your workflow tasks use these variables while they run. You can specify up to 50 environment variables. Each name must be between 1 and 128 characters, start with a letter, and contain only letters, numbers, and underscores. Each value can be up to 255 characters.

        Names that start with AWS_ or AIRFLOW__ are reserved. You can use the following Apache Airflow secrets backend settings, which are exceptions:

        • AIRFLOW__WORKERS__SECRETS_BACKEND – The secrets backend class that workers use.

        • AIRFLOW__WORKERS__SECRETS_BACKEND_KWARGS – The keyword arguments for the secrets backend, as a JSON string.

        • AIRFLOW__WORKERS__SECRETS_BACKEND_KWARG__* – Names with this prefix, for additional secrets backend configuration.

        If you set EncryptionConfiguration to use a customer managed AWS KMS key, we encrypt the environment variables with that key. Otherwise, we store them with default encryption at rest.

        • (string) --

          • (string) --

    • TriggerMode (string) --

      The trigger mode for the workflow execution.

    • WorkflowDefinition (string) --

      The workflow definition content.

    • OnBehalfOf (dict) --

      Details about the identity context that scheduled runs of the workflow carry in addition to the execution role. Amazon Managed Workflows for Apache Airflow Serverless returns this field only when the workflow has OnBehalfOf set to ORIGIN_IDENTITY.

      • Subject (string) --

        The display identifier from the identity context that the workflow or workflow run carries, such as an email address or user ID.

    • IdentityContextStatus (dict) --

      The status of the identity context that scheduled runs of the workflow carry. Amazon Managed Workflows for Apache Airflow Serverless returns this field only when the workflow has OnBehalfOf set to ORIGIN_IDENTITY.

      • Status (string) --

        The identity context has one of the following statuses:

        • ACTIVE – Scheduled runs can carry the identity context.

        • EXPIRED – Scheduled runs can't carry the identity context, and they fail until you update the workflow with OnBehalfOf set to ORIGIN_IDENTITY again. Sign the update request with credentials that include the identity context that you want scheduled runs to carry.

      • Reason (string) --

        This message explains why Status is EXPIRED, for example because the identity context reached its maximum lifetime or was revoked. Amazon Managed Workflows for Apache Airflow Serverless returns this field only when Status is EXPIRED.

      • ExpiresAt (datetime) --

        This value is the latest time that scheduled runs can carry the identity context, in ISO 8601 date-time format. Amazon Managed Workflows for Apache Airflow Serverless can't renew the identity context past this time. For IAM Identity Center users, the background session duration that you configure sets this limit. To extend it, update the workflow with OnBehalfOf set to ORIGIN_IDENTITY again.

GetWorkflowRun (updated) Link ¶
Changes (response)
{'OnBehalfOf': {'Subject': 'string'}}

Retrieves detailed information about a specific workflow run, including its status, execution details, and task instances.

See also: AWS API Documentation

Request Syntax

client.get_workflow_run(
    WorkflowArn='string',
    RunId='string'
)
type WorkflowArn:

string

param WorkflowArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the workflow that contains the run.

type RunId:

string

param RunId:

[REQUIRED]

The unique identifier of the workflow run to retrieve.

rtype:

dict

returns:

Response Syntax

{
    'WorkflowArn': 'string',
    'WorkflowVersion': 'string',
    'RunId': 'string',
    'RunType': 'ON_DEMAND'|'SCHEDULED',
    'OverrideParameters': {
        'string': {...}|[...]|123|123.4|'string'|True|None
    },
    'RunDetail': {
        'WorkflowArn': 'string',
        'WorkflowVersion': 'string',
        'RunId': 'string',
        'RunType': 'ON_DEMAND'|'SCHEDULED',
        'StartedOn': datetime(2015, 1, 1),
        'CreatedAt': datetime(2015, 1, 1),
        'CompletedOn': datetime(2015, 1, 1),
        'ModifiedAt': datetime(2015, 1, 1),
        'Duration': 123,
        'ErrorMessage': 'string',
        'TaskInstances': [
            'string',
        ],
        'RunState': 'STARTING'|'QUEUED'|'RUNNING'|'SUCCESS'|'FAILED'|'TIMEOUT'|'STOPPING'|'STOPPED'
    },
    'OnBehalfOf': {
        'Subject': 'string'
    }
}

Response Structure

  • (dict) --

    • WorkflowArn (string) --

      The Amazon Resource Name (ARN) of the workflow that contains this run.

    • WorkflowVersion (string) --

      The version of the workflow that is used for this run.

    • RunId (string) --

      The unique identifier of this workflow run.

    • RunType (string) --

      The type of workflow run. Values are ON_DEMAND (manually triggered) or SCHEDULED (automatically triggered by schedule).

    • OverrideParameters (dict) --

      Parameters that were overridden for this specific workflow run.

      • (string) --

        • (:ref:`document<document>`) --

    • RunDetail (dict) --

      Detailed information about the workflow run execution, including timing, status, and task instances.

      • WorkflowArn (string) --

        The Amazon Resource Name (ARN) of the workflow that contains this run.

      • WorkflowVersion (string) --

        The version of the workflow used for this run.

      • RunId (string) --

        The unique identifier of this workflow run.

      • RunType (string) --

        The type of workflow run.

      • StartedOn (datetime) --

        The timestamp when the workflow run started execution, in ISO 8601 date-time format.

      • CreatedAt (datetime) --

        The timestamp when the workflow run was created, in ISO 8601 date-time format.

      • CompletedOn (datetime) --

        The timestamp when the workflow run completed execution, in ISO 8601 date-time format. This value is null if the run is not complete.

      • ModifiedAt (datetime) --

        The timestamp when the workflow run was last modified, in ISO 8601 date-time format.

      • Duration (integer) --

        The total duration of the workflow run execution in seconds. This value is null if the run is not complete.

      • ErrorMessage (string) --

        The error message if the workflow run failed. This value is null if the run completed successfully.

      • TaskInstances (list) --

        A list of task instance IDs that are part of this workflow run.

        • (string) --

      • RunState (string) --

        The current execution state of the workflow run.

    • OnBehalfOf (dict) --

      Details about the identity context that the workflow run carries in addition to the execution role. Amazon Managed Workflows for Apache Airflow Serverless returns this field only for runs that execute with identity context, such as scheduled runs of a workflow that has OnBehalfOf set to ORIGIN_IDENTITY. A run that you start with credentials that include identity context can also return this field, whatever the OnBehalfOf value of the workflow is.

      • Subject (string) --

        The display identifier from the identity context that the workflow or workflow run carries, such as an email address or user ID.

UpdateWorkflow (updated) Link ¶
Changes (request)
{'OnBehalfOf': 'EXECUTION_ROLE | ORIGIN_IDENTITY'}

Updates an existing workflow with new configuration settings. This operation allows you to modify the workflow definition, role, and other settings. When you update a workflow, Amazon Managed Workflows for Apache Airflow Serverless automatically creates a new version with the updated configuration and disables scheduling on all previous versions to ensure only one version is actively scheduled at a time. The update operation maintains workflow history while providing a clean transition to the new configuration.

See also: AWS API Documentation

Request Syntax

client.update_workflow(
    WorkflowArn='string',
    DefinitionS3Location={
        'Bucket': 'string',
        'ObjectKey': 'string',
        'VersionId': 'string'
    },
    Code={
        'S3Location': {
            'Bucket': 'string',
            'ObjectKey': 'string',
            'VersionId': 'string'
        }
    },
    RoleArn='string',
    Description='string',
    LoggingConfiguration={
        'LogGroupName': 'string'
    },
    EngineVersion=123,
    NetworkConfiguration={
        'SecurityGroupIds': [
            'string',
        ],
        'SubnetIds': [
            'string',
        ]
    },
    Environment={
        'Variables': {
            'string': 'string'
        }
    },
    TriggerMode='string',
    OnBehalfOf='EXECUTION_ROLE'|'ORIGIN_IDENTITY'
)
type WorkflowArn:

string

param WorkflowArn:

[REQUIRED]

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

type DefinitionS3Location:

dict

param DefinitionS3Location:

[REQUIRED]

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

  • Bucket (string) -- [REQUIRED]

    The name of the Amazon S3 bucket that contains the workflow definition file.

  • ObjectKey (string) -- [REQUIRED]

    The key (name) of the workflow definition file within the S3 bucket.

  • VersionId (string) --

    Optional. The version ID of the workflow definition file in Amazon S3. If you don't specify a version, we use the latest version.

type Code:

dict

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

  • S3Location (dict) --

    The Amazon S3 location of the code artifacts that your workflow tasks use during execution.

    • Bucket (string) -- [REQUIRED]

      The name of the Amazon S3 bucket.

    • ObjectKey (string) -- [REQUIRED]

      The key of the code artifact within the Amazon S3 bucket.

    • VersionId (string) --

      Specifies the version ID of the object in Amazon S3. If you don't specify a version, we use the latest version.

type RoleArn:

string

param RoleArn:

[REQUIRED]

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

type Description:

string

param Description:

An updated description for the workflow.

type LoggingConfiguration:

dict

param LoggingConfiguration:

Updated logging configuration for the workflow.

  • LogGroupName (string) -- [REQUIRED]

    The name of the CloudWatch log group where workflow execution logs are stored.

type EngineVersion:

integer

param EngineVersion:

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

type NetworkConfiguration:

dict

param NetworkConfiguration:

Updated network configuration for the workflow execution environment.

  • SecurityGroupIds (list) --

    A list of VPC security group IDs to associate with the workflow execution environment.

    • (string) --

  • SubnetIds (list) --

    A list of VPC subnet IDs where the workflow execution environment is deployed.

    • (string) --

type Environment:

dict

param Environment:

The environment variables to set for tasks in the workflow.

  • Variables (dict) --

    A map of environment variable names to values. Your workflow tasks use these variables while they run. You can specify up to 50 environment variables. Each name must be between 1 and 128 characters, start with a letter, and contain only letters, numbers, and underscores. Each value can be up to 255 characters.

    Names that start with AWS_ or AIRFLOW__ are reserved. You can use the following Apache Airflow secrets backend settings, which are exceptions:

    • AIRFLOW__WORKERS__SECRETS_BACKEND – The secrets backend class that workers use.

    • AIRFLOW__WORKERS__SECRETS_BACKEND_KWARGS – The keyword arguments for the secrets backend, as a JSON string.

    • AIRFLOW__WORKERS__SECRETS_BACKEND_KWARG__* – Names with this prefix, for additional secrets backend configuration.

    If you set EncryptionConfiguration to use a customer managed AWS KMS key, we encrypt the environment variables with that key. Otherwise, we store them with default encryption at rest.

    • (string) --

      • (string) --

type TriggerMode:

string

param TriggerMode:

The trigger mode for the workflow execution.

type OnBehalfOf:

string

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

rtype:

dict

returns:

Response Syntax

{
    'WorkflowArn': 'string',
    'ModifiedAt': datetime(2015, 1, 1),
    'WorkflowVersion': 'string',
    'Warnings': [
        'string',
    ]
}

Response Structure

  • (dict) --

    • WorkflowArn (string) --

      The Amazon Resource Name (ARN) of the updated workflow.

    • ModifiedAt (datetime) --

      The timestamp when the workflow was last modified, in ISO 8601 date-time format.

    • WorkflowVersion (string) --

      The version identifier of the updated workflow.

    • Warnings (list) --

      Warning messages generated during workflow update.

      • (string) --