Skip to content

Commit 01bd1a0

Browse files
committed
feat: add support for s3 object lamdbas
1 parent 3059f55 commit 01bd1a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

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

8989
export const validateService = (service: string) => {
90-
if (service !== "s3" && service !== "s3-outposts") {
91-
throw new Error("Expect 's3' or 's3-outposts' in ARN service component");
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");
9294
}
9395
};
9496

0 commit comments

Comments
 (0)