AlejandroMorgante commented on code in PR #67984:
URL: https://github.com/apache/airflow/pull/67984#discussion_r3358592977
##########
providers/amazon/src/airflow/providers/amazon/aws/hooks/bedrock.py:
##########
@@ -106,3 +109,93 @@ class BedrockAgentRuntimeHook(AwsBaseHook):
def __init__(self, *args, **kwargs) -> None:
kwargs["client_type"] = self.client_type
super().__init__(*args, **kwargs)
+
+
+class BedrockAgentCoreControlHook(AwsBaseHook):
+ """
+ Interact with the Amazon Bedrock AgentCore control plane API.
+
+ Provide thin wrapper around
:external+boto3:py:class:`boto3.client("bedrock-agentcore-control")
<BedrockAgentCoreControl.Client>`.
+
+ Additional arguments (such as ``aws_conn_id``) may be specified and
+ are passed down to the underlying AwsBaseHook.
+
+ .. seealso::
+ - :class:`airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook`
+ """
+
+ client_type = "bedrock-agentcore-control"
+
+ def __init__(self, *args, **kwargs) -> None:
+ kwargs["client_type"] = self.client_type
+ super().__init__(*args, **kwargs)
+
+ def create_agent_runtime(
Review Comment:
Done, removed the wrapper methods from **BedrockAgentCoreControlHook** and
**BedrockAgentCoreHook**. Operators now call **`self.hook.conn.<method>() `**
directly
--
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]