Skip to content

Commit 827c7b8

Browse files
authored
fix(middleware-bucket-endpoint): revert add support for s3 object lamdbas (#2103)
This reverts commit 01bd1a0.
1 parent 1b5cb0f commit 827c7b8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/middleware-bucket-endpoint/src/bucketHostnameUtils.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,8 @@ export const validateArnEndpointOptions = (options: {
8787
};
8888

8989
export const validateService = (service: string) => {
90-
if (service !== "s3"
91-
&& service !== "s3-outposts"
92-
&& service !== "s3-object-lambda") {
93-
throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component");
90+
if (service !== "s3" && service !== "s3-outposts") {
91+
throw new Error("Expect 's3' or 's3-outposts' in ARN service component");
9492
}
9593
};
9694

0 commit comments

Comments
 (0)