Skip to content

Commit 54cd6b1

Browse files
committed
fix: adding object lambda to service validation
1 parent c1be84c commit 54cd6b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ 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" && service !== "s3-outposts" && service !== "s3-object-lambda") {
91+
throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component");
9292
}
9393
};
9494

0 commit comments

Comments
 (0)