|
2 | 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
3 | 3 | "type": "object", |
4 | 4 | "properties": { |
| 5 | + "$schema": { |
| 6 | + "type": "string" |
| 7 | + }, |
5 | 8 | "name": { |
6 | 9 | "type": "string", |
7 | 10 | "minLength": 1, |
|
13 | 16 | "minimum": 1, |
14 | 17 | "maximum": 9007199254740991 |
15 | 18 | }, |
| 19 | + "managedBy": { |
| 20 | + "default": "CDK", |
| 21 | + "type": "string", |
| 22 | + "enum": ["CDK"] |
| 23 | + }, |
16 | 24 | "tags": { |
17 | 25 | "type": "object", |
18 | 26 | "propertyNames": { |
|
124 | 132 | "type": "boolean" |
125 | 133 | } |
126 | 134 | }, |
127 | | - "required": ["enableOtel"], |
128 | 135 | "additionalProperties": false |
129 | 136 | }, |
130 | 137 | "modelProvider": { |
|
142 | 149 | "type": "string" |
143 | 150 | } |
144 | 151 | }, |
| 152 | + "authorizerType": { |
| 153 | + "type": "string", |
| 154 | + "enum": ["AWS_IAM", "CUSTOM_JWT"] |
| 155 | + }, |
| 156 | + "authorizerConfiguration": { |
| 157 | + "type": "object", |
| 158 | + "properties": { |
| 159 | + "customJwtAuthorizer": { |
| 160 | + "type": "object", |
| 161 | + "properties": { |
| 162 | + "discoveryUrl": { |
| 163 | + "type": "string", |
| 164 | + "format": "uri" |
| 165 | + }, |
| 166 | + "allowedAudience": { |
| 167 | + "type": "array", |
| 168 | + "items": { |
| 169 | + "type": "string", |
| 170 | + "minLength": 1 |
| 171 | + } |
| 172 | + }, |
| 173 | + "allowedClients": { |
| 174 | + "type": "array", |
| 175 | + "items": { |
| 176 | + "type": "string", |
| 177 | + "minLength": 1 |
| 178 | + } |
| 179 | + }, |
| 180 | + "allowedScopes": { |
| 181 | + "type": "array", |
| 182 | + "items": { |
| 183 | + "type": "string", |
| 184 | + "minLength": 1 |
| 185 | + } |
| 186 | + }, |
| 187 | + "customClaims": { |
| 188 | + "minItems": 1, |
| 189 | + "type": "array", |
| 190 | + "items": { |
| 191 | + "type": "object", |
| 192 | + "properties": { |
| 193 | + "inboundTokenClaimName": { |
| 194 | + "type": "string", |
| 195 | + "minLength": 1, |
| 196 | + "maxLength": 255, |
| 197 | + "pattern": "^[A-Za-z0-9_.:-]+$" |
| 198 | + }, |
| 199 | + "inboundTokenClaimValueType": { |
| 200 | + "type": "string", |
| 201 | + "enum": ["STRING", "STRING_ARRAY"] |
| 202 | + }, |
| 203 | + "authorizingClaimMatchValue": { |
| 204 | + "type": "object", |
| 205 | + "properties": { |
| 206 | + "claimMatchOperator": { |
| 207 | + "type": "string", |
| 208 | + "enum": ["EQUALS", "CONTAINS", "CONTAINS_ANY"] |
| 209 | + }, |
| 210 | + "claimMatchValue": { |
| 211 | + "type": "object", |
| 212 | + "properties": { |
| 213 | + "matchValueString": { |
| 214 | + "type": "string", |
| 215 | + "minLength": 1, |
| 216 | + "maxLength": 255, |
| 217 | + "pattern": "^[A-Za-z0-9_.-]+$" |
| 218 | + }, |
| 219 | + "matchValueStringList": { |
| 220 | + "minItems": 1, |
| 221 | + "maxItems": 255, |
| 222 | + "type": "array", |
| 223 | + "items": { |
| 224 | + "type": "string", |
| 225 | + "minLength": 1, |
| 226 | + "maxLength": 255, |
| 227 | + "pattern": "^[A-Za-z0-9_.-]+$" |
| 228 | + } |
| 229 | + } |
| 230 | + }, |
| 231 | + "additionalProperties": false |
| 232 | + } |
| 233 | + }, |
| 234 | + "required": ["claimMatchOperator", "claimMatchValue"], |
| 235 | + "additionalProperties": false |
| 236 | + } |
| 237 | + }, |
| 238 | + "required": ["inboundTokenClaimName", "inboundTokenClaimValueType", "authorizingClaimMatchValue"], |
| 239 | + "additionalProperties": false |
| 240 | + } |
| 241 | + } |
| 242 | + }, |
| 243 | + "required": ["discoveryUrl"], |
| 244 | + "additionalProperties": false |
| 245 | + } |
| 246 | + }, |
| 247 | + "additionalProperties": false |
| 248 | + }, |
145 | 249 | "tags": { |
146 | 250 | "type": "object", |
147 | 251 | "propertyNames": { |
|
155 | 259 | "maxLength": 256, |
156 | 260 | "pattern": "^[\\p{L}\\p{N}\\s_.:/=+\\-@]*$" |
157 | 261 | } |
| 262 | + }, |
| 263 | + "lifecycleConfiguration": { |
| 264 | + "type": "object", |
| 265 | + "properties": { |
| 266 | + "idleRuntimeSessionTimeout": { |
| 267 | + "type": "integer", |
| 268 | + "minimum": 60, |
| 269 | + "maximum": 28800 |
| 270 | + }, |
| 271 | + "maxLifetime": { |
| 272 | + "type": "integer", |
| 273 | + "minimum": 60, |
| 274 | + "maximum": 28800 |
| 275 | + } |
| 276 | + }, |
| 277 | + "additionalProperties": false |
158 | 278 | } |
159 | 279 | }, |
160 | 280 | "required": ["type", "name", "build", "entrypoint", "codeLocation", "runtimeVersion"], |
|
190 | 310 | "properties": { |
191 | 311 | "type": { |
192 | 312 | "type": "string", |
193 | | - "enum": ["SEMANTIC", "SUMMARIZATION", "USER_PREFERENCE"] |
| 313 | + "enum": ["SEMANTIC", "SUMMARIZATION", "USER_PREFERENCE", "EPISODIC"] |
194 | 314 | }, |
195 | 315 | "name": { |
196 | 316 | "type": "string", |
|
206 | 326 | "items": { |
207 | 327 | "type": "string" |
208 | 328 | } |
| 329 | + }, |
| 330 | + "reflectionNamespaces": { |
| 331 | + "type": "array", |
| 332 | + "items": { |
| 333 | + "type": "string" |
| 334 | + } |
209 | 335 | } |
210 | 336 | }, |
211 | 337 | "required": ["type"], |
|
227 | 353 | } |
228 | 354 | } |
229 | 355 | }, |
230 | | - "required": ["type", "name", "eventExpiryDuration", "strategies"], |
| 356 | + "required": ["type", "name", "eventExpiryDuration"], |
231 | 357 | "additionalProperties": false |
232 | 358 | } |
233 | 359 | }, |
|
288 | 414 | "enum": ["inbound", "outbound"] |
289 | 415 | } |
290 | 416 | }, |
291 | | - "required": ["type", "name", "discoveryUrl", "vendor"], |
| 417 | + "required": ["type", "name"], |
292 | 418 | "additionalProperties": false |
293 | 419 | } |
294 | 420 | ] |
|
645 | 771 | "type": "boolean" |
646 | 772 | } |
647 | 773 | }, |
648 | | - "required": ["enableOtel"], |
649 | 774 | "additionalProperties": false |
650 | 775 | }, |
651 | 776 | "networkMode": { |
|
657 | 782 | "type": "string" |
658 | 783 | } |
659 | 784 | }, |
660 | | - "required": [ |
661 | | - "artifact", |
662 | | - "pythonVersion", |
663 | | - "name", |
664 | | - "entrypoint", |
665 | | - "codeLocation", |
666 | | - "networkMode" |
667 | | - ], |
| 785 | + "required": ["artifact", "pythonVersion", "name", "entrypoint", "codeLocation"], |
668 | 786 | "additionalProperties": false |
669 | 787 | }, |
670 | 788 | "iamPolicy": { |
|
710 | 828 | } |
711 | 829 | } |
712 | 830 | }, |
713 | | - "required": ["type"], |
714 | 831 | "additionalProperties": false |
715 | 832 | }, |
716 | 833 | "apiGateway": { |
|
985 | 1102 | } |
986 | 1103 | } |
987 | 1104 | }, |
988 | | - "required": ["name", "targets", "authorizerType", "enableSemanticSearch", "exceptionLevel"], |
| 1105 | + "required": ["name", "targets"], |
989 | 1106 | "additionalProperties": false |
990 | 1107 | } |
991 | 1108 | }, |
|
1084 | 1201 | "type": "boolean" |
1085 | 1202 | } |
1086 | 1203 | }, |
1087 | | - "required": ["enableOtel"], |
1088 | 1204 | "additionalProperties": false |
1089 | 1205 | }, |
1090 | 1206 | "networkMode": { |
|
1096 | 1212 | "type": "string" |
1097 | 1213 | } |
1098 | 1214 | }, |
1099 | | - "required": ["artifact", "pythonVersion", "name", "entrypoint", "codeLocation", "networkMode"], |
| 1215 | + "required": ["artifact", "pythonVersion", "name", "entrypoint", "codeLocation"], |
1100 | 1216 | "additionalProperties": false |
1101 | 1217 | }, |
1102 | 1218 | "iamPolicy": { |
|
1308 | 1424 | "type": "boolean" |
1309 | 1425 | } |
1310 | 1426 | }, |
1311 | | - "required": ["enableOtel"], |
1312 | 1427 | "additionalProperties": false |
1313 | 1428 | }, |
1314 | 1429 | "networkMode": { |
|
1320 | 1435 | "type": "string" |
1321 | 1436 | } |
1322 | 1437 | }, |
1323 | | - "required": ["artifact", "pythonVersion", "name", "entrypoint", "codeLocation", "networkMode"], |
| 1438 | + "required": ["artifact", "pythonVersion", "name", "entrypoint", "codeLocation"], |
1324 | 1439 | "additionalProperties": false |
1325 | 1440 | }, |
1326 | 1441 | "iamPolicy": { |
|
1366 | 1481 | } |
1367 | 1482 | } |
1368 | 1483 | }, |
1369 | | - "required": ["type"], |
1370 | 1484 | "additionalProperties": false |
1371 | 1485 | }, |
1372 | 1486 | "apiGateway": { |
|
1568 | 1682 | "enum": ["FAIL_ON_ANY_FINDINGS", "IGNORE_ALL_FINDINGS"] |
1569 | 1683 | } |
1570 | 1684 | }, |
1571 | | - "required": ["name", "statement", "validationMode"], |
| 1685 | + "required": ["name", "statement"], |
1572 | 1686 | "additionalProperties": false |
1573 | 1687 | } |
1574 | 1688 | } |
1575 | 1689 | }, |
1576 | | - "required": ["name", "policies"], |
| 1690 | + "required": ["name"], |
1577 | 1691 | "additionalProperties": false |
1578 | 1692 | } |
1579 | | - }, |
1580 | | - "$schema": { |
1581 | | - "type": "string" |
1582 | 1693 | } |
1583 | 1694 | }, |
1584 | 1695 | "required": ["name", "version"], |
|
0 commit comments