-
Notifications
You must be signed in to change notification settings - Fork 432
feat(data-classes): Add S3 Object Lambda Event #353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9fb7ee0
feat(data-classes): Add S3 Object Event
michaelbrewer baa536f
feat(data-classes): Complete docs and implementation
michaelbrewer f78b731
Merge branch 'develop' into feat-s3-object
michaelbrewer 107d1d4
chore: revert
michaelbrewer f470143
refactor(data-classes): Rename S3ObjectEvent to S3ObjectLambdaEvent
michaelbrewer 044c2f8
feat(data-classes): Add S3ObjectSessionContext
michaelbrewer f334c6f
refactor(logging): Rename to S3_LAMBDA_OBJECT
michaelbrewer ecf8ba0
refactor(logging): Rename to S3_OBJECT_LAMBDA
michaelbrewer a5d87c0
docs(data-classes): Correct docs
michaelbrewer 98744f8
chore: Bump CI
michaelbrewer 0fad714
docs(data-classes): Add docstring examples
michaelbrewer 6080f70
feat(data-classes): Add helper functions
michaelbrewer fbebd31
docs(data-classes): Update docs and cleanup
michaelbrewer 382ac60
tests(data-classes): Add missing tests
michaelbrewer 47cfe0c
chore: bump ci
michaelbrewer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"xAmzRequestId": "1a5ed718-5f53-471d-b6fe-5cf62d88d02a", | ||
"getObjectContext": { | ||
"inputS3Url": "https://myap-123412341234.s3-accesspoint.us-east-1.amazonaws.com/s3.txt?X-Amz-Security-Token=...", | ||
"outputRoute": "io-iad-cell001", | ||
"outputToken": "..." | ||
}, | ||
"configuration": { | ||
"accessPointArn": "arn:aws:s3-object-lambda:us-east-1:123412341234:accesspoint/myolap", | ||
"supportingAccessPointArn": "arn:aws:s3:us-east-1:123412341234:accesspoint/myap", | ||
"payload": "test" | ||
}, | ||
"userRequest": { | ||
"url": "/s3.txt", | ||
"headers": { | ||
"Host": "myolap-123412341234.s3-object-lambda.us-east-1.amazonaws.com", | ||
"Accept-Encoding": "identity", | ||
"X-Amz-Content-SHA256": "e3b0c44297fc1c149afbf4c8995fb92427ae41e4649b934ca495991b7852b855" | ||
} | ||
}, | ||
"userIdentity": { | ||
"type": "IAMUser", | ||
"principalId": "...", | ||
"arn": "arn:aws:iam::123412341234:user/myuser", | ||
"accountId": "123412341234", | ||
"accessKeyId": "...", | ||
"userName": "Alice" | ||
}, | ||
"protocolVersion": "1.00" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"xAmzRequestId": "requestId", | ||
"getObjectContext": { | ||
"inputS3Url": "https://my-s3-ap-111122223333.s3-accesspoint.us-east-1.amazonaws.com/example?X-Amz-Security-Token=<snip>", | ||
"outputRoute": "io-use1-001", | ||
"outputToken": "OutputToken" | ||
}, | ||
"configuration": { | ||
"accessPointArn": "arn:aws:s3-object-lambda:us-east-1:111122223333:accesspoint/example-object-lambda-ap", | ||
"supportingAccessPointArn": "arn:aws:s3:us-east-1:111122223333:accesspoint/example-ap", | ||
"payload": "{}" | ||
}, | ||
"userRequest": { | ||
"url": "https://object-lambda-111122223333.s3-object-lambda.us-east-1.amazonaws.com/example", | ||
"headers": { | ||
"Host": "object-lambda-111122223333.s3-object-lambda.us-east-1.amazonaws.com", | ||
"Accept-Encoding": "identity", | ||
"X-Amz-Content-SHA256": "e3b0c44298fc1example" | ||
} | ||
}, | ||
"userIdentity": { | ||
"type": "AssumedRole", | ||
"principalId": "principalId", | ||
"arn": "arn:aws:sts::111122223333:assumed-role/Admin/example", | ||
"accountId": "111122223333", | ||
"accessKeyId": "accessKeyId", | ||
"sessionContext": { | ||
"attributes": { | ||
"mfaAuthenticated": "false", | ||
"creationDate": "Wed Mar 10 23:41:52 UTC 2021" | ||
}, | ||
"sessionIssuer": { | ||
"type": "Role", | ||
"principalId": "principalId", | ||
"arn": "arn:aws:iam::111122223333:role/Admin", | ||
"accountId": "111122223333", | ||
"userName": "Admin" | ||
} | ||
} | ||
}, | ||
"protocolVersion": "1.00" | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.