Skip to content

Commit

Permalink
feat: Add support for S3 Batch Operations event (aws#4521)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunrawal4 committed Dec 29, 2022
1 parent bce85fd commit f971e39
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions samcli/lib/generated_sample_events/event-mapping.json
Expand Up @@ -917,6 +917,19 @@
}
},
"s3": {
"batch-invocation": {
"filename": "S3BatchInvocation",
"help": "Generates an Amazon S3 Batch Operations Invocation Event",
"tags": {
"bucket-arn": {
"default": "arn:aws:s3:us-east-1:0123456788:examplebucket"
},
"key": {
"default": "test/key",
"encoding": "url"
}
}
},
"delete": {
"filename": "S3Delete",
"help": "Generates an Amazon S3 Delete Event",
Expand Down
@@ -0,0 +1,15 @@
{
"invocationSchemaVersion": "1.0",
"invocationId": "YXNkbGZqYWRmaiBhc2RmdW9hZHNmZGpmaGFzbGtkaGZza2RmaAo",
"job": {
"id": "f3cc4f60-61f6-4a2b-8a21-d07600c373ce"
},
"tasks": [
{
"taskId": "dGFza2lkZ29lc2hlcmUK",
"s3Key": "{{{key}}}",
"s3VersionId": "1",
"s3BucketArn": "{{{bucket_arn}}}"
}
]
}

0 comments on commit f971e39

Please sign in to comment.