From 1af0cfbbba19368afd1521dba35996d0f0926147 Mon Sep 17 00:00:00 2001 From: Eugene Vilensky Date: Thu, 8 Aug 2024 10:45:01 -0500 Subject: [PATCH] Update README_SecretsManager_SecretRotationEvent.md Use proper event syntax in example. --- events/README_SecretsManager_SecretRotationEvent.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events/README_SecretsManager_SecretRotationEvent.md b/events/README_SecretsManager_SecretRotationEvent.md index 1b572cf6..da085891 100644 --- a/events/README_SecretsManager_SecretRotationEvent.md +++ b/events/README_SecretsManager_SecretRotationEvent.md @@ -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) @@ -35,4 +35,4 @@ func handler(ctx context.Context, event SecretsManagerSecretRotationEvent) error func main() { lambda.Start(handler) } -``` \ No newline at end of file +```