From bb2ee2499e180c4d92aab3e5d4303c365cecd321 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Thu, 4 Mar 2021 19:24:19 +0000 Subject: [PATCH] fix: revert add support for s3 object lamdbas This reverts commit 01bd1a073022eff77f003a3fd310bac2c54dbcb4. --- .../middleware-bucket-endpoint/src/bucketHostnameUtils.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/middleware-bucket-endpoint/src/bucketHostnameUtils.ts b/packages/middleware-bucket-endpoint/src/bucketHostnameUtils.ts index bb80751f23ce..4a78e0b28eff 100644 --- a/packages/middleware-bucket-endpoint/src/bucketHostnameUtils.ts +++ b/packages/middleware-bucket-endpoint/src/bucketHostnameUtils.ts @@ -87,10 +87,8 @@ export const validateArnEndpointOptions = (options: { }; export const validateService = (service: string) => { - if (service !== "s3" - && service !== "s3-outposts" - && service !== "s3-object-lambda") { - throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component"); + if (service !== "s3" && service !== "s3-outposts") { + throw new Error("Expect 's3' or 's3-outposts' in ARN service component"); } };