|
| 1 | +package events |
| 2 | + |
| 3 | +type S3ObjectLambdaEvent struct { |
| 4 | + XAmzRequestID string `json:"xAmzRequestId"` |
| 5 | + GetObjectContext *S3ObjectLambdaGetObjectContext `json:"getObjectContext,omitempty"` |
| 6 | + ListObjectsContext *S3ObjectLambdaListObjectsContext `json:"listObjectsContext,omitempty"` |
| 7 | + ListObjectsV2Context *S3ObjectLambdaListObjectsV2Context `json:"listObjectsV2Context,omitempty"` |
| 8 | + HeadObjectContext *S3ObjectLambdaHeadObjectContext `json:"headObjectContext,omitempty"` |
| 9 | + Configuration S3ObjectLambdaConfiguration `json:"configuration"` |
| 10 | + UserRequest S3ObjectLambdaUserRequest `json:"userRequest"` |
| 11 | + UserIdentity S3ObjectLambdaUserIdentity `json:"userIdentity"` |
| 12 | + ProtocolVersion string `json:"protocolVersion"` |
| 13 | +} |
| 14 | + |
| 15 | +type S3ObjectLambdaGetObjectContext struct { |
| 16 | + InputS3URL string `json:"inputS3Url"` |
| 17 | + OutputRoute string `json:"outputRoute"` |
| 18 | + OutputToken string `json:"outputToken"` |
| 19 | +} |
| 20 | + |
| 21 | +type S3ObjectLambdaListObjectsContext struct { |
| 22 | + InputS3URL string `json:"inputS3Url"` |
| 23 | +} |
| 24 | + |
| 25 | +type S3ObjectLambdaListObjectsV2Context struct { |
| 26 | + InputS3URL string `json:"inputS3Url"` |
| 27 | +} |
| 28 | + |
| 29 | +type S3ObjectLambdaHeadObjectContext struct { |
| 30 | + InputS3URL string `json:"inputS3Url"` |
| 31 | +} |
| 32 | + |
| 33 | +type S3ObjectLambdaConfiguration struct { |
| 34 | + AccessPointARN string `json:"accessPointArn"` |
| 35 | + SupportingAccessPointARN string `json:"supportingAccessPointArn"` |
| 36 | + Payload string `json:"payload"` |
| 37 | +} |
| 38 | + |
| 39 | +type S3ObjectLambdaUserRequest struct { |
| 40 | + URL string `json:"url"` |
| 41 | + Headers map[string]string `json:"headers"` |
| 42 | +} |
| 43 | + |
| 44 | +type S3ObjectLambdaUserIdentity struct { |
| 45 | + Type string `json:"type"` |
| 46 | + PrincipalID string `json:"principalId"` |
| 47 | + ARN string `json:"arn"` |
| 48 | + AccountID string `json:"accountId"` |
| 49 | + AccessKeyID string `json:"accessKeyId"` |
| 50 | + SessionContext *S3ObjectLambdaSessionContext `json:"sessionContext,omitempty"` |
| 51 | +} |
| 52 | + |
| 53 | +type S3ObjectLambdaSessionContext struct { |
| 54 | + Attributes map[string]string `json:"attributes"` |
| 55 | + SessionIssuer *S3ObjectLambdaSessionIssuer `json:"sessionIssuer,omitempty"` |
| 56 | +} |
| 57 | + |
| 58 | +type S3ObjectLambdaSessionIssuer struct { |
| 59 | + Type string `json:"type"` |
| 60 | + PrincipalID string `json:"principalId"` |
| 61 | + ARN string `json:"arn"` |
| 62 | + AccountID string `json:"accountId"` |
| 63 | + UserName string `json:"userName"` |
| 64 | +} |
0 commit comments