yehoshuadimarsky commented on code in PR #39983:
URL: https://github.com/apache/airflow/pull/39983#discussion_r1626270666


##########
airflow/providers/amazon/aws/operators/batch.py:
##########
@@ -323,6 +330,17 @@ def submit_job(self, context: Context):
 
         try:
             response = self.hook.client.submit_job(**trim_none_values(args))
+        except botocore.exceptions.ParamValidationError as error:
+            if (
+                'Unknown parameter in input: "ecsPropertiesOverride"' in 
str(error)
+            ) and self.ecs_properties_override:
+                self.log.error(
+                    "You are attempting to use ecsPropertiesOverride and the 
Boto3 API returned an "
+                    "error message which may indicate the need to update 
botocore to do this.  \n"
+                    "Support for using ecsPropertiesOverride was added in 
botocore 1.34.52 and you are using botocore %s",

Review Comment:
   Technically it's botocore, that's where all the APIs are defined. Boto3 is 
just a more user-friendly wrapper on top of boto3, I think they keep their 
versions synchronized.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to