Skip to content

Commit

Permalink
Update README_SecretsManager_SecretRotationEvent.md
Browse files Browse the repository at this point in the history
Use proper event syntax in example.
  • Loading branch information
evilensky authored Aug 8, 2024
1 parent 8e674da commit 1af0cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events/README_SecretsManager_SecretRotationEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/aws/aws-lambda-go/events"
)

func handler(ctx context.Context, event SecretsManagerSecretRotationEvent) error {
func handler(ctx context.Context, event events.SecretsManagerSecretRotationEvent) error {
fmt.Printf("rotating secret %s with token %s\n",
event.SecretID, event.ClientRequestToken)

Expand All @@ -35,4 +35,4 @@ func handler(ctx context.Context, event SecretsManagerSecretRotationEvent) error
func main() {
lambda.Start(handler)
}
```
```

0 comments on commit 1af0cfb

Please sign in to comment.