File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package resources
2
2
3
3
import (
4
4
"context"
5
+ "github.com/ekristen/libnuke/pkg/types"
5
6
6
7
"fmt"
7
8
@@ -87,6 +88,12 @@ func (target *CloudWatchEventsTarget) Remove(_ context.Context) error {
87
88
88
89
func (target * CloudWatchEventsTarget ) String () string {
89
90
// TODO: change this to IAM format rule -> target and mark as breaking change for filters
90
- // TODO: add properties for rule and target separately
91
91
return fmt .Sprintf ("Rule: %s Target ID: %s" , * target .ruleName , * target .targetID )
92
92
}
93
+
94
+ func (target * CloudWatchEventsTarget ) Properties () types.Properties {
95
+ return types .NewProperties ().
96
+ Set ("Name" , target .ruleName ).
97
+ Set ("TargetID" , target .targetID ).
98
+ Set ("BusName" , target .busName )
99
+ }
You can’t perform that action at this time.
0 commit comments