Skip to content

Commit

Permalink
feat: add support for s3 object lamdbas
Browse files Browse the repository at this point in the history
  • Loading branch information
alexforsyth committed Feb 24, 2021
1 parent 3059f55 commit 01bd1a0
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -87,8 +87,10 @@ export const validateArnEndpointOptions = (options: {
};

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

Expand Down

0 comments on commit 01bd1a0

Please sign in to comment.