Skip to content

Commit

Permalink
Update aws-ts-scheduled-function to BucketV2
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Sep 19, 2024
1 parent f143bd3 commit c28d57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws-ts-scheduled-function/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ObjectIdentifier } from "aws-sdk/clients/s3";


// Create an AWS resource (S3 Bucket)
const trashBucket = new aws.s3.Bucket("trash");
const trashBucket = new aws.s3.BucketV2("trash");

// A handler function that will list objects in the bucket and bulk delete them
const emptyTrash: aws.cloudwatch.EventRuleEventHandler = async (
Expand Down

0 comments on commit c28d57a

Please sign in to comment.