@aws-cdk/cloud-assembly-schema 2.20.0 → 2.21.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/.jsii +57 -31
- package/.jsii.tabl.json +68 -3
- package/.warnings.jsii.js +253 -147
- package/NOTICE +0 -17
- package/lib/integ-tests/test-case.d.ts +47 -42
- package/lib/integ-tests/test-case.js +1 -1
- package/lib/manifest.js +57 -8
- package/node_modules/lru-cache/LICENSE +1 -1
- package/node_modules/lru-cache/README.md +632 -99
- package/node_modules/lru-cache/index.js +732 -251
- package/node_modules/lru-cache/package.json +17 -7
- package/node_modules/semver/README.md +3 -1
- package/node_modules/semver/bin/semver.js +17 -8
- package/node_modules/semver/classes/comparator.js +3 -2
- package/node_modules/semver/classes/index.js +1 -1
- package/node_modules/semver/classes/range.js +31 -22
- package/node_modules/semver/functions/cmp.js +8 -4
- package/node_modules/semver/functions/coerce.js +3 -2
- package/node_modules/semver/functions/parse.js +1 -1
- package/node_modules/semver/internal/constants.js +2 -2
- package/node_modules/semver/internal/identifiers.js +1 -1
- package/node_modules/semver/internal/parse-options.js +3 -3
- package/node_modules/semver/internal/re.js +3 -3
- package/node_modules/semver/package.json +46 -13
- package/node_modules/semver/ranges/min-version.js +2 -1
- package/node_modules/semver/ranges/outside.js +1 -1
- package/node_modules/semver/ranges/simplify.js +15 -12
- package/node_modules/semver/ranges/subset.js +53 -31
- package/package.json +6 -5
- package/schema/cloud-assembly.version.json +1 -1
- package/schema/integ.schema.json +1 -1
- package/node_modules/semver/CHANGELOG.md +0 -111
- package/node_modules/yallist/LICENSE +0 -15
- package/node_modules/yallist/README.md +0 -204
- package/node_modules/yallist/iterator.js +0 -8
- package/node_modules/yallist/package.json +0 -29
- package/node_modules/yallist/yallist.js +0 -426
package/.warnings.jsii.js
CHANGED
|
@@ -1,245 +1,331 @@
|
|
|
1
1
|
function _aws_cdk_cloud_assembly_schema_ArtifactType(p) {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
4
|
-
}
|
|
5
|
-
function _aws_cdk_cloud_assembly_schema_ContextProvider(p) {
|
|
6
|
-
}
|
|
7
|
-
function _aws_cdk_cloud_assembly_schema_LoadBalancerType(p) {
|
|
8
|
-
}
|
|
9
|
-
function _aws_cdk_cloud_assembly_schema_LoadBalancerListenerProtocol(p) {
|
|
3
|
+
function _aws_cdk_cloud_assembly_schema_RuntimeInfo(p) {
|
|
10
4
|
}
|
|
11
|
-
function
|
|
5
|
+
function _aws_cdk_cloud_assembly_schema_MissingContext(p) {
|
|
6
|
+
if (p == null)
|
|
7
|
+
return;
|
|
8
|
+
visitedObjects.add(p);
|
|
9
|
+
try {
|
|
10
|
+
if (!visitedObjects.has(p.props))
|
|
11
|
+
_aws_cdk_cloud_assembly_schema_AmiContextQuery(p.props);
|
|
12
|
+
if (!visitedObjects.has(p.provider))
|
|
13
|
+
_aws_cdk_cloud_assembly_schema_ContextProvider(p.provider);
|
|
14
|
+
}
|
|
15
|
+
finally {
|
|
16
|
+
visitedObjects.delete(p);
|
|
17
|
+
}
|
|
12
18
|
}
|
|
13
|
-
function
|
|
19
|
+
function _aws_cdk_cloud_assembly_schema_ArtifactManifest(p) {
|
|
20
|
+
if (p == null)
|
|
21
|
+
return;
|
|
22
|
+
visitedObjects.add(p);
|
|
23
|
+
try {
|
|
24
|
+
if (!visitedObjects.has(p.type))
|
|
25
|
+
_aws_cdk_cloud_assembly_schema_ArtifactType(p.type);
|
|
26
|
+
if (!visitedObjects.has(p.properties))
|
|
27
|
+
_aws_cdk_cloud_assembly_schema_AwsCloudFormationStackProperties(p.properties);
|
|
28
|
+
}
|
|
29
|
+
finally {
|
|
30
|
+
visitedObjects.delete(p);
|
|
31
|
+
}
|
|
14
32
|
}
|
|
15
|
-
function
|
|
33
|
+
function _aws_cdk_cloud_assembly_schema_AssemblyManifest(p) {
|
|
34
|
+
if (p == null)
|
|
35
|
+
return;
|
|
36
|
+
visitedObjects.add(p);
|
|
37
|
+
try {
|
|
38
|
+
if (!visitedObjects.has(p.artifacts))
|
|
39
|
+
_aws_cdk_cloud_assembly_schema_ArtifactManifest(p.artifacts);
|
|
40
|
+
if (!visitedObjects.has(p.missing))
|
|
41
|
+
_aws_cdk_cloud_assembly_schema_MissingContext(p.missing);
|
|
42
|
+
if (!visitedObjects.has(p.runtime))
|
|
43
|
+
_aws_cdk_cloud_assembly_schema_RuntimeInfo(p.runtime);
|
|
44
|
+
}
|
|
45
|
+
finally {
|
|
46
|
+
visitedObjects.delete(p);
|
|
47
|
+
}
|
|
16
48
|
}
|
|
17
|
-
function
|
|
49
|
+
function _aws_cdk_cloud_assembly_schema_FileAssetMetadataEntry(p) {
|
|
18
50
|
}
|
|
19
51
|
function _aws_cdk_cloud_assembly_schema_Tag(p) {
|
|
20
52
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
|
|
53
|
+
function _aws_cdk_cloud_assembly_schema_ContainerImageAssetMetadataEntry(p) {
|
|
54
|
+
if (p == null)
|
|
55
|
+
return;
|
|
56
|
+
visitedObjects.add(p);
|
|
57
|
+
try {
|
|
58
|
+
if ("imageNameParameter" in p)
|
|
59
|
+
print("@aws-cdk/cloud-assembly-schema.ContainerImageAssetMetadataEntry#imageNameParameter", "specify `repositoryName` and `imageTag` instead, and then you\nknow where the image will go.");
|
|
60
|
+
}
|
|
61
|
+
finally {
|
|
62
|
+
visitedObjects.delete(p);
|
|
63
|
+
}
|
|
24
64
|
}
|
|
25
|
-
function
|
|
65
|
+
function _aws_cdk_cloud_assembly_schema_ArtifactMetadataEntryType(p) {
|
|
26
66
|
}
|
|
27
|
-
function
|
|
67
|
+
function _aws_cdk_cloud_assembly_schema_MetadataEntry(p) {
|
|
28
68
|
}
|
|
29
|
-
function
|
|
69
|
+
function _aws_cdk_cloud_assembly_schema_BootstrapRole(p) {
|
|
30
70
|
}
|
|
31
|
-
function
|
|
71
|
+
function _aws_cdk_cloud_assembly_schema_AwsCloudFormationStackProperties(p) {
|
|
72
|
+
if (p == null)
|
|
73
|
+
return;
|
|
74
|
+
visitedObjects.add(p);
|
|
75
|
+
try {
|
|
76
|
+
if (!visitedObjects.has(p.lookupRole))
|
|
77
|
+
_aws_cdk_cloud_assembly_schema_BootstrapRole(p.lookupRole);
|
|
78
|
+
}
|
|
79
|
+
finally {
|
|
80
|
+
visitedObjects.delete(p);
|
|
81
|
+
}
|
|
32
82
|
}
|
|
33
83
|
function _aws_cdk_cloud_assembly_schema_AssetManifestProperties(p) {
|
|
34
84
|
}
|
|
35
|
-
function
|
|
85
|
+
function _aws_cdk_cloud_assembly_schema_TreeArtifactProperties(p) {
|
|
36
86
|
}
|
|
37
|
-
function
|
|
87
|
+
function _aws_cdk_cloud_assembly_schema_NestedCloudAssemblyProperties(p) {
|
|
38
88
|
}
|
|
39
|
-
function
|
|
89
|
+
function _aws_cdk_cloud_assembly_schema_ContextProvider(p) {
|
|
40
90
|
}
|
|
41
|
-
function
|
|
91
|
+
function _aws_cdk_cloud_assembly_schema_AmiContextQuery(p) {
|
|
42
92
|
}
|
|
43
|
-
function
|
|
93
|
+
function _aws_cdk_cloud_assembly_schema_AvailabilityZonesContextQuery(p) {
|
|
44
94
|
}
|
|
45
95
|
function _aws_cdk_cloud_assembly_schema_HostedZoneContextQuery(p) {
|
|
46
96
|
}
|
|
47
|
-
function
|
|
48
|
-
}
|
|
49
|
-
function _aws_cdk_cloud_assembly_schema_AmiContextQuery(p) {
|
|
97
|
+
function _aws_cdk_cloud_assembly_schema_SSMParameterContextQuery(p) {
|
|
50
98
|
}
|
|
51
99
|
function _aws_cdk_cloud_assembly_schema_VpcContextQuery(p) {
|
|
52
100
|
}
|
|
53
|
-
function
|
|
101
|
+
function _aws_cdk_cloud_assembly_schema_EndpointServiceAvailabilityZonesContextQuery(p) {
|
|
54
102
|
}
|
|
55
|
-
function
|
|
103
|
+
function _aws_cdk_cloud_assembly_schema_LoadBalancerType(p) {
|
|
56
104
|
}
|
|
57
|
-
function
|
|
105
|
+
function _aws_cdk_cloud_assembly_schema_LoadBalancerFilter(p) {
|
|
58
106
|
if (p == null)
|
|
59
107
|
return;
|
|
60
108
|
visitedObjects.add(p);
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
109
|
+
try {
|
|
110
|
+
if (!visitedObjects.has(p.loadBalancerType))
|
|
111
|
+
_aws_cdk_cloud_assembly_schema_LoadBalancerType(p.loadBalancerType);
|
|
112
|
+
if (!visitedObjects.has(p.loadBalancerTags))
|
|
113
|
+
_aws_cdk_cloud_assembly_schema_Tag(p.loadBalancerTags);
|
|
114
|
+
}
|
|
115
|
+
finally {
|
|
116
|
+
visitedObjects.delete(p);
|
|
117
|
+
}
|
|
66
118
|
}
|
|
67
119
|
function _aws_cdk_cloud_assembly_schema_LoadBalancerContextQuery(p) {
|
|
68
120
|
if (p == null)
|
|
69
121
|
return;
|
|
70
122
|
visitedObjects.add(p);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
123
|
+
try {
|
|
124
|
+
if (!visitedObjects.has(p.loadBalancerType))
|
|
125
|
+
_aws_cdk_cloud_assembly_schema_LoadBalancerType(p.loadBalancerType);
|
|
126
|
+
if (!visitedObjects.has(p.loadBalancerTags))
|
|
127
|
+
_aws_cdk_cloud_assembly_schema_Tag(p.loadBalancerTags);
|
|
128
|
+
}
|
|
129
|
+
finally {
|
|
130
|
+
visitedObjects.delete(p);
|
|
131
|
+
}
|
|
78
132
|
}
|
|
79
|
-
function
|
|
133
|
+
function _aws_cdk_cloud_assembly_schema_LoadBalancerListenerProtocol(p) {
|
|
80
134
|
}
|
|
81
|
-
function
|
|
135
|
+
function _aws_cdk_cloud_assembly_schema_LoadBalancerListenerContextQuery(p) {
|
|
82
136
|
if (p == null)
|
|
83
137
|
return;
|
|
84
138
|
visitedObjects.add(p);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
139
|
+
try {
|
|
140
|
+
if (!visitedObjects.has(p.listenerProtocol))
|
|
141
|
+
_aws_cdk_cloud_assembly_schema_LoadBalancerListenerProtocol(p.listenerProtocol);
|
|
142
|
+
if (!visitedObjects.has(p.loadBalancerType))
|
|
143
|
+
_aws_cdk_cloud_assembly_schema_LoadBalancerType(p.loadBalancerType);
|
|
144
|
+
if (!visitedObjects.has(p.loadBalancerTags))
|
|
145
|
+
_aws_cdk_cloud_assembly_schema_Tag(p.loadBalancerTags);
|
|
146
|
+
}
|
|
147
|
+
finally {
|
|
148
|
+
visitedObjects.delete(p);
|
|
149
|
+
}
|
|
88
150
|
}
|
|
89
|
-
function
|
|
90
|
-
if (p == null)
|
|
91
|
-
return;
|
|
92
|
-
visitedObjects.add(p);
|
|
93
|
-
if (!visitedObjects.has(p.lookupRole))
|
|
94
|
-
_aws_cdk_cloud_assembly_schema_BootstrapRole(p.lookupRole);
|
|
95
|
-
visitedObjects.delete(p);
|
|
151
|
+
function _aws_cdk_cloud_assembly_schema_SecurityGroupContextQuery(p) {
|
|
96
152
|
}
|
|
97
|
-
function
|
|
153
|
+
function _aws_cdk_cloud_assembly_schema_KeyContextQuery(p) {
|
|
98
154
|
}
|
|
99
|
-
function
|
|
155
|
+
function _aws_cdk_cloud_assembly_schema_PluginContextQuery(p) {
|
|
156
|
+
}
|
|
157
|
+
function _aws_cdk_cloud_assembly_schema_AssetManifest(p) {
|
|
100
158
|
if (p == null)
|
|
101
159
|
return;
|
|
102
160
|
visitedObjects.add(p);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
161
|
+
try {
|
|
162
|
+
if (!visitedObjects.has(p.dockerImages))
|
|
163
|
+
_aws_cdk_cloud_assembly_schema_DockerImageAsset(p.dockerImages);
|
|
164
|
+
if (!visitedObjects.has(p.files))
|
|
165
|
+
_aws_cdk_cloud_assembly_schema_FileAsset(p.files);
|
|
166
|
+
}
|
|
167
|
+
finally {
|
|
168
|
+
visitedObjects.delete(p);
|
|
169
|
+
}
|
|
108
170
|
}
|
|
109
171
|
function _aws_cdk_cloud_assembly_schema_DockerImageAsset(p) {
|
|
110
172
|
if (p == null)
|
|
111
173
|
return;
|
|
112
174
|
visitedObjects.add(p);
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
175
|
+
try {
|
|
176
|
+
if (!visitedObjects.has(p.destinations))
|
|
177
|
+
_aws_cdk_cloud_assembly_schema_DockerImageDestination(p.destinations);
|
|
178
|
+
if (!visitedObjects.has(p.source))
|
|
179
|
+
_aws_cdk_cloud_assembly_schema_DockerImageSource(p.source);
|
|
180
|
+
}
|
|
181
|
+
finally {
|
|
182
|
+
visitedObjects.delete(p);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function _aws_cdk_cloud_assembly_schema_DockerImageSource(p) {
|
|
186
|
+
}
|
|
187
|
+
function _aws_cdk_cloud_assembly_schema_DockerImageDestination(p) {
|
|
118
188
|
}
|
|
119
189
|
function _aws_cdk_cloud_assembly_schema_FileAsset(p) {
|
|
120
190
|
if (p == null)
|
|
121
191
|
return;
|
|
122
192
|
visitedObjects.add(p);
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
193
|
+
try {
|
|
194
|
+
if (!visitedObjects.has(p.destinations))
|
|
195
|
+
_aws_cdk_cloud_assembly_schema_FileDestination(p.destinations);
|
|
196
|
+
if (!visitedObjects.has(p.source))
|
|
197
|
+
_aws_cdk_cloud_assembly_schema_FileSource(p.source);
|
|
198
|
+
}
|
|
199
|
+
finally {
|
|
200
|
+
visitedObjects.delete(p);
|
|
201
|
+
}
|
|
128
202
|
}
|
|
129
|
-
function
|
|
130
|
-
if (p == null)
|
|
131
|
-
return;
|
|
132
|
-
visitedObjects.add(p);
|
|
133
|
-
if (!visitedObjects.has(p.deploy))
|
|
134
|
-
_aws_cdk_cloud_assembly_schema_DeployCommand(p.deploy);
|
|
135
|
-
if (!visitedObjects.has(p.destroy))
|
|
136
|
-
_aws_cdk_cloud_assembly_schema_DestroyCommand(p.destroy);
|
|
137
|
-
visitedObjects.delete(p);
|
|
203
|
+
function _aws_cdk_cloud_assembly_schema_FileAssetPackaging(p) {
|
|
138
204
|
}
|
|
139
|
-
function
|
|
205
|
+
function _aws_cdk_cloud_assembly_schema_FileSource(p) {
|
|
140
206
|
if (p == null)
|
|
141
207
|
return;
|
|
142
208
|
visitedObjects.add(p);
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
209
|
+
try {
|
|
210
|
+
if (!visitedObjects.has(p.packaging))
|
|
211
|
+
_aws_cdk_cloud_assembly_schema_FileAssetPackaging(p.packaging);
|
|
212
|
+
}
|
|
213
|
+
finally {
|
|
214
|
+
visitedObjects.delete(p);
|
|
215
|
+
}
|
|
148
216
|
}
|
|
149
|
-
function
|
|
150
|
-
if (p == null)
|
|
151
|
-
return;
|
|
152
|
-
visitedObjects.add(p);
|
|
153
|
-
if (!visitedObjects.has(p.dockerImages))
|
|
154
|
-
_aws_cdk_cloud_assembly_schema_DockerImageAsset(p.dockerImages);
|
|
155
|
-
if (!visitedObjects.has(p.files))
|
|
156
|
-
_aws_cdk_cloud_assembly_schema_FileAsset(p.files);
|
|
157
|
-
visitedObjects.delete(p);
|
|
217
|
+
function _aws_cdk_cloud_assembly_schema_FileDestination(p) {
|
|
158
218
|
}
|
|
159
|
-
function
|
|
219
|
+
function _aws_cdk_cloud_assembly_schema_AwsDestination(p) {
|
|
220
|
+
}
|
|
221
|
+
function _aws_cdk_cloud_assembly_schema_LoadManifestOptions(p) {
|
|
222
|
+
}
|
|
223
|
+
function _aws_cdk_cloud_assembly_schema_Manifest(p) {
|
|
224
|
+
}
|
|
225
|
+
function _aws_cdk_cloud_assembly_schema_IntegManifest(p) {
|
|
160
226
|
if (p == null)
|
|
161
227
|
return;
|
|
162
228
|
visitedObjects.add(p);
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
229
|
+
try {
|
|
230
|
+
if (!visitedObjects.has(p.testCases))
|
|
231
|
+
_aws_cdk_cloud_assembly_schema_TestCase(p.testCases);
|
|
232
|
+
}
|
|
233
|
+
finally {
|
|
234
|
+
visitedObjects.delete(p);
|
|
235
|
+
}
|
|
166
236
|
}
|
|
167
|
-
function
|
|
237
|
+
function _aws_cdk_cloud_assembly_schema_RequireApproval(p) {
|
|
238
|
+
}
|
|
239
|
+
function _aws_cdk_cloud_assembly_schema_DefaultCdkOptions(p) {
|
|
240
|
+
}
|
|
241
|
+
function _aws_cdk_cloud_assembly_schema_DeployOptions(p) {
|
|
168
242
|
if (p == null)
|
|
169
243
|
return;
|
|
170
244
|
visitedObjects.add(p);
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
245
|
+
try {
|
|
246
|
+
if (!visitedObjects.has(p.requireApproval))
|
|
247
|
+
_aws_cdk_cloud_assembly_schema_RequireApproval(p.requireApproval);
|
|
248
|
+
}
|
|
249
|
+
finally {
|
|
250
|
+
visitedObjects.delete(p);
|
|
251
|
+
}
|
|
174
252
|
}
|
|
175
|
-
function
|
|
253
|
+
function _aws_cdk_cloud_assembly_schema_DestroyOptions(p) {
|
|
254
|
+
}
|
|
255
|
+
function _aws_cdk_cloud_assembly_schema_TestOptions(p) {
|
|
176
256
|
if (p == null)
|
|
177
257
|
return;
|
|
178
258
|
visitedObjects.add(p);
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
259
|
+
try {
|
|
260
|
+
if (!visitedObjects.has(p.cdkCommandOptions))
|
|
261
|
+
_aws_cdk_cloud_assembly_schema_CdkCommands(p.cdkCommandOptions);
|
|
262
|
+
if (!visitedObjects.has(p.hooks))
|
|
263
|
+
_aws_cdk_cloud_assembly_schema_Hooks(p.hooks);
|
|
264
|
+
}
|
|
265
|
+
finally {
|
|
266
|
+
visitedObjects.delete(p);
|
|
267
|
+
}
|
|
182
268
|
}
|
|
183
|
-
function
|
|
269
|
+
function _aws_cdk_cloud_assembly_schema_TestCase(p) {
|
|
184
270
|
if (p == null)
|
|
185
271
|
return;
|
|
186
272
|
visitedObjects.add(p);
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
273
|
+
try {
|
|
274
|
+
if (!visitedObjects.has(p.cdkCommandOptions))
|
|
275
|
+
_aws_cdk_cloud_assembly_schema_CdkCommands(p.cdkCommandOptions);
|
|
276
|
+
if (!visitedObjects.has(p.hooks))
|
|
277
|
+
_aws_cdk_cloud_assembly_schema_Hooks(p.hooks);
|
|
278
|
+
}
|
|
279
|
+
finally {
|
|
280
|
+
visitedObjects.delete(p);
|
|
281
|
+
}
|
|
194
282
|
}
|
|
195
|
-
function
|
|
283
|
+
function _aws_cdk_cloud_assembly_schema_Hooks(p) {
|
|
196
284
|
}
|
|
197
|
-
function
|
|
198
|
-
if (p == null)
|
|
199
|
-
return;
|
|
200
|
-
visitedObjects.add(p);
|
|
201
|
-
if (!visitedObjects.has(p.requireApproval))
|
|
202
|
-
_aws_cdk_cloud_assembly_schema_RequireApproval(p.requireApproval);
|
|
203
|
-
visitedObjects.delete(p);
|
|
285
|
+
function _aws_cdk_cloud_assembly_schema_CdkCommand(p) {
|
|
204
286
|
}
|
|
205
|
-
function
|
|
287
|
+
function _aws_cdk_cloud_assembly_schema_DeployCommand(p) {
|
|
206
288
|
if (p == null)
|
|
207
289
|
return;
|
|
208
290
|
visitedObjects.add(p);
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
291
|
+
try {
|
|
292
|
+
if (!visitedObjects.has(p.args))
|
|
293
|
+
_aws_cdk_cloud_assembly_schema_DeployOptions(p.args);
|
|
294
|
+
}
|
|
295
|
+
finally {
|
|
296
|
+
visitedObjects.delete(p);
|
|
297
|
+
}
|
|
214
298
|
}
|
|
215
|
-
function
|
|
299
|
+
function _aws_cdk_cloud_assembly_schema_DestroyCommand(p) {
|
|
216
300
|
if (p == null)
|
|
217
301
|
return;
|
|
218
302
|
visitedObjects.add(p);
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
function _aws_cdk_cloud_assembly_schema_Manifest(p) {
|
|
303
|
+
try {
|
|
304
|
+
if (!visitedObjects.has(p.args))
|
|
305
|
+
_aws_cdk_cloud_assembly_schema_DestroyOptions(p.args);
|
|
306
|
+
}
|
|
307
|
+
finally {
|
|
308
|
+
visitedObjects.delete(p);
|
|
309
|
+
}
|
|
228
310
|
}
|
|
229
|
-
function
|
|
311
|
+
function _aws_cdk_cloud_assembly_schema_CdkCommands(p) {
|
|
230
312
|
if (p == null)
|
|
231
313
|
return;
|
|
232
314
|
visitedObjects.add(p);
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
315
|
+
try {
|
|
316
|
+
if (!visitedObjects.has(p.deploy))
|
|
317
|
+
_aws_cdk_cloud_assembly_schema_DeployCommand(p.deploy);
|
|
318
|
+
if (!visitedObjects.has(p.destroy))
|
|
319
|
+
_aws_cdk_cloud_assembly_schema_DestroyCommand(p.destroy);
|
|
320
|
+
}
|
|
321
|
+
finally {
|
|
322
|
+
visitedObjects.delete(p);
|
|
323
|
+
}
|
|
238
324
|
}
|
|
239
325
|
function print(name, deprecationMessage) {
|
|
240
326
|
const deprecated = process.env.JSII_DEPRECATED;
|
|
241
327
|
const deprecationMode = ["warn", "fail", "quiet"].includes(deprecated) ? deprecated : "warn";
|
|
242
|
-
const message = `${name} is deprecated.\n ${deprecationMessage}\n This API will be removed in the next major release.`;
|
|
328
|
+
const message = `${name} is deprecated.\n ${deprecationMessage.trim()}\n This API will be removed in the next major release.`;
|
|
243
329
|
switch (deprecationMode) {
|
|
244
330
|
case "fail":
|
|
245
331
|
throw new DeprecationError(message);
|
|
@@ -248,8 +334,28 @@ function print(name, deprecationMessage) {
|
|
|
248
334
|
break;
|
|
249
335
|
}
|
|
250
336
|
}
|
|
337
|
+
function getPropertyDescriptor(obj, prop) {
|
|
338
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
339
|
+
if (descriptor) {
|
|
340
|
+
return descriptor;
|
|
341
|
+
}
|
|
342
|
+
const proto = Object.getPrototypeOf(obj);
|
|
343
|
+
const prototypeDescriptor = proto && getPropertyDescriptor(proto, prop);
|
|
344
|
+
if (prototypeDescriptor) {
|
|
345
|
+
return prototypeDescriptor;
|
|
346
|
+
}
|
|
347
|
+
return {};
|
|
348
|
+
}
|
|
251
349
|
const visitedObjects = new Set();
|
|
252
350
|
class DeprecationError extends Error {
|
|
351
|
+
constructor(...args) {
|
|
352
|
+
super(...args);
|
|
353
|
+
Object.defineProperty(this, "name", {
|
|
354
|
+
configurable: false,
|
|
355
|
+
enumerable: true,
|
|
356
|
+
value: "DeprecationError",
|
|
357
|
+
writable: false,
|
|
358
|
+
});
|
|
359
|
+
}
|
|
253
360
|
}
|
|
254
|
-
module.exports = { print,
|
|
255
|
-
module.exports.DeprecationError = DeprecationError;
|
|
361
|
+
module.exports = { print, getPropertyDescriptor, DeprecationError, _aws_cdk_cloud_assembly_schema_ArtifactType, _aws_cdk_cloud_assembly_schema_RuntimeInfo, _aws_cdk_cloud_assembly_schema_MissingContext, _aws_cdk_cloud_assembly_schema_ArtifactManifest, _aws_cdk_cloud_assembly_schema_AssemblyManifest, _aws_cdk_cloud_assembly_schema_FileAssetMetadataEntry, _aws_cdk_cloud_assembly_schema_Tag, _aws_cdk_cloud_assembly_schema_ContainerImageAssetMetadataEntry, _aws_cdk_cloud_assembly_schema_ArtifactMetadataEntryType, _aws_cdk_cloud_assembly_schema_MetadataEntry, _aws_cdk_cloud_assembly_schema_BootstrapRole, _aws_cdk_cloud_assembly_schema_AwsCloudFormationStackProperties, _aws_cdk_cloud_assembly_schema_AssetManifestProperties, _aws_cdk_cloud_assembly_schema_TreeArtifactProperties, _aws_cdk_cloud_assembly_schema_NestedCloudAssemblyProperties, _aws_cdk_cloud_assembly_schema_ContextProvider, _aws_cdk_cloud_assembly_schema_AmiContextQuery, _aws_cdk_cloud_assembly_schema_AvailabilityZonesContextQuery, _aws_cdk_cloud_assembly_schema_HostedZoneContextQuery, _aws_cdk_cloud_assembly_schema_SSMParameterContextQuery, _aws_cdk_cloud_assembly_schema_VpcContextQuery, _aws_cdk_cloud_assembly_schema_EndpointServiceAvailabilityZonesContextQuery, _aws_cdk_cloud_assembly_schema_LoadBalancerType, _aws_cdk_cloud_assembly_schema_LoadBalancerFilter, _aws_cdk_cloud_assembly_schema_LoadBalancerContextQuery, _aws_cdk_cloud_assembly_schema_LoadBalancerListenerProtocol, _aws_cdk_cloud_assembly_schema_LoadBalancerListenerContextQuery, _aws_cdk_cloud_assembly_schema_SecurityGroupContextQuery, _aws_cdk_cloud_assembly_schema_KeyContextQuery, _aws_cdk_cloud_assembly_schema_PluginContextQuery, _aws_cdk_cloud_assembly_schema_AssetManifest, _aws_cdk_cloud_assembly_schema_DockerImageAsset, _aws_cdk_cloud_assembly_schema_DockerImageSource, _aws_cdk_cloud_assembly_schema_DockerImageDestination, _aws_cdk_cloud_assembly_schema_FileAsset, _aws_cdk_cloud_assembly_schema_FileAssetPackaging, _aws_cdk_cloud_assembly_schema_FileSource, _aws_cdk_cloud_assembly_schema_FileDestination, _aws_cdk_cloud_assembly_schema_AwsDestination, _aws_cdk_cloud_assembly_schema_LoadManifestOptions, _aws_cdk_cloud_assembly_schema_Manifest, _aws_cdk_cloud_assembly_schema_IntegManifest, _aws_cdk_cloud_assembly_schema_RequireApproval, _aws_cdk_cloud_assembly_schema_DefaultCdkOptions, _aws_cdk_cloud_assembly_schema_DeployOptions, _aws_cdk_cloud_assembly_schema_DestroyOptions, _aws_cdk_cloud_assembly_schema_TestOptions, _aws_cdk_cloud_assembly_schema_TestCase, _aws_cdk_cloud_assembly_schema_Hooks, _aws_cdk_cloud_assembly_schema_CdkCommand, _aws_cdk_cloud_assembly_schema_DeployCommand, _aws_cdk_cloud_assembly_schema_DestroyCommand, _aws_cdk_cloud_assembly_schema_CdkCommands };
|
package/NOTICE
CHANGED
|
@@ -45,23 +45,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
|
|
46
46
|
----------------
|
|
47
47
|
|
|
48
|
-
** yallist - https://www.npmjs.com/package/yallist
|
|
49
|
-
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
50
|
-
|
|
51
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
52
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
53
|
-
copyright notice and this permission notice appear in all copies.
|
|
54
|
-
|
|
55
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
56
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
57
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
58
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
59
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
60
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
61
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
62
|
-
|
|
63
|
-
----------------
|
|
64
|
-
|
|
65
48
|
** semver - https://www.npmjs.com/package/semver
|
|
66
49
|
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
67
50
|
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { DeployOptions, DestroyOptions } from './commands';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The set of options to control the workflow of the test runner
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
6
|
-
/**
|
|
7
|
-
* Stacks that should be tested as part of this test case
|
|
8
|
-
* The stackNames will be passed as args to the cdk commands
|
|
9
|
-
* so dependent stacks will be automatically deployed unless
|
|
10
|
-
* `exclusively` is passed
|
|
11
|
-
*/
|
|
12
|
-
readonly stacks: string[];
|
|
5
|
+
export interface TestOptions {
|
|
13
6
|
/**
|
|
14
7
|
* Run update workflow on this test case
|
|
15
8
|
* This should only be set to false to test scenarios
|
|
@@ -19,49 +12,61 @@ export interface TestCase {
|
|
|
19
12
|
*/
|
|
20
13
|
readonly stackUpdateWorkflow?: boolean;
|
|
21
14
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
* Additional options to use for each CDK command
|
|
16
|
+
*
|
|
17
|
+
* @default - runner default options
|
|
18
|
+
*/
|
|
26
19
|
readonly cdkCommandOptions?: CdkCommands;
|
|
27
20
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
* Additional commands to run at predefined points in the test workflow
|
|
22
|
+
*
|
|
23
|
+
* e.g. { postDeploy: ['yarn', 'test'] }
|
|
24
|
+
*
|
|
25
|
+
* @default - no hooks
|
|
26
|
+
*/
|
|
34
27
|
readonly hooks?: Hooks;
|
|
35
28
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
* Whether or not to include asset hashes in the diff
|
|
30
|
+
* Asset hashes can introduces a lot of unneccessary noise into tests,
|
|
31
|
+
* but there are some cases where asset hashes _should_ be included. For example
|
|
32
|
+
* any tests involving custom resources or bundling
|
|
33
|
+
*
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
43
36
|
readonly diffAssets?: boolean;
|
|
44
37
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
38
|
+
* List of CloudFormation resource types in this stack that can
|
|
39
|
+
* be destroyed as part of an update without failing the test.
|
|
40
|
+
*
|
|
41
|
+
* This list should only include resources that for this specific
|
|
42
|
+
* integration test we are sure will not cause errors or an outage if
|
|
43
|
+
* destroyed. For example, maybe we know that a new resource will be created
|
|
44
|
+
* first before the old resource is destroyed which prevents any outage.
|
|
45
|
+
*
|
|
46
|
+
* e.g. ['AWS::IAM::Role']
|
|
47
|
+
*
|
|
48
|
+
* @default - do not allow destruction of any resources on update
|
|
49
|
+
*/
|
|
57
50
|
readonly allowDestroy?: string[];
|
|
58
51
|
/**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
* Limit deployment to these regions
|
|
53
|
+
*
|
|
54
|
+
* @default - can run in any region
|
|
55
|
+
*/
|
|
63
56
|
readonly regions?: string[];
|
|
64
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Represents an integration test case
|
|
60
|
+
*/
|
|
61
|
+
export interface TestCase extends TestOptions {
|
|
62
|
+
/**
|
|
63
|
+
* Stacks that should be tested as part of this test case
|
|
64
|
+
* The stackNames will be passed as args to the cdk commands
|
|
65
|
+
* so dependent stacks will be automatically deployed unless
|
|
66
|
+
* `exclusively` is passed
|
|
67
|
+
*/
|
|
68
|
+
readonly stacks: string[];
|
|
69
|
+
}
|
|
65
70
|
/**
|
|
66
71
|
* Commands to run at predefined points during the
|
|
67
72
|
* integration test workflow
|