From 1e5142c557313859030a5c977afd3aeb36546988 Mon Sep 17 00:00:00 2001 From: Cory Bekker Date: Mon, 16 Sep 2024 09:52:48 -0700 Subject: [PATCH] remove agent alias filter --- resources/bedrock-agentalias.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/resources/bedrock-agentalias.go b/resources/bedrock-agentalias.go index 0ec47cb87..5607e61c4 100644 --- a/resources/bedrock-agentalias.go +++ b/resources/bedrock-agentalias.go @@ -1,9 +1,6 @@ package resources import ( - "fmt" - "strings" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/bedrockagent" @@ -85,13 +82,6 @@ func ListBedrockAgentIds(svc *bedrockagent.BedrockAgent) ([]string, error) { return agentIds, nil } -func (f *BedrockAgentAlias) Filter() error { - if strings.HasPrefix(*f.AgentAliasName, "AgentTestAlias") { - return fmt.Errorf("cannot delete AWS managed Agent Alias") - } - return nil -} - func (f *BedrockAgentAlias) Remove() error { _, err := f.svc.DeleteAgentAlias(&bedrockagent.DeleteAgentAliasInput{ AgentAliasId: f.AgentAliasId,