From c28d57abc1f775ae15401f30e6747d09ae0585c5 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Thu, 19 Sep 2024 11:22:36 -0400 Subject: [PATCH] Update aws-ts-scheduled-function to BucketV2 --- aws-ts-scheduled-function/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-ts-scheduled-function/index.ts b/aws-ts-scheduled-function/index.ts index 68b2caedc..6e1486445 100644 --- a/aws-ts-scheduled-function/index.ts +++ b/aws-ts-scheduled-function/index.ts @@ -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 (