|
67 | 67 |
|
68 | 68 | CFN_METADATA_FILENAME = ".cfn_metadata.json"
|
69 | 69 |
|
70 |
| -LAMBDA_RUNTIMES = { |
71 |
| - "noexec", # cannot be executed, schema only |
72 |
| - "java8", |
73 |
| - "java11", |
74 |
| - "go1.x", |
75 |
| - "python3.6", |
76 |
| - "python3.7", |
77 |
| - "python3.8", |
78 |
| - "dotnetcore2.1", |
79 |
| - "nodejs10.x", |
80 |
| - "nodejs12.x", |
81 |
| - "nodejs14.x", |
82 |
| -} |
83 |
| - |
84 | 70 | SETTINGS_VALIDATOR = Draft7Validator(
|
85 | 71 | {
|
86 | 72 | "properties": {
|
87 | 73 | "artifact_type": {"type": "string"},
|
88 | 74 | "language": {"type": "string"},
|
89 | 75 | "typeName": {"type": "string", "pattern": TYPE_NAME_RESOURCE_REGEX},
|
90 |
| - "runtime": {"type": "string", "enum": list(LAMBDA_RUNTIMES)}, |
| 76 | + "runtime": {"type": "string"}, |
91 | 77 | "entrypoint": {"type": ["string", "null"]},
|
92 | 78 | "testEntrypoint": {"type": ["string", "null"]},
|
93 | 79 | "executableEntrypoint": {"type": ["string", "null"]},
|
|
114 | 100 | "artifact_type": {"type": "string"},
|
115 | 101 | "language": {"type": "string"},
|
116 | 102 | "typeName": {"type": "string", "pattern": TYPE_NAME_HOOK_REGEX},
|
117 |
| - "runtime": {"type": "string", "enum": list(LAMBDA_RUNTIMES)}, |
| 103 | + "runtime": {"type": "string"}, |
118 | 104 | "entrypoint": {"type": ["string", "null"]},
|
119 | 105 | "testEntrypoint": {"type": ["string", "null"]},
|
120 | 106 | "settings": {"type": "object"},
|
@@ -339,12 +325,6 @@ def _write_example_inputs(self):
|
339 | 325 | )
|
340 | 326 |
|
341 | 327 | def write_settings(self):
|
342 |
| - if self.runtime not in LAMBDA_RUNTIMES: |
343 |
| - LOG.critical( |
344 |
| - "Plugin returned invalid runtime: %s (%s)", self.runtime, self.language |
345 |
| - ) |
346 |
| - raise InternalError("Internal error (Plugin returned invalid runtime)") |
347 |
| - |
348 | 328 | def _write_resource_settings(f):
|
349 | 329 | executable_entrypoint_dict = (
|
350 | 330 | {"executableEntrypoint": self.executable_entrypoint}
|
|
0 commit comments