Skip to content

Commit

Permalink
Allow Lambda ARN as endpoint (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pryz authored May 22, 2024
2 parents fd95b1b + 30e6329 commit 78267a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dispatch/sdk/v1/dispatch.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ message DispatchRequest {

option (buf.validate.message).cel = {
id: "dispatch.request.calls.endpoint.scheme",
message: "Call endpoint must be a http or https URL",
expression: "this.calls.all(call, call.endpoint.startsWith('http://') || call.endpoint.startsWith('https://') || call.endpoint.startsWith('bridge://'))"
message: "Call endpoint must be a http, https or a bridge URL or an AWS Lambda ARN",
expression: "this.calls.all(call, call.endpoint.startsWith('http://') || call.endpoint.startsWith('https://') || call.endpoint.startsWith('bridge://') || call.endpoint.startsWith('arn:aws:lambda'))"
};

// List of calls to dispatch.
Expand Down

0 comments on commit 78267a6

Please sign in to comment.