Skip to content

Commit

Permalink
added alias properties
Browse files Browse the repository at this point in the history
  • Loading branch information
corybekk committed Sep 16, 2024
1 parent 1e5142c commit 2e67160
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions resources/bedrock-agentalias.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/bedrockagent"
"github.com/rebuy-de/aws-nuke/v2/pkg/types"
)

type BedrockAgentAlias struct {
Expand Down Expand Up @@ -90,6 +91,15 @@ func (f *BedrockAgentAlias) Remove() error {
return err
}

func (f *BedrockAgentAlias) Properties() types.Properties {
properties := types.NewProperties().
Set("AgentId", f.AgentId).
Set("AgentAliasId", f.AgentAliasId).
Set("AgentAliasName", f.AgentAliasName)

return properties
}

func (f *BedrockAgentAlias) String() string {
return *f.AgentAliasName
}
10 changes: 10 additions & 0 deletions resources/bedrock-flowalias.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/bedrockagent"
"github.com/rebuy-de/aws-nuke/v2/pkg/types"
)

type BedrockFlowAlias struct {
Expand Down Expand Up @@ -100,6 +101,15 @@ func (f *BedrockFlowAlias) Remove() error {
return err
}

func (f *BedrockFlowAlias) Properties() types.Properties {
properties := types.NewProperties().
Set("FlowId", f.FlowId).
Set("FlowAliasId", f.FlowAliasId).
Set("FlowAliasName", f.FlowAliasName)

return properties
}

func (f *BedrockFlowAlias) String() string {
return *f.FlowAliasName
}

0 comments on commit 2e67160

Please sign in to comment.