Registry /
cloud / aws-aws-sdk-go-v2-service-cloudwatchevents
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
cloudwatchevents
✓ github.com/aws/aws-sdk-go-v2/service/cloudwatchevents
Lists CloudWatch Events rules using the AWS SDK v2.
package main
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go-v2/service/cloudwatchevents"
)
func main() {
client := cloudwatchevents.NewFromConfig(cfg)
resp, err := client.ListRules(context.TODO(), &cloudwatchevents.ListRulesInput{})
if err != nil {
panic(err)
}
fmt.Println(resp.Rules)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.33.5latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.