ellisms commented on code in PR #43988:
URL: https://github.com/apache/airflow/pull/43988#discussion_r1842619718
##########
providers/src/airflow/providers/amazon/aws/hooks/dms.py:
##########
@@ -219,3 +224,158 @@ def wait_for_task_status(self, replication_task_arn: str,
status: DmsTaskWaiterS
],
WithoutSettings=True,
)
+
+ def describe_replication_configs(self, filters: list[dict] | None = None,
**kwargs) -> list[dict]:
+ """
+ Return list of serverless replication configs.
+
+ .. seealso::
+ -
:external+boto3:py:meth:`DatabaseMigrationService.Client.describe_replication_configs`
+
+ :param filters: List of filter objects
+ :return: List of replication tasks
+ """
+ filters = filters if filters is not None else []
+
+ try:
+ resp = self.conn.describe_replication_configs(Filters=filters,
**kwargs)
+ return resp.get("ReplicationConfigs", [])
+ except Exception as ex:
+ self.log.error("Error while describing replication configs: %s",
str(ex))
+ return []
Review Comment:
Good point. I'll take another look at it.
--
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]