baolsen commented on a change in pull request #7541: [AIRFLOW-6822] AWS hooks 
should cache boto3 client
URL: https://github.com/apache/airflow/pull/7541#discussion_r387621500
 
 

 ##########
 File path: airflow/providers/amazon/aws/hooks/base_aws.py
 ##########
 @@ -232,6 +261,38 @@ def get_resource_type(self, resource_type, 
region_name=None, config=None):
             resource_type, endpoint_url=endpoint_url, config=config, 
verify=self.verify
         )
 
+    @cached_property
+    def conn(self):
+        """Get the underlying boto3 client (cached).
 
 Review comment:
   Thanks, there were some older methods with a similar style. I'll update 
these to all be consistent. 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to