Skip to content

Commit

Permalink
Rename eventbridge rule in toolbox dump output
Browse files Browse the repository at this point in the history
`eventbridge` itself is too generic given there are many resource types within the eventbridge service
  • Loading branch information
rifelpet committed Jul 30, 2023
1 parent 3db88a3 commit e0c3b8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/resources/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const (
TypeAutoscalingLaunchConfig = "autoscaling-config"
TypeNatGateway = "nat-gateway"
TypeElasticIp = "elastic-ip"
TypeEventBridgeRule = "eventbridge-rule"
TypeLoadBalancer = "load-balancer"
TypeTargetGroup = "target-group"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/aws/eventbridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func ListEventBridgeRules(cloud fi.Cloud, clusterName string) ([]*resources.Reso
resourceTracker := &resources.Resource{
Name: *rule.Name,
ID: *rule.Name,
Type: "eventbridge",
Type: TypeEventBridgeRule,
Deleter: EventBridgeRuleDeleter,
Dumper: DumpEventBridgeRule,
Obj: rule,
Expand Down

0 comments on commit e0c3b8c

Please sign in to comment.