From 60243b35cf381eef996c8e082df12d51512e25c7 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 3 Jan 2025 18:56:01 -0700 Subject: [PATCH] feat(cloudwatchevents-target): add properties --- resources/cloudwatchevents-targets.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/cloudwatchevents-targets.go b/resources/cloudwatchevents-targets.go index 932b4368..bccfeebe 100644 --- a/resources/cloudwatchevents-targets.go +++ b/resources/cloudwatchevents-targets.go @@ -2,6 +2,7 @@ package resources import ( "context" + "github.com/ekristen/libnuke/pkg/types" "fmt" @@ -87,6 +88,12 @@ func (target *CloudWatchEventsTarget) Remove(_ context.Context) error { func (target *CloudWatchEventsTarget) String() string { // TODO: change this to IAM format rule -> target and mark as breaking change for filters - // TODO: add properties for rule and target separately return fmt.Sprintf("Rule: %s Target ID: %s", *target.ruleName, *target.targetID) } + +func (target *CloudWatchEventsTarget) Properties() types.Properties { + return types.NewProperties(). + Set("Name", target.ruleName). + Set("TargetID", target.targetID). + Set("BusName", target.busName) +}