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() {
23
23
CONFIG . SECRET = process . env . API_SECRET ;
24
24
}
25
25
26
+ if ( process . env . API_ENDPOINT ) {
27
+ CONFIG . API_ENDPOINT = process . env . API_ENDPOINT ;
28
+ }
29
+
26
30
if ( process . env . ACTION_TAG_OBJECT === "true" ) {
27
31
CONFIG . ACTION_TAG_OBJECT = true ;
28
32
}
Original file line number Diff line number Diff line change @@ -12,6 +12,17 @@ Parameters:
12
12
scaniiApiSecret :
13
13
Description : Your scanii.com API secret
14
14
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
15
26
actionTagObject :
16
27
Description : Should custom tags be added to S3 objects after processing?
17
28
Type : String
@@ -45,6 +56,7 @@ Resources:
45
56
Variables :
46
57
API_KEY : !Sub ${scaniiApiKey}
47
58
API_SECRET : !Sub ${scaniiApiSecret}
59
+ API_ENDPOINT : !Sub ${scaniiApiEndpoint}
48
60
CALLBACK_URL : !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/callback"
49
61
50
62
Policies :
You can’t perform that action at this time.
0 commit comments