update_workflow
async
¶
update_workflow(
workflow_arn: WorkflowArn,
definition_s3_location: DefinitionS3Location,
role_arn: RoleARN,
*,
config_overrides: Optional[AsyncMWAAServerlessClientConfig] = None,
code: Optional[Code] = None,
description: Optional[DescriptionString] = None,
logging_configuration: Optional[LoggingConfiguration] = None,
engine_version: Optional[EngineVersion] = None,
network_configuration: Optional[NetworkConfiguration] = None,
trigger_mode: Optional[GenericString] = None,
) -> UpdateWorkflowResponse
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.
Parameters:
-
workflow_arn(WorkflowArn) –The Amazon Resource Name (ARN) of the workflow you want to update.
-
definition_s3_location(DefinitionS3Location) –The Amazon S3 location where the updated workflow definition file is stored.
-
code(Optional[Code], default:None) –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.
-
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.
-
description(Optional[DescriptionString], default:None) –An updated description for the workflow.
-
logging_configuration(Optional[LoggingConfiguration], default:None) –Updated logging configuration for the workflow.
-
engine_version(Optional[EngineVersion], default:None) –The version of the Amazon Managed Workflows for Apache Airflow Serverless engine that you want to use for the updated workflow.
-
network_configuration(Optional[NetworkConfiguration], default:None) –Updated network configuration for the workflow execution environment.
-
trigger_mode(Optional[GenericString], default:None) –The trigger mode for the workflow execution.
Raises:
-
AccessDeniedException–You do not have sufficient permission to perform this action.
-
ConflictException–You cannot create a resource that already exists, or the resource is in a state that prevents the requested operation.
-
InternalServerException–An unexpected server-side error occurred during request processing.
-
OperationTimeoutException–The operation timed out.
-
ResourceNotFoundException–The specified resource was not found. You can only access or modify a resource that already exists.
-
ServiceQuotaExceededException–The request exceeds the service quota for Amazon Managed Workflows for Apache Airflow Serverless resources. This can occur when you attempt to create more workflows than allowed, exceed concurrent workflow run limits, or surpass task execution limits. Amazon Managed Workflows for Apache Airflow Serverless implements admission control using DynamoDB-based counters to manage resource utilization across the multi-tenant environment. Contact Amazon Web Services Support to request quota increases if you need higher limits for your use case.
-
ThrottlingException–The request was denied because too many requests were made in a short period, exceeding the service rate limits. Amazon Managed Workflows for Apache Airflow Serverless implements throttling controls to ensure fair resource allocation across all customers in the multi-tenant environment. This helps maintain service stability and performance. If you encounter throttling, implement exponential backoff and retry logic in your applications, or consider distributing your API calls over a longer time period.
-
ValidationException–The specified request parameters are invalid, missing, or inconsistent with Amazon Managed Workflows for Apache Airflow Serverless service requirements. This can occur when workflow definitions contain unsupported operators, when required IAM permissions are missing, when S3 locations are inaccessible, or when network configurations are invalid. The service validates workflow definitions, execution roles, and resource configurations to ensure compatibility with the managed Airflow environment and security requirements.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mwaa_serverless/_services/async_mwaa_serverless.py
680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 | |