-
Notifications
You must be signed in to change notification settings - Fork 2
/
ui-config.json
164 lines (164 loc) · 6.56 KB
/
ui-config.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"aws-s3-connector": {
"schema": {
"title": "Connector Config",
"type": "object",
"properties": {
"source": {
"title": "Storage Source",
"type": "object",
"properties": {
"type": {
"type": "string",
"title": "Storage type",
"fieldDescription": [
{
"type": "string",
"description": "Enter valid storage service type."
}
],
"default": "s3",
"readOnly": true,
"enum": ["s3", "azure", "gcp"]
},
"bucket": {
"title": "Bucket Name",
"type": "string",
"minLength": 3,
"pattern": "(?!(^xn--|^sthree-|.+--ol-s3$|.+-s3alias$))^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$",
"default": "default-bucket-name",
"description": "Enter the Source Bucket Name.",
"fieldDescription": [
{
"type": "string",
"description": "Enter the Source Bucket Name."
}
]
},
"credentials": {
"title": "Credentials",
"type": "object",
"fieldDescription": [{
"type": "string",
"description": "It is recommended to create a new IAM user in AWS and assign the following policy that limits it to certain operations:\n\n```json\n{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"Statement0\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"s3:ListBucket\",\n \"s3:GetObject\",\n \"s3:GetObjectAttributes\",\n \"s3:GetObjectTagging\",\n \"s3:PutObjectTagging\",\n \"s3:DeleteObjectTagging\"\n ],\n \"Resource\": [\n \"arn:aws:s3:::<bucket_name>\",\n \"arn:aws:s3:::<bucket_name>/*\"\n ]\n }\n ]\n}\n```"
}],
"properties": {
"access-key": {
"type": "string",
"title": "Access Key",
"pattern": "^(ASIA|AKIA|AROA|AIDA)([A-Z0-9]+)$",
"maxLength": 40,
"description": "Enter the Access Key."
},
"secret-key": {
"type": "string",
"title": "Secret Key",
"pattern": "^[a-zA-Z0-9+/=]*$",
"maxLength": 20,
"description": "Enter the Secret Key."
},
"region": {
"type": "string",
"title": "Region",
"description": "Choose a specific region from below.",
"enum": [
"us-east-1",
"us-east-2",
"us-west-1",
"us-west-2",
"ap-south-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-southeast-1",
"ap-southeast-2",
"ap-east-1",
"ap-southeast-3",
"ap-southeast-4",
"ca-central-1",
"eu-central-1",
"eu-west-1",
"eu-west-2",
"eu-west-3",
"eu-north-1",
"eu-south-1",
"eu-south-2",
"eu-central-2",
"sa-east-1",
"af-south-1",
"me-south-1",
"me-central-1",
"il-central-1"
],
"fieldDescription": [{
"type": "string",
"description": ""
}]
}
}
}
}
},
"operations-config": {
"title": "Operations Configuration",
"type": "object",
"properties": {
"polling-interval": {
"type": "string",
"title": "Polling Interval",
"enum": ["Once", "Periodic"],
"description": "Select a suitable polling interval.",
"fieldDescription": [{
"type": "string",
"description": "Depending on the batch-size and maximum-batches, select an appropriate schedule. A shorter schedule with a large batch-size and max-batches will result in parallel queries, which may result in more load on the database."
}]
}
},
"dependencies": {
"polling-interval": {
"oneOf": [
{
"properties": {
"polling-interval": {
"enum": [
"Periodic"
]
},
"schedule": {
"type": "string",
"title": "Schedule",
"enum": ["Hourly", "Daily", "Weekly", "Monthly"]
}
},
"required": ["schedule"]
},
{
"properties": {
"polling-interval": {
"enum": [
"Once"
]
}
}
}
]
}
}
}
},
"required": ["source", "operations-config"]
},
"properties": {
"connector_config": {
"credentials": {
"accessKey": {
"ui:widget": "password"
},
"secretKey": {
"ui:widget": "password"
}
}
}
}
}
}