File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ function defaults() {
2323 CONFIG . SECRET = process . env . API_SECRET ;
2424 }
2525
26+ if ( process . env . API_ENDPOINT ) {
27+ CONFIG . API_ENDPOINT = process . env . API_ENDPOINT ;
28+ }
29+
2630 if ( process . env . ACTION_TAG_OBJECT === "true" ) {
2731 CONFIG . ACTION_TAG_OBJECT = true ;
2832 }
Original file line number Diff line number Diff line change @@ -12,6 +12,17 @@ Parameters:
1212 scaniiApiSecret :
1313 Description : Your scanii.com API secret
1414 Type : String
15+ scaniiApiEndpoint :
16+ Description : Which endpoint should be used?
17+ Type : String
18+ Default : api.scanii.com
19+ AllowedValues :
20+ - api.scanii.com
21+ - api-eu1.scanii.com
22+ - api-eu2.scanii.com
23+ - api-ap1.scanii.com
24+ - api-ap2.scanii.com
25+ - api-us1.scanii.com
1526 actionTagObject :
1627 Description : Should custom tags be added to S3 objects after processing?
1728 Type : String
@@ -45,6 +56,7 @@ Resources:
4556 Variables :
4657 API_KEY : !Sub ${scaniiApiKey}
4758 API_SECRET : !Sub ${scaniiApiSecret}
59+ API_ENDPOINT : !Sub ${scaniiApiEndpoint}
4860 CALLBACK_URL : !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/callback"
4961
5062 Policies :
You can’t perform that action at this time.
0 commit comments