From 8e3bb1e35ab29e79922e0d956be5e9d57c09c3f5 Mon Sep 17 00:00:00 2001 From: kdnakt Date: Fri, 22 Dec 2023 23:17:01 +0900 Subject: [PATCH] Avoid the generic name of Configuration --- events/s3_object_lambda.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/events/s3_object_lambda.go b/events/s3_object_lambda.go index ea7d3681..fbdc0ee8 100644 --- a/events/s3_object_lambda.go +++ b/events/s3_object_lambda.go @@ -1,15 +1,15 @@ package events type S3ObjectLambdaEvent struct { - XAmzRequestId string `json:"xAmzRequestId"` - GetObjectContext *GetObjectContext `json:"getObjectContext,omitempty"` - ListObjectsContext *ListObjectsContext `json:"listObjectsContext,omitempty"` - ListObjectsV2Context *ListObjectsV2Context `json:"listObjectsV2Context,omitempty"` - HeadObjectContext *HeadObjectContext `json:"headObjectContext,omitempty"` - Configuration Configuration `json:"configuration"` - UserRequest UserRequest `json:"userRequest"` - UserIdentity UserIdentity `json:"userIdentity"` - ProtocolVersion string `json:"protocolVersion"` + XAmzRequestId string `json:"xAmzRequestId"` + GetObjectContext *GetObjectContext `json:"getObjectContext,omitempty"` + ListObjectsContext *ListObjectsContext `json:"listObjectsContext,omitempty"` + ListObjectsV2Context *ListObjectsV2Context `json:"listObjectsV2Context,omitempty"` + HeadObjectContext *HeadObjectContext `json:"headObjectContext,omitempty"` + Configuration S3ObjectLambdaConfiguration `json:"configuration"` + UserRequest UserRequest `json:"userRequest"` + UserIdentity UserIdentity `json:"userIdentity"` + ProtocolVersion string `json:"protocolVersion"` } type GetObjectContext struct { @@ -30,7 +30,7 @@ type HeadObjectContext struct { InputS3Url string `json:"inputS3Url"` } -type Configuration struct { +type S3ObjectLambdaConfiguration struct { AccessPointArn string `json:"accessPointArn"` SupportingAccessPointArn string `json:"supportingAccessPointArn"` Payload string `json:"payload"`