forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloud-assembly.schema.json
299 lines (299 loc) · 11.5 KB
/
cloud-assembly.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
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
{
"$ref": "#/definitions/AssemblyManifest",
"definitions": {
"AssemblyManifest": {
"description": "A manifest which describes the cloud assembly.",
"type": "object",
"properties": {
"version": {
"description": "Protocol version",
"type": "string"
},
"artifacts": {
"description": "The set of artifacts in this assembly. (Default - no artifacts.)",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/ArtifactManifest"
}
},
"missing": {
"description": "Missing context information. If this field has values, it means that the\ncloud assembly is not complete and should not be deployed. (Default - no missing context.)",
"type": "array",
"items": {
"$ref": "#/definitions/MissingContext"
}
},
"runtime": {
"description": "Runtime information. (Default - no info.)",
"$ref": "#/definitions/RuntimeInfo"
}
},
"required": [
"version"
]
},
"ArtifactManifest": {
"description": "A manifest for a single artifact within the cloud assembly.",
"type": "object",
"properties": {
"type": {
"$ref": "#/definitions/ArtifactType",
"description": "The type of artifact."
},
"environment": {
"description": "The environment into which this artifact is deployed. (Default - no envrionment.)",
"type": "string"
},
"metadata": {
"description": "Associated metadata. (Default - no metadata.)",
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/definitions/MetadataEntry"
}
}
},
"dependencies": {
"description": "IDs of artifacts that must be deployed before this artifact. (Default - no dependencies.)",
"type": "array",
"items": {
"type": "string"
}
},
"properties": {
"description": "The set of properties for this artifact (depends on type) (Default - no properties.)",
"type": "object",
"additionalProperties": {}
}
},
"required": [
"type"
]
},
"ArtifactType": {
"description": "Type of cloud artifact.",
"enum": [
"aws:cloudformation:stack",
"cdk:tree",
"none"
],
"type": "string"
},
"MetadataEntry": {
"description": "A metadata entry in a cloud assembly artifact.",
"type": "object",
"properties": {
"type": {
"description": "The type of the metadata entry.",
"type": "string"
},
"data": {
"description": "The data. (Default - no data.)",
"anyOf": [
{
"$ref": "#/definitions/FileAssetMetadataEntry"
},
{
"$ref": "#/definitions/ContainerImageAssetMetadataEntry"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/Tag"
}
},
{
"type": "string"
},
{
"description": "Free form data."
}
]
},
"trace": {
"description": "A stack trace for when the entry was created. (Default - no trace.)",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"type"
]
},
"FileAssetMetadataEntry": {
"description": "Metadata Entry spec for files.",
"type": "object",
"properties": {
"packaging": {
"description": "Requested packaging style",
"enum": [
"file",
"zip"
],
"type": "string"
},
"s3BucketParameter": {
"description": "Name of parameter where S3 bucket should be passed in",
"type": "string"
},
"s3KeyParameter": {
"description": "Name of parameter where S3 key should be passed in",
"type": "string"
},
"artifactHashParameter": {
"description": "The name of the parameter where the hash of the bundled asset should be passed in.",
"type": "string"
},
"id": {
"description": "Logical identifier for the asset",
"type": "string"
},
"sourceHash": {
"description": "The hash of the source directory used to build the asset.",
"type": "string"
},
"path": {
"description": "Path on disk to the asset",
"type": "string"
}
},
"required": [
"artifactHashParameter",
"id",
"packaging",
"path",
"s3BucketParameter",
"s3KeyParameter",
"sourceHash"
]
},
"ContainerImageAssetMetadataEntry": {
"description": "Metadata Entry spec for container images.",
"type": "object",
"properties": {
"packaging": {
"description": "Type of asset",
"type": "string",
"enum": [
"container-image"
]
},
"imageNameParameter": {
"description": "ECR Repository name and repo digest (separated by \"@sha256:\") where this\nimage is stored. (Default undefined If not specified, `repositoryName` and `imageTag` are\nrequired because otherwise how will the stack know where to find the asset,\nha?)",
"type": "string"
},
"repositoryName": {
"description": "ECR repository name, if omitted a default name based on the asset's ID is\nused instead. Specify this property if you need to statically address the\nimage, e.g. from a Kubernetes Pod. Note, this is only the repository name,\nwithout the registry and the tag parts. (Default - this parameter is REQUIRED after 1.21.0)",
"type": "string"
},
"imageTag": {
"description": "The docker image tag to use for tagging pushed images. This field is\nrequired if `imageParameterName` is ommited (otherwise, the app won't be\nable to find the image). (Default - this parameter is REQUIRED after 1.21.0)",
"type": "string"
},
"buildArgs": {
"description": "Build args to pass to the `docker build` command (Default no build args are passed)",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"target": {
"description": "Docker target to build to (Default no build target)",
"type": "string"
},
"file": {
"description": "Path to the Dockerfile (relative to the directory). (Default - no file is passed)",
"type": "string"
},
"id": {
"description": "Logical identifier for the asset",
"type": "string"
},
"sourceHash": {
"description": "The hash of the source directory used to build the asset.",
"type": "string"
},
"path": {
"description": "Path on disk to the asset",
"type": "string"
}
},
"required": [
"id",
"packaging",
"path",
"sourceHash"
]
},
"Tag": {
"description": "Metadata Entry spec for stack tag.",
"type": "object",
"properties": {
"key": {
"description": "Tag key.",
"type": "string"
},
"value": {
"description": "Tag value.",
"type": "string"
}
},
"required": [
"key",
"value"
]
},
"MissingContext": {
"description": "Represents a missing piece of context.",
"type": "object",
"properties": {
"key": {
"description": "The missing context key.",
"type": "string"
},
"provider": {
"description": "The provider from which we expect this context key to be obtained.",
"type": "string"
},
"props": {
"description": "A set of provider-specific options.",
"type": "object",
"additionalProperties": {},
"properties": {
"account": {
"type": "string"
},
"region": {
"type": "string"
}
}
}
},
"required": [
"key",
"props",
"provider"
]
},
"RuntimeInfo": {
"description": "Information about the application's runtime components.",
"type": "object",
"properties": {
"libraries": {
"description": "The list of libraries loaded in the application, associated with their versions.",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"required": [
"libraries"
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}