-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathschema.json
72 lines (72 loc) · 2.57 KB
/
schema.json
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"$schema": "http://json-schema.org/schema",
"title": "LambdaCron v0.0.1",
"description": "JSON schema for LambdaCron tasks",
"properties": {
"name": {
"type": "string"
},
"expression": {
"type": "string",
"pattern": "(\\*|[0-5]?[0-9]|\\*\/[0-9]+)\\s+(\\*|1?[0-9]|2[0-3]|\\*\/[0-9]+)\\s+(\\*|[1-2]?[0-9]|3[0-1]|\\*\/[0-9]+)\\s+(\\*|[0-9]|1[0-2]|\\*\/[0-9]+|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\s+(\\*\/[0-9]+|\\*|[0-7]|sun|mon|tue|wed|thu|fri|sat)\\s*(\\*\/[0-9]+|\\*|[0-9]+)?"
},
"task": {
"oneOf" : [
{
"properties": {
"type": { "type": "string", "enum": ["queue"] },
"QueueName": { "type": "string" },
"MessageBody": { "type": "object" }
},
"required": ["type", "QueueName", "MessageBody"]
},
{
"properties": {
"type": { "type": "string", "enum": ["lambda"] },
"FunctionName": { "type": "string" },
"InvokeArgs": { "type": "object" }
},
"required": ["type", "FunctionName", "InvokeArgs"]
},
{
"properties": {
"type": { "type": "string", "enum": ["batch"] },
"jobName": { "type": "string" },
"jobQueue": { "type": "string" },
"jobDefinition": { "type": "string" },
"dependsOn": { "type": "array" },
"parameters": { "type": "object" },
"containerOverrides": { "type": "object" }
},
"required": ["type", "jobName", "jobQueue", "jobDefinition"]
},
{
"properties": {
"type": { "type": "string", "enum": ["athena"] },
"QueryString": { "type": "string" },
"ClientRequestToken": { "type": "string" },
"QueryExecutionContext": { "type": "object" },
"ResultConfiguration": {
"type": "object",
"properties": {
"OutputLocation": { "type": "string" },
"EncryptionConfiguration": { "type": "object" }
},
"required": ["OutputLocation"]
}
},
"required": ["type", "QueryString", "ResultConfiguration"]
},
{
"properties": {
"type": { "type": "string", "enum": ["http"] },
"method": { "type": "string", "enum": ["GET", "get", "Get", "POST", "post", "Post"]},
"request": { "type": "object" }
},
"required": ["type", "method", "request"]
}
]
}
},
"required": ["name", "expression", "task"]
}