@aws-cdk/service-spec-importers 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +89 -0
- package/bin/analyze-db +2 -0
- package/bin/diff-db +2 -0
- package/bin/import-db +2 -0
- package/lib/cli/analyze-db.d.ts +1 -0
- package/lib/cli/analyze-db.js +56 -0
- package/lib/cli/diff-db.d.ts +1 -0
- package/lib/cli/diff-db.js +36 -0
- package/lib/cli/import-db.d.ts +1 -0
- package/lib/cli/import-db.js +123 -0
- package/lib/cli/util.d.ts +4 -0
- package/lib/cli/util.js +23 -0
- package/lib/db-builder.d.ts +74 -0
- package/lib/db-builder.js +144 -0
- package/lib/db-diff.d.ts +24 -0
- package/lib/db-diff.js +104 -0
- package/lib/diff-fmt.d.ts +16 -0
- package/lib/diff-fmt.js +218 -0
- package/lib/diff-helpers.d.ts +21 -0
- package/lib/diff-helpers.js +123 -0
- package/lib/importers/import-canned-metrics.d.ts +4 -0
- package/lib/importers/import-canned-metrics.js +65 -0
- package/lib/importers/import-cloudformation-docs.d.ts +3 -0
- package/lib/importers/import-cloudformation-docs.js +44 -0
- package/lib/importers/import-cloudformation-registry.d.ts +10 -0
- package/lib/importers/import-cloudformation-registry.js +326 -0
- package/lib/importers/import-resource-spec.d.ts +67 -0
- package/lib/importers/import-resource-spec.js +255 -0
- package/lib/importers/import-sam.d.ts +42 -0
- package/lib/importers/import-sam.js +115 -0
- package/lib/importers/import-stateful-resources.d.ts +3 -0
- package/lib/importers/import-stateful-resources.js +12 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +36 -0
- package/lib/loaders/index.d.ts +8 -0
- package/lib/loaders/index.js +25 -0
- package/lib/loaders/load-cloudformation-docs.d.ts +3 -0
- package/lib/loaders/load-cloudformation-docs.js +15 -0
- package/lib/loaders/load-cloudformation-registry.d.ts +16 -0
- package/lib/loaders/load-cloudformation-registry.js +72 -0
- package/lib/loaders/load-cloudwatch-console-service-directory.d.ts +3 -0
- package/lib/loaders/load-cloudwatch-console-service-directory.js +13 -0
- package/lib/loaders/load-resource-spec.d.ts +3 -0
- package/lib/loaders/load-resource-spec.js +54 -0
- package/lib/loaders/load-sam-schema.d.ts +11 -0
- package/lib/loaders/load-sam-schema.js +21 -0
- package/lib/loaders/load-sam-spec.d.ts +6 -0
- package/lib/loaders/load-sam-spec.js +20 -0
- package/lib/loaders/load-stateful-resources.d.ts +3 -0
- package/lib/loaders/load-stateful-resources.js +15 -0
- package/lib/loaders/loader.d.ts +77 -0
- package/lib/loaders/loader.js +181 -0
- package/lib/patches/index.d.ts +2 -0
- package/lib/patches/index.js +21 -0
- package/lib/patches/json-schema-patches.d.ts +70 -0
- package/lib/patches/json-schema-patches.js +215 -0
- package/lib/patches/registry-patches.d.ts +49 -0
- package/lib/patches/registry-patches.js +250 -0
- package/lib/patching/field-witnesses.d.ts +18 -0
- package/lib/patching/field-witnesses.js +93 -0
- package/lib/patching/format-patch-report.d.ts +5 -0
- package/lib/patching/format-patch-report.js +157 -0
- package/lib/patching/fp/index.d.ts +1 -0
- package/lib/patching/fp/index.js +18 -0
- package/lib/patching/fp/patch.d.ts +15 -0
- package/lib/patching/fp/patch.js +54 -0
- package/lib/patching/index.d.ts +6 -0
- package/lib/patching/index.js +36 -0
- package/lib/patching/json-lens.d.ts +54 -0
- package/lib/patching/json-lens.js +10 -0
- package/lib/patching/json-patch-set.d.ts +33 -0
- package/lib/patching/json-patch-set.js +269 -0
- package/lib/patching/patching.d.ts +65 -0
- package/lib/patching/patching.js +210 -0
- package/lib/patching/reason.d.ts +22 -0
- package/lib/patching/reason.js +37 -0
- package/lib/printable-tree.d.ts +19 -0
- package/lib/printable-tree.js +117 -0
- package/lib/report/index.d.ts +1 -0
- package/lib/report/index.js +18 -0
- package/lib/report/problem-report.d.ts +34 -0
- package/lib/report/problem-report.js +119 -0
- package/lib/report/sorting.d.ts +4 -0
- package/lib/report/sorting.js +29 -0
- package/lib/resource-builder.d.ts +88 -0
- package/lib/resource-builder.js +331 -0
- package/lib/schema-manipulation/unify-schemas.d.ts +8 -0
- package/lib/schema-manipulation/unify-schemas.js +213 -0
- package/lib/types/cloudformation-docs/CloudFormationDocumentation.d.ts +18 -0
- package/lib/types/cloudformation-docs/CloudFormationDocumentation.js +3 -0
- package/lib/types/cloudwatch-console-service-directory/CloudWatchConsoleServiceDirectory.d.ts +189 -0
- package/lib/types/cloudwatch-console-service-directory/CloudWatchConsoleServiceDirectory.js +12 -0
- package/lib/types/index.d.ts +7 -0
- package/lib/types/index.js +24 -0
- package/lib/types/registry-schema/CloudFormationRegistrySchema.d.ts +169 -0
- package/lib/types/registry-schema/CloudFormationRegistrySchema.js +17 -0
- package/lib/types/registry-schema/JsonSchema.d.ts +166 -0
- package/lib/types/registry-schema/JsonSchema.js +173 -0
- package/lib/types/resource-specification/resource-spec.d.ts +83 -0
- package/lib/types/resource-specification/resource-spec.js +17 -0
- package/lib/types/sam/SamTemplateSchema.d.ts +5 -0
- package/lib/types/sam/SamTemplateSchema.js +3 -0
- package/lib/types/stateful-resources/StatefulResources.d.ts +8 -0
- package/lib/types/stateful-resources/StatefulResources.js +3 -0
- package/package.json +119 -0
- package/schemas/CloudFormationDocumentation.schema.json +43 -0
- package/schemas/CloudFormationRegistryResource.schema.json +818 -0
- package/schemas/CloudFormationResourceSpecification.schema.json +184 -0
- package/schemas/CloudWatchConsoleServiceDirectory.schema.json +536 -0
- package/schemas/ResourceSpecification.schema.json +144 -0
- package/schemas/SAMResourceSpecification.schema.json +228 -0
- package/schemas/SamTemplateSchema.schema.json +534 -0
- package/schemas/StatefulResources.schema.json +30 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ResourceSpecification",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"ResourceSpecification": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"PropertyTypes": {
|
|
9
|
+
"additionalProperties": {
|
|
10
|
+
"anyOf": [
|
|
11
|
+
{
|
|
12
|
+
"$ref": "#/definitions/resourcespec.PropertyType"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"$ref": "#/definitions/resourcespec.Property"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"description": "Not really valid for this to be a plain property, but it happens in practice anyway",
|
|
20
|
+
"type": "object"
|
|
21
|
+
},
|
|
22
|
+
"ResourceSpecificationVersion": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"ResourceTypes": {
|
|
26
|
+
"additionalProperties": {
|
|
27
|
+
"$ref": "#/definitions/resourcespec.ResourceType"
|
|
28
|
+
},
|
|
29
|
+
"type": "object"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"required": [
|
|
33
|
+
"ResourceSpecificationVersion",
|
|
34
|
+
"ResourceTypes",
|
|
35
|
+
"PropertyTypes"
|
|
36
|
+
],
|
|
37
|
+
"type": "object"
|
|
38
|
+
},
|
|
39
|
+
"resourcespec.Attribute": {
|
|
40
|
+
"additionalProperties": false,
|
|
41
|
+
"properties": {
|
|
42
|
+
"Documentation": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"DuplicatesAllowed": {
|
|
46
|
+
"type": "boolean"
|
|
47
|
+
},
|
|
48
|
+
"ItemType": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"PrimitiveItemType": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"PrimitiveType": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"Required": {
|
|
58
|
+
"type": "boolean"
|
|
59
|
+
},
|
|
60
|
+
"Type": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"type": "object"
|
|
65
|
+
},
|
|
66
|
+
"resourcespec.Property": {
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"properties": {
|
|
69
|
+
"Documentation": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"DuplicatesAllowed": {
|
|
73
|
+
"type": "boolean"
|
|
74
|
+
},
|
|
75
|
+
"ItemType": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"PrimitiveItemType": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"PrimitiveType": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"Required": {
|
|
85
|
+
"type": "boolean"
|
|
86
|
+
},
|
|
87
|
+
"Type": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"UpdateType": {
|
|
91
|
+
"enum": [
|
|
92
|
+
"Mutable",
|
|
93
|
+
"Immutable",
|
|
94
|
+
"Conditional"
|
|
95
|
+
],
|
|
96
|
+
"type": "string"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": [
|
|
100
|
+
"UpdateType"
|
|
101
|
+
],
|
|
102
|
+
"type": "object"
|
|
103
|
+
},
|
|
104
|
+
"resourcespec.PropertyType": {
|
|
105
|
+
"additionalProperties": false,
|
|
106
|
+
"properties": {
|
|
107
|
+
"Documentation": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"Properties": {
|
|
111
|
+
"additionalProperties": {
|
|
112
|
+
"$ref": "#/definitions/resourcespec.Property"
|
|
113
|
+
},
|
|
114
|
+
"type": "object"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"type": "object"
|
|
118
|
+
},
|
|
119
|
+
"resourcespec.ResourceType": {
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"properties": {
|
|
122
|
+
"AdditionalProperties": {
|
|
123
|
+
"type": "boolean"
|
|
124
|
+
},
|
|
125
|
+
"Attributes": {
|
|
126
|
+
"additionalProperties": {
|
|
127
|
+
"$ref": "#/definitions/resourcespec.Attribute"
|
|
128
|
+
},
|
|
129
|
+
"type": "object"
|
|
130
|
+
},
|
|
131
|
+
"Documentation": {
|
|
132
|
+
"type": "string"
|
|
133
|
+
},
|
|
134
|
+
"Properties": {
|
|
135
|
+
"additionalProperties": {
|
|
136
|
+
"$ref": "#/definitions/resourcespec.Property"
|
|
137
|
+
},
|
|
138
|
+
"type": "object"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"type": "object"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SAMResourceSpecification",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"SAMResourceSpecification": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"description": "SAM has defined a custom extension to the CFN resource specification",
|
|
8
|
+
"properties": {
|
|
9
|
+
"Globals": {
|
|
10
|
+
"additionalProperties": {},
|
|
11
|
+
"type": "object"
|
|
12
|
+
},
|
|
13
|
+
"PropertyTypes": {
|
|
14
|
+
"additionalProperties": {
|
|
15
|
+
"anyOf": [
|
|
16
|
+
{
|
|
17
|
+
"$ref": "#/definitions/resourcespec.SAMPropertyType"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"$ref": "#/definitions/resourcespec.SAMSingleTypeAlias"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"description": "Not really valid for this to be a plain property, but it happens in practice anyway",
|
|
25
|
+
"type": "object"
|
|
26
|
+
},
|
|
27
|
+
"ResourceSpecificationTransform": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"ResourceSpecificationVersion": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"ResourceTypes": {
|
|
34
|
+
"additionalProperties": {
|
|
35
|
+
"$ref": "#/definitions/resourcespec.SAMResourceType"
|
|
36
|
+
},
|
|
37
|
+
"type": "object"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"ResourceSpecificationTransform",
|
|
42
|
+
"ResourceSpecificationVersion",
|
|
43
|
+
"ResourceTypes",
|
|
44
|
+
"PropertyTypes"
|
|
45
|
+
],
|
|
46
|
+
"type": "object"
|
|
47
|
+
},
|
|
48
|
+
"resourcespec.SAMProperty": {
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"properties": {
|
|
51
|
+
"Documentation": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"DuplicatesAllowed": {
|
|
55
|
+
"type": "boolean"
|
|
56
|
+
},
|
|
57
|
+
"InclusiveItemPattern": {
|
|
58
|
+
"type": "boolean"
|
|
59
|
+
},
|
|
60
|
+
"InclusiveItemTypes": {
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"type": "array"
|
|
65
|
+
},
|
|
66
|
+
"InclusivePrimitiveItemTypes": {
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
"type": "array"
|
|
71
|
+
},
|
|
72
|
+
"ItemType": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"ItemTypes": {
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"type": "array"
|
|
80
|
+
},
|
|
81
|
+
"PrimitiveItemType": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"PrimitiveItemTypes": {
|
|
85
|
+
"items": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"type": "array"
|
|
89
|
+
},
|
|
90
|
+
"PrimitiveType": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"PrimitiveTypes": {
|
|
94
|
+
"items": {
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"type": "array"
|
|
98
|
+
},
|
|
99
|
+
"Required": {
|
|
100
|
+
"type": "boolean"
|
|
101
|
+
},
|
|
102
|
+
"Type": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"Types": {
|
|
106
|
+
"items": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"type": "array"
|
|
110
|
+
},
|
|
111
|
+
"UpdateType": {
|
|
112
|
+
"enum": [
|
|
113
|
+
"Mutable",
|
|
114
|
+
"Immutable",
|
|
115
|
+
"Conditional"
|
|
116
|
+
],
|
|
117
|
+
"type": "string"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"required": [
|
|
121
|
+
"UpdateType"
|
|
122
|
+
],
|
|
123
|
+
"type": "object"
|
|
124
|
+
},
|
|
125
|
+
"resourcespec.SAMPropertyType": {
|
|
126
|
+
"additionalProperties": false,
|
|
127
|
+
"properties": {
|
|
128
|
+
"Documentation": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
"Properties": {
|
|
132
|
+
"additionalProperties": {
|
|
133
|
+
"$ref": "#/definitions/resourcespec.SAMProperty"
|
|
134
|
+
},
|
|
135
|
+
"type": "object"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"type": "object"
|
|
139
|
+
},
|
|
140
|
+
"resourcespec.SAMResourceType": {
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"properties": {
|
|
143
|
+
"AdditionalProperties": {
|
|
144
|
+
"type": "boolean"
|
|
145
|
+
},
|
|
146
|
+
"Attributes": {
|
|
147
|
+
"additionalProperties": {
|
|
148
|
+
"$ref": "#/definitions/resourcespec.SAMProperty"
|
|
149
|
+
},
|
|
150
|
+
"type": "object"
|
|
151
|
+
},
|
|
152
|
+
"Documentation": {
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
"Properties": {
|
|
156
|
+
"additionalProperties": {
|
|
157
|
+
"$ref": "#/definitions/resourcespec.SAMProperty"
|
|
158
|
+
},
|
|
159
|
+
"type": "object"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"type": "object"
|
|
163
|
+
},
|
|
164
|
+
"resourcespec.SAMSingleTypeAlias": {
|
|
165
|
+
"additionalProperties": false,
|
|
166
|
+
"properties": {
|
|
167
|
+
"Documentation": {
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
"DuplicatesAllowed": {
|
|
171
|
+
"type": "boolean"
|
|
172
|
+
},
|
|
173
|
+
"InclusiveItemPattern": {
|
|
174
|
+
"type": "boolean"
|
|
175
|
+
},
|
|
176
|
+
"InclusiveItemTypes": {
|
|
177
|
+
"items": {
|
|
178
|
+
"type": "string"
|
|
179
|
+
},
|
|
180
|
+
"type": "array"
|
|
181
|
+
},
|
|
182
|
+
"InclusivePrimitiveItemTypes": {
|
|
183
|
+
"items": {
|
|
184
|
+
"type": "string"
|
|
185
|
+
},
|
|
186
|
+
"type": "array"
|
|
187
|
+
},
|
|
188
|
+
"ItemType": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"ItemTypes": {
|
|
192
|
+
"items": {
|
|
193
|
+
"type": "string"
|
|
194
|
+
},
|
|
195
|
+
"type": "array"
|
|
196
|
+
},
|
|
197
|
+
"PrimitiveItemType": {
|
|
198
|
+
"type": "string"
|
|
199
|
+
},
|
|
200
|
+
"PrimitiveItemTypes": {
|
|
201
|
+
"items": {
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
204
|
+
"type": "array"
|
|
205
|
+
},
|
|
206
|
+
"PrimitiveType": {
|
|
207
|
+
"type": "string"
|
|
208
|
+
},
|
|
209
|
+
"PrimitiveTypes": {
|
|
210
|
+
"items": {
|
|
211
|
+
"type": "string"
|
|
212
|
+
},
|
|
213
|
+
"type": "array"
|
|
214
|
+
},
|
|
215
|
+
"Type": {
|
|
216
|
+
"type": "string"
|
|
217
|
+
},
|
|
218
|
+
"Types": {
|
|
219
|
+
"items": {
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
"type": "array"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"type": "object"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|