forked from awslabs/aws-lambda-redshift-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.js
32 lines (28 loc) · 1.4 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
Copyright 2014-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/asl/
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
batchId = 'batchId';
currentBatch = 'currentBatch';
s3prefix = 's3Prefix';
lastUpdate = 'lastUpdate';
complete = 'complete';
locked = 'locked';
open = 'open';
error = 'error';
entries = 'entries';
status = 'status';
configTable = process.env.OVERRIDE_CONFIG_TABLE || 'LambdaRedshiftBatchLoadConfig';
batchTable = process.env.OVERRIDE_BATCH_TABLE || 'LambdaRedshiftBatches';
batchStatusGSI = 'LambdaRedshiftBatchStatus';
filesTable = process.env.OVERRIDE_FILES_TABLE || 'LambdaRedshiftProcessedFiles';
conditionCheckFailed = 'ConditionalCheckFailedException';
provisionedThroughputExceeded = 'ProvisionedThroughputExceededException';
deployedFunctionName = 'LambdaRedshiftLoader';
INVALID_ARG = -1;
ERROR = -1;
OK = 0;
SUPPRESS_FAILURE_ON_OK_NOTIFICATION = 'SuppressFailureStatusOnSuccessfulNotification'
SUPPRESS_WILDCARD_EXPANSION_PREFIXES = 'SuppressWildcardExpansionPrefixList'