@aws-sdk/client-ecr 3.42.0 → 3.46.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/CHANGELOG.md +47 -0
- package/dist-cjs/ECR.js +90 -0
- package/dist-cjs/commands/BatchGetRepositoryScanningConfigurationCommand.js +36 -0
- package/dist-cjs/commands/CreatePullThroughCacheRuleCommand.js +36 -0
- package/dist-cjs/commands/DeletePullThroughCacheRuleCommand.js +36 -0
- package/dist-cjs/commands/DescribePullThroughCacheRulesCommand.js +36 -0
- package/dist-cjs/commands/GetRegistryScanningConfigurationCommand.js +36 -0
- package/dist-cjs/commands/PutRegistryScanningConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoints.js +10 -0
- package/dist-cjs/models/models_0.js +238 -15
- package/dist-cjs/pagination/DescribePullThroughCacheRulesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1070 -16
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/ECR.js +90 -0
- package/dist-es/commands/BatchGetRepositoryScanningConfigurationCommand.js +39 -0
- package/dist-es/commands/CreatePullThroughCacheRuleCommand.js +39 -0
- package/dist-es/commands/DeletePullThroughCacheRuleCommand.js +39 -0
- package/dist-es/commands/DescribePullThroughCacheRulesCommand.js +39 -0
- package/dist-es/commands/GetRegistryScanningConfigurationCommand.js +39 -0
- package/dist-es/commands/PutRegistryScanningConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoints.js +10 -0
- package/dist-es/models/models_0.js +164 -8
- package/dist-es/pagination/DescribePullThroughCacheRulesPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +1204 -120
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/ECR.d.ts +43 -0
- package/dist-types/ECRClient.d.ts +8 -2
- package/dist-types/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/CreatePullThroughCacheRuleCommand.d.ts +36 -0
- package/dist-types/commands/DeletePullThroughCacheRuleCommand.d.ts +35 -0
- package/dist-types/commands/DescribePullThroughCacheRulesCommand.d.ts +35 -0
- package/dist-types/commands/GetRegistryScanningConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/PutRegistryScanningConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +984 -157
- package/dist-types/pagination/DescribePullThroughCacheRulesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/ECR.d.ts +30 -0
- package/dist-types/ts3.4/ECRClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreatePullThroughCacheRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeletePullThroughCacheRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribePullThroughCacheRulesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRegistryScanningConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutRegistryScanningConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +488 -24
- package/dist-types/ts3.4/pagination/DescribePullThroughCacheRulesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +18 -0
- package/package.json +37 -44
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_json1_1BatchCheckLayerAvailabilityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var headers, body;
|
|
6
6
|
return __generator(this, function (_a) {
|
|
@@ -34,6 +34,17 @@ export var serializeAws_json1_1BatchGetImageCommand = function (input, context)
|
|
|
34
34
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
|
+
export var serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
38
|
+
var headers, body;
|
|
39
|
+
return __generator(this, function (_a) {
|
|
40
|
+
headers = {
|
|
41
|
+
"content-type": "application/x-amz-json-1.1",
|
|
42
|
+
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchGetRepositoryScanningConfiguration",
|
|
43
|
+
};
|
|
44
|
+
body = JSON.stringify(serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest(input, context));
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
|
+
});
|
|
47
|
+
}); };
|
|
37
48
|
export var serializeAws_json1_1CompleteLayerUploadCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
38
49
|
var headers, body;
|
|
39
50
|
return __generator(this, function (_a) {
|
|
@@ -45,6 +56,17 @@ export var serializeAws_json1_1CompleteLayerUploadCommand = function (input, con
|
|
|
45
56
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
57
|
});
|
|
47
58
|
}); };
|
|
59
|
+
export var serializeAws_json1_1CreatePullThroughCacheRuleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
60
|
+
var headers, body;
|
|
61
|
+
return __generator(this, function (_a) {
|
|
62
|
+
headers = {
|
|
63
|
+
"content-type": "application/x-amz-json-1.1",
|
|
64
|
+
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.CreatePullThroughCacheRule",
|
|
65
|
+
};
|
|
66
|
+
body = JSON.stringify(serializeAws_json1_1CreatePullThroughCacheRuleRequest(input, context));
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
|
+
});
|
|
69
|
+
}); };
|
|
48
70
|
export var serializeAws_json1_1CreateRepositoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
71
|
var headers, body;
|
|
50
72
|
return __generator(this, function (_a) {
|
|
@@ -67,6 +89,17 @@ export var serializeAws_json1_1DeleteLifecyclePolicyCommand = function (input, c
|
|
|
67
89
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
90
|
});
|
|
69
91
|
}); };
|
|
92
|
+
export var serializeAws_json1_1DeletePullThroughCacheRuleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
93
|
+
var headers, body;
|
|
94
|
+
return __generator(this, function (_a) {
|
|
95
|
+
headers = {
|
|
96
|
+
"content-type": "application/x-amz-json-1.1",
|
|
97
|
+
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule",
|
|
98
|
+
};
|
|
99
|
+
body = JSON.stringify(serializeAws_json1_1DeletePullThroughCacheRuleRequest(input, context));
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
|
+
});
|
|
102
|
+
}); };
|
|
70
103
|
export var serializeAws_json1_1DeleteRegistryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
71
104
|
var headers, body;
|
|
72
105
|
return __generator(this, function (_a) {
|
|
@@ -133,6 +166,17 @@ export var serializeAws_json1_1DescribeImageScanFindingsCommand = function (inpu
|
|
|
133
166
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
167
|
});
|
|
135
168
|
}); };
|
|
169
|
+
export var serializeAws_json1_1DescribePullThroughCacheRulesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
170
|
+
var headers, body;
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
headers = {
|
|
173
|
+
"content-type": "application/x-amz-json-1.1",
|
|
174
|
+
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribePullThroughCacheRules",
|
|
175
|
+
};
|
|
176
|
+
body = JSON.stringify(serializeAws_json1_1DescribePullThroughCacheRulesRequest(input, context));
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
|
+
});
|
|
179
|
+
}); };
|
|
136
180
|
export var serializeAws_json1_1DescribeRegistryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
137
181
|
var headers, body;
|
|
138
182
|
return __generator(this, function (_a) {
|
|
@@ -210,6 +254,17 @@ export var serializeAws_json1_1GetRegistryPolicyCommand = function (input, conte
|
|
|
210
254
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
255
|
});
|
|
212
256
|
}); };
|
|
257
|
+
export var serializeAws_json1_1GetRegistryScanningConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
258
|
+
var headers, body;
|
|
259
|
+
return __generator(this, function (_a) {
|
|
260
|
+
headers = {
|
|
261
|
+
"content-type": "application/x-amz-json-1.1",
|
|
262
|
+
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetRegistryScanningConfiguration",
|
|
263
|
+
};
|
|
264
|
+
body = JSON.stringify(serializeAws_json1_1GetRegistryScanningConfigurationRequest(input, context));
|
|
265
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
266
|
+
});
|
|
267
|
+
}); };
|
|
213
268
|
export var serializeAws_json1_1GetRepositoryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
214
269
|
var headers, body;
|
|
215
270
|
return __generator(this, function (_a) {
|
|
@@ -309,6 +364,17 @@ export var serializeAws_json1_1PutRegistryPolicyCommand = function (input, conte
|
|
|
309
364
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
310
365
|
});
|
|
311
366
|
}); };
|
|
367
|
+
export var serializeAws_json1_1PutRegistryScanningConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
368
|
+
var headers, body;
|
|
369
|
+
return __generator(this, function (_a) {
|
|
370
|
+
headers = {
|
|
371
|
+
"content-type": "application/x-amz-json-1.1",
|
|
372
|
+
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutRegistryScanningConfiguration",
|
|
373
|
+
};
|
|
374
|
+
body = JSON.stringify(serializeAws_json1_1PutRegistryScanningConfigurationRequest(input, context));
|
|
375
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
376
|
+
});
|
|
377
|
+
}); };
|
|
312
378
|
export var serializeAws_json1_1PutReplicationConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
313
379
|
var headers, body;
|
|
314
380
|
return __generator(this, function (_a) {
|
|
@@ -602,6 +668,86 @@ var deserializeAws_json1_1BatchGetImageCommandError = function (output, context)
|
|
|
602
668
|
}
|
|
603
669
|
});
|
|
604
670
|
}); };
|
|
671
|
+
export var deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
672
|
+
var data, contents, response;
|
|
673
|
+
return __generator(this, function (_a) {
|
|
674
|
+
switch (_a.label) {
|
|
675
|
+
case 0:
|
|
676
|
+
if (output.statusCode >= 300) {
|
|
677
|
+
return [2, deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError(output, context)];
|
|
678
|
+
}
|
|
679
|
+
return [4, parseBody(output.body, context)];
|
|
680
|
+
case 1:
|
|
681
|
+
data = _a.sent();
|
|
682
|
+
contents = {};
|
|
683
|
+
contents = deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse(data, context);
|
|
684
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
685
|
+
return [2, Promise.resolve(response)];
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
}); };
|
|
689
|
+
var deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
690
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
691
|
+
var _g;
|
|
692
|
+
return __generator(this, function (_h) {
|
|
693
|
+
switch (_h.label) {
|
|
694
|
+
case 0:
|
|
695
|
+
_a = [__assign({}, output)];
|
|
696
|
+
_g = {};
|
|
697
|
+
return [4, parseBody(output.body, context)];
|
|
698
|
+
case 1:
|
|
699
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
700
|
+
errorCode = "UnknownError";
|
|
701
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
|
+
_b = errorCode;
|
|
703
|
+
switch (_b) {
|
|
704
|
+
case "InvalidParameterException": return [3, 2];
|
|
705
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
706
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
707
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
708
|
+
case "ServerException": return [3, 6];
|
|
709
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
710
|
+
case "ValidationException": return [3, 8];
|
|
711
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 8];
|
|
712
|
+
}
|
|
713
|
+
return [3, 10];
|
|
714
|
+
case 2:
|
|
715
|
+
_c = [{}];
|
|
716
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
717
|
+
case 3:
|
|
718
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
719
|
+
return [3, 11];
|
|
720
|
+
case 4:
|
|
721
|
+
_d = [{}];
|
|
722
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
723
|
+
case 5:
|
|
724
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
725
|
+
return [3, 11];
|
|
726
|
+
case 6:
|
|
727
|
+
_e = [{}];
|
|
728
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
729
|
+
case 7:
|
|
730
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
731
|
+
return [3, 11];
|
|
732
|
+
case 8:
|
|
733
|
+
_f = [{}];
|
|
734
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
735
|
+
case 9:
|
|
736
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
737
|
+
return [3, 11];
|
|
738
|
+
case 10:
|
|
739
|
+
parsedBody = parsedOutput.body;
|
|
740
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
741
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
742
|
+
_h.label = 11;
|
|
743
|
+
case 11:
|
|
744
|
+
message = response.message || response.Message || errorCode;
|
|
745
|
+
response.message = message;
|
|
746
|
+
delete response.Message;
|
|
747
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
}); };
|
|
605
751
|
export var deserializeAws_json1_1CompleteLayerUploadCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
606
752
|
var data, contents, response;
|
|
607
753
|
return __generator(this, function (_a) {
|
|
@@ -722,6 +868,102 @@ var deserializeAws_json1_1CompleteLayerUploadCommandError = function (output, co
|
|
|
722
868
|
}
|
|
723
869
|
});
|
|
724
870
|
}); };
|
|
871
|
+
export var deserializeAws_json1_1CreatePullThroughCacheRuleCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
872
|
+
var data, contents, response;
|
|
873
|
+
return __generator(this, function (_a) {
|
|
874
|
+
switch (_a.label) {
|
|
875
|
+
case 0:
|
|
876
|
+
if (output.statusCode >= 300) {
|
|
877
|
+
return [2, deserializeAws_json1_1CreatePullThroughCacheRuleCommandError(output, context)];
|
|
878
|
+
}
|
|
879
|
+
return [4, parseBody(output.body, context)];
|
|
880
|
+
case 1:
|
|
881
|
+
data = _a.sent();
|
|
882
|
+
contents = {};
|
|
883
|
+
contents = deserializeAws_json1_1CreatePullThroughCacheRuleResponse(data, context);
|
|
884
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
885
|
+
return [2, Promise.resolve(response)];
|
|
886
|
+
}
|
|
887
|
+
});
|
|
888
|
+
}); };
|
|
889
|
+
var deserializeAws_json1_1CreatePullThroughCacheRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
890
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
891
|
+
var _j;
|
|
892
|
+
return __generator(this, function (_k) {
|
|
893
|
+
switch (_k.label) {
|
|
894
|
+
case 0:
|
|
895
|
+
_a = [__assign({}, output)];
|
|
896
|
+
_j = {};
|
|
897
|
+
return [4, parseBody(output.body, context)];
|
|
898
|
+
case 1:
|
|
899
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
900
|
+
errorCode = "UnknownError";
|
|
901
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
|
+
_b = errorCode;
|
|
903
|
+
switch (_b) {
|
|
904
|
+
case "InvalidParameterException": return [3, 2];
|
|
905
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
906
|
+
case "LimitExceededException": return [3, 4];
|
|
907
|
+
case "com.amazonaws.ecr#LimitExceededException": return [3, 4];
|
|
908
|
+
case "PullThroughCacheRuleAlreadyExistsException": return [3, 6];
|
|
909
|
+
case "com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException": return [3, 6];
|
|
910
|
+
case "ServerException": return [3, 8];
|
|
911
|
+
case "com.amazonaws.ecr#ServerException": return [3, 8];
|
|
912
|
+
case "UnsupportedUpstreamRegistryException": return [3, 10];
|
|
913
|
+
case "com.amazonaws.ecr#UnsupportedUpstreamRegistryException": return [3, 10];
|
|
914
|
+
case "ValidationException": return [3, 12];
|
|
915
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 12];
|
|
916
|
+
}
|
|
917
|
+
return [3, 14];
|
|
918
|
+
case 2:
|
|
919
|
+
_c = [{}];
|
|
920
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
921
|
+
case 3:
|
|
922
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
923
|
+
return [3, 15];
|
|
924
|
+
case 4:
|
|
925
|
+
_d = [{}];
|
|
926
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
927
|
+
case 5:
|
|
928
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
929
|
+
return [3, 15];
|
|
930
|
+
case 6:
|
|
931
|
+
_e = [{}];
|
|
932
|
+
return [4, deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
933
|
+
case 7:
|
|
934
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
935
|
+
return [3, 15];
|
|
936
|
+
case 8:
|
|
937
|
+
_f = [{}];
|
|
938
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
939
|
+
case 9:
|
|
940
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
941
|
+
return [3, 15];
|
|
942
|
+
case 10:
|
|
943
|
+
_g = [{}];
|
|
944
|
+
return [4, deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse(parsedOutput, context)];
|
|
945
|
+
case 11:
|
|
946
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
947
|
+
return [3, 15];
|
|
948
|
+
case 12:
|
|
949
|
+
_h = [{}];
|
|
950
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
951
|
+
case 13:
|
|
952
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
953
|
+
return [3, 15];
|
|
954
|
+
case 14:
|
|
955
|
+
parsedBody = parsedOutput.body;
|
|
956
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
957
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
958
|
+
_k.label = 15;
|
|
959
|
+
case 15:
|
|
960
|
+
message = response.message || response.Message || errorCode;
|
|
961
|
+
response.message = message;
|
|
962
|
+
delete response.Message;
|
|
963
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
}); };
|
|
725
967
|
export var deserializeAws_json1_1CreateRepositoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
726
968
|
var data, contents, response;
|
|
727
969
|
return __generator(this, function (_a) {
|
|
@@ -906,25 +1148,25 @@ var deserializeAws_json1_1DeleteLifecyclePolicyCommandError = function (output,
|
|
|
906
1148
|
}
|
|
907
1149
|
});
|
|
908
1150
|
}); };
|
|
909
|
-
export var
|
|
1151
|
+
export var deserializeAws_json1_1DeletePullThroughCacheRuleCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
910
1152
|
var data, contents, response;
|
|
911
1153
|
return __generator(this, function (_a) {
|
|
912
1154
|
switch (_a.label) {
|
|
913
1155
|
case 0:
|
|
914
1156
|
if (output.statusCode >= 300) {
|
|
915
|
-
return [2,
|
|
1157
|
+
return [2, deserializeAws_json1_1DeletePullThroughCacheRuleCommandError(output, context)];
|
|
916
1158
|
}
|
|
917
1159
|
return [4, parseBody(output.body, context)];
|
|
918
1160
|
case 1:
|
|
919
1161
|
data = _a.sent();
|
|
920
1162
|
contents = {};
|
|
921
|
-
contents =
|
|
1163
|
+
contents = deserializeAws_json1_1DeletePullThroughCacheRuleResponse(data, context);
|
|
922
1164
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
923
1165
|
return [2, Promise.resolve(response)];
|
|
924
1166
|
}
|
|
925
1167
|
});
|
|
926
1168
|
}); };
|
|
927
|
-
var
|
|
1169
|
+
var deserializeAws_json1_1DeletePullThroughCacheRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
928
1170
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
929
1171
|
var _g;
|
|
930
1172
|
return __generator(this, function (_h) {
|
|
@@ -941,8 +1183,8 @@ var deserializeAws_json1_1DeleteRegistryPolicyCommandError = function (output, c
|
|
|
941
1183
|
switch (_b) {
|
|
942
1184
|
case "InvalidParameterException": return [3, 2];
|
|
943
1185
|
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
944
|
-
case "
|
|
945
|
-
case "com.amazonaws.ecr#
|
|
1186
|
+
case "PullThroughCacheRuleNotFoundException": return [3, 4];
|
|
1187
|
+
case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException": return [3, 4];
|
|
946
1188
|
case "ServerException": return [3, 6];
|
|
947
1189
|
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
948
1190
|
case "ValidationException": return [3, 8];
|
|
@@ -957,7 +1199,7 @@ var deserializeAws_json1_1DeleteRegistryPolicyCommandError = function (output, c
|
|
|
957
1199
|
return [3, 11];
|
|
958
1200
|
case 4:
|
|
959
1201
|
_d = [{}];
|
|
960
|
-
return [4,
|
|
1202
|
+
return [4, deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(parsedOutput, context)];
|
|
961
1203
|
case 5:
|
|
962
1204
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
963
1205
|
return [3, 11];
|
|
@@ -986,62 +1228,142 @@ var deserializeAws_json1_1DeleteRegistryPolicyCommandError = function (output, c
|
|
|
986
1228
|
}
|
|
987
1229
|
});
|
|
988
1230
|
}); };
|
|
989
|
-
export var
|
|
1231
|
+
export var deserializeAws_json1_1DeleteRegistryPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
990
1232
|
var data, contents, response;
|
|
991
1233
|
return __generator(this, function (_a) {
|
|
992
1234
|
switch (_a.label) {
|
|
993
1235
|
case 0:
|
|
994
1236
|
if (output.statusCode >= 300) {
|
|
995
|
-
return [2,
|
|
1237
|
+
return [2, deserializeAws_json1_1DeleteRegistryPolicyCommandError(output, context)];
|
|
996
1238
|
}
|
|
997
1239
|
return [4, parseBody(output.body, context)];
|
|
998
1240
|
case 1:
|
|
999
1241
|
data = _a.sent();
|
|
1000
1242
|
contents = {};
|
|
1001
|
-
contents =
|
|
1243
|
+
contents = deserializeAws_json1_1DeleteRegistryPolicyResponse(data, context);
|
|
1002
1244
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1003
1245
|
return [2, Promise.resolve(response)];
|
|
1004
1246
|
}
|
|
1005
1247
|
});
|
|
1006
1248
|
}); };
|
|
1007
|
-
var
|
|
1008
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f,
|
|
1009
|
-
var
|
|
1010
|
-
return __generator(this, function (
|
|
1011
|
-
switch (
|
|
1249
|
+
var deserializeAws_json1_1DeleteRegistryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1250
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1251
|
+
var _g;
|
|
1252
|
+
return __generator(this, function (_h) {
|
|
1253
|
+
switch (_h.label) {
|
|
1012
1254
|
case 0:
|
|
1013
1255
|
_a = [__assign({}, output)];
|
|
1014
|
-
|
|
1256
|
+
_g = {};
|
|
1015
1257
|
return [4, parseBody(output.body, context)];
|
|
1016
1258
|
case 1:
|
|
1017
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1259
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1018
1260
|
errorCode = "UnknownError";
|
|
1019
1261
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
1262
|
_b = errorCode;
|
|
1021
1263
|
switch (_b) {
|
|
1022
1264
|
case "InvalidParameterException": return [3, 2];
|
|
1023
1265
|
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1024
|
-
case "
|
|
1025
|
-
case "com.amazonaws.ecr#
|
|
1026
|
-
case "
|
|
1027
|
-
case "com.amazonaws.ecr#
|
|
1028
|
-
case "
|
|
1029
|
-
case "com.amazonaws.ecr#
|
|
1030
|
-
case "ServerException": return [3, 10];
|
|
1031
|
-
case "com.amazonaws.ecr#ServerException": return [3, 10];
|
|
1266
|
+
case "RegistryPolicyNotFoundException": return [3, 4];
|
|
1267
|
+
case "com.amazonaws.ecr#RegistryPolicyNotFoundException": return [3, 4];
|
|
1268
|
+
case "ServerException": return [3, 6];
|
|
1269
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
1270
|
+
case "ValidationException": return [3, 8];
|
|
1271
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 8];
|
|
1032
1272
|
}
|
|
1033
|
-
return [3,
|
|
1273
|
+
return [3, 10];
|
|
1034
1274
|
case 2:
|
|
1035
1275
|
_c = [{}];
|
|
1036
1276
|
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1037
1277
|
case 3:
|
|
1038
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
1039
|
-
return [3,
|
|
1278
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1279
|
+
return [3, 11];
|
|
1040
1280
|
case 4:
|
|
1041
1281
|
_d = [{}];
|
|
1042
|
-
return [4,
|
|
1282
|
+
return [4, deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
1043
1283
|
case 5:
|
|
1044
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
1284
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1285
|
+
return [3, 11];
|
|
1286
|
+
case 6:
|
|
1287
|
+
_e = [{}];
|
|
1288
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1289
|
+
case 7:
|
|
1290
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1291
|
+
return [3, 11];
|
|
1292
|
+
case 8:
|
|
1293
|
+
_f = [{}];
|
|
1294
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1295
|
+
case 9:
|
|
1296
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1297
|
+
return [3, 11];
|
|
1298
|
+
case 10:
|
|
1299
|
+
parsedBody = parsedOutput.body;
|
|
1300
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1301
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1302
|
+
_h.label = 11;
|
|
1303
|
+
case 11:
|
|
1304
|
+
message = response.message || response.Message || errorCode;
|
|
1305
|
+
response.message = message;
|
|
1306
|
+
delete response.Message;
|
|
1307
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1308
|
+
}
|
|
1309
|
+
});
|
|
1310
|
+
}); };
|
|
1311
|
+
export var deserializeAws_json1_1DeleteRepositoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1312
|
+
var data, contents, response;
|
|
1313
|
+
return __generator(this, function (_a) {
|
|
1314
|
+
switch (_a.label) {
|
|
1315
|
+
case 0:
|
|
1316
|
+
if (output.statusCode >= 300) {
|
|
1317
|
+
return [2, deserializeAws_json1_1DeleteRepositoryCommandError(output, context)];
|
|
1318
|
+
}
|
|
1319
|
+
return [4, parseBody(output.body, context)];
|
|
1320
|
+
case 1:
|
|
1321
|
+
data = _a.sent();
|
|
1322
|
+
contents = {};
|
|
1323
|
+
contents = deserializeAws_json1_1DeleteRepositoryResponse(data, context);
|
|
1324
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1325
|
+
return [2, Promise.resolve(response)];
|
|
1326
|
+
}
|
|
1327
|
+
});
|
|
1328
|
+
}); };
|
|
1329
|
+
var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1330
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
1331
|
+
var _h;
|
|
1332
|
+
return __generator(this, function (_j) {
|
|
1333
|
+
switch (_j.label) {
|
|
1334
|
+
case 0:
|
|
1335
|
+
_a = [__assign({}, output)];
|
|
1336
|
+
_h = {};
|
|
1337
|
+
return [4, parseBody(output.body, context)];
|
|
1338
|
+
case 1:
|
|
1339
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1340
|
+
errorCode = "UnknownError";
|
|
1341
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1342
|
+
_b = errorCode;
|
|
1343
|
+
switch (_b) {
|
|
1344
|
+
case "InvalidParameterException": return [3, 2];
|
|
1345
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1346
|
+
case "KmsException": return [3, 4];
|
|
1347
|
+
case "com.amazonaws.ecr#KmsException": return [3, 4];
|
|
1348
|
+
case "RepositoryNotEmptyException": return [3, 6];
|
|
1349
|
+
case "com.amazonaws.ecr#RepositoryNotEmptyException": return [3, 6];
|
|
1350
|
+
case "RepositoryNotFoundException": return [3, 8];
|
|
1351
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 8];
|
|
1352
|
+
case "ServerException": return [3, 10];
|
|
1353
|
+
case "com.amazonaws.ecr#ServerException": return [3, 10];
|
|
1354
|
+
}
|
|
1355
|
+
return [3, 12];
|
|
1356
|
+
case 2:
|
|
1357
|
+
_c = [{}];
|
|
1358
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1359
|
+
case 3:
|
|
1360
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1361
|
+
return [3, 13];
|
|
1362
|
+
case 4:
|
|
1363
|
+
_d = [{}];
|
|
1364
|
+
return [4, deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)];
|
|
1365
|
+
case 5:
|
|
1366
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1045
1367
|
return [3, 13];
|
|
1046
1368
|
case 6:
|
|
1047
1369
|
_e = [{}];
|
|
@@ -1341,16 +1663,16 @@ export var deserializeAws_json1_1DescribeImageScanFindingsCommand = function (ou
|
|
|
1341
1663
|
});
|
|
1342
1664
|
}); };
|
|
1343
1665
|
var deserializeAws_json1_1DescribeImageScanFindingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1344
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
1345
|
-
var
|
|
1346
|
-
return __generator(this, function (
|
|
1347
|
-
switch (
|
|
1666
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1667
|
+
var _j;
|
|
1668
|
+
return __generator(this, function (_k) {
|
|
1669
|
+
switch (_k.label) {
|
|
1348
1670
|
case 0:
|
|
1349
1671
|
_a = [__assign({}, output)];
|
|
1350
|
-
|
|
1672
|
+
_j = {};
|
|
1351
1673
|
return [4, parseBody(output.body, context)];
|
|
1352
1674
|
case 1:
|
|
1353
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1675
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1354
1676
|
errorCode = "UnknownError";
|
|
1355
1677
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
1678
|
_b = errorCode;
|
|
@@ -1365,44 +1687,132 @@ var deserializeAws_json1_1DescribeImageScanFindingsCommandError = function (outp
|
|
|
1365
1687
|
case "com.amazonaws.ecr#ScanNotFoundException": return [3, 8];
|
|
1366
1688
|
case "ServerException": return [3, 10];
|
|
1367
1689
|
case "com.amazonaws.ecr#ServerException": return [3, 10];
|
|
1690
|
+
case "ValidationException": return [3, 12];
|
|
1691
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 12];
|
|
1368
1692
|
}
|
|
1369
|
-
return [3,
|
|
1693
|
+
return [3, 14];
|
|
1370
1694
|
case 2:
|
|
1371
1695
|
_c = [{}];
|
|
1372
1696
|
return [4, deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)];
|
|
1373
1697
|
case 3:
|
|
1374
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
1375
|
-
return [3,
|
|
1698
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1699
|
+
return [3, 15];
|
|
1376
1700
|
case 4:
|
|
1377
1701
|
_d = [{}];
|
|
1378
1702
|
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1379
1703
|
case 5:
|
|
1380
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
1381
|
-
return [3,
|
|
1704
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1705
|
+
return [3, 15];
|
|
1382
1706
|
case 6:
|
|
1383
1707
|
_e = [{}];
|
|
1384
1708
|
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1385
1709
|
case 7:
|
|
1386
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
1387
|
-
return [3,
|
|
1710
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1711
|
+
return [3, 15];
|
|
1388
1712
|
case 8:
|
|
1389
1713
|
_f = [{}];
|
|
1390
1714
|
return [4, deserializeAws_json1_1ScanNotFoundExceptionResponse(parsedOutput, context)];
|
|
1391
1715
|
case 9:
|
|
1392
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
1393
|
-
return [3,
|
|
1716
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1717
|
+
return [3, 15];
|
|
1394
1718
|
case 10:
|
|
1395
1719
|
_g = [{}];
|
|
1396
1720
|
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1397
1721
|
case 11:
|
|
1398
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
1399
|
-
return [3,
|
|
1722
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1723
|
+
return [3, 15];
|
|
1400
1724
|
case 12:
|
|
1725
|
+
_h = [{}];
|
|
1726
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1727
|
+
case 13:
|
|
1728
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1729
|
+
return [3, 15];
|
|
1730
|
+
case 14:
|
|
1401
1731
|
parsedBody = parsedOutput.body;
|
|
1402
1732
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1403
1733
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1404
|
-
|
|
1405
|
-
case
|
|
1734
|
+
_k.label = 15;
|
|
1735
|
+
case 15:
|
|
1736
|
+
message = response.message || response.Message || errorCode;
|
|
1737
|
+
response.message = message;
|
|
1738
|
+
delete response.Message;
|
|
1739
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1740
|
+
}
|
|
1741
|
+
});
|
|
1742
|
+
}); };
|
|
1743
|
+
export var deserializeAws_json1_1DescribePullThroughCacheRulesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1744
|
+
var data, contents, response;
|
|
1745
|
+
return __generator(this, function (_a) {
|
|
1746
|
+
switch (_a.label) {
|
|
1747
|
+
case 0:
|
|
1748
|
+
if (output.statusCode >= 300) {
|
|
1749
|
+
return [2, deserializeAws_json1_1DescribePullThroughCacheRulesCommandError(output, context)];
|
|
1750
|
+
}
|
|
1751
|
+
return [4, parseBody(output.body, context)];
|
|
1752
|
+
case 1:
|
|
1753
|
+
data = _a.sent();
|
|
1754
|
+
contents = {};
|
|
1755
|
+
contents = deserializeAws_json1_1DescribePullThroughCacheRulesResponse(data, context);
|
|
1756
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1757
|
+
return [2, Promise.resolve(response)];
|
|
1758
|
+
}
|
|
1759
|
+
});
|
|
1760
|
+
}); };
|
|
1761
|
+
var deserializeAws_json1_1DescribePullThroughCacheRulesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1762
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1763
|
+
var _g;
|
|
1764
|
+
return __generator(this, function (_h) {
|
|
1765
|
+
switch (_h.label) {
|
|
1766
|
+
case 0:
|
|
1767
|
+
_a = [__assign({}, output)];
|
|
1768
|
+
_g = {};
|
|
1769
|
+
return [4, parseBody(output.body, context)];
|
|
1770
|
+
case 1:
|
|
1771
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1772
|
+
errorCode = "UnknownError";
|
|
1773
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
|
+
_b = errorCode;
|
|
1775
|
+
switch (_b) {
|
|
1776
|
+
case "InvalidParameterException": return [3, 2];
|
|
1777
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1778
|
+
case "PullThroughCacheRuleNotFoundException": return [3, 4];
|
|
1779
|
+
case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException": return [3, 4];
|
|
1780
|
+
case "ServerException": return [3, 6];
|
|
1781
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
1782
|
+
case "ValidationException": return [3, 8];
|
|
1783
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 8];
|
|
1784
|
+
}
|
|
1785
|
+
return [3, 10];
|
|
1786
|
+
case 2:
|
|
1787
|
+
_c = [{}];
|
|
1788
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1789
|
+
case 3:
|
|
1790
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1791
|
+
return [3, 11];
|
|
1792
|
+
case 4:
|
|
1793
|
+
_d = [{}];
|
|
1794
|
+
return [4, deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(parsedOutput, context)];
|
|
1795
|
+
case 5:
|
|
1796
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1797
|
+
return [3, 11];
|
|
1798
|
+
case 6:
|
|
1799
|
+
_e = [{}];
|
|
1800
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1801
|
+
case 7:
|
|
1802
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1803
|
+
return [3, 11];
|
|
1804
|
+
case 8:
|
|
1805
|
+
_f = [{}];
|
|
1806
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1807
|
+
case 9:
|
|
1808
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1809
|
+
return [3, 11];
|
|
1810
|
+
case 10:
|
|
1811
|
+
parsedBody = parsedOutput.body;
|
|
1812
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1813
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1814
|
+
_h.label = 11;
|
|
1815
|
+
case 11:
|
|
1406
1816
|
message = response.message || response.Message || errorCode;
|
|
1407
1817
|
response.message = message;
|
|
1408
1818
|
delete response.Message;
|
|
@@ -1946,79 +2356,71 @@ var deserializeAws_json1_1GetRegistryPolicyCommandError = function (output, cont
|
|
|
1946
2356
|
}
|
|
1947
2357
|
});
|
|
1948
2358
|
}); };
|
|
1949
|
-
export var
|
|
2359
|
+
export var deserializeAws_json1_1GetRegistryScanningConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1950
2360
|
var data, contents, response;
|
|
1951
2361
|
return __generator(this, function (_a) {
|
|
1952
2362
|
switch (_a.label) {
|
|
1953
2363
|
case 0:
|
|
1954
2364
|
if (output.statusCode >= 300) {
|
|
1955
|
-
return [2,
|
|
2365
|
+
return [2, deserializeAws_json1_1GetRegistryScanningConfigurationCommandError(output, context)];
|
|
1956
2366
|
}
|
|
1957
2367
|
return [4, parseBody(output.body, context)];
|
|
1958
2368
|
case 1:
|
|
1959
2369
|
data = _a.sent();
|
|
1960
2370
|
contents = {};
|
|
1961
|
-
contents =
|
|
2371
|
+
contents = deserializeAws_json1_1GetRegistryScanningConfigurationResponse(data, context);
|
|
1962
2372
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1963
2373
|
return [2, Promise.resolve(response)];
|
|
1964
2374
|
}
|
|
1965
2375
|
});
|
|
1966
2376
|
}); };
|
|
1967
|
-
var
|
|
1968
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e,
|
|
1969
|
-
var
|
|
1970
|
-
return __generator(this, function (
|
|
1971
|
-
switch (
|
|
2377
|
+
var deserializeAws_json1_1GetRegistryScanningConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2378
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
2379
|
+
var _f;
|
|
2380
|
+
return __generator(this, function (_g) {
|
|
2381
|
+
switch (_g.label) {
|
|
1972
2382
|
case 0:
|
|
1973
2383
|
_a = [__assign({}, output)];
|
|
1974
|
-
|
|
2384
|
+
_f = {};
|
|
1975
2385
|
return [4, parseBody(output.body, context)];
|
|
1976
2386
|
case 1:
|
|
1977
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2387
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1978
2388
|
errorCode = "UnknownError";
|
|
1979
2389
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1980
2390
|
_b = errorCode;
|
|
1981
2391
|
switch (_b) {
|
|
1982
2392
|
case "InvalidParameterException": return [3, 2];
|
|
1983
2393
|
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1984
|
-
case "
|
|
1985
|
-
case "com.amazonaws.ecr#
|
|
1986
|
-
case "
|
|
1987
|
-
case "com.amazonaws.ecr#
|
|
1988
|
-
case "ServerException": return [3, 8];
|
|
1989
|
-
case "com.amazonaws.ecr#ServerException": return [3, 8];
|
|
2394
|
+
case "ServerException": return [3, 4];
|
|
2395
|
+
case "com.amazonaws.ecr#ServerException": return [3, 4];
|
|
2396
|
+
case "ValidationException": return [3, 6];
|
|
2397
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 6];
|
|
1990
2398
|
}
|
|
1991
|
-
return [3,
|
|
2399
|
+
return [3, 8];
|
|
1992
2400
|
case 2:
|
|
1993
2401
|
_c = [{}];
|
|
1994
2402
|
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1995
2403
|
case 3:
|
|
1996
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
1997
|
-
return [3,
|
|
2404
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2405
|
+
return [3, 9];
|
|
1998
2406
|
case 4:
|
|
1999
2407
|
_d = [{}];
|
|
2000
|
-
return [4,
|
|
2408
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2001
2409
|
case 5:
|
|
2002
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
2003
|
-
return [3,
|
|
2410
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2411
|
+
return [3, 9];
|
|
2004
2412
|
case 6:
|
|
2005
2413
|
_e = [{}];
|
|
2006
|
-
return [4,
|
|
2414
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2007
2415
|
case 7:
|
|
2008
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
2009
|
-
return [3,
|
|
2416
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2417
|
+
return [3, 9];
|
|
2010
2418
|
case 8:
|
|
2011
|
-
_f = [{}];
|
|
2012
|
-
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2013
|
-
case 9:
|
|
2014
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2015
|
-
return [3, 11];
|
|
2016
|
-
case 10:
|
|
2017
2419
|
parsedBody = parsedOutput.body;
|
|
2018
2420
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2019
2421
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2020
|
-
|
|
2021
|
-
case
|
|
2422
|
+
_g.label = 9;
|
|
2423
|
+
case 9:
|
|
2022
2424
|
message = response.message || response.Message || errorCode;
|
|
2023
2425
|
response.message = message;
|
|
2024
2426
|
delete response.Message;
|
|
@@ -2026,7 +2428,87 @@ var deserializeAws_json1_1GetRepositoryPolicyCommandError = function (output, co
|
|
|
2026
2428
|
}
|
|
2027
2429
|
});
|
|
2028
2430
|
}); };
|
|
2029
|
-
export var
|
|
2431
|
+
export var deserializeAws_json1_1GetRepositoryPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2432
|
+
var data, contents, response;
|
|
2433
|
+
return __generator(this, function (_a) {
|
|
2434
|
+
switch (_a.label) {
|
|
2435
|
+
case 0:
|
|
2436
|
+
if (output.statusCode >= 300) {
|
|
2437
|
+
return [2, deserializeAws_json1_1GetRepositoryPolicyCommandError(output, context)];
|
|
2438
|
+
}
|
|
2439
|
+
return [4, parseBody(output.body, context)];
|
|
2440
|
+
case 1:
|
|
2441
|
+
data = _a.sent();
|
|
2442
|
+
contents = {};
|
|
2443
|
+
contents = deserializeAws_json1_1GetRepositoryPolicyResponse(data, context);
|
|
2444
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2445
|
+
return [2, Promise.resolve(response)];
|
|
2446
|
+
}
|
|
2447
|
+
});
|
|
2448
|
+
}); };
|
|
2449
|
+
var deserializeAws_json1_1GetRepositoryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2450
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2451
|
+
var _g;
|
|
2452
|
+
return __generator(this, function (_h) {
|
|
2453
|
+
switch (_h.label) {
|
|
2454
|
+
case 0:
|
|
2455
|
+
_a = [__assign({}, output)];
|
|
2456
|
+
_g = {};
|
|
2457
|
+
return [4, parseBody(output.body, context)];
|
|
2458
|
+
case 1:
|
|
2459
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2460
|
+
errorCode = "UnknownError";
|
|
2461
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2462
|
+
_b = errorCode;
|
|
2463
|
+
switch (_b) {
|
|
2464
|
+
case "InvalidParameterException": return [3, 2];
|
|
2465
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
2466
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
2467
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
2468
|
+
case "RepositoryPolicyNotFoundException": return [3, 6];
|
|
2469
|
+
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException": return [3, 6];
|
|
2470
|
+
case "ServerException": return [3, 8];
|
|
2471
|
+
case "com.amazonaws.ecr#ServerException": return [3, 8];
|
|
2472
|
+
}
|
|
2473
|
+
return [3, 10];
|
|
2474
|
+
case 2:
|
|
2475
|
+
_c = [{}];
|
|
2476
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2477
|
+
case 3:
|
|
2478
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2479
|
+
return [3, 11];
|
|
2480
|
+
case 4:
|
|
2481
|
+
_d = [{}];
|
|
2482
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2483
|
+
case 5:
|
|
2484
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2485
|
+
return [3, 11];
|
|
2486
|
+
case 6:
|
|
2487
|
+
_e = [{}];
|
|
2488
|
+
return [4, deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
2489
|
+
case 7:
|
|
2490
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2491
|
+
return [3, 11];
|
|
2492
|
+
case 8:
|
|
2493
|
+
_f = [{}];
|
|
2494
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2495
|
+
case 9:
|
|
2496
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2497
|
+
return [3, 11];
|
|
2498
|
+
case 10:
|
|
2499
|
+
parsedBody = parsedOutput.body;
|
|
2500
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2501
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2502
|
+
_h.label = 11;
|
|
2503
|
+
case 11:
|
|
2504
|
+
message = response.message || response.Message || errorCode;
|
|
2505
|
+
response.message = message;
|
|
2506
|
+
delete response.Message;
|
|
2507
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2508
|
+
}
|
|
2509
|
+
});
|
|
2510
|
+
}); };
|
|
2511
|
+
export var deserializeAws_json1_1InitiateLayerUploadCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2030
2512
|
var data, contents, response;
|
|
2031
2513
|
return __generator(this, function (_a) {
|
|
2032
2514
|
switch (_a.label) {
|
|
@@ -2397,16 +2879,16 @@ export var deserializeAws_json1_1PutImageScanningConfigurationCommand = function
|
|
|
2397
2879
|
});
|
|
2398
2880
|
}); };
|
|
2399
2881
|
var deserializeAws_json1_1PutImageScanningConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2400
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
2401
|
-
var
|
|
2402
|
-
return __generator(this, function (
|
|
2403
|
-
switch (
|
|
2882
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2883
|
+
var _g;
|
|
2884
|
+
return __generator(this, function (_h) {
|
|
2885
|
+
switch (_h.label) {
|
|
2404
2886
|
case 0:
|
|
2405
2887
|
_a = [__assign({}, output)];
|
|
2406
|
-
|
|
2888
|
+
_g = {};
|
|
2407
2889
|
return [4, parseBody(output.body, context)];
|
|
2408
2890
|
case 1:
|
|
2409
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2891
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2410
2892
|
errorCode = "UnknownError";
|
|
2411
2893
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2412
2894
|
_b = errorCode;
|
|
@@ -2417,32 +2899,40 @@ var deserializeAws_json1_1PutImageScanningConfigurationCommandError = function (
|
|
|
2417
2899
|
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
2418
2900
|
case "ServerException": return [3, 6];
|
|
2419
2901
|
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
2902
|
+
case "ValidationException": return [3, 8];
|
|
2903
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 8];
|
|
2420
2904
|
}
|
|
2421
|
-
return [3,
|
|
2905
|
+
return [3, 10];
|
|
2422
2906
|
case 2:
|
|
2423
2907
|
_c = [{}];
|
|
2424
2908
|
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2425
2909
|
case 3:
|
|
2426
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2427
|
-
return [3,
|
|
2910
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2911
|
+
return [3, 11];
|
|
2428
2912
|
case 4:
|
|
2429
2913
|
_d = [{}];
|
|
2430
2914
|
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2431
2915
|
case 5:
|
|
2432
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
2433
|
-
return [3,
|
|
2916
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2917
|
+
return [3, 11];
|
|
2434
2918
|
case 6:
|
|
2435
2919
|
_e = [{}];
|
|
2436
2920
|
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2437
2921
|
case 7:
|
|
2438
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
2439
|
-
return [3,
|
|
2922
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2923
|
+
return [3, 11];
|
|
2440
2924
|
case 8:
|
|
2925
|
+
_f = [{}];
|
|
2926
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2927
|
+
case 9:
|
|
2928
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2929
|
+
return [3, 11];
|
|
2930
|
+
case 10:
|
|
2441
2931
|
parsedBody = parsedOutput.body;
|
|
2442
2932
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2443
2933
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2444
|
-
|
|
2445
|
-
case
|
|
2934
|
+
_h.label = 11;
|
|
2935
|
+
case 11:
|
|
2446
2936
|
message = response.message || response.Message || errorCode;
|
|
2447
2937
|
response.message = message;
|
|
2448
2938
|
delete response.Message;
|
|
@@ -2666,6 +3156,78 @@ var deserializeAws_json1_1PutRegistryPolicyCommandError = function (output, cont
|
|
|
2666
3156
|
}
|
|
2667
3157
|
});
|
|
2668
3158
|
}); };
|
|
3159
|
+
export var deserializeAws_json1_1PutRegistryScanningConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3160
|
+
var data, contents, response;
|
|
3161
|
+
return __generator(this, function (_a) {
|
|
3162
|
+
switch (_a.label) {
|
|
3163
|
+
case 0:
|
|
3164
|
+
if (output.statusCode >= 300) {
|
|
3165
|
+
return [2, deserializeAws_json1_1PutRegistryScanningConfigurationCommandError(output, context)];
|
|
3166
|
+
}
|
|
3167
|
+
return [4, parseBody(output.body, context)];
|
|
3168
|
+
case 1:
|
|
3169
|
+
data = _a.sent();
|
|
3170
|
+
contents = {};
|
|
3171
|
+
contents = deserializeAws_json1_1PutRegistryScanningConfigurationResponse(data, context);
|
|
3172
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3173
|
+
return [2, Promise.resolve(response)];
|
|
3174
|
+
}
|
|
3175
|
+
});
|
|
3176
|
+
}); };
|
|
3177
|
+
var deserializeAws_json1_1PutRegistryScanningConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3178
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
3179
|
+
var _f;
|
|
3180
|
+
return __generator(this, function (_g) {
|
|
3181
|
+
switch (_g.label) {
|
|
3182
|
+
case 0:
|
|
3183
|
+
_a = [__assign({}, output)];
|
|
3184
|
+
_f = {};
|
|
3185
|
+
return [4, parseBody(output.body, context)];
|
|
3186
|
+
case 1:
|
|
3187
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3188
|
+
errorCode = "UnknownError";
|
|
3189
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3190
|
+
_b = errorCode;
|
|
3191
|
+
switch (_b) {
|
|
3192
|
+
case "InvalidParameterException": return [3, 2];
|
|
3193
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
3194
|
+
case "ServerException": return [3, 4];
|
|
3195
|
+
case "com.amazonaws.ecr#ServerException": return [3, 4];
|
|
3196
|
+
case "ValidationException": return [3, 6];
|
|
3197
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 6];
|
|
3198
|
+
}
|
|
3199
|
+
return [3, 8];
|
|
3200
|
+
case 2:
|
|
3201
|
+
_c = [{}];
|
|
3202
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3203
|
+
case 3:
|
|
3204
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3205
|
+
return [3, 9];
|
|
3206
|
+
case 4:
|
|
3207
|
+
_d = [{}];
|
|
3208
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
3209
|
+
case 5:
|
|
3210
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3211
|
+
return [3, 9];
|
|
3212
|
+
case 6:
|
|
3213
|
+
_e = [{}];
|
|
3214
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3215
|
+
case 7:
|
|
3216
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3217
|
+
return [3, 9];
|
|
3218
|
+
case 8:
|
|
3219
|
+
parsedBody = parsedOutput.body;
|
|
3220
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3221
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3222
|
+
_g.label = 9;
|
|
3223
|
+
case 9:
|
|
3224
|
+
message = response.message || response.Message || errorCode;
|
|
3225
|
+
response.message = message;
|
|
3226
|
+
delete response.Message;
|
|
3227
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3228
|
+
}
|
|
3229
|
+
});
|
|
3230
|
+
}); };
|
|
2669
3231
|
export var deserializeAws_json1_1PutReplicationConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2670
3232
|
var data, contents, response;
|
|
2671
3233
|
return __generator(this, function (_a) {
|
|
@@ -2829,16 +3391,16 @@ export var deserializeAws_json1_1StartImageScanCommand = function (output, conte
|
|
|
2829
3391
|
});
|
|
2830
3392
|
}); };
|
|
2831
3393
|
var deserializeAws_json1_1StartImageScanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2832
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
2833
|
-
var
|
|
2834
|
-
return __generator(this, function (
|
|
2835
|
-
switch (
|
|
3394
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
3395
|
+
var _k;
|
|
3396
|
+
return __generator(this, function (_l) {
|
|
3397
|
+
switch (_l.label) {
|
|
2836
3398
|
case 0:
|
|
2837
3399
|
_a = [__assign({}, output)];
|
|
2838
|
-
|
|
3400
|
+
_k = {};
|
|
2839
3401
|
return [4, parseBody(output.body, context)];
|
|
2840
3402
|
case 1:
|
|
2841
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3403
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2842
3404
|
errorCode = "UnknownError";
|
|
2843
3405
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2844
3406
|
_b = errorCode;
|
|
@@ -2855,50 +3417,58 @@ var deserializeAws_json1_1StartImageScanCommandError = function (output, context
|
|
|
2855
3417
|
case "com.amazonaws.ecr#ServerException": return [3, 10];
|
|
2856
3418
|
case "UnsupportedImageTypeException": return [3, 12];
|
|
2857
3419
|
case "com.amazonaws.ecr#UnsupportedImageTypeException": return [3, 12];
|
|
3420
|
+
case "ValidationException": return [3, 14];
|
|
3421
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 14];
|
|
2858
3422
|
}
|
|
2859
|
-
return [3,
|
|
3423
|
+
return [3, 16];
|
|
2860
3424
|
case 2:
|
|
2861
3425
|
_c = [{}];
|
|
2862
3426
|
return [4, deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)];
|
|
2863
3427
|
case 3:
|
|
2864
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2865
|
-
return [3,
|
|
3428
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3429
|
+
return [3, 17];
|
|
2866
3430
|
case 4:
|
|
2867
3431
|
_d = [{}];
|
|
2868
3432
|
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2869
3433
|
case 5:
|
|
2870
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
2871
|
-
return [3,
|
|
3434
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3435
|
+
return [3, 17];
|
|
2872
3436
|
case 6:
|
|
2873
3437
|
_e = [{}];
|
|
2874
3438
|
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2875
3439
|
case 7:
|
|
2876
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
2877
|
-
return [3,
|
|
3440
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3441
|
+
return [3, 17];
|
|
2878
3442
|
case 8:
|
|
2879
3443
|
_f = [{}];
|
|
2880
3444
|
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2881
3445
|
case 9:
|
|
2882
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
2883
|
-
return [3,
|
|
3446
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3447
|
+
return [3, 17];
|
|
2884
3448
|
case 10:
|
|
2885
3449
|
_g = [{}];
|
|
2886
3450
|
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2887
3451
|
case 11:
|
|
2888
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
2889
|
-
return [3,
|
|
3452
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3453
|
+
return [3, 17];
|
|
2890
3454
|
case 12:
|
|
2891
3455
|
_h = [{}];
|
|
2892
3456
|
return [4, deserializeAws_json1_1UnsupportedImageTypeExceptionResponse(parsedOutput, context)];
|
|
2893
3457
|
case 13:
|
|
2894
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(
|
|
2895
|
-
return [3,
|
|
3458
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3459
|
+
return [3, 17];
|
|
2896
3460
|
case 14:
|
|
3461
|
+
_j = [{}];
|
|
3462
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3463
|
+
case 15:
|
|
3464
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3465
|
+
return [3, 17];
|
|
3466
|
+
case 16:
|
|
2897
3467
|
parsedBody = parsedOutput.body;
|
|
2898
3468
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2899
3469
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2900
|
-
|
|
2901
|
-
case
|
|
3470
|
+
_l.label = 17;
|
|
3471
|
+
case 17:
|
|
2902
3472
|
message = response.message || response.Message || errorCode;
|
|
2903
3473
|
response.message = message;
|
|
2904
3474
|
delete response.Message;
|
|
@@ -3436,6 +4006,24 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
3436
4006
|
return [2, contents];
|
|
3437
4007
|
});
|
|
3438
4008
|
}); };
|
|
4009
|
+
var deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4010
|
+
var body, deserialized, contents;
|
|
4011
|
+
return __generator(this, function (_a) {
|
|
4012
|
+
body = parsedOutput.body;
|
|
4013
|
+
deserialized = deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException(body, context);
|
|
4014
|
+
contents = __assign({ name: "PullThroughCacheRuleAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
4015
|
+
return [2, contents];
|
|
4016
|
+
});
|
|
4017
|
+
}); };
|
|
4018
|
+
var deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4019
|
+
var body, deserialized, contents;
|
|
4020
|
+
return __generator(this, function (_a) {
|
|
4021
|
+
body = parsedOutput.body;
|
|
4022
|
+
deserialized = deserializeAws_json1_1PullThroughCacheRuleNotFoundException(body, context);
|
|
4023
|
+
contents = __assign({ name: "PullThroughCacheRuleNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
4024
|
+
return [2, contents];
|
|
4025
|
+
});
|
|
4026
|
+
}); };
|
|
3439
4027
|
var deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3440
4028
|
var body, deserialized, contents;
|
|
3441
4029
|
return __generator(this, function (_a) {
|
|
@@ -3526,6 +4114,15 @@ var deserializeAws_json1_1UnsupportedImageTypeExceptionResponse = function (pars
|
|
|
3526
4114
|
return [2, contents];
|
|
3527
4115
|
});
|
|
3528
4116
|
}); };
|
|
4117
|
+
var deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4118
|
+
var body, deserialized, contents;
|
|
4119
|
+
return __generator(this, function (_a) {
|
|
4120
|
+
body = parsedOutput.body;
|
|
4121
|
+
deserialized = deserializeAws_json1_1UnsupportedUpstreamRegistryException(body, context);
|
|
4122
|
+
contents = __assign({ name: "UnsupportedUpstreamRegistryException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
4123
|
+
return [2, contents];
|
|
4124
|
+
});
|
|
4125
|
+
}); };
|
|
3529
4126
|
var deserializeAws_json1_1UploadNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3530
4127
|
var body, deserialized, contents;
|
|
3531
4128
|
return __generator(this, function (_a) {
|
|
@@ -3574,6 +4171,12 @@ var serializeAws_json1_1BatchGetImageRequest = function (input, context) {
|
|
|
3574
4171
|
input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
|
|
3575
4172
|
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
3576
4173
|
};
|
|
4174
|
+
var serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest = function (input, context) {
|
|
4175
|
+
return __assign({}, (input.repositoryNames !== undefined &&
|
|
4176
|
+
input.repositoryNames !== null && {
|
|
4177
|
+
repositoryNames: serializeAws_json1_1ScanningConfigurationRepositoryNameList(input.repositoryNames, context),
|
|
4178
|
+
}));
|
|
4179
|
+
};
|
|
3577
4180
|
var serializeAws_json1_1CompleteLayerUploadRequest = function (input, context) {
|
|
3578
4181
|
return __assign(__assign(__assign(__assign({}, (input.layerDigests !== undefined &&
|
|
3579
4182
|
input.layerDigests !== null && {
|
|
@@ -3581,6 +4184,11 @@ var serializeAws_json1_1CompleteLayerUploadRequest = function (input, context) {
|
|
|
3581
4184
|
})), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
|
|
3582
4185
|
input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }));
|
|
3583
4186
|
};
|
|
4187
|
+
var serializeAws_json1_1CreatePullThroughCacheRuleRequest = function (input, context) {
|
|
4188
|
+
return __assign(__assign(__assign({}, (input.ecrRepositoryPrefix !== undefined &&
|
|
4189
|
+
input.ecrRepositoryPrefix !== null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.upstreamRegistryUrl !== undefined &&
|
|
4190
|
+
input.upstreamRegistryUrl !== null && { upstreamRegistryUrl: input.upstreamRegistryUrl }));
|
|
4191
|
+
};
|
|
3584
4192
|
var serializeAws_json1_1CreateRepositoryRequest = function (input, context) {
|
|
3585
4193
|
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.encryptionConfiguration !== undefined &&
|
|
3586
4194
|
input.encryptionConfiguration !== null && {
|
|
@@ -3596,6 +4204,10 @@ var serializeAws_json1_1DeleteLifecyclePolicyRequest = function (input, context)
|
|
|
3596
4204
|
return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
|
|
3597
4205
|
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
3598
4206
|
};
|
|
4207
|
+
var serializeAws_json1_1DeletePullThroughCacheRuleRequest = function (input, context) {
|
|
4208
|
+
return __assign(__assign({}, (input.ecrRepositoryPrefix !== undefined &&
|
|
4209
|
+
input.ecrRepositoryPrefix !== null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }));
|
|
4210
|
+
};
|
|
3599
4211
|
var serializeAws_json1_1DeleteRegistryPolicyRequest = function (input, context) {
|
|
3600
4212
|
return {};
|
|
3601
4213
|
};
|
|
@@ -3626,6 +4238,12 @@ var serializeAws_json1_1DescribeImagesRequest = function (input, context) {
|
|
|
3626
4238
|
input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
|
|
3627
4239
|
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
3628
4240
|
};
|
|
4241
|
+
var serializeAws_json1_1DescribePullThroughCacheRulesRequest = function (input, context) {
|
|
4242
|
+
return __assign(__assign(__assign(__assign({}, (input.ecrRepositoryPrefixes !== undefined &&
|
|
4243
|
+
input.ecrRepositoryPrefixes !== null && {
|
|
4244
|
+
ecrRepositoryPrefixes: serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList(input.ecrRepositoryPrefixes, context),
|
|
4245
|
+
})), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }));
|
|
4246
|
+
};
|
|
3629
4247
|
var serializeAws_json1_1DescribeRegistryRequest = function (input, context) {
|
|
3630
4248
|
return {};
|
|
3631
4249
|
};
|
|
@@ -3672,6 +4290,9 @@ var serializeAws_json1_1GetLifecyclePolicyRequest = function (input, context) {
|
|
|
3672
4290
|
var serializeAws_json1_1GetRegistryPolicyRequest = function (input, context) {
|
|
3673
4291
|
return {};
|
|
3674
4292
|
};
|
|
4293
|
+
var serializeAws_json1_1GetRegistryScanningConfigurationRequest = function (input, context) {
|
|
4294
|
+
return {};
|
|
4295
|
+
};
|
|
3675
4296
|
var serializeAws_json1_1GetRepositoryPolicyRequest = function (input, context) {
|
|
3676
4297
|
return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
|
|
3677
4298
|
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
@@ -3730,6 +4351,16 @@ var serializeAws_json1_1MediaTypeList = function (input, context) {
|
|
|
3730
4351
|
return entry;
|
|
3731
4352
|
});
|
|
3732
4353
|
};
|
|
4354
|
+
var serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList = function (input, context) {
|
|
4355
|
+
return input
|
|
4356
|
+
.filter(function (e) { return e != null; })
|
|
4357
|
+
.map(function (entry) {
|
|
4358
|
+
if (entry === null) {
|
|
4359
|
+
return null;
|
|
4360
|
+
}
|
|
4361
|
+
return entry;
|
|
4362
|
+
});
|
|
4363
|
+
};
|
|
3733
4364
|
var serializeAws_json1_1PutImageRequest = function (input, context) {
|
|
3734
4365
|
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest })), (input.imageManifest !== undefined && input.imageManifest !== null && { imageManifest: input.imageManifest })), (input.imageManifestMediaType !== undefined &&
|
|
3735
4366
|
input.imageManifestMediaType !== null && { imageManifestMediaType: input.imageManifestMediaType })), (input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
|
|
@@ -3755,12 +4386,32 @@ var serializeAws_json1_1PutLifecyclePolicyRequest = function (input, context) {
|
|
|
3755
4386
|
var serializeAws_json1_1PutRegistryPolicyRequest = function (input, context) {
|
|
3756
4387
|
return __assign({}, (input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText }));
|
|
3757
4388
|
};
|
|
4389
|
+
var serializeAws_json1_1PutRegistryScanningConfigurationRequest = function (input, context) {
|
|
4390
|
+
return __assign(__assign({}, (input.rules !== undefined &&
|
|
4391
|
+
input.rules !== null && { rules: serializeAws_json1_1RegistryScanningRuleList(input.rules, context) })), (input.scanType !== undefined && input.scanType !== null && { scanType: input.scanType }));
|
|
4392
|
+
};
|
|
3758
4393
|
var serializeAws_json1_1PutReplicationConfigurationRequest = function (input, context) {
|
|
3759
4394
|
return __assign({}, (input.replicationConfiguration !== undefined &&
|
|
3760
4395
|
input.replicationConfiguration !== null && {
|
|
3761
4396
|
replicationConfiguration: serializeAws_json1_1ReplicationConfiguration(input.replicationConfiguration, context),
|
|
3762
4397
|
}));
|
|
3763
4398
|
};
|
|
4399
|
+
var serializeAws_json1_1RegistryScanningRule = function (input, context) {
|
|
4400
|
+
return __assign(__assign({}, (input.repositoryFilters !== undefined &&
|
|
4401
|
+
input.repositoryFilters !== null && {
|
|
4402
|
+
repositoryFilters: serializeAws_json1_1ScanningRepositoryFilterList(input.repositoryFilters, context),
|
|
4403
|
+
})), (input.scanFrequency !== undefined && input.scanFrequency !== null && { scanFrequency: input.scanFrequency }));
|
|
4404
|
+
};
|
|
4405
|
+
var serializeAws_json1_1RegistryScanningRuleList = function (input, context) {
|
|
4406
|
+
return input
|
|
4407
|
+
.filter(function (e) { return e != null; })
|
|
4408
|
+
.map(function (entry) {
|
|
4409
|
+
if (entry === null) {
|
|
4410
|
+
return null;
|
|
4411
|
+
}
|
|
4412
|
+
return serializeAws_json1_1RegistryScanningRule(entry, context);
|
|
4413
|
+
});
|
|
4414
|
+
};
|
|
3764
4415
|
var serializeAws_json1_1ReplicationConfiguration = function (input, context) {
|
|
3765
4416
|
return __assign({}, (input.rules !== undefined &&
|
|
3766
4417
|
input.rules !== null && { rules: serializeAws_json1_1ReplicationRuleList(input.rules, context) }));
|
|
@@ -3820,6 +4471,29 @@ var serializeAws_json1_1RepositoryNameList = function (input, context) {
|
|
|
3820
4471
|
return entry;
|
|
3821
4472
|
});
|
|
3822
4473
|
};
|
|
4474
|
+
var serializeAws_json1_1ScanningConfigurationRepositoryNameList = function (input, context) {
|
|
4475
|
+
return input
|
|
4476
|
+
.filter(function (e) { return e != null; })
|
|
4477
|
+
.map(function (entry) {
|
|
4478
|
+
if (entry === null) {
|
|
4479
|
+
return null;
|
|
4480
|
+
}
|
|
4481
|
+
return entry;
|
|
4482
|
+
});
|
|
4483
|
+
};
|
|
4484
|
+
var serializeAws_json1_1ScanningRepositoryFilter = function (input, context) {
|
|
4485
|
+
return __assign(__assign({}, (input.filter !== undefined && input.filter !== null && { filter: input.filter })), (input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }));
|
|
4486
|
+
};
|
|
4487
|
+
var serializeAws_json1_1ScanningRepositoryFilterList = function (input, context) {
|
|
4488
|
+
return input
|
|
4489
|
+
.filter(function (e) { return e != null; })
|
|
4490
|
+
.map(function (entry) {
|
|
4491
|
+
if (entry === null) {
|
|
4492
|
+
return null;
|
|
4493
|
+
}
|
|
4494
|
+
return serializeAws_json1_1ScanningRepositoryFilter(entry, context);
|
|
4495
|
+
});
|
|
4496
|
+
};
|
|
3823
4497
|
var serializeAws_json1_1SetRepositoryPolicyRequest = function (input, context) {
|
|
3824
4498
|
return __assign(__assign(__assign(__assign({}, (input.force !== undefined && input.force !== null && { force: input.force })), (input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
|
|
3825
4499
|
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
@@ -3904,6 +4578,22 @@ var deserializeAws_json1_1AuthorizationDataList = function (output, context) {
|
|
|
3904
4578
|
return deserializeAws_json1_1AuthorizationData(entry, context);
|
|
3905
4579
|
});
|
|
3906
4580
|
};
|
|
4581
|
+
var deserializeAws_json1_1AwsEcrContainerImageDetails = function (output, context) {
|
|
4582
|
+
return {
|
|
4583
|
+
architecture: __expectString(output.architecture),
|
|
4584
|
+
author: __expectString(output.author),
|
|
4585
|
+
imageHash: __expectString(output.imageHash),
|
|
4586
|
+
imageTags: output.imageTags !== undefined && output.imageTags !== null
|
|
4587
|
+
? deserializeAws_json1_1ImageTagsList(output.imageTags, context)
|
|
4588
|
+
: undefined,
|
|
4589
|
+
platform: __expectString(output.platform),
|
|
4590
|
+
pushedAt: output.pushedAt !== undefined && output.pushedAt !== null
|
|
4591
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pushedAt)))
|
|
4592
|
+
: undefined,
|
|
4593
|
+
registry: __expectString(output.registry),
|
|
4594
|
+
repositoryName: __expectString(output.repositoryName),
|
|
4595
|
+
};
|
|
4596
|
+
};
|
|
3907
4597
|
var deserializeAws_json1_1BatchCheckLayerAvailabilityResponse = function (output, context) {
|
|
3908
4598
|
return {
|
|
3909
4599
|
failures: output.failures !== undefined && output.failures !== null
|
|
@@ -3934,6 +4624,16 @@ var deserializeAws_json1_1BatchGetImageResponse = function (output, context) {
|
|
|
3934
4624
|
: undefined,
|
|
3935
4625
|
};
|
|
3936
4626
|
};
|
|
4627
|
+
var deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse = function (output, context) {
|
|
4628
|
+
return {
|
|
4629
|
+
failures: output.failures !== undefined && output.failures !== null
|
|
4630
|
+
? deserializeAws_json1_1RepositoryScanningConfigurationFailureList(output.failures, context)
|
|
4631
|
+
: undefined,
|
|
4632
|
+
scanningConfigurations: output.scanningConfigurations !== undefined && output.scanningConfigurations !== null
|
|
4633
|
+
? deserializeAws_json1_1RepositoryScanningConfigurationList(output.scanningConfigurations, context)
|
|
4634
|
+
: undefined,
|
|
4635
|
+
};
|
|
4636
|
+
};
|
|
3937
4637
|
var deserializeAws_json1_1CompleteLayerUploadResponse = function (output, context) {
|
|
3938
4638
|
return {
|
|
3939
4639
|
layerDigest: __expectString(output.layerDigest),
|
|
@@ -3942,6 +4642,16 @@ var deserializeAws_json1_1CompleteLayerUploadResponse = function (output, contex
|
|
|
3942
4642
|
uploadId: __expectString(output.uploadId),
|
|
3943
4643
|
};
|
|
3944
4644
|
};
|
|
4645
|
+
var deserializeAws_json1_1CreatePullThroughCacheRuleResponse = function (output, context) {
|
|
4646
|
+
return {
|
|
4647
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4648
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
4649
|
+
: undefined,
|
|
4650
|
+
ecrRepositoryPrefix: __expectString(output.ecrRepositoryPrefix),
|
|
4651
|
+
registryId: __expectString(output.registryId),
|
|
4652
|
+
upstreamRegistryUrl: __expectString(output.upstreamRegistryUrl),
|
|
4653
|
+
};
|
|
4654
|
+
};
|
|
3945
4655
|
var deserializeAws_json1_1CreateRepositoryResponse = function (output, context) {
|
|
3946
4656
|
return {
|
|
3947
4657
|
repository: output.repository !== undefined && output.repository !== null
|
|
@@ -3949,6 +4659,51 @@ var deserializeAws_json1_1CreateRepositoryResponse = function (output, context)
|
|
|
3949
4659
|
: undefined,
|
|
3950
4660
|
};
|
|
3951
4661
|
};
|
|
4662
|
+
var deserializeAws_json1_1CvssScore = function (output, context) {
|
|
4663
|
+
return {
|
|
4664
|
+
baseScore: __limitedParseDouble(output.baseScore),
|
|
4665
|
+
scoringVector: __expectString(output.scoringVector),
|
|
4666
|
+
source: __expectString(output.source),
|
|
4667
|
+
version: __expectString(output.version),
|
|
4668
|
+
};
|
|
4669
|
+
};
|
|
4670
|
+
var deserializeAws_json1_1CvssScoreAdjustment = function (output, context) {
|
|
4671
|
+
return {
|
|
4672
|
+
metric: __expectString(output.metric),
|
|
4673
|
+
reason: __expectString(output.reason),
|
|
4674
|
+
};
|
|
4675
|
+
};
|
|
4676
|
+
var deserializeAws_json1_1CvssScoreAdjustmentList = function (output, context) {
|
|
4677
|
+
return (output || [])
|
|
4678
|
+
.filter(function (e) { return e != null; })
|
|
4679
|
+
.map(function (entry) {
|
|
4680
|
+
if (entry === null) {
|
|
4681
|
+
return null;
|
|
4682
|
+
}
|
|
4683
|
+
return deserializeAws_json1_1CvssScoreAdjustment(entry, context);
|
|
4684
|
+
});
|
|
4685
|
+
};
|
|
4686
|
+
var deserializeAws_json1_1CvssScoreDetails = function (output, context) {
|
|
4687
|
+
return {
|
|
4688
|
+
adjustments: output.adjustments !== undefined && output.adjustments !== null
|
|
4689
|
+
? deserializeAws_json1_1CvssScoreAdjustmentList(output.adjustments, context)
|
|
4690
|
+
: undefined,
|
|
4691
|
+
score: __limitedParseDouble(output.score),
|
|
4692
|
+
scoreSource: __expectString(output.scoreSource),
|
|
4693
|
+
scoringVector: __expectString(output.scoringVector),
|
|
4694
|
+
version: __expectString(output.version),
|
|
4695
|
+
};
|
|
4696
|
+
};
|
|
4697
|
+
var deserializeAws_json1_1CvssScoreList = function (output, context) {
|
|
4698
|
+
return (output || [])
|
|
4699
|
+
.filter(function (e) { return e != null; })
|
|
4700
|
+
.map(function (entry) {
|
|
4701
|
+
if (entry === null) {
|
|
4702
|
+
return null;
|
|
4703
|
+
}
|
|
4704
|
+
return deserializeAws_json1_1CvssScore(entry, context);
|
|
4705
|
+
});
|
|
4706
|
+
};
|
|
3952
4707
|
var deserializeAws_json1_1DeleteLifecyclePolicyResponse = function (output, context) {
|
|
3953
4708
|
return {
|
|
3954
4709
|
lastEvaluatedAt: output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null
|
|
@@ -3959,6 +4714,16 @@ var deserializeAws_json1_1DeleteLifecyclePolicyResponse = function (output, cont
|
|
|
3959
4714
|
repositoryName: __expectString(output.repositoryName),
|
|
3960
4715
|
};
|
|
3961
4716
|
};
|
|
4717
|
+
var deserializeAws_json1_1DeletePullThroughCacheRuleResponse = function (output, context) {
|
|
4718
|
+
return {
|
|
4719
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4720
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
4721
|
+
: undefined,
|
|
4722
|
+
ecrRepositoryPrefix: __expectString(output.ecrRepositoryPrefix),
|
|
4723
|
+
registryId: __expectString(output.registryId),
|
|
4724
|
+
upstreamRegistryUrl: __expectString(output.upstreamRegistryUrl),
|
|
4725
|
+
};
|
|
4726
|
+
};
|
|
3962
4727
|
var deserializeAws_json1_1DeleteRegistryPolicyResponse = function (output, context) {
|
|
3963
4728
|
return {
|
|
3964
4729
|
policyText: __expectString(output.policyText),
|
|
@@ -4014,6 +4779,14 @@ var deserializeAws_json1_1DescribeImagesResponse = function (output, context) {
|
|
|
4014
4779
|
nextToken: __expectString(output.nextToken),
|
|
4015
4780
|
};
|
|
4016
4781
|
};
|
|
4782
|
+
var deserializeAws_json1_1DescribePullThroughCacheRulesResponse = function (output, context) {
|
|
4783
|
+
return {
|
|
4784
|
+
nextToken: __expectString(output.nextToken),
|
|
4785
|
+
pullThroughCacheRules: output.pullThroughCacheRules !== undefined && output.pullThroughCacheRules !== null
|
|
4786
|
+
? deserializeAws_json1_1PullThroughCacheRuleList(output.pullThroughCacheRules, context)
|
|
4787
|
+
: undefined,
|
|
4788
|
+
};
|
|
4789
|
+
};
|
|
4017
4790
|
var deserializeAws_json1_1DescribeRegistryResponse = function (output, context) {
|
|
4018
4791
|
return {
|
|
4019
4792
|
registryId: __expectString(output.registryId),
|
|
@@ -4041,6 +4814,49 @@ var deserializeAws_json1_1EncryptionConfiguration = function (output, context) {
|
|
|
4041
4814
|
kmsKey: __expectString(output.kmsKey),
|
|
4042
4815
|
};
|
|
4043
4816
|
};
|
|
4817
|
+
var deserializeAws_json1_1EnhancedImageScanFinding = function (output, context) {
|
|
4818
|
+
return {
|
|
4819
|
+
awsAccountId: __expectString(output.awsAccountId),
|
|
4820
|
+
description: __expectString(output.description),
|
|
4821
|
+
findingArn: __expectString(output.findingArn),
|
|
4822
|
+
firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null
|
|
4823
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.firstObservedAt)))
|
|
4824
|
+
: undefined,
|
|
4825
|
+
lastObservedAt: output.lastObservedAt !== undefined && output.lastObservedAt !== null
|
|
4826
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastObservedAt)))
|
|
4827
|
+
: undefined,
|
|
4828
|
+
packageVulnerabilityDetails: output.packageVulnerabilityDetails !== undefined && output.packageVulnerabilityDetails !== null
|
|
4829
|
+
? deserializeAws_json1_1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
|
|
4830
|
+
: undefined,
|
|
4831
|
+
remediation: output.remediation !== undefined && output.remediation !== null
|
|
4832
|
+
? deserializeAws_json1_1Remediation(output.remediation, context)
|
|
4833
|
+
: undefined,
|
|
4834
|
+
resources: output.resources !== undefined && output.resources !== null
|
|
4835
|
+
? deserializeAws_json1_1ResourceList(output.resources, context)
|
|
4836
|
+
: undefined,
|
|
4837
|
+
score: __limitedParseDouble(output.score),
|
|
4838
|
+
scoreDetails: output.scoreDetails !== undefined && output.scoreDetails !== null
|
|
4839
|
+
? deserializeAws_json1_1ScoreDetails(output.scoreDetails, context)
|
|
4840
|
+
: undefined,
|
|
4841
|
+
severity: __expectString(output.severity),
|
|
4842
|
+
status: __expectString(output.status),
|
|
4843
|
+
title: __expectString(output.title),
|
|
4844
|
+
type: __expectString(output.type),
|
|
4845
|
+
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
4846
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
|
|
4847
|
+
: undefined,
|
|
4848
|
+
};
|
|
4849
|
+
};
|
|
4850
|
+
var deserializeAws_json1_1EnhancedImageScanFindingList = function (output, context) {
|
|
4851
|
+
return (output || [])
|
|
4852
|
+
.filter(function (e) { return e != null; })
|
|
4853
|
+
.map(function (entry) {
|
|
4854
|
+
if (entry === null) {
|
|
4855
|
+
return null;
|
|
4856
|
+
}
|
|
4857
|
+
return deserializeAws_json1_1EnhancedImageScanFinding(entry, context);
|
|
4858
|
+
});
|
|
4859
|
+
};
|
|
4044
4860
|
var deserializeAws_json1_1FindingSeverityCounts = function (output, context) {
|
|
4045
4861
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
4046
4862
|
var _b;
|
|
@@ -4095,6 +4911,14 @@ var deserializeAws_json1_1GetRegistryPolicyResponse = function (output, context)
|
|
|
4095
4911
|
registryId: __expectString(output.registryId),
|
|
4096
4912
|
};
|
|
4097
4913
|
};
|
|
4914
|
+
var deserializeAws_json1_1GetRegistryScanningConfigurationResponse = function (output, context) {
|
|
4915
|
+
return {
|
|
4916
|
+
registryId: __expectString(output.registryId),
|
|
4917
|
+
scanningConfiguration: output.scanningConfiguration !== undefined && output.scanningConfiguration !== null
|
|
4918
|
+
? deserializeAws_json1_1RegistryScanningConfiguration(output.scanningConfiguration, context)
|
|
4919
|
+
: undefined,
|
|
4920
|
+
};
|
|
4921
|
+
};
|
|
4098
4922
|
var deserializeAws_json1_1GetRepositoryPolicyResponse = function (output, context) {
|
|
4099
4923
|
return {
|
|
4100
4924
|
policyText: __expectString(output.policyText),
|
|
@@ -4246,6 +5070,9 @@ var deserializeAws_json1_1ImageScanFindingList = function (output, context) {
|
|
|
4246
5070
|
};
|
|
4247
5071
|
var deserializeAws_json1_1ImageScanFindings = function (output, context) {
|
|
4248
5072
|
return {
|
|
5073
|
+
enhancedFindings: output.enhancedFindings !== undefined && output.enhancedFindings !== null
|
|
5074
|
+
? deserializeAws_json1_1EnhancedImageScanFindingList(output.enhancedFindings, context)
|
|
5075
|
+
: undefined,
|
|
4249
5076
|
findingSeverityCounts: output.findingSeverityCounts !== undefined && output.findingSeverityCounts !== null
|
|
4250
5077
|
? deserializeAws_json1_1FindingSeverityCounts(output.findingSeverityCounts, context)
|
|
4251
5078
|
: undefined,
|
|
@@ -4299,6 +5126,16 @@ var deserializeAws_json1_1ImageTagList = function (output, context) {
|
|
|
4299
5126
|
return __expectString(entry);
|
|
4300
5127
|
});
|
|
4301
5128
|
};
|
|
5129
|
+
var deserializeAws_json1_1ImageTagsList = function (output, context) {
|
|
5130
|
+
return (output || [])
|
|
5131
|
+
.filter(function (e) { return e != null; })
|
|
5132
|
+
.map(function (entry) {
|
|
5133
|
+
if (entry === null) {
|
|
5134
|
+
return null;
|
|
5135
|
+
}
|
|
5136
|
+
return __expectString(entry);
|
|
5137
|
+
});
|
|
5138
|
+
};
|
|
4302
5139
|
var deserializeAws_json1_1InitiateLayerUploadResponse = function (output, context) {
|
|
4303
5140
|
return {
|
|
4304
5141
|
partSize: __expectLong(output.partSize),
|
|
@@ -4460,6 +5297,62 @@ var deserializeAws_json1_1ListTagsForResourceResponse = function (output, contex
|
|
|
4460
5297
|
: undefined,
|
|
4461
5298
|
};
|
|
4462
5299
|
};
|
|
5300
|
+
var deserializeAws_json1_1PackageVulnerabilityDetails = function (output, context) {
|
|
5301
|
+
return {
|
|
5302
|
+
cvss: output.cvss !== undefined && output.cvss !== null
|
|
5303
|
+
? deserializeAws_json1_1CvssScoreList(output.cvss, context)
|
|
5304
|
+
: undefined,
|
|
5305
|
+
referenceUrls: output.referenceUrls !== undefined && output.referenceUrls !== null
|
|
5306
|
+
? deserializeAws_json1_1ReferenceUrlsList(output.referenceUrls, context)
|
|
5307
|
+
: undefined,
|
|
5308
|
+
relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
|
|
5309
|
+
? deserializeAws_json1_1RelatedVulnerabilitiesList(output.relatedVulnerabilities, context)
|
|
5310
|
+
: undefined,
|
|
5311
|
+
source: __expectString(output.source),
|
|
5312
|
+
sourceUrl: __expectString(output.sourceUrl),
|
|
5313
|
+
vendorCreatedAt: output.vendorCreatedAt !== undefined && output.vendorCreatedAt !== null
|
|
5314
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorCreatedAt)))
|
|
5315
|
+
: undefined,
|
|
5316
|
+
vendorSeverity: __expectString(output.vendorSeverity),
|
|
5317
|
+
vendorUpdatedAt: output.vendorUpdatedAt !== undefined && output.vendorUpdatedAt !== null
|
|
5318
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorUpdatedAt)))
|
|
5319
|
+
: undefined,
|
|
5320
|
+
vulnerabilityId: __expectString(output.vulnerabilityId),
|
|
5321
|
+
vulnerablePackages: output.vulnerablePackages !== undefined && output.vulnerablePackages !== null
|
|
5322
|
+
? deserializeAws_json1_1VulnerablePackagesList(output.vulnerablePackages, context)
|
|
5323
|
+
: undefined,
|
|
5324
|
+
};
|
|
5325
|
+
};
|
|
5326
|
+
var deserializeAws_json1_1PullThroughCacheRule = function (output, context) {
|
|
5327
|
+
return {
|
|
5328
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
5329
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
5330
|
+
: undefined,
|
|
5331
|
+
ecrRepositoryPrefix: __expectString(output.ecrRepositoryPrefix),
|
|
5332
|
+
registryId: __expectString(output.registryId),
|
|
5333
|
+
upstreamRegistryUrl: __expectString(output.upstreamRegistryUrl),
|
|
5334
|
+
};
|
|
5335
|
+
};
|
|
5336
|
+
var deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException = function (output, context) {
|
|
5337
|
+
return {
|
|
5338
|
+
message: __expectString(output.message),
|
|
5339
|
+
};
|
|
5340
|
+
};
|
|
5341
|
+
var deserializeAws_json1_1PullThroughCacheRuleList = function (output, context) {
|
|
5342
|
+
return (output || [])
|
|
5343
|
+
.filter(function (e) { return e != null; })
|
|
5344
|
+
.map(function (entry) {
|
|
5345
|
+
if (entry === null) {
|
|
5346
|
+
return null;
|
|
5347
|
+
}
|
|
5348
|
+
return deserializeAws_json1_1PullThroughCacheRule(entry, context);
|
|
5349
|
+
});
|
|
5350
|
+
};
|
|
5351
|
+
var deserializeAws_json1_1PullThroughCacheRuleNotFoundException = function (output, context) {
|
|
5352
|
+
return {
|
|
5353
|
+
message: __expectString(output.message),
|
|
5354
|
+
};
|
|
5355
|
+
};
|
|
4463
5356
|
var deserializeAws_json1_1PutImageResponse = function (output, context) {
|
|
4464
5357
|
return {
|
|
4465
5358
|
image: output.image !== undefined && output.image !== null
|
|
@@ -4496,6 +5389,13 @@ var deserializeAws_json1_1PutRegistryPolicyResponse = function (output, context)
|
|
|
4496
5389
|
registryId: __expectString(output.registryId),
|
|
4497
5390
|
};
|
|
4498
5391
|
};
|
|
5392
|
+
var deserializeAws_json1_1PutRegistryScanningConfigurationResponse = function (output, context) {
|
|
5393
|
+
return {
|
|
5394
|
+
registryScanningConfiguration: output.registryScanningConfiguration !== undefined && output.registryScanningConfiguration !== null
|
|
5395
|
+
? deserializeAws_json1_1RegistryScanningConfiguration(output.registryScanningConfiguration, context)
|
|
5396
|
+
: undefined,
|
|
5397
|
+
};
|
|
5398
|
+
};
|
|
4499
5399
|
var deserializeAws_json1_1PutReplicationConfigurationResponse = function (output, context) {
|
|
4500
5400
|
return {
|
|
4501
5401
|
replicationConfiguration: output.replicationConfiguration !== undefined && output.replicationConfiguration !== null
|
|
@@ -4503,16 +5403,75 @@ var deserializeAws_json1_1PutReplicationConfigurationResponse = function (output
|
|
|
4503
5403
|
: undefined,
|
|
4504
5404
|
};
|
|
4505
5405
|
};
|
|
5406
|
+
var deserializeAws_json1_1Recommendation = function (output, context) {
|
|
5407
|
+
return {
|
|
5408
|
+
text: __expectString(output.text),
|
|
5409
|
+
url: __expectString(output.url),
|
|
5410
|
+
};
|
|
5411
|
+
};
|
|
4506
5412
|
var deserializeAws_json1_1ReferencedImagesNotFoundException = function (output, context) {
|
|
4507
5413
|
return {
|
|
4508
5414
|
message: __expectString(output.message),
|
|
4509
5415
|
};
|
|
4510
5416
|
};
|
|
5417
|
+
var deserializeAws_json1_1ReferenceUrlsList = function (output, context) {
|
|
5418
|
+
return (output || [])
|
|
5419
|
+
.filter(function (e) { return e != null; })
|
|
5420
|
+
.map(function (entry) {
|
|
5421
|
+
if (entry === null) {
|
|
5422
|
+
return null;
|
|
5423
|
+
}
|
|
5424
|
+
return __expectString(entry);
|
|
5425
|
+
});
|
|
5426
|
+
};
|
|
4511
5427
|
var deserializeAws_json1_1RegistryPolicyNotFoundException = function (output, context) {
|
|
4512
5428
|
return {
|
|
4513
5429
|
message: __expectString(output.message),
|
|
4514
5430
|
};
|
|
4515
5431
|
};
|
|
5432
|
+
var deserializeAws_json1_1RegistryScanningConfiguration = function (output, context) {
|
|
5433
|
+
return {
|
|
5434
|
+
rules: output.rules !== undefined && output.rules !== null
|
|
5435
|
+
? deserializeAws_json1_1RegistryScanningRuleList(output.rules, context)
|
|
5436
|
+
: undefined,
|
|
5437
|
+
scanType: __expectString(output.scanType),
|
|
5438
|
+
};
|
|
5439
|
+
};
|
|
5440
|
+
var deserializeAws_json1_1RegistryScanningRule = function (output, context) {
|
|
5441
|
+
return {
|
|
5442
|
+
repositoryFilters: output.repositoryFilters !== undefined && output.repositoryFilters !== null
|
|
5443
|
+
? deserializeAws_json1_1ScanningRepositoryFilterList(output.repositoryFilters, context)
|
|
5444
|
+
: undefined,
|
|
5445
|
+
scanFrequency: __expectString(output.scanFrequency),
|
|
5446
|
+
};
|
|
5447
|
+
};
|
|
5448
|
+
var deserializeAws_json1_1RegistryScanningRuleList = function (output, context) {
|
|
5449
|
+
return (output || [])
|
|
5450
|
+
.filter(function (e) { return e != null; })
|
|
5451
|
+
.map(function (entry) {
|
|
5452
|
+
if (entry === null) {
|
|
5453
|
+
return null;
|
|
5454
|
+
}
|
|
5455
|
+
return deserializeAws_json1_1RegistryScanningRule(entry, context);
|
|
5456
|
+
});
|
|
5457
|
+
};
|
|
5458
|
+
var deserializeAws_json1_1RelatedVulnerabilitiesList = function (output, context) {
|
|
5459
|
+
return (output || [])
|
|
5460
|
+
.filter(function (e) { return e != null; })
|
|
5461
|
+
.map(function (entry) {
|
|
5462
|
+
if (entry === null) {
|
|
5463
|
+
return null;
|
|
5464
|
+
}
|
|
5465
|
+
return __expectString(entry);
|
|
5466
|
+
});
|
|
5467
|
+
};
|
|
5468
|
+
var deserializeAws_json1_1Remediation = function (output, context) {
|
|
5469
|
+
return {
|
|
5470
|
+
recommendation: output.recommendation !== undefined && output.recommendation !== null
|
|
5471
|
+
? deserializeAws_json1_1Recommendation(output.recommendation, context)
|
|
5472
|
+
: undefined,
|
|
5473
|
+
};
|
|
5474
|
+
};
|
|
4516
5475
|
var deserializeAws_json1_1ReplicationConfiguration = function (output, context) {
|
|
4517
5476
|
return {
|
|
4518
5477
|
rules: output.rules !== undefined && output.rules !== null
|
|
@@ -4620,11 +5579,99 @@ var deserializeAws_json1_1RepositoryPolicyNotFoundException = function (output,
|
|
|
4620
5579
|
message: __expectString(output.message),
|
|
4621
5580
|
};
|
|
4622
5581
|
};
|
|
5582
|
+
var deserializeAws_json1_1RepositoryScanningConfiguration = function (output, context) {
|
|
5583
|
+
return {
|
|
5584
|
+
appliedScanFilters: output.appliedScanFilters !== undefined && output.appliedScanFilters !== null
|
|
5585
|
+
? deserializeAws_json1_1ScanningRepositoryFilterList(output.appliedScanFilters, context)
|
|
5586
|
+
: undefined,
|
|
5587
|
+
repositoryArn: __expectString(output.repositoryArn),
|
|
5588
|
+
repositoryName: __expectString(output.repositoryName),
|
|
5589
|
+
scanFrequency: __expectString(output.scanFrequency),
|
|
5590
|
+
scanOnPush: __expectBoolean(output.scanOnPush),
|
|
5591
|
+
};
|
|
5592
|
+
};
|
|
5593
|
+
var deserializeAws_json1_1RepositoryScanningConfigurationFailure = function (output, context) {
|
|
5594
|
+
return {
|
|
5595
|
+
failureCode: __expectString(output.failureCode),
|
|
5596
|
+
failureReason: __expectString(output.failureReason),
|
|
5597
|
+
repositoryName: __expectString(output.repositoryName),
|
|
5598
|
+
};
|
|
5599
|
+
};
|
|
5600
|
+
var deserializeAws_json1_1RepositoryScanningConfigurationFailureList = function (output, context) {
|
|
5601
|
+
return (output || [])
|
|
5602
|
+
.filter(function (e) { return e != null; })
|
|
5603
|
+
.map(function (entry) {
|
|
5604
|
+
if (entry === null) {
|
|
5605
|
+
return null;
|
|
5606
|
+
}
|
|
5607
|
+
return deserializeAws_json1_1RepositoryScanningConfigurationFailure(entry, context);
|
|
5608
|
+
});
|
|
5609
|
+
};
|
|
5610
|
+
var deserializeAws_json1_1RepositoryScanningConfigurationList = function (output, context) {
|
|
5611
|
+
return (output || [])
|
|
5612
|
+
.filter(function (e) { return e != null; })
|
|
5613
|
+
.map(function (entry) {
|
|
5614
|
+
if (entry === null) {
|
|
5615
|
+
return null;
|
|
5616
|
+
}
|
|
5617
|
+
return deserializeAws_json1_1RepositoryScanningConfiguration(entry, context);
|
|
5618
|
+
});
|
|
5619
|
+
};
|
|
5620
|
+
var deserializeAws_json1_1Resource = function (output, context) {
|
|
5621
|
+
return {
|
|
5622
|
+
details: output.details !== undefined && output.details !== null
|
|
5623
|
+
? deserializeAws_json1_1ResourceDetails(output.details, context)
|
|
5624
|
+
: undefined,
|
|
5625
|
+
id: __expectString(output.id),
|
|
5626
|
+
tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
5627
|
+
type: __expectString(output.type),
|
|
5628
|
+
};
|
|
5629
|
+
};
|
|
5630
|
+
var deserializeAws_json1_1ResourceDetails = function (output, context) {
|
|
5631
|
+
return {
|
|
5632
|
+
awsEcrContainerImage: output.awsEcrContainerImage !== undefined && output.awsEcrContainerImage !== null
|
|
5633
|
+
? deserializeAws_json1_1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
|
|
5634
|
+
: undefined,
|
|
5635
|
+
};
|
|
5636
|
+
};
|
|
5637
|
+
var deserializeAws_json1_1ResourceList = function (output, context) {
|
|
5638
|
+
return (output || [])
|
|
5639
|
+
.filter(function (e) { return e != null; })
|
|
5640
|
+
.map(function (entry) {
|
|
5641
|
+
if (entry === null) {
|
|
5642
|
+
return null;
|
|
5643
|
+
}
|
|
5644
|
+
return deserializeAws_json1_1Resource(entry, context);
|
|
5645
|
+
});
|
|
5646
|
+
};
|
|
5647
|
+
var deserializeAws_json1_1ScanningRepositoryFilter = function (output, context) {
|
|
5648
|
+
return {
|
|
5649
|
+
filter: __expectString(output.filter),
|
|
5650
|
+
filterType: __expectString(output.filterType),
|
|
5651
|
+
};
|
|
5652
|
+
};
|
|
5653
|
+
var deserializeAws_json1_1ScanningRepositoryFilterList = function (output, context) {
|
|
5654
|
+
return (output || [])
|
|
5655
|
+
.filter(function (e) { return e != null; })
|
|
5656
|
+
.map(function (entry) {
|
|
5657
|
+
if (entry === null) {
|
|
5658
|
+
return null;
|
|
5659
|
+
}
|
|
5660
|
+
return deserializeAws_json1_1ScanningRepositoryFilter(entry, context);
|
|
5661
|
+
});
|
|
5662
|
+
};
|
|
4623
5663
|
var deserializeAws_json1_1ScanNotFoundException = function (output, context) {
|
|
4624
5664
|
return {
|
|
4625
5665
|
message: __expectString(output.message),
|
|
4626
5666
|
};
|
|
4627
5667
|
};
|
|
5668
|
+
var deserializeAws_json1_1ScoreDetails = function (output, context) {
|
|
5669
|
+
return {
|
|
5670
|
+
cvss: output.cvss !== undefined && output.cvss !== null
|
|
5671
|
+
? deserializeAws_json1_1CvssScoreDetails(output.cvss, context)
|
|
5672
|
+
: undefined,
|
|
5673
|
+
};
|
|
5674
|
+
};
|
|
4628
5675
|
var deserializeAws_json1_1ServerException = function (output, context) {
|
|
4629
5676
|
return {
|
|
4630
5677
|
message: __expectString(output.message),
|
|
@@ -4676,6 +5723,16 @@ var deserializeAws_json1_1TagList = function (output, context) {
|
|
|
4676
5723
|
var deserializeAws_json1_1TagResourceResponse = function (output, context) {
|
|
4677
5724
|
return {};
|
|
4678
5725
|
};
|
|
5726
|
+
var deserializeAws_json1_1Tags = function (output, context) {
|
|
5727
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
5728
|
+
var _b;
|
|
5729
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
5730
|
+
if (value === null) {
|
|
5731
|
+
return acc;
|
|
5732
|
+
}
|
|
5733
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
5734
|
+
}, {});
|
|
5735
|
+
};
|
|
4679
5736
|
var deserializeAws_json1_1TooManyTagsException = function (output, context) {
|
|
4680
5737
|
return {
|
|
4681
5738
|
message: __expectString(output.message),
|
|
@@ -4686,6 +5743,11 @@ var deserializeAws_json1_1UnsupportedImageTypeException = function (output, cont
|
|
|
4686
5743
|
message: __expectString(output.message),
|
|
4687
5744
|
};
|
|
4688
5745
|
};
|
|
5746
|
+
var deserializeAws_json1_1UnsupportedUpstreamRegistryException = function (output, context) {
|
|
5747
|
+
return {
|
|
5748
|
+
message: __expectString(output.message),
|
|
5749
|
+
};
|
|
5750
|
+
};
|
|
4689
5751
|
var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
4690
5752
|
return {};
|
|
4691
5753
|
};
|
|
@@ -4707,6 +5769,28 @@ var deserializeAws_json1_1ValidationException = function (output, context) {
|
|
|
4707
5769
|
message: __expectString(output.message),
|
|
4708
5770
|
};
|
|
4709
5771
|
};
|
|
5772
|
+
var deserializeAws_json1_1VulnerablePackage = function (output, context) {
|
|
5773
|
+
return {
|
|
5774
|
+
arch: __expectString(output.arch),
|
|
5775
|
+
epoch: __expectInt32(output.epoch),
|
|
5776
|
+
filePath: __expectString(output.filePath),
|
|
5777
|
+
name: __expectString(output.name),
|
|
5778
|
+
packageManager: __expectString(output.packageManager),
|
|
5779
|
+
release: __expectString(output.release),
|
|
5780
|
+
sourceLayerHash: __expectString(output.sourceLayerHash),
|
|
5781
|
+
version: __expectString(output.version),
|
|
5782
|
+
};
|
|
5783
|
+
};
|
|
5784
|
+
var deserializeAws_json1_1VulnerablePackagesList = function (output, context) {
|
|
5785
|
+
return (output || [])
|
|
5786
|
+
.filter(function (e) { return e != null; })
|
|
5787
|
+
.map(function (entry) {
|
|
5788
|
+
if (entry === null) {
|
|
5789
|
+
return null;
|
|
5790
|
+
}
|
|
5791
|
+
return deserializeAws_json1_1VulnerablePackage(entry, context);
|
|
5792
|
+
});
|
|
5793
|
+
};
|
|
4710
5794
|
var deserializeMetadata = function (output) {
|
|
4711
5795
|
var _a;
|
|
4712
5796
|
return ({
|