@aws-sdk/client-ecr 3.33.0 → 3.34.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 +12 -0
- package/ECR.ts +37 -0
- package/ECRClient.ts +6 -0
- package/commands/DescribeImageReplicationStatusCommand.ts +102 -0
- package/dist/cjs/ECR.js +15 -0
- package/dist/cjs/ECR.js.map +1 -1
- package/dist/cjs/ECRClient.js.map +1 -1
- package/dist/cjs/commands/DescribeImageReplicationStatusCommand.js +61 -0
- package/dist/cjs/commands/DescribeImageReplicationStatusCommand.js.map +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/models_0.js +67 -21
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_json1_1.js +193 -2
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/ECR.js +16 -12
- package/dist/es/ECR.js.map +1 -1
- package/dist/es/ECRClient.js +1 -17
- package/dist/es/ECRClient.js.map +1 -1
- package/dist/es/commands/BatchCheckLayerAvailabilityCommand.js +2 -34
- package/dist/es/commands/BatchCheckLayerAvailabilityCommand.js.map +1 -1
- package/dist/es/commands/BatchDeleteImageCommand.js +2 -32
- package/dist/es/commands/BatchDeleteImageCommand.js.map +1 -1
- package/dist/es/commands/BatchGetImageCommand.js +2 -30
- package/dist/es/commands/BatchGetImageCommand.js.map +1 -1
- package/dist/es/commands/CompleteLayerUploadCommand.js +2 -35
- package/dist/es/commands/CompleteLayerUploadCommand.js.map +1 -1
- package/dist/es/commands/CreateRepositoryCommand.js +2 -28
- package/dist/es/commands/CreateRepositoryCommand.js.map +1 -1
- package/dist/es/commands/DeleteLifecyclePolicyCommand.js +2 -27
- package/dist/es/commands/DeleteLifecyclePolicyCommand.js.map +1 -1
- package/dist/es/commands/DeleteRegistryPolicyCommand.js +2 -27
- package/dist/es/commands/DeleteRegistryPolicyCommand.js.map +1 -1
- package/dist/es/commands/DeleteRepositoryCommand.js +2 -29
- package/dist/es/commands/DeleteRepositoryCommand.js.map +1 -1
- package/dist/es/commands/DeleteRepositoryPolicyCommand.js +2 -27
- package/dist/es/commands/DeleteRepositoryPolicyCommand.js.map +1 -1
- package/dist/es/commands/DescribeImageReplicationStatusCommand.js +40 -0
- package/dist/es/commands/DescribeImageReplicationStatusCommand.js.map +1 -0
- package/dist/es/commands/DescribeImageScanFindingsCommand.js +2 -27
- package/dist/es/commands/DescribeImageScanFindingsCommand.js.map +1 -1
- package/dist/es/commands/DescribeImagesCommand.js +2 -33
- package/dist/es/commands/DescribeImagesCommand.js.map +1 -1
- package/dist/es/commands/DescribeRegistryCommand.js +2 -29
- package/dist/es/commands/DescribeRegistryCommand.js.map +1 -1
- package/dist/es/commands/DescribeRepositoriesCommand.js +2 -27
- package/dist/es/commands/DescribeRepositoriesCommand.js.map +1 -1
- package/dist/es/commands/GetAuthorizationTokenCommand.js +2 -34
- package/dist/es/commands/GetAuthorizationTokenCommand.js.map +1 -1
- package/dist/es/commands/GetDownloadUrlForLayerCommand.js +2 -34
- package/dist/es/commands/GetDownloadUrlForLayerCommand.js.map +1 -1
- package/dist/es/commands/GetLifecyclePolicyCommand.js +2 -27
- package/dist/es/commands/GetLifecyclePolicyCommand.js.map +1 -1
- package/dist/es/commands/GetLifecyclePolicyPreviewCommand.js +2 -28
- package/dist/es/commands/GetLifecyclePolicyPreviewCommand.js.map +1 -1
- package/dist/es/commands/GetRegistryPolicyCommand.js +2 -27
- package/dist/es/commands/GetRegistryPolicyCommand.js.map +1 -1
- package/dist/es/commands/GetRepositoryPolicyCommand.js +2 -27
- package/dist/es/commands/GetRepositoryPolicyCommand.js.map +1 -1
- package/dist/es/commands/InitiateLayerUploadCommand.js +2 -34
- package/dist/es/commands/InitiateLayerUploadCommand.js.map +1 -1
- package/dist/es/commands/ListImagesCommand.js +2 -33
- package/dist/es/commands/ListImagesCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/PutImageCommand.js +2 -35
- package/dist/es/commands/PutImageCommand.js.map +1 -1
- package/dist/es/commands/PutImageScanningConfigurationCommand.js +2 -27
- package/dist/es/commands/PutImageScanningConfigurationCommand.js.map +1 -1
- package/dist/es/commands/PutImageTagMutabilityCommand.js +2 -29
- package/dist/es/commands/PutImageTagMutabilityCommand.js.map +1 -1
- package/dist/es/commands/PutLifecyclePolicyCommand.js +2 -29
- package/dist/es/commands/PutLifecyclePolicyCommand.js.map +1 -1
- package/dist/es/commands/PutRegistryPolicyCommand.js +2 -29
- package/dist/es/commands/PutRegistryPolicyCommand.js.map +1 -1
- package/dist/es/commands/PutReplicationConfigurationCommand.js +2 -37
- package/dist/es/commands/PutReplicationConfigurationCommand.js.map +1 -1
- package/dist/es/commands/SetRepositoryPolicyCommand.js +2 -29
- package/dist/es/commands/SetRepositoryPolicyCommand.js.map +1 -1
- package/dist/es/commands/StartImageScanCommand.js +2 -30
- package/dist/es/commands/StartImageScanCommand.js.map +1 -1
- package/dist/es/commands/StartLifecyclePolicyPreviewCommand.js +2 -28
- package/dist/es/commands/StartLifecyclePolicyPreviewCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -28
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -27
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UploadLayerPartCommand.js +2 -34
- package/dist/es/commands/UploadLayerPartCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/index.js +1 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/models_0.js +34 -377
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/DescribeImageScanFindingsPaginator.js +16 -28
- package/dist/es/pagination/DescribeImageScanFindingsPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeImagesPaginator.js +16 -28
- package/dist/es/pagination/DescribeImagesPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeRepositoriesPaginator.js +16 -28
- package/dist/es/pagination/DescribeRepositoriesPaginator.js.map +1 -1
- package/dist/es/pagination/GetLifecyclePolicyPreviewPaginator.js +16 -28
- package/dist/es/pagination/GetLifecyclePolicyPreviewPaginator.js.map +1 -1
- package/dist/es/pagination/ListImagesPaginator.js +16 -28
- package/dist/es/pagination/ListImagesPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +1069 -882
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/es/waiters/waitForImageScanComplete.js +9 -18
- package/dist/es/waiters/waitForImageScanComplete.js.map +1 -1
- package/dist/es/waiters/waitForLifecyclePolicyPreviewComplete.js +9 -18
- package/dist/es/waiters/waitForLifecyclePolicyPreviewComplete.js.map +1 -1
- package/dist/types/ECR.d.ts +7 -0
- package/dist/types/ECRClient.d.ts +3 -2
- package/dist/types/commands/DescribeImageReplicationStatusCommand.d.ts +35 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/models_0.d.ts +154 -43
- package/dist/types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist/types/ts3.4/ECR.d.ts +7 -0
- package/dist/types/ts3.4/ECRClient.d.ts +3 -2
- package/dist/types/ts3.4/commands/DescribeImageReplicationStatusCommand.d.ts +35 -0
- package/dist/types/ts3.4/index.d.ts +1 -0
- package/dist/types/ts3.4/models/models_0.d.ts +154 -43
- package/dist/types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/index.ts +1 -0
- package/models/models_0.ts +190 -51
- package/package.json +39 -39
- package/protocols/Aws_json1_1.ts +229 -0
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +4 -5
- package/tsconfig.types.json +8 -0
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1BatchCheckLayerAvailabilityCommand = function (in
|
|
|
9
9
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchCheckLayerAvailability",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1BatchDeleteImageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1BatchDeleteImageCommand = function (input, contex
|
|
|
20
20
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchDeleteImage",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1BatchGetImageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1BatchGetImageCommand = function (input, context)
|
|
|
31
31
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchGetImage",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1BatchGetImageRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1CompleteLayerUploadCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1CompleteLayerUploadCommand = function (input, con
|
|
|
42
42
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.CompleteLayerUpload",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1CreateRepositoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1CreateRepositoryCommand = function (input, contex
|
|
|
53
53
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.CreateRepository",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1DeleteLifecyclePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DeleteLifecyclePolicyCommand = function (input, c
|
|
|
64
64
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteLifecyclePolicy",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1DeleteLifecyclePolicyRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1DeleteRegistryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DeleteRegistryPolicyCommand = function (input, co
|
|
|
75
75
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteRegistryPolicy",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1DeleteRegistryPolicyRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1DeleteRepositoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1DeleteRepositoryCommand = function (input, contex
|
|
|
86
86
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteRepository",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1DeleteRepositoryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,18 @@ export var serializeAws_json1_1DeleteRepositoryPolicyCommand = function (input,
|
|
|
97
97
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
|
+
});
|
|
102
|
+
}); };
|
|
103
|
+
export var serializeAws_json1_1DescribeImageReplicationStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
104
|
+
var headers, body;
|
|
105
|
+
return __generator(this, function (_a) {
|
|
106
|
+
headers = {
|
|
107
|
+
"content-type": "application/x-amz-json-1.1",
|
|
108
|
+
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus",
|
|
109
|
+
};
|
|
110
|
+
body = JSON.stringify(serializeAws_json1_1DescribeImageReplicationStatusRequest(input, context));
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
112
|
});
|
|
102
113
|
}); };
|
|
103
114
|
export var serializeAws_json1_1DescribeImagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +119,7 @@ export var serializeAws_json1_1DescribeImagesCommand = function (input, context)
|
|
|
108
119
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImages",
|
|
109
120
|
};
|
|
110
121
|
body = JSON.stringify(serializeAws_json1_1DescribeImagesRequest(input, context));
|
|
111
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
123
|
});
|
|
113
124
|
}); };
|
|
114
125
|
export var serializeAws_json1_1DescribeImageScanFindingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +130,7 @@ export var serializeAws_json1_1DescribeImageScanFindingsCommand = function (inpu
|
|
|
119
130
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImageScanFindings",
|
|
120
131
|
};
|
|
121
132
|
body = JSON.stringify(serializeAws_json1_1DescribeImageScanFindingsRequest(input, context));
|
|
122
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
134
|
});
|
|
124
135
|
}); };
|
|
125
136
|
export var serializeAws_json1_1DescribeRegistryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +141,7 @@ export var serializeAws_json1_1DescribeRegistryCommand = function (input, contex
|
|
|
130
141
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeRegistry",
|
|
131
142
|
};
|
|
132
143
|
body = JSON.stringify(serializeAws_json1_1DescribeRegistryRequest(input, context));
|
|
133
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
145
|
});
|
|
135
146
|
}); };
|
|
136
147
|
export var serializeAws_json1_1DescribeRepositoriesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +152,7 @@ export var serializeAws_json1_1DescribeRepositoriesCommand = function (input, co
|
|
|
141
152
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeRepositories",
|
|
142
153
|
};
|
|
143
154
|
body = JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(input, context));
|
|
144
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
156
|
});
|
|
146
157
|
}); };
|
|
147
158
|
export var serializeAws_json1_1GetAuthorizationTokenCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +163,7 @@ export var serializeAws_json1_1GetAuthorizationTokenCommand = function (input, c
|
|
|
152
163
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetAuthorizationToken",
|
|
153
164
|
};
|
|
154
165
|
body = JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(input, context));
|
|
155
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
167
|
});
|
|
157
168
|
}); };
|
|
158
169
|
export var serializeAws_json1_1GetDownloadUrlForLayerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +174,7 @@ export var serializeAws_json1_1GetDownloadUrlForLayerCommand = function (input,
|
|
|
163
174
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetDownloadUrlForLayer",
|
|
164
175
|
};
|
|
165
176
|
body = JSON.stringify(serializeAws_json1_1GetDownloadUrlForLayerRequest(input, context));
|
|
166
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
178
|
});
|
|
168
179
|
}); };
|
|
169
180
|
export var serializeAws_json1_1GetLifecyclePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +185,7 @@ export var serializeAws_json1_1GetLifecyclePolicyCommand = function (input, cont
|
|
|
174
185
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicy",
|
|
175
186
|
};
|
|
176
187
|
body = JSON.stringify(serializeAws_json1_1GetLifecyclePolicyRequest(input, context));
|
|
177
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
189
|
});
|
|
179
190
|
}); };
|
|
180
191
|
export var serializeAws_json1_1GetLifecyclePolicyPreviewCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +196,7 @@ export var serializeAws_json1_1GetLifecyclePolicyPreviewCommand = function (inpu
|
|
|
185
196
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicyPreview",
|
|
186
197
|
};
|
|
187
198
|
body = JSON.stringify(serializeAws_json1_1GetLifecyclePolicyPreviewRequest(input, context));
|
|
188
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
200
|
});
|
|
190
201
|
}); };
|
|
191
202
|
export var serializeAws_json1_1GetRegistryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +207,7 @@ export var serializeAws_json1_1GetRegistryPolicyCommand = function (input, conte
|
|
|
196
207
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetRegistryPolicy",
|
|
197
208
|
};
|
|
198
209
|
body = JSON.stringify(serializeAws_json1_1GetRegistryPolicyRequest(input, context));
|
|
199
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
211
|
});
|
|
201
212
|
}); };
|
|
202
213
|
export var serializeAws_json1_1GetRepositoryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +218,7 @@ export var serializeAws_json1_1GetRepositoryPolicyCommand = function (input, con
|
|
|
207
218
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetRepositoryPolicy",
|
|
208
219
|
};
|
|
209
220
|
body = JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(input, context));
|
|
210
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
222
|
});
|
|
212
223
|
}); };
|
|
213
224
|
export var serializeAws_json1_1InitiateLayerUploadCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +229,7 @@ export var serializeAws_json1_1InitiateLayerUploadCommand = function (input, con
|
|
|
218
229
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.InitiateLayerUpload",
|
|
219
230
|
};
|
|
220
231
|
body = JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(input, context));
|
|
221
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
233
|
});
|
|
223
234
|
}); };
|
|
224
235
|
export var serializeAws_json1_1ListImagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +240,7 @@ export var serializeAws_json1_1ListImagesCommand = function (input, context) { r
|
|
|
229
240
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.ListImages",
|
|
230
241
|
};
|
|
231
242
|
body = JSON.stringify(serializeAws_json1_1ListImagesRequest(input, context));
|
|
232
|
-
return [2
|
|
243
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
244
|
});
|
|
234
245
|
}); };
|
|
235
246
|
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -240,7 +251,7 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
|
|
|
240
251
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.ListTagsForResource",
|
|
241
252
|
};
|
|
242
253
|
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
243
|
-
return [2
|
|
254
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
244
255
|
});
|
|
245
256
|
}); };
|
|
246
257
|
export var serializeAws_json1_1PutImageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -251,7 +262,7 @@ export var serializeAws_json1_1PutImageCommand = function (input, context) { ret
|
|
|
251
262
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutImage",
|
|
252
263
|
};
|
|
253
264
|
body = JSON.stringify(serializeAws_json1_1PutImageRequest(input, context));
|
|
254
|
-
return [2
|
|
265
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
255
266
|
});
|
|
256
267
|
}); };
|
|
257
268
|
export var serializeAws_json1_1PutImageScanningConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -262,7 +273,7 @@ export var serializeAws_json1_1PutImageScanningConfigurationCommand = function (
|
|
|
262
273
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutImageScanningConfiguration",
|
|
263
274
|
};
|
|
264
275
|
body = JSON.stringify(serializeAws_json1_1PutImageScanningConfigurationRequest(input, context));
|
|
265
|
-
return [2
|
|
276
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
266
277
|
});
|
|
267
278
|
}); };
|
|
268
279
|
export var serializeAws_json1_1PutImageTagMutabilityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -273,7 +284,7 @@ export var serializeAws_json1_1PutImageTagMutabilityCommand = function (input, c
|
|
|
273
284
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability",
|
|
274
285
|
};
|
|
275
286
|
body = JSON.stringify(serializeAws_json1_1PutImageTagMutabilityRequest(input, context));
|
|
276
|
-
return [2
|
|
287
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
277
288
|
});
|
|
278
289
|
}); };
|
|
279
290
|
export var serializeAws_json1_1PutLifecyclePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -284,7 +295,7 @@ export var serializeAws_json1_1PutLifecyclePolicyCommand = function (input, cont
|
|
|
284
295
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy",
|
|
285
296
|
};
|
|
286
297
|
body = JSON.stringify(serializeAws_json1_1PutLifecyclePolicyRequest(input, context));
|
|
287
|
-
return [2
|
|
298
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
288
299
|
});
|
|
289
300
|
}); };
|
|
290
301
|
export var serializeAws_json1_1PutRegistryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -295,7 +306,7 @@ export var serializeAws_json1_1PutRegistryPolicyCommand = function (input, conte
|
|
|
295
306
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy",
|
|
296
307
|
};
|
|
297
308
|
body = JSON.stringify(serializeAws_json1_1PutRegistryPolicyRequest(input, context));
|
|
298
|
-
return [2
|
|
309
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
299
310
|
});
|
|
300
311
|
}); };
|
|
301
312
|
export var serializeAws_json1_1PutReplicationConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -306,7 +317,7 @@ export var serializeAws_json1_1PutReplicationConfigurationCommand = function (in
|
|
|
306
317
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutReplicationConfiguration",
|
|
307
318
|
};
|
|
308
319
|
body = JSON.stringify(serializeAws_json1_1PutReplicationConfigurationRequest(input, context));
|
|
309
|
-
return [2
|
|
320
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
310
321
|
});
|
|
311
322
|
}); };
|
|
312
323
|
export var serializeAws_json1_1SetRepositoryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -317,7 +328,7 @@ export var serializeAws_json1_1SetRepositoryPolicyCommand = function (input, con
|
|
|
317
328
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.SetRepositoryPolicy",
|
|
318
329
|
};
|
|
319
330
|
body = JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(input, context));
|
|
320
|
-
return [2
|
|
331
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
321
332
|
});
|
|
322
333
|
}); };
|
|
323
334
|
export var serializeAws_json1_1StartImageScanCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -328,7 +339,7 @@ export var serializeAws_json1_1StartImageScanCommand = function (input, context)
|
|
|
328
339
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.StartImageScan",
|
|
329
340
|
};
|
|
330
341
|
body = JSON.stringify(serializeAws_json1_1StartImageScanRequest(input, context));
|
|
331
|
-
return [2
|
|
342
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
332
343
|
});
|
|
333
344
|
}); };
|
|
334
345
|
export var serializeAws_json1_1StartLifecyclePolicyPreviewCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -339,7 +350,7 @@ export var serializeAws_json1_1StartLifecyclePolicyPreviewCommand = function (in
|
|
|
339
350
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.StartLifecyclePolicyPreview",
|
|
340
351
|
};
|
|
341
352
|
body = JSON.stringify(serializeAws_json1_1StartLifecyclePolicyPreviewRequest(input, context));
|
|
342
|
-
return [2
|
|
353
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
343
354
|
});
|
|
344
355
|
}); };
|
|
345
356
|
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -350,7 +361,7 @@ export var serializeAws_json1_1TagResourceCommand = function (input, context) {
|
|
|
350
361
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.TagResource",
|
|
351
362
|
};
|
|
352
363
|
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
353
|
-
return [2
|
|
364
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
354
365
|
});
|
|
355
366
|
}); };
|
|
356
367
|
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -361,7 +372,7 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
|
|
|
361
372
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.UntagResource",
|
|
362
373
|
};
|
|
363
374
|
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
364
|
-
return [2
|
|
375
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
365
376
|
});
|
|
366
377
|
}); };
|
|
367
378
|
export var serializeAws_json1_1UploadLayerPartCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -372,7 +383,7 @@ export var serializeAws_json1_1UploadLayerPartCommand = function (input, context
|
|
|
372
383
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.UploadLayerPart",
|
|
373
384
|
};
|
|
374
385
|
body = JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(input, context));
|
|
375
|
-
return [2
|
|
386
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
376
387
|
});
|
|
377
388
|
}); };
|
|
378
389
|
export var deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -381,15 +392,15 @@ export var deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = function (
|
|
|
381
392
|
switch (_a.label) {
|
|
382
393
|
case 0:
|
|
383
394
|
if (output.statusCode >= 300) {
|
|
384
|
-
return [2
|
|
395
|
+
return [2, deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError(output, context)];
|
|
385
396
|
}
|
|
386
|
-
return [4
|
|
397
|
+
return [4, parseBody(output.body, context)];
|
|
387
398
|
case 1:
|
|
388
399
|
data = _a.sent();
|
|
389
400
|
contents = {};
|
|
390
401
|
contents = deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(data, context);
|
|
391
402
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
392
|
-
return [2
|
|
403
|
+
return [2, Promise.resolve(response)];
|
|
393
404
|
}
|
|
394
405
|
});
|
|
395
406
|
}); };
|
|
@@ -401,39 +412,39 @@ var deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = function (ou
|
|
|
401
412
|
case 0:
|
|
402
413
|
_a = [__assign({}, output)];
|
|
403
414
|
_f = {};
|
|
404
|
-
return [4
|
|
415
|
+
return [4, parseBody(output.body, context)];
|
|
405
416
|
case 1:
|
|
406
417
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
407
418
|
errorCode = "UnknownError";
|
|
408
419
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
409
420
|
_b = errorCode;
|
|
410
421
|
switch (_b) {
|
|
411
|
-
case "InvalidParameterException": return [3
|
|
412
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
413
|
-
case "RepositoryNotFoundException": return [3
|
|
414
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
415
|
-
case "ServerException": return [3
|
|
416
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
422
|
+
case "InvalidParameterException": return [3, 2];
|
|
423
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
424
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
425
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
426
|
+
case "ServerException": return [3, 6];
|
|
427
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
417
428
|
}
|
|
418
|
-
return [3
|
|
429
|
+
return [3, 8];
|
|
419
430
|
case 2:
|
|
420
431
|
_c = [{}];
|
|
421
|
-
return [4
|
|
432
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
422
433
|
case 3:
|
|
423
434
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
424
|
-
return [3
|
|
435
|
+
return [3, 9];
|
|
425
436
|
case 4:
|
|
426
437
|
_d = [{}];
|
|
427
|
-
return [4
|
|
438
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
428
439
|
case 5:
|
|
429
440
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
430
|
-
return [3
|
|
441
|
+
return [3, 9];
|
|
431
442
|
case 6:
|
|
432
443
|
_e = [{}];
|
|
433
|
-
return [4
|
|
444
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
434
445
|
case 7:
|
|
435
446
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
436
|
-
return [3
|
|
447
|
+
return [3, 9];
|
|
437
448
|
case 8:
|
|
438
449
|
parsedBody = parsedOutput.body;
|
|
439
450
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -443,7 +454,7 @@ var deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = function (ou
|
|
|
443
454
|
message = response.message || response.Message || errorCode;
|
|
444
455
|
response.message = message;
|
|
445
456
|
delete response.Message;
|
|
446
|
-
return [2
|
|
457
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
447
458
|
}
|
|
448
459
|
});
|
|
449
460
|
}); };
|
|
@@ -453,15 +464,15 @@ export var deserializeAws_json1_1BatchDeleteImageCommand = function (output, con
|
|
|
453
464
|
switch (_a.label) {
|
|
454
465
|
case 0:
|
|
455
466
|
if (output.statusCode >= 300) {
|
|
456
|
-
return [2
|
|
467
|
+
return [2, deserializeAws_json1_1BatchDeleteImageCommandError(output, context)];
|
|
457
468
|
}
|
|
458
|
-
return [4
|
|
469
|
+
return [4, parseBody(output.body, context)];
|
|
459
470
|
case 1:
|
|
460
471
|
data = _a.sent();
|
|
461
472
|
contents = {};
|
|
462
473
|
contents = deserializeAws_json1_1BatchDeleteImageResponse(data, context);
|
|
463
474
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
464
|
-
return [2
|
|
475
|
+
return [2, Promise.resolve(response)];
|
|
465
476
|
}
|
|
466
477
|
});
|
|
467
478
|
}); };
|
|
@@ -473,39 +484,39 @@ var deserializeAws_json1_1BatchDeleteImageCommandError = function (output, conte
|
|
|
473
484
|
case 0:
|
|
474
485
|
_a = [__assign({}, output)];
|
|
475
486
|
_f = {};
|
|
476
|
-
return [4
|
|
487
|
+
return [4, parseBody(output.body, context)];
|
|
477
488
|
case 1:
|
|
478
489
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
479
490
|
errorCode = "UnknownError";
|
|
480
491
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
481
492
|
_b = errorCode;
|
|
482
493
|
switch (_b) {
|
|
483
|
-
case "InvalidParameterException": return [3
|
|
484
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
485
|
-
case "RepositoryNotFoundException": return [3
|
|
486
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
487
|
-
case "ServerException": return [3
|
|
488
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
494
|
+
case "InvalidParameterException": return [3, 2];
|
|
495
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
496
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
497
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
498
|
+
case "ServerException": return [3, 6];
|
|
499
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
489
500
|
}
|
|
490
|
-
return [3
|
|
501
|
+
return [3, 8];
|
|
491
502
|
case 2:
|
|
492
503
|
_c = [{}];
|
|
493
|
-
return [4
|
|
504
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
494
505
|
case 3:
|
|
495
506
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
496
|
-
return [3
|
|
507
|
+
return [3, 9];
|
|
497
508
|
case 4:
|
|
498
509
|
_d = [{}];
|
|
499
|
-
return [4
|
|
510
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
500
511
|
case 5:
|
|
501
512
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
502
|
-
return [3
|
|
513
|
+
return [3, 9];
|
|
503
514
|
case 6:
|
|
504
515
|
_e = [{}];
|
|
505
|
-
return [4
|
|
516
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
506
517
|
case 7:
|
|
507
518
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
508
|
-
return [3
|
|
519
|
+
return [3, 9];
|
|
509
520
|
case 8:
|
|
510
521
|
parsedBody = parsedOutput.body;
|
|
511
522
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -515,7 +526,7 @@ var deserializeAws_json1_1BatchDeleteImageCommandError = function (output, conte
|
|
|
515
526
|
message = response.message || response.Message || errorCode;
|
|
516
527
|
response.message = message;
|
|
517
528
|
delete response.Message;
|
|
518
|
-
return [2
|
|
529
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
519
530
|
}
|
|
520
531
|
});
|
|
521
532
|
}); };
|
|
@@ -525,15 +536,15 @@ export var deserializeAws_json1_1BatchGetImageCommand = function (output, contex
|
|
|
525
536
|
switch (_a.label) {
|
|
526
537
|
case 0:
|
|
527
538
|
if (output.statusCode >= 300) {
|
|
528
|
-
return [2
|
|
539
|
+
return [2, deserializeAws_json1_1BatchGetImageCommandError(output, context)];
|
|
529
540
|
}
|
|
530
|
-
return [4
|
|
541
|
+
return [4, parseBody(output.body, context)];
|
|
531
542
|
case 1:
|
|
532
543
|
data = _a.sent();
|
|
533
544
|
contents = {};
|
|
534
545
|
contents = deserializeAws_json1_1BatchGetImageResponse(data, context);
|
|
535
546
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
536
|
-
return [2
|
|
547
|
+
return [2, Promise.resolve(response)];
|
|
537
548
|
}
|
|
538
549
|
});
|
|
539
550
|
}); };
|
|
@@ -545,39 +556,39 @@ var deserializeAws_json1_1BatchGetImageCommandError = function (output, context)
|
|
|
545
556
|
case 0:
|
|
546
557
|
_a = [__assign({}, output)];
|
|
547
558
|
_f = {};
|
|
548
|
-
return [4
|
|
559
|
+
return [4, parseBody(output.body, context)];
|
|
549
560
|
case 1:
|
|
550
561
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
551
562
|
errorCode = "UnknownError";
|
|
552
563
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
564
|
_b = errorCode;
|
|
554
565
|
switch (_b) {
|
|
555
|
-
case "InvalidParameterException": return [3
|
|
556
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
557
|
-
case "RepositoryNotFoundException": return [3
|
|
558
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
559
|
-
case "ServerException": return [3
|
|
560
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
566
|
+
case "InvalidParameterException": return [3, 2];
|
|
567
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
568
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
569
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
570
|
+
case "ServerException": return [3, 6];
|
|
571
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
561
572
|
}
|
|
562
|
-
return [3
|
|
573
|
+
return [3, 8];
|
|
563
574
|
case 2:
|
|
564
575
|
_c = [{}];
|
|
565
|
-
return [4
|
|
576
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
566
577
|
case 3:
|
|
567
578
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
568
|
-
return [3
|
|
579
|
+
return [3, 9];
|
|
569
580
|
case 4:
|
|
570
581
|
_d = [{}];
|
|
571
|
-
return [4
|
|
582
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
572
583
|
case 5:
|
|
573
584
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
574
|
-
return [3
|
|
585
|
+
return [3, 9];
|
|
575
586
|
case 6:
|
|
576
587
|
_e = [{}];
|
|
577
|
-
return [4
|
|
588
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
578
589
|
case 7:
|
|
579
590
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
580
|
-
return [3
|
|
591
|
+
return [3, 9];
|
|
581
592
|
case 8:
|
|
582
593
|
parsedBody = parsedOutput.body;
|
|
583
594
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -587,7 +598,7 @@ var deserializeAws_json1_1BatchGetImageCommandError = function (output, context)
|
|
|
587
598
|
message = response.message || response.Message || errorCode;
|
|
588
599
|
response.message = message;
|
|
589
600
|
delete response.Message;
|
|
590
|
-
return [2
|
|
601
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
591
602
|
}
|
|
592
603
|
});
|
|
593
604
|
}); };
|
|
@@ -597,15 +608,15 @@ export var deserializeAws_json1_1CompleteLayerUploadCommand = function (output,
|
|
|
597
608
|
switch (_a.label) {
|
|
598
609
|
case 0:
|
|
599
610
|
if (output.statusCode >= 300) {
|
|
600
|
-
return [2
|
|
611
|
+
return [2, deserializeAws_json1_1CompleteLayerUploadCommandError(output, context)];
|
|
601
612
|
}
|
|
602
|
-
return [4
|
|
613
|
+
return [4, parseBody(output.body, context)];
|
|
603
614
|
case 1:
|
|
604
615
|
data = _a.sent();
|
|
605
616
|
contents = {};
|
|
606
617
|
contents = deserializeAws_json1_1CompleteLayerUploadResponse(data, context);
|
|
607
618
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
608
|
-
return [2
|
|
619
|
+
return [2, Promise.resolve(response)];
|
|
609
620
|
}
|
|
610
621
|
});
|
|
611
622
|
}); };
|
|
@@ -617,87 +628,87 @@ var deserializeAws_json1_1CompleteLayerUploadCommandError = function (output, co
|
|
|
617
628
|
case 0:
|
|
618
629
|
_a = [__assign({}, output)];
|
|
619
630
|
_m = {};
|
|
620
|
-
return [4
|
|
631
|
+
return [4, parseBody(output.body, context)];
|
|
621
632
|
case 1:
|
|
622
633
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
623
634
|
errorCode = "UnknownError";
|
|
624
635
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
636
|
_b = errorCode;
|
|
626
637
|
switch (_b) {
|
|
627
|
-
case "EmptyUploadException": return [3
|
|
628
|
-
case "com.amazonaws.ecr#EmptyUploadException": return [3
|
|
629
|
-
case "InvalidLayerException": return [3
|
|
630
|
-
case "com.amazonaws.ecr#InvalidLayerException": return [3
|
|
631
|
-
case "InvalidParameterException": return [3
|
|
632
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
633
|
-
case "KmsException": return [3
|
|
634
|
-
case "com.amazonaws.ecr#KmsException": return [3
|
|
635
|
-
case "LayerAlreadyExistsException": return [3
|
|
636
|
-
case "com.amazonaws.ecr#LayerAlreadyExistsException": return [3
|
|
637
|
-
case "LayerPartTooSmallException": return [3
|
|
638
|
-
case "com.amazonaws.ecr#LayerPartTooSmallException": return [3
|
|
639
|
-
case "RepositoryNotFoundException": return [3
|
|
640
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
641
|
-
case "ServerException": return [3
|
|
642
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
643
|
-
case "UploadNotFoundException": return [3
|
|
644
|
-
case "com.amazonaws.ecr#UploadNotFoundException": return [3
|
|
638
|
+
case "EmptyUploadException": return [3, 2];
|
|
639
|
+
case "com.amazonaws.ecr#EmptyUploadException": return [3, 2];
|
|
640
|
+
case "InvalidLayerException": return [3, 4];
|
|
641
|
+
case "com.amazonaws.ecr#InvalidLayerException": return [3, 4];
|
|
642
|
+
case "InvalidParameterException": return [3, 6];
|
|
643
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 6];
|
|
644
|
+
case "KmsException": return [3, 8];
|
|
645
|
+
case "com.amazonaws.ecr#KmsException": return [3, 8];
|
|
646
|
+
case "LayerAlreadyExistsException": return [3, 10];
|
|
647
|
+
case "com.amazonaws.ecr#LayerAlreadyExistsException": return [3, 10];
|
|
648
|
+
case "LayerPartTooSmallException": return [3, 12];
|
|
649
|
+
case "com.amazonaws.ecr#LayerPartTooSmallException": return [3, 12];
|
|
650
|
+
case "RepositoryNotFoundException": return [3, 14];
|
|
651
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 14];
|
|
652
|
+
case "ServerException": return [3, 16];
|
|
653
|
+
case "com.amazonaws.ecr#ServerException": return [3, 16];
|
|
654
|
+
case "UploadNotFoundException": return [3, 18];
|
|
655
|
+
case "com.amazonaws.ecr#UploadNotFoundException": return [3, 18];
|
|
645
656
|
}
|
|
646
|
-
return [3
|
|
657
|
+
return [3, 20];
|
|
647
658
|
case 2:
|
|
648
659
|
_c = [{}];
|
|
649
|
-
return [4
|
|
660
|
+
return [4, deserializeAws_json1_1EmptyUploadExceptionResponse(parsedOutput, context)];
|
|
650
661
|
case 3:
|
|
651
662
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
652
|
-
return [3
|
|
663
|
+
return [3, 21];
|
|
653
664
|
case 4:
|
|
654
665
|
_d = [{}];
|
|
655
|
-
return [4
|
|
666
|
+
return [4, deserializeAws_json1_1InvalidLayerExceptionResponse(parsedOutput, context)];
|
|
656
667
|
case 5:
|
|
657
668
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
658
|
-
return [3
|
|
669
|
+
return [3, 21];
|
|
659
670
|
case 6:
|
|
660
671
|
_e = [{}];
|
|
661
|
-
return [4
|
|
672
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
662
673
|
case 7:
|
|
663
674
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
664
|
-
return [3
|
|
675
|
+
return [3, 21];
|
|
665
676
|
case 8:
|
|
666
677
|
_f = [{}];
|
|
667
|
-
return [4
|
|
678
|
+
return [4, deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)];
|
|
668
679
|
case 9:
|
|
669
680
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
670
|
-
return [3
|
|
681
|
+
return [3, 21];
|
|
671
682
|
case 10:
|
|
672
683
|
_g = [{}];
|
|
673
|
-
return [4
|
|
684
|
+
return [4, deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
674
685
|
case 11:
|
|
675
686
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
676
|
-
return [3
|
|
687
|
+
return [3, 21];
|
|
677
688
|
case 12:
|
|
678
689
|
_h = [{}];
|
|
679
|
-
return [4
|
|
690
|
+
return [4, deserializeAws_json1_1LayerPartTooSmallExceptionResponse(parsedOutput, context)];
|
|
680
691
|
case 13:
|
|
681
692
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
682
|
-
return [3
|
|
693
|
+
return [3, 21];
|
|
683
694
|
case 14:
|
|
684
695
|
_j = [{}];
|
|
685
|
-
return [4
|
|
696
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
686
697
|
case 15:
|
|
687
698
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
688
|
-
return [3
|
|
699
|
+
return [3, 21];
|
|
689
700
|
case 16:
|
|
690
701
|
_k = [{}];
|
|
691
|
-
return [4
|
|
702
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
692
703
|
case 17:
|
|
693
704
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
694
|
-
return [3
|
|
705
|
+
return [3, 21];
|
|
695
706
|
case 18:
|
|
696
707
|
_l = [{}];
|
|
697
|
-
return [4
|
|
708
|
+
return [4, deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)];
|
|
698
709
|
case 19:
|
|
699
710
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
700
|
-
return [3
|
|
711
|
+
return [3, 21];
|
|
701
712
|
case 20:
|
|
702
713
|
parsedBody = parsedOutput.body;
|
|
703
714
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -707,7 +718,7 @@ var deserializeAws_json1_1CompleteLayerUploadCommandError = function (output, co
|
|
|
707
718
|
message = response.message || response.Message || errorCode;
|
|
708
719
|
response.message = message;
|
|
709
720
|
delete response.Message;
|
|
710
|
-
return [2
|
|
721
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
711
722
|
}
|
|
712
723
|
});
|
|
713
724
|
}); };
|
|
@@ -717,15 +728,15 @@ export var deserializeAws_json1_1CreateRepositoryCommand = function (output, con
|
|
|
717
728
|
switch (_a.label) {
|
|
718
729
|
case 0:
|
|
719
730
|
if (output.statusCode >= 300) {
|
|
720
|
-
return [2
|
|
731
|
+
return [2, deserializeAws_json1_1CreateRepositoryCommandError(output, context)];
|
|
721
732
|
}
|
|
722
|
-
return [4
|
|
733
|
+
return [4, parseBody(output.body, context)];
|
|
723
734
|
case 1:
|
|
724
735
|
data = _a.sent();
|
|
725
736
|
contents = {};
|
|
726
737
|
contents = deserializeAws_json1_1CreateRepositoryResponse(data, context);
|
|
727
738
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
728
|
-
return [2
|
|
739
|
+
return [2, Promise.resolve(response)];
|
|
729
740
|
}
|
|
730
741
|
});
|
|
731
742
|
}); };
|
|
@@ -737,71 +748,71 @@ var deserializeAws_json1_1CreateRepositoryCommandError = function (output, conte
|
|
|
737
748
|
case 0:
|
|
738
749
|
_a = [__assign({}, output)];
|
|
739
750
|
_k = {};
|
|
740
|
-
return [4
|
|
751
|
+
return [4, parseBody(output.body, context)];
|
|
741
752
|
case 1:
|
|
742
753
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
743
754
|
errorCode = "UnknownError";
|
|
744
755
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
756
|
_b = errorCode;
|
|
746
757
|
switch (_b) {
|
|
747
|
-
case "InvalidParameterException": return [3
|
|
748
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
749
|
-
case "InvalidTagParameterException": return [3
|
|
750
|
-
case "com.amazonaws.ecr#InvalidTagParameterException": return [3
|
|
751
|
-
case "KmsException": return [3
|
|
752
|
-
case "com.amazonaws.ecr#KmsException": return [3
|
|
753
|
-
case "LimitExceededException": return [3
|
|
754
|
-
case "com.amazonaws.ecr#LimitExceededException": return [3
|
|
755
|
-
case "RepositoryAlreadyExistsException": return [3
|
|
756
|
-
case "com.amazonaws.ecr#RepositoryAlreadyExistsException": return [3
|
|
757
|
-
case "ServerException": return [3
|
|
758
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
759
|
-
case "TooManyTagsException": return [3
|
|
760
|
-
case "com.amazonaws.ecr#TooManyTagsException": return [3
|
|
758
|
+
case "InvalidParameterException": return [3, 2];
|
|
759
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
760
|
+
case "InvalidTagParameterException": return [3, 4];
|
|
761
|
+
case "com.amazonaws.ecr#InvalidTagParameterException": return [3, 4];
|
|
762
|
+
case "KmsException": return [3, 6];
|
|
763
|
+
case "com.amazonaws.ecr#KmsException": return [3, 6];
|
|
764
|
+
case "LimitExceededException": return [3, 8];
|
|
765
|
+
case "com.amazonaws.ecr#LimitExceededException": return [3, 8];
|
|
766
|
+
case "RepositoryAlreadyExistsException": return [3, 10];
|
|
767
|
+
case "com.amazonaws.ecr#RepositoryAlreadyExistsException": return [3, 10];
|
|
768
|
+
case "ServerException": return [3, 12];
|
|
769
|
+
case "com.amazonaws.ecr#ServerException": return [3, 12];
|
|
770
|
+
case "TooManyTagsException": return [3, 14];
|
|
771
|
+
case "com.amazonaws.ecr#TooManyTagsException": return [3, 14];
|
|
761
772
|
}
|
|
762
|
-
return [3
|
|
773
|
+
return [3, 16];
|
|
763
774
|
case 2:
|
|
764
775
|
_c = [{}];
|
|
765
|
-
return [4
|
|
776
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
766
777
|
case 3:
|
|
767
778
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
768
|
-
return [3
|
|
779
|
+
return [3, 17];
|
|
769
780
|
case 4:
|
|
770
781
|
_d = [{}];
|
|
771
|
-
return [4
|
|
782
|
+
return [4, deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)];
|
|
772
783
|
case 5:
|
|
773
784
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
774
|
-
return [3
|
|
785
|
+
return [3, 17];
|
|
775
786
|
case 6:
|
|
776
787
|
_e = [{}];
|
|
777
|
-
return [4
|
|
788
|
+
return [4, deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)];
|
|
778
789
|
case 7:
|
|
779
790
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
780
|
-
return [3
|
|
791
|
+
return [3, 17];
|
|
781
792
|
case 8:
|
|
782
793
|
_f = [{}];
|
|
783
|
-
return [4
|
|
794
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
784
795
|
case 9:
|
|
785
796
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
786
|
-
return [3
|
|
797
|
+
return [3, 17];
|
|
787
798
|
case 10:
|
|
788
799
|
_g = [{}];
|
|
789
|
-
return [4
|
|
800
|
+
return [4, deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
790
801
|
case 11:
|
|
791
802
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
792
|
-
return [3
|
|
803
|
+
return [3, 17];
|
|
793
804
|
case 12:
|
|
794
805
|
_h = [{}];
|
|
795
|
-
return [4
|
|
806
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
796
807
|
case 13:
|
|
797
808
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
798
|
-
return [3
|
|
809
|
+
return [3, 17];
|
|
799
810
|
case 14:
|
|
800
811
|
_j = [{}];
|
|
801
|
-
return [4
|
|
812
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
802
813
|
case 15:
|
|
803
814
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
804
|
-
return [3
|
|
815
|
+
return [3, 17];
|
|
805
816
|
case 16:
|
|
806
817
|
parsedBody = parsedOutput.body;
|
|
807
818
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -811,7 +822,7 @@ var deserializeAws_json1_1CreateRepositoryCommandError = function (output, conte
|
|
|
811
822
|
message = response.message || response.Message || errorCode;
|
|
812
823
|
response.message = message;
|
|
813
824
|
delete response.Message;
|
|
814
|
-
return [2
|
|
825
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
815
826
|
}
|
|
816
827
|
});
|
|
817
828
|
}); };
|
|
@@ -821,15 +832,15 @@ export var deserializeAws_json1_1DeleteLifecyclePolicyCommand = function (output
|
|
|
821
832
|
switch (_a.label) {
|
|
822
833
|
case 0:
|
|
823
834
|
if (output.statusCode >= 300) {
|
|
824
|
-
return [2
|
|
835
|
+
return [2, deserializeAws_json1_1DeleteLifecyclePolicyCommandError(output, context)];
|
|
825
836
|
}
|
|
826
|
-
return [4
|
|
837
|
+
return [4, parseBody(output.body, context)];
|
|
827
838
|
case 1:
|
|
828
839
|
data = _a.sent();
|
|
829
840
|
contents = {};
|
|
830
841
|
contents = deserializeAws_json1_1DeleteLifecyclePolicyResponse(data, context);
|
|
831
842
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
832
|
-
return [2
|
|
843
|
+
return [2, Promise.resolve(response)];
|
|
833
844
|
}
|
|
834
845
|
});
|
|
835
846
|
}); };
|
|
@@ -841,47 +852,47 @@ var deserializeAws_json1_1DeleteLifecyclePolicyCommandError = function (output,
|
|
|
841
852
|
case 0:
|
|
842
853
|
_a = [__assign({}, output)];
|
|
843
854
|
_g = {};
|
|
844
|
-
return [4
|
|
855
|
+
return [4, parseBody(output.body, context)];
|
|
845
856
|
case 1:
|
|
846
857
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
847
858
|
errorCode = "UnknownError";
|
|
848
859
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
860
|
_b = errorCode;
|
|
850
861
|
switch (_b) {
|
|
851
|
-
case "InvalidParameterException": return [3
|
|
852
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
853
|
-
case "LifecyclePolicyNotFoundException": return [3
|
|
854
|
-
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException": return [3
|
|
855
|
-
case "RepositoryNotFoundException": return [3
|
|
856
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
857
|
-
case "ServerException": return [3
|
|
858
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
862
|
+
case "InvalidParameterException": return [3, 2];
|
|
863
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
864
|
+
case "LifecyclePolicyNotFoundException": return [3, 4];
|
|
865
|
+
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException": return [3, 4];
|
|
866
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
867
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 6];
|
|
868
|
+
case "ServerException": return [3, 8];
|
|
869
|
+
case "com.amazonaws.ecr#ServerException": return [3, 8];
|
|
859
870
|
}
|
|
860
|
-
return [3
|
|
871
|
+
return [3, 10];
|
|
861
872
|
case 2:
|
|
862
873
|
_c = [{}];
|
|
863
|
-
return [4
|
|
874
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
864
875
|
case 3:
|
|
865
876
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
866
|
-
return [3
|
|
877
|
+
return [3, 11];
|
|
867
878
|
case 4:
|
|
868
879
|
_d = [{}];
|
|
869
|
-
return [4
|
|
880
|
+
return [4, deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
870
881
|
case 5:
|
|
871
882
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
872
|
-
return [3
|
|
883
|
+
return [3, 11];
|
|
873
884
|
case 6:
|
|
874
885
|
_e = [{}];
|
|
875
|
-
return [4
|
|
886
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
876
887
|
case 7:
|
|
877
888
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
878
|
-
return [3
|
|
889
|
+
return [3, 11];
|
|
879
890
|
case 8:
|
|
880
891
|
_f = [{}];
|
|
881
|
-
return [4
|
|
892
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
882
893
|
case 9:
|
|
883
894
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
884
|
-
return [3
|
|
895
|
+
return [3, 11];
|
|
885
896
|
case 10:
|
|
886
897
|
parsedBody = parsedOutput.body;
|
|
887
898
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -891,7 +902,7 @@ var deserializeAws_json1_1DeleteLifecyclePolicyCommandError = function (output,
|
|
|
891
902
|
message = response.message || response.Message || errorCode;
|
|
892
903
|
response.message = message;
|
|
893
904
|
delete response.Message;
|
|
894
|
-
return [2
|
|
905
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
895
906
|
}
|
|
896
907
|
});
|
|
897
908
|
}); };
|
|
@@ -901,69 +912,77 @@ export var deserializeAws_json1_1DeleteRegistryPolicyCommand = function (output,
|
|
|
901
912
|
switch (_a.label) {
|
|
902
913
|
case 0:
|
|
903
914
|
if (output.statusCode >= 300) {
|
|
904
|
-
return [2
|
|
915
|
+
return [2, deserializeAws_json1_1DeleteRegistryPolicyCommandError(output, context)];
|
|
905
916
|
}
|
|
906
|
-
return [4
|
|
917
|
+
return [4, parseBody(output.body, context)];
|
|
907
918
|
case 1:
|
|
908
919
|
data = _a.sent();
|
|
909
920
|
contents = {};
|
|
910
921
|
contents = deserializeAws_json1_1DeleteRegistryPolicyResponse(data, context);
|
|
911
922
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
912
|
-
return [2
|
|
923
|
+
return [2, Promise.resolve(response)];
|
|
913
924
|
}
|
|
914
925
|
});
|
|
915
926
|
}); };
|
|
916
927
|
var deserializeAws_json1_1DeleteRegistryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
917
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
918
|
-
var
|
|
919
|
-
return __generator(this, function (
|
|
920
|
-
switch (
|
|
928
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
929
|
+
var _g;
|
|
930
|
+
return __generator(this, function (_h) {
|
|
931
|
+
switch (_h.label) {
|
|
921
932
|
case 0:
|
|
922
933
|
_a = [__assign({}, output)];
|
|
923
|
-
|
|
924
|
-
return [4
|
|
934
|
+
_g = {};
|
|
935
|
+
return [4, parseBody(output.body, context)];
|
|
925
936
|
case 1:
|
|
926
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
937
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
927
938
|
errorCode = "UnknownError";
|
|
928
939
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
940
|
_b = errorCode;
|
|
930
941
|
switch (_b) {
|
|
931
|
-
case "InvalidParameterException": return [3
|
|
932
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
933
|
-
case "RegistryPolicyNotFoundException": return [3
|
|
934
|
-
case "com.amazonaws.ecr#RegistryPolicyNotFoundException": return [3
|
|
935
|
-
case "ServerException": return [3
|
|
936
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
942
|
+
case "InvalidParameterException": return [3, 2];
|
|
943
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
944
|
+
case "RegistryPolicyNotFoundException": return [3, 4];
|
|
945
|
+
case "com.amazonaws.ecr#RegistryPolicyNotFoundException": return [3, 4];
|
|
946
|
+
case "ServerException": return [3, 6];
|
|
947
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
948
|
+
case "ValidationException": return [3, 8];
|
|
949
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 8];
|
|
937
950
|
}
|
|
938
|
-
return [3
|
|
951
|
+
return [3, 10];
|
|
939
952
|
case 2:
|
|
940
953
|
_c = [{}];
|
|
941
|
-
return [4
|
|
954
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
942
955
|
case 3:
|
|
943
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
944
|
-
return [3
|
|
956
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
957
|
+
return [3, 11];
|
|
945
958
|
case 4:
|
|
946
959
|
_d = [{}];
|
|
947
|
-
return [4
|
|
960
|
+
return [4, deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
948
961
|
case 5:
|
|
949
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
950
|
-
return [3
|
|
962
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
963
|
+
return [3, 11];
|
|
951
964
|
case 6:
|
|
952
965
|
_e = [{}];
|
|
953
|
-
return [4
|
|
966
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
954
967
|
case 7:
|
|
955
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
956
|
-
return [3
|
|
968
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
969
|
+
return [3, 11];
|
|
957
970
|
case 8:
|
|
971
|
+
_f = [{}];
|
|
972
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
973
|
+
case 9:
|
|
974
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
975
|
+
return [3, 11];
|
|
976
|
+
case 10:
|
|
958
977
|
parsedBody = parsedOutput.body;
|
|
959
978
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
960
979
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
961
|
-
|
|
962
|
-
case
|
|
980
|
+
_h.label = 11;
|
|
981
|
+
case 11:
|
|
963
982
|
message = response.message || response.Message || errorCode;
|
|
964
983
|
response.message = message;
|
|
965
984
|
delete response.Message;
|
|
966
|
-
return [2
|
|
985
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
967
986
|
}
|
|
968
987
|
});
|
|
969
988
|
}); };
|
|
@@ -973,15 +992,15 @@ export var deserializeAws_json1_1DeleteRepositoryCommand = function (output, con
|
|
|
973
992
|
switch (_a.label) {
|
|
974
993
|
case 0:
|
|
975
994
|
if (output.statusCode >= 300) {
|
|
976
|
-
return [2
|
|
995
|
+
return [2, deserializeAws_json1_1DeleteRepositoryCommandError(output, context)];
|
|
977
996
|
}
|
|
978
|
-
return [4
|
|
997
|
+
return [4, parseBody(output.body, context)];
|
|
979
998
|
case 1:
|
|
980
999
|
data = _a.sent();
|
|
981
1000
|
contents = {};
|
|
982
1001
|
contents = deserializeAws_json1_1DeleteRepositoryResponse(data, context);
|
|
983
1002
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
984
|
-
return [2
|
|
1003
|
+
return [2, Promise.resolve(response)];
|
|
985
1004
|
}
|
|
986
1005
|
});
|
|
987
1006
|
}); };
|
|
@@ -993,55 +1012,55 @@ var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, conte
|
|
|
993
1012
|
case 0:
|
|
994
1013
|
_a = [__assign({}, output)];
|
|
995
1014
|
_h = {};
|
|
996
|
-
return [4
|
|
1015
|
+
return [4, parseBody(output.body, context)];
|
|
997
1016
|
case 1:
|
|
998
1017
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
999
1018
|
errorCode = "UnknownError";
|
|
1000
1019
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
1020
|
_b = errorCode;
|
|
1002
1021
|
switch (_b) {
|
|
1003
|
-
case "InvalidParameterException": return [3
|
|
1004
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
1005
|
-
case "KmsException": return [3
|
|
1006
|
-
case "com.amazonaws.ecr#KmsException": return [3
|
|
1007
|
-
case "RepositoryNotEmptyException": return [3
|
|
1008
|
-
case "com.amazonaws.ecr#RepositoryNotEmptyException": return [3
|
|
1009
|
-
case "RepositoryNotFoundException": return [3
|
|
1010
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
1011
|
-
case "ServerException": return [3
|
|
1012
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
1022
|
+
case "InvalidParameterException": return [3, 2];
|
|
1023
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1024
|
+
case "KmsException": return [3, 4];
|
|
1025
|
+
case "com.amazonaws.ecr#KmsException": return [3, 4];
|
|
1026
|
+
case "RepositoryNotEmptyException": return [3, 6];
|
|
1027
|
+
case "com.amazonaws.ecr#RepositoryNotEmptyException": return [3, 6];
|
|
1028
|
+
case "RepositoryNotFoundException": return [3, 8];
|
|
1029
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 8];
|
|
1030
|
+
case "ServerException": return [3, 10];
|
|
1031
|
+
case "com.amazonaws.ecr#ServerException": return [3, 10];
|
|
1013
1032
|
}
|
|
1014
|
-
return [3
|
|
1033
|
+
return [3, 12];
|
|
1015
1034
|
case 2:
|
|
1016
1035
|
_c = [{}];
|
|
1017
|
-
return [4
|
|
1036
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1018
1037
|
case 3:
|
|
1019
1038
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1020
|
-
return [3
|
|
1039
|
+
return [3, 13];
|
|
1021
1040
|
case 4:
|
|
1022
1041
|
_d = [{}];
|
|
1023
|
-
return [4
|
|
1042
|
+
return [4, deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)];
|
|
1024
1043
|
case 5:
|
|
1025
1044
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1026
|
-
return [3
|
|
1045
|
+
return [3, 13];
|
|
1027
1046
|
case 6:
|
|
1028
1047
|
_e = [{}];
|
|
1029
|
-
return [4
|
|
1048
|
+
return [4, deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(parsedOutput, context)];
|
|
1030
1049
|
case 7:
|
|
1031
1050
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1032
|
-
return [3
|
|
1051
|
+
return [3, 13];
|
|
1033
1052
|
case 8:
|
|
1034
1053
|
_f = [{}];
|
|
1035
|
-
return [4
|
|
1054
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1036
1055
|
case 9:
|
|
1037
1056
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1038
|
-
return [3
|
|
1057
|
+
return [3, 13];
|
|
1039
1058
|
case 10:
|
|
1040
1059
|
_g = [{}];
|
|
1041
|
-
return [4
|
|
1060
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1042
1061
|
case 11:
|
|
1043
1062
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1044
|
-
return [3
|
|
1063
|
+
return [3, 13];
|
|
1045
1064
|
case 12:
|
|
1046
1065
|
parsedBody = parsedOutput.body;
|
|
1047
1066
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1051,7 +1070,7 @@ var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, conte
|
|
|
1051
1070
|
message = response.message || response.Message || errorCode;
|
|
1052
1071
|
response.message = message;
|
|
1053
1072
|
delete response.Message;
|
|
1054
|
-
return [2
|
|
1073
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1055
1074
|
}
|
|
1056
1075
|
});
|
|
1057
1076
|
}); };
|
|
@@ -1061,15 +1080,15 @@ export var deserializeAws_json1_1DeleteRepositoryPolicyCommand = function (outpu
|
|
|
1061
1080
|
switch (_a.label) {
|
|
1062
1081
|
case 0:
|
|
1063
1082
|
if (output.statusCode >= 300) {
|
|
1064
|
-
return [2
|
|
1083
|
+
return [2, deserializeAws_json1_1DeleteRepositoryPolicyCommandError(output, context)];
|
|
1065
1084
|
}
|
|
1066
|
-
return [4
|
|
1085
|
+
return [4, parseBody(output.body, context)];
|
|
1067
1086
|
case 1:
|
|
1068
1087
|
data = _a.sent();
|
|
1069
1088
|
contents = {};
|
|
1070
1089
|
contents = deserializeAws_json1_1DeleteRepositoryPolicyResponse(data, context);
|
|
1071
1090
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1072
|
-
return [2
|
|
1091
|
+
return [2, Promise.resolve(response)];
|
|
1073
1092
|
}
|
|
1074
1093
|
});
|
|
1075
1094
|
}); };
|
|
@@ -1081,47 +1100,47 @@ var deserializeAws_json1_1DeleteRepositoryPolicyCommandError = function (output,
|
|
|
1081
1100
|
case 0:
|
|
1082
1101
|
_a = [__assign({}, output)];
|
|
1083
1102
|
_g = {};
|
|
1084
|
-
return [4
|
|
1103
|
+
return [4, parseBody(output.body, context)];
|
|
1085
1104
|
case 1:
|
|
1086
1105
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1087
1106
|
errorCode = "UnknownError";
|
|
1088
1107
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
1108
|
_b = errorCode;
|
|
1090
1109
|
switch (_b) {
|
|
1091
|
-
case "InvalidParameterException": return [3
|
|
1092
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
1093
|
-
case "RepositoryNotFoundException": return [3
|
|
1094
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
1095
|
-
case "RepositoryPolicyNotFoundException": return [3
|
|
1096
|
-
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException": return [3
|
|
1097
|
-
case "ServerException": return [3
|
|
1098
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
1110
|
+
case "InvalidParameterException": return [3, 2];
|
|
1111
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1112
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1113
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
1114
|
+
case "RepositoryPolicyNotFoundException": return [3, 6];
|
|
1115
|
+
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException": return [3, 6];
|
|
1116
|
+
case "ServerException": return [3, 8];
|
|
1117
|
+
case "com.amazonaws.ecr#ServerException": return [3, 8];
|
|
1099
1118
|
}
|
|
1100
|
-
return [3
|
|
1119
|
+
return [3, 10];
|
|
1101
1120
|
case 2:
|
|
1102
1121
|
_c = [{}];
|
|
1103
|
-
return [4
|
|
1122
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1104
1123
|
case 3:
|
|
1105
1124
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1106
|
-
return [3
|
|
1125
|
+
return [3, 11];
|
|
1107
1126
|
case 4:
|
|
1108
1127
|
_d = [{}];
|
|
1109
|
-
return [4
|
|
1128
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1110
1129
|
case 5:
|
|
1111
1130
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1112
|
-
return [3
|
|
1131
|
+
return [3, 11];
|
|
1113
1132
|
case 6:
|
|
1114
1133
|
_e = [{}];
|
|
1115
|
-
return [4
|
|
1134
|
+
return [4, deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
1116
1135
|
case 7:
|
|
1117
1136
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1118
|
-
return [3
|
|
1137
|
+
return [3, 11];
|
|
1119
1138
|
case 8:
|
|
1120
1139
|
_f = [{}];
|
|
1121
|
-
return [4
|
|
1140
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1122
1141
|
case 9:
|
|
1123
1142
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1124
|
-
return [3
|
|
1143
|
+
return [3, 11];
|
|
1125
1144
|
case 10:
|
|
1126
1145
|
parsedBody = parsedOutput.body;
|
|
1127
1146
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1131,7 +1150,95 @@ var deserializeAws_json1_1DeleteRepositoryPolicyCommandError = function (output,
|
|
|
1131
1150
|
message = response.message || response.Message || errorCode;
|
|
1132
1151
|
response.message = message;
|
|
1133
1152
|
delete response.Message;
|
|
1134
|
-
return [2
|
|
1153
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1154
|
+
}
|
|
1155
|
+
});
|
|
1156
|
+
}); };
|
|
1157
|
+
export var deserializeAws_json1_1DescribeImageReplicationStatusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1158
|
+
var data, contents, response;
|
|
1159
|
+
return __generator(this, function (_a) {
|
|
1160
|
+
switch (_a.label) {
|
|
1161
|
+
case 0:
|
|
1162
|
+
if (output.statusCode >= 300) {
|
|
1163
|
+
return [2, deserializeAws_json1_1DescribeImageReplicationStatusCommandError(output, context)];
|
|
1164
|
+
}
|
|
1165
|
+
return [4, parseBody(output.body, context)];
|
|
1166
|
+
case 1:
|
|
1167
|
+
data = _a.sent();
|
|
1168
|
+
contents = {};
|
|
1169
|
+
contents = deserializeAws_json1_1DescribeImageReplicationStatusResponse(data, context);
|
|
1170
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1171
|
+
return [2, Promise.resolve(response)];
|
|
1172
|
+
}
|
|
1173
|
+
});
|
|
1174
|
+
}); };
|
|
1175
|
+
var deserializeAws_json1_1DescribeImageReplicationStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1176
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
1177
|
+
var _h;
|
|
1178
|
+
return __generator(this, function (_j) {
|
|
1179
|
+
switch (_j.label) {
|
|
1180
|
+
case 0:
|
|
1181
|
+
_a = [__assign({}, output)];
|
|
1182
|
+
_h = {};
|
|
1183
|
+
return [4, parseBody(output.body, context)];
|
|
1184
|
+
case 1:
|
|
1185
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1186
|
+
errorCode = "UnknownError";
|
|
1187
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
|
+
_b = errorCode;
|
|
1189
|
+
switch (_b) {
|
|
1190
|
+
case "ImageNotFoundException": return [3, 2];
|
|
1191
|
+
case "com.amazonaws.ecr#ImageNotFoundException": return [3, 2];
|
|
1192
|
+
case "InvalidParameterException": return [3, 4];
|
|
1193
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 4];
|
|
1194
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
1195
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 6];
|
|
1196
|
+
case "ServerException": return [3, 8];
|
|
1197
|
+
case "com.amazonaws.ecr#ServerException": return [3, 8];
|
|
1198
|
+
case "ValidationException": return [3, 10];
|
|
1199
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 10];
|
|
1200
|
+
}
|
|
1201
|
+
return [3, 12];
|
|
1202
|
+
case 2:
|
|
1203
|
+
_c = [{}];
|
|
1204
|
+
return [4, deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)];
|
|
1205
|
+
case 3:
|
|
1206
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1207
|
+
return [3, 13];
|
|
1208
|
+
case 4:
|
|
1209
|
+
_d = [{}];
|
|
1210
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1211
|
+
case 5:
|
|
1212
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1213
|
+
return [3, 13];
|
|
1214
|
+
case 6:
|
|
1215
|
+
_e = [{}];
|
|
1216
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1217
|
+
case 7:
|
|
1218
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1219
|
+
return [3, 13];
|
|
1220
|
+
case 8:
|
|
1221
|
+
_f = [{}];
|
|
1222
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1223
|
+
case 9:
|
|
1224
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1225
|
+
return [3, 13];
|
|
1226
|
+
case 10:
|
|
1227
|
+
_g = [{}];
|
|
1228
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1229
|
+
case 11:
|
|
1230
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1231
|
+
return [3, 13];
|
|
1232
|
+
case 12:
|
|
1233
|
+
parsedBody = parsedOutput.body;
|
|
1234
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1235
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1236
|
+
_j.label = 13;
|
|
1237
|
+
case 13:
|
|
1238
|
+
message = response.message || response.Message || errorCode;
|
|
1239
|
+
response.message = message;
|
|
1240
|
+
delete response.Message;
|
|
1241
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1135
1242
|
}
|
|
1136
1243
|
});
|
|
1137
1244
|
}); };
|
|
@@ -1141,15 +1248,15 @@ export var deserializeAws_json1_1DescribeImagesCommand = function (output, conte
|
|
|
1141
1248
|
switch (_a.label) {
|
|
1142
1249
|
case 0:
|
|
1143
1250
|
if (output.statusCode >= 300) {
|
|
1144
|
-
return [2
|
|
1251
|
+
return [2, deserializeAws_json1_1DescribeImagesCommandError(output, context)];
|
|
1145
1252
|
}
|
|
1146
|
-
return [4
|
|
1253
|
+
return [4, parseBody(output.body, context)];
|
|
1147
1254
|
case 1:
|
|
1148
1255
|
data = _a.sent();
|
|
1149
1256
|
contents = {};
|
|
1150
1257
|
contents = deserializeAws_json1_1DescribeImagesResponse(data, context);
|
|
1151
1258
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1152
|
-
return [2
|
|
1259
|
+
return [2, Promise.resolve(response)];
|
|
1153
1260
|
}
|
|
1154
1261
|
});
|
|
1155
1262
|
}); };
|
|
@@ -1161,47 +1268,47 @@ var deserializeAws_json1_1DescribeImagesCommandError = function (output, context
|
|
|
1161
1268
|
case 0:
|
|
1162
1269
|
_a = [__assign({}, output)];
|
|
1163
1270
|
_g = {};
|
|
1164
|
-
return [4
|
|
1271
|
+
return [4, parseBody(output.body, context)];
|
|
1165
1272
|
case 1:
|
|
1166
1273
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1167
1274
|
errorCode = "UnknownError";
|
|
1168
1275
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
1276
|
_b = errorCode;
|
|
1170
1277
|
switch (_b) {
|
|
1171
|
-
case "ImageNotFoundException": return [3
|
|
1172
|
-
case "com.amazonaws.ecr#ImageNotFoundException": return [3
|
|
1173
|
-
case "InvalidParameterException": return [3
|
|
1174
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
1175
|
-
case "RepositoryNotFoundException": return [3
|
|
1176
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
1177
|
-
case "ServerException": return [3
|
|
1178
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
1278
|
+
case "ImageNotFoundException": return [3, 2];
|
|
1279
|
+
case "com.amazonaws.ecr#ImageNotFoundException": return [3, 2];
|
|
1280
|
+
case "InvalidParameterException": return [3, 4];
|
|
1281
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 4];
|
|
1282
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
1283
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 6];
|
|
1284
|
+
case "ServerException": return [3, 8];
|
|
1285
|
+
case "com.amazonaws.ecr#ServerException": return [3, 8];
|
|
1179
1286
|
}
|
|
1180
|
-
return [3
|
|
1287
|
+
return [3, 10];
|
|
1181
1288
|
case 2:
|
|
1182
1289
|
_c = [{}];
|
|
1183
|
-
return [4
|
|
1290
|
+
return [4, deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)];
|
|
1184
1291
|
case 3:
|
|
1185
1292
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1186
|
-
return [3
|
|
1293
|
+
return [3, 11];
|
|
1187
1294
|
case 4:
|
|
1188
1295
|
_d = [{}];
|
|
1189
|
-
return [4
|
|
1296
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1190
1297
|
case 5:
|
|
1191
1298
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1192
|
-
return [3
|
|
1299
|
+
return [3, 11];
|
|
1193
1300
|
case 6:
|
|
1194
1301
|
_e = [{}];
|
|
1195
|
-
return [4
|
|
1302
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1196
1303
|
case 7:
|
|
1197
1304
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1198
|
-
return [3
|
|
1305
|
+
return [3, 11];
|
|
1199
1306
|
case 8:
|
|
1200
1307
|
_f = [{}];
|
|
1201
|
-
return [4
|
|
1308
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1202
1309
|
case 9:
|
|
1203
1310
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1204
|
-
return [3
|
|
1311
|
+
return [3, 11];
|
|
1205
1312
|
case 10:
|
|
1206
1313
|
parsedBody = parsedOutput.body;
|
|
1207
1314
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1211,7 +1318,7 @@ var deserializeAws_json1_1DescribeImagesCommandError = function (output, context
|
|
|
1211
1318
|
message = response.message || response.Message || errorCode;
|
|
1212
1319
|
response.message = message;
|
|
1213
1320
|
delete response.Message;
|
|
1214
|
-
return [2
|
|
1321
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1215
1322
|
}
|
|
1216
1323
|
});
|
|
1217
1324
|
}); };
|
|
@@ -1221,15 +1328,15 @@ export var deserializeAws_json1_1DescribeImageScanFindingsCommand = function (ou
|
|
|
1221
1328
|
switch (_a.label) {
|
|
1222
1329
|
case 0:
|
|
1223
1330
|
if (output.statusCode >= 300) {
|
|
1224
|
-
return [2
|
|
1331
|
+
return [2, deserializeAws_json1_1DescribeImageScanFindingsCommandError(output, context)];
|
|
1225
1332
|
}
|
|
1226
|
-
return [4
|
|
1333
|
+
return [4, parseBody(output.body, context)];
|
|
1227
1334
|
case 1:
|
|
1228
1335
|
data = _a.sent();
|
|
1229
1336
|
contents = {};
|
|
1230
1337
|
contents = deserializeAws_json1_1DescribeImageScanFindingsResponse(data, context);
|
|
1231
1338
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1232
|
-
return [2
|
|
1339
|
+
return [2, Promise.resolve(response)];
|
|
1233
1340
|
}
|
|
1234
1341
|
});
|
|
1235
1342
|
}); };
|
|
@@ -1241,55 +1348,55 @@ var deserializeAws_json1_1DescribeImageScanFindingsCommandError = function (outp
|
|
|
1241
1348
|
case 0:
|
|
1242
1349
|
_a = [__assign({}, output)];
|
|
1243
1350
|
_h = {};
|
|
1244
|
-
return [4
|
|
1351
|
+
return [4, parseBody(output.body, context)];
|
|
1245
1352
|
case 1:
|
|
1246
1353
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1247
1354
|
errorCode = "UnknownError";
|
|
1248
1355
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
1356
|
_b = errorCode;
|
|
1250
1357
|
switch (_b) {
|
|
1251
|
-
case "ImageNotFoundException": return [3
|
|
1252
|
-
case "com.amazonaws.ecr#ImageNotFoundException": return [3
|
|
1253
|
-
case "InvalidParameterException": return [3
|
|
1254
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
1255
|
-
case "RepositoryNotFoundException": return [3
|
|
1256
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
1257
|
-
case "ScanNotFoundException": return [3
|
|
1258
|
-
case "com.amazonaws.ecr#ScanNotFoundException": return [3
|
|
1259
|
-
case "ServerException": return [3
|
|
1260
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
1358
|
+
case "ImageNotFoundException": return [3, 2];
|
|
1359
|
+
case "com.amazonaws.ecr#ImageNotFoundException": return [3, 2];
|
|
1360
|
+
case "InvalidParameterException": return [3, 4];
|
|
1361
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 4];
|
|
1362
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
1363
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 6];
|
|
1364
|
+
case "ScanNotFoundException": return [3, 8];
|
|
1365
|
+
case "com.amazonaws.ecr#ScanNotFoundException": return [3, 8];
|
|
1366
|
+
case "ServerException": return [3, 10];
|
|
1367
|
+
case "com.amazonaws.ecr#ServerException": return [3, 10];
|
|
1261
1368
|
}
|
|
1262
|
-
return [3
|
|
1369
|
+
return [3, 12];
|
|
1263
1370
|
case 2:
|
|
1264
1371
|
_c = [{}];
|
|
1265
|
-
return [4
|
|
1372
|
+
return [4, deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)];
|
|
1266
1373
|
case 3:
|
|
1267
1374
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1268
|
-
return [3
|
|
1375
|
+
return [3, 13];
|
|
1269
1376
|
case 4:
|
|
1270
1377
|
_d = [{}];
|
|
1271
|
-
return [4
|
|
1378
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1272
1379
|
case 5:
|
|
1273
1380
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1274
|
-
return [3
|
|
1381
|
+
return [3, 13];
|
|
1275
1382
|
case 6:
|
|
1276
1383
|
_e = [{}];
|
|
1277
|
-
return [4
|
|
1384
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1278
1385
|
case 7:
|
|
1279
1386
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1280
|
-
return [3
|
|
1387
|
+
return [3, 13];
|
|
1281
1388
|
case 8:
|
|
1282
1389
|
_f = [{}];
|
|
1283
|
-
return [4
|
|
1390
|
+
return [4, deserializeAws_json1_1ScanNotFoundExceptionResponse(parsedOutput, context)];
|
|
1284
1391
|
case 9:
|
|
1285
1392
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1286
|
-
return [3
|
|
1393
|
+
return [3, 13];
|
|
1287
1394
|
case 10:
|
|
1288
1395
|
_g = [{}];
|
|
1289
|
-
return [4
|
|
1396
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1290
1397
|
case 11:
|
|
1291
1398
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1292
|
-
return [3
|
|
1399
|
+
return [3, 13];
|
|
1293
1400
|
case 12:
|
|
1294
1401
|
parsedBody = parsedOutput.body;
|
|
1295
1402
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1299,7 +1406,7 @@ var deserializeAws_json1_1DescribeImageScanFindingsCommandError = function (outp
|
|
|
1299
1406
|
message = response.message || response.Message || errorCode;
|
|
1300
1407
|
response.message = message;
|
|
1301
1408
|
delete response.Message;
|
|
1302
|
-
return [2
|
|
1409
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1303
1410
|
}
|
|
1304
1411
|
});
|
|
1305
1412
|
}); };
|
|
@@ -1309,15 +1416,15 @@ export var deserializeAws_json1_1DescribeRegistryCommand = function (output, con
|
|
|
1309
1416
|
switch (_a.label) {
|
|
1310
1417
|
case 0:
|
|
1311
1418
|
if (output.statusCode >= 300) {
|
|
1312
|
-
return [2
|
|
1419
|
+
return [2, deserializeAws_json1_1DescribeRegistryCommandError(output, context)];
|
|
1313
1420
|
}
|
|
1314
|
-
return [4
|
|
1421
|
+
return [4, parseBody(output.body, context)];
|
|
1315
1422
|
case 1:
|
|
1316
1423
|
data = _a.sent();
|
|
1317
1424
|
contents = {};
|
|
1318
1425
|
contents = deserializeAws_json1_1DescribeRegistryResponse(data, context);
|
|
1319
1426
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1320
|
-
return [2
|
|
1427
|
+
return [2, Promise.resolve(response)];
|
|
1321
1428
|
}
|
|
1322
1429
|
});
|
|
1323
1430
|
}); };
|
|
@@ -1329,39 +1436,39 @@ var deserializeAws_json1_1DescribeRegistryCommandError = function (output, conte
|
|
|
1329
1436
|
case 0:
|
|
1330
1437
|
_a = [__assign({}, output)];
|
|
1331
1438
|
_f = {};
|
|
1332
|
-
return [4
|
|
1439
|
+
return [4, parseBody(output.body, context)];
|
|
1333
1440
|
case 1:
|
|
1334
1441
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1335
1442
|
errorCode = "UnknownError";
|
|
1336
1443
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1337
1444
|
_b = errorCode;
|
|
1338
1445
|
switch (_b) {
|
|
1339
|
-
case "InvalidParameterException": return [3
|
|
1340
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
1341
|
-
case "ServerException": return [3
|
|
1342
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
1343
|
-
case "ValidationException": return [3
|
|
1344
|
-
case "com.amazonaws.ecr#ValidationException": return [3
|
|
1446
|
+
case "InvalidParameterException": return [3, 2];
|
|
1447
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1448
|
+
case "ServerException": return [3, 4];
|
|
1449
|
+
case "com.amazonaws.ecr#ServerException": return [3, 4];
|
|
1450
|
+
case "ValidationException": return [3, 6];
|
|
1451
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 6];
|
|
1345
1452
|
}
|
|
1346
|
-
return [3
|
|
1453
|
+
return [3, 8];
|
|
1347
1454
|
case 2:
|
|
1348
1455
|
_c = [{}];
|
|
1349
|
-
return [4
|
|
1456
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1350
1457
|
case 3:
|
|
1351
1458
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1352
|
-
return [3
|
|
1459
|
+
return [3, 9];
|
|
1353
1460
|
case 4:
|
|
1354
1461
|
_d = [{}];
|
|
1355
|
-
return [4
|
|
1462
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1356
1463
|
case 5:
|
|
1357
1464
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1358
|
-
return [3
|
|
1465
|
+
return [3, 9];
|
|
1359
1466
|
case 6:
|
|
1360
1467
|
_e = [{}];
|
|
1361
|
-
return [4
|
|
1468
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1362
1469
|
case 7:
|
|
1363
1470
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1364
|
-
return [3
|
|
1471
|
+
return [3, 9];
|
|
1365
1472
|
case 8:
|
|
1366
1473
|
parsedBody = parsedOutput.body;
|
|
1367
1474
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1371,7 +1478,7 @@ var deserializeAws_json1_1DescribeRegistryCommandError = function (output, conte
|
|
|
1371
1478
|
message = response.message || response.Message || errorCode;
|
|
1372
1479
|
response.message = message;
|
|
1373
1480
|
delete response.Message;
|
|
1374
|
-
return [2
|
|
1481
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1375
1482
|
}
|
|
1376
1483
|
});
|
|
1377
1484
|
}); };
|
|
@@ -1381,15 +1488,15 @@ export var deserializeAws_json1_1DescribeRepositoriesCommand = function (output,
|
|
|
1381
1488
|
switch (_a.label) {
|
|
1382
1489
|
case 0:
|
|
1383
1490
|
if (output.statusCode >= 300) {
|
|
1384
|
-
return [2
|
|
1491
|
+
return [2, deserializeAws_json1_1DescribeRepositoriesCommandError(output, context)];
|
|
1385
1492
|
}
|
|
1386
|
-
return [4
|
|
1493
|
+
return [4, parseBody(output.body, context)];
|
|
1387
1494
|
case 1:
|
|
1388
1495
|
data = _a.sent();
|
|
1389
1496
|
contents = {};
|
|
1390
1497
|
contents = deserializeAws_json1_1DescribeRepositoriesResponse(data, context);
|
|
1391
1498
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1392
|
-
return [2
|
|
1499
|
+
return [2, Promise.resolve(response)];
|
|
1393
1500
|
}
|
|
1394
1501
|
});
|
|
1395
1502
|
}); };
|
|
@@ -1401,39 +1508,39 @@ var deserializeAws_json1_1DescribeRepositoriesCommandError = function (output, c
|
|
|
1401
1508
|
case 0:
|
|
1402
1509
|
_a = [__assign({}, output)];
|
|
1403
1510
|
_f = {};
|
|
1404
|
-
return [4
|
|
1511
|
+
return [4, parseBody(output.body, context)];
|
|
1405
1512
|
case 1:
|
|
1406
1513
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1407
1514
|
errorCode = "UnknownError";
|
|
1408
1515
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1516
|
_b = errorCode;
|
|
1410
1517
|
switch (_b) {
|
|
1411
|
-
case "InvalidParameterException": return [3
|
|
1412
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
1413
|
-
case "RepositoryNotFoundException": return [3
|
|
1414
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
1415
|
-
case "ServerException": return [3
|
|
1416
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
1518
|
+
case "InvalidParameterException": return [3, 2];
|
|
1519
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1520
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1521
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
1522
|
+
case "ServerException": return [3, 6];
|
|
1523
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
1417
1524
|
}
|
|
1418
|
-
return [3
|
|
1525
|
+
return [3, 8];
|
|
1419
1526
|
case 2:
|
|
1420
1527
|
_c = [{}];
|
|
1421
|
-
return [4
|
|
1528
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1422
1529
|
case 3:
|
|
1423
1530
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1424
|
-
return [3
|
|
1531
|
+
return [3, 9];
|
|
1425
1532
|
case 4:
|
|
1426
1533
|
_d = [{}];
|
|
1427
|
-
return [4
|
|
1534
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1428
1535
|
case 5:
|
|
1429
1536
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1430
|
-
return [3
|
|
1537
|
+
return [3, 9];
|
|
1431
1538
|
case 6:
|
|
1432
1539
|
_e = [{}];
|
|
1433
|
-
return [4
|
|
1540
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1434
1541
|
case 7:
|
|
1435
1542
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1436
|
-
return [3
|
|
1543
|
+
return [3, 9];
|
|
1437
1544
|
case 8:
|
|
1438
1545
|
parsedBody = parsedOutput.body;
|
|
1439
1546
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1443,7 +1550,7 @@ var deserializeAws_json1_1DescribeRepositoriesCommandError = function (output, c
|
|
|
1443
1550
|
message = response.message || response.Message || errorCode;
|
|
1444
1551
|
response.message = message;
|
|
1445
1552
|
delete response.Message;
|
|
1446
|
-
return [2
|
|
1553
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1447
1554
|
}
|
|
1448
1555
|
});
|
|
1449
1556
|
}); };
|
|
@@ -1453,15 +1560,15 @@ export var deserializeAws_json1_1GetAuthorizationTokenCommand = function (output
|
|
|
1453
1560
|
switch (_a.label) {
|
|
1454
1561
|
case 0:
|
|
1455
1562
|
if (output.statusCode >= 300) {
|
|
1456
|
-
return [2
|
|
1563
|
+
return [2, deserializeAws_json1_1GetAuthorizationTokenCommandError(output, context)];
|
|
1457
1564
|
}
|
|
1458
|
-
return [4
|
|
1565
|
+
return [4, parseBody(output.body, context)];
|
|
1459
1566
|
case 1:
|
|
1460
1567
|
data = _a.sent();
|
|
1461
1568
|
contents = {};
|
|
1462
1569
|
contents = deserializeAws_json1_1GetAuthorizationTokenResponse(data, context);
|
|
1463
1570
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1464
|
-
return [2
|
|
1571
|
+
return [2, Promise.resolve(response)];
|
|
1465
1572
|
}
|
|
1466
1573
|
});
|
|
1467
1574
|
}); };
|
|
@@ -1473,31 +1580,31 @@ var deserializeAws_json1_1GetAuthorizationTokenCommandError = function (output,
|
|
|
1473
1580
|
case 0:
|
|
1474
1581
|
_a = [__assign({}, output)];
|
|
1475
1582
|
_e = {};
|
|
1476
|
-
return [4
|
|
1583
|
+
return [4, parseBody(output.body, context)];
|
|
1477
1584
|
case 1:
|
|
1478
1585
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1479
1586
|
errorCode = "UnknownError";
|
|
1480
1587
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1481
1588
|
_b = errorCode;
|
|
1482
1589
|
switch (_b) {
|
|
1483
|
-
case "InvalidParameterException": return [3
|
|
1484
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
1485
|
-
case "ServerException": return [3
|
|
1486
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
1590
|
+
case "InvalidParameterException": return [3, 2];
|
|
1591
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1592
|
+
case "ServerException": return [3, 4];
|
|
1593
|
+
case "com.amazonaws.ecr#ServerException": return [3, 4];
|
|
1487
1594
|
}
|
|
1488
|
-
return [3
|
|
1595
|
+
return [3, 6];
|
|
1489
1596
|
case 2:
|
|
1490
1597
|
_c = [{}];
|
|
1491
|
-
return [4
|
|
1598
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1492
1599
|
case 3:
|
|
1493
1600
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1494
|
-
return [3
|
|
1601
|
+
return [3, 7];
|
|
1495
1602
|
case 4:
|
|
1496
1603
|
_d = [{}];
|
|
1497
|
-
return [4
|
|
1604
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1498
1605
|
case 5:
|
|
1499
1606
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1500
|
-
return [3
|
|
1607
|
+
return [3, 7];
|
|
1501
1608
|
case 6:
|
|
1502
1609
|
parsedBody = parsedOutput.body;
|
|
1503
1610
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1507,7 +1614,7 @@ var deserializeAws_json1_1GetAuthorizationTokenCommandError = function (output,
|
|
|
1507
1614
|
message = response.message || response.Message || errorCode;
|
|
1508
1615
|
response.message = message;
|
|
1509
1616
|
delete response.Message;
|
|
1510
|
-
return [2
|
|
1617
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1511
1618
|
}
|
|
1512
1619
|
});
|
|
1513
1620
|
}); };
|
|
@@ -1517,15 +1624,15 @@ export var deserializeAws_json1_1GetDownloadUrlForLayerCommand = function (outpu
|
|
|
1517
1624
|
switch (_a.label) {
|
|
1518
1625
|
case 0:
|
|
1519
1626
|
if (output.statusCode >= 300) {
|
|
1520
|
-
return [2
|
|
1627
|
+
return [2, deserializeAws_json1_1GetDownloadUrlForLayerCommandError(output, context)];
|
|
1521
1628
|
}
|
|
1522
|
-
return [4
|
|
1629
|
+
return [4, parseBody(output.body, context)];
|
|
1523
1630
|
case 1:
|
|
1524
1631
|
data = _a.sent();
|
|
1525
1632
|
contents = {};
|
|
1526
1633
|
contents = deserializeAws_json1_1GetDownloadUrlForLayerResponse(data, context);
|
|
1527
1634
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1528
|
-
return [2
|
|
1635
|
+
return [2, Promise.resolve(response)];
|
|
1529
1636
|
}
|
|
1530
1637
|
});
|
|
1531
1638
|
}); };
|
|
@@ -1537,55 +1644,55 @@ var deserializeAws_json1_1GetDownloadUrlForLayerCommandError = function (output,
|
|
|
1537
1644
|
case 0:
|
|
1538
1645
|
_a = [__assign({}, output)];
|
|
1539
1646
|
_h = {};
|
|
1540
|
-
return [4
|
|
1647
|
+
return [4, parseBody(output.body, context)];
|
|
1541
1648
|
case 1:
|
|
1542
1649
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1543
1650
|
errorCode = "UnknownError";
|
|
1544
1651
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1545
1652
|
_b = errorCode;
|
|
1546
1653
|
switch (_b) {
|
|
1547
|
-
case "InvalidParameterException": return [3
|
|
1548
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
1549
|
-
case "LayerInaccessibleException": return [3
|
|
1550
|
-
case "com.amazonaws.ecr#LayerInaccessibleException": return [3
|
|
1551
|
-
case "LayersNotFoundException": return [3
|
|
1552
|
-
case "com.amazonaws.ecr#LayersNotFoundException": return [3
|
|
1553
|
-
case "RepositoryNotFoundException": return [3
|
|
1554
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
1555
|
-
case "ServerException": return [3
|
|
1556
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
1654
|
+
case "InvalidParameterException": return [3, 2];
|
|
1655
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1656
|
+
case "LayerInaccessibleException": return [3, 4];
|
|
1657
|
+
case "com.amazonaws.ecr#LayerInaccessibleException": return [3, 4];
|
|
1658
|
+
case "LayersNotFoundException": return [3, 6];
|
|
1659
|
+
case "com.amazonaws.ecr#LayersNotFoundException": return [3, 6];
|
|
1660
|
+
case "RepositoryNotFoundException": return [3, 8];
|
|
1661
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 8];
|
|
1662
|
+
case "ServerException": return [3, 10];
|
|
1663
|
+
case "com.amazonaws.ecr#ServerException": return [3, 10];
|
|
1557
1664
|
}
|
|
1558
|
-
return [3
|
|
1665
|
+
return [3, 12];
|
|
1559
1666
|
case 2:
|
|
1560
1667
|
_c = [{}];
|
|
1561
|
-
return [4
|
|
1668
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1562
1669
|
case 3:
|
|
1563
1670
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1564
|
-
return [3
|
|
1671
|
+
return [3, 13];
|
|
1565
1672
|
case 4:
|
|
1566
1673
|
_d = [{}];
|
|
1567
|
-
return [4
|
|
1674
|
+
return [4, deserializeAws_json1_1LayerInaccessibleExceptionResponse(parsedOutput, context)];
|
|
1568
1675
|
case 5:
|
|
1569
1676
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1570
|
-
return [3
|
|
1677
|
+
return [3, 13];
|
|
1571
1678
|
case 6:
|
|
1572
1679
|
_e = [{}];
|
|
1573
|
-
return [4
|
|
1680
|
+
return [4, deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context)];
|
|
1574
1681
|
case 7:
|
|
1575
1682
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1576
|
-
return [3
|
|
1683
|
+
return [3, 13];
|
|
1577
1684
|
case 8:
|
|
1578
1685
|
_f = [{}];
|
|
1579
|
-
return [4
|
|
1686
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1580
1687
|
case 9:
|
|
1581
1688
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1582
|
-
return [3
|
|
1689
|
+
return [3, 13];
|
|
1583
1690
|
case 10:
|
|
1584
1691
|
_g = [{}];
|
|
1585
|
-
return [4
|
|
1692
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1586
1693
|
case 11:
|
|
1587
1694
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1588
|
-
return [3
|
|
1695
|
+
return [3, 13];
|
|
1589
1696
|
case 12:
|
|
1590
1697
|
parsedBody = parsedOutput.body;
|
|
1591
1698
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1595,7 +1702,7 @@ var deserializeAws_json1_1GetDownloadUrlForLayerCommandError = function (output,
|
|
|
1595
1702
|
message = response.message || response.Message || errorCode;
|
|
1596
1703
|
response.message = message;
|
|
1597
1704
|
delete response.Message;
|
|
1598
|
-
return [2
|
|
1705
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1599
1706
|
}
|
|
1600
1707
|
});
|
|
1601
1708
|
}); };
|
|
@@ -1605,15 +1712,15 @@ export var deserializeAws_json1_1GetLifecyclePolicyCommand = function (output, c
|
|
|
1605
1712
|
switch (_a.label) {
|
|
1606
1713
|
case 0:
|
|
1607
1714
|
if (output.statusCode >= 300) {
|
|
1608
|
-
return [2
|
|
1715
|
+
return [2, deserializeAws_json1_1GetLifecyclePolicyCommandError(output, context)];
|
|
1609
1716
|
}
|
|
1610
|
-
return [4
|
|
1717
|
+
return [4, parseBody(output.body, context)];
|
|
1611
1718
|
case 1:
|
|
1612
1719
|
data = _a.sent();
|
|
1613
1720
|
contents = {};
|
|
1614
1721
|
contents = deserializeAws_json1_1GetLifecyclePolicyResponse(data, context);
|
|
1615
1722
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1616
|
-
return [2
|
|
1723
|
+
return [2, Promise.resolve(response)];
|
|
1617
1724
|
}
|
|
1618
1725
|
});
|
|
1619
1726
|
}); };
|
|
@@ -1625,47 +1732,47 @@ var deserializeAws_json1_1GetLifecyclePolicyCommandError = function (output, con
|
|
|
1625
1732
|
case 0:
|
|
1626
1733
|
_a = [__assign({}, output)];
|
|
1627
1734
|
_g = {};
|
|
1628
|
-
return [4
|
|
1735
|
+
return [4, parseBody(output.body, context)];
|
|
1629
1736
|
case 1:
|
|
1630
1737
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1631
1738
|
errorCode = "UnknownError";
|
|
1632
1739
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
1740
|
_b = errorCode;
|
|
1634
1741
|
switch (_b) {
|
|
1635
|
-
case "InvalidParameterException": return [3
|
|
1636
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
1637
|
-
case "LifecyclePolicyNotFoundException": return [3
|
|
1638
|
-
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException": return [3
|
|
1639
|
-
case "RepositoryNotFoundException": return [3
|
|
1640
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
1641
|
-
case "ServerException": return [3
|
|
1642
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
1742
|
+
case "InvalidParameterException": return [3, 2];
|
|
1743
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1744
|
+
case "LifecyclePolicyNotFoundException": return [3, 4];
|
|
1745
|
+
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException": return [3, 4];
|
|
1746
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
1747
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 6];
|
|
1748
|
+
case "ServerException": return [3, 8];
|
|
1749
|
+
case "com.amazonaws.ecr#ServerException": return [3, 8];
|
|
1643
1750
|
}
|
|
1644
|
-
return [3
|
|
1751
|
+
return [3, 10];
|
|
1645
1752
|
case 2:
|
|
1646
1753
|
_c = [{}];
|
|
1647
|
-
return [4
|
|
1754
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1648
1755
|
case 3:
|
|
1649
1756
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1650
|
-
return [3
|
|
1757
|
+
return [3, 11];
|
|
1651
1758
|
case 4:
|
|
1652
1759
|
_d = [{}];
|
|
1653
|
-
return [4
|
|
1760
|
+
return [4, deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
1654
1761
|
case 5:
|
|
1655
1762
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1656
|
-
return [3
|
|
1763
|
+
return [3, 11];
|
|
1657
1764
|
case 6:
|
|
1658
1765
|
_e = [{}];
|
|
1659
|
-
return [4
|
|
1766
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1660
1767
|
case 7:
|
|
1661
1768
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1662
|
-
return [3
|
|
1769
|
+
return [3, 11];
|
|
1663
1770
|
case 8:
|
|
1664
1771
|
_f = [{}];
|
|
1665
|
-
return [4
|
|
1772
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1666
1773
|
case 9:
|
|
1667
1774
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1668
|
-
return [3
|
|
1775
|
+
return [3, 11];
|
|
1669
1776
|
case 10:
|
|
1670
1777
|
parsedBody = parsedOutput.body;
|
|
1671
1778
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1675,7 +1782,7 @@ var deserializeAws_json1_1GetLifecyclePolicyCommandError = function (output, con
|
|
|
1675
1782
|
message = response.message || response.Message || errorCode;
|
|
1676
1783
|
response.message = message;
|
|
1677
1784
|
delete response.Message;
|
|
1678
|
-
return [2
|
|
1785
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1679
1786
|
}
|
|
1680
1787
|
});
|
|
1681
1788
|
}); };
|
|
@@ -1685,15 +1792,15 @@ export var deserializeAws_json1_1GetLifecyclePolicyPreviewCommand = function (ou
|
|
|
1685
1792
|
switch (_a.label) {
|
|
1686
1793
|
case 0:
|
|
1687
1794
|
if (output.statusCode >= 300) {
|
|
1688
|
-
return [2
|
|
1795
|
+
return [2, deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError(output, context)];
|
|
1689
1796
|
}
|
|
1690
|
-
return [4
|
|
1797
|
+
return [4, parseBody(output.body, context)];
|
|
1691
1798
|
case 1:
|
|
1692
1799
|
data = _a.sent();
|
|
1693
1800
|
contents = {};
|
|
1694
1801
|
contents = deserializeAws_json1_1GetLifecyclePolicyPreviewResponse(data, context);
|
|
1695
1802
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1696
|
-
return [2
|
|
1803
|
+
return [2, Promise.resolve(response)];
|
|
1697
1804
|
}
|
|
1698
1805
|
});
|
|
1699
1806
|
}); };
|
|
@@ -1705,47 +1812,47 @@ var deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError = function (outp
|
|
|
1705
1812
|
case 0:
|
|
1706
1813
|
_a = [__assign({}, output)];
|
|
1707
1814
|
_g = {};
|
|
1708
|
-
return [4
|
|
1815
|
+
return [4, parseBody(output.body, context)];
|
|
1709
1816
|
case 1:
|
|
1710
1817
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1711
1818
|
errorCode = "UnknownError";
|
|
1712
1819
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1713
1820
|
_b = errorCode;
|
|
1714
1821
|
switch (_b) {
|
|
1715
|
-
case "InvalidParameterException": return [3
|
|
1716
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
1717
|
-
case "LifecyclePolicyPreviewNotFoundException": return [3
|
|
1718
|
-
case "com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException": return [3
|
|
1719
|
-
case "RepositoryNotFoundException": return [3
|
|
1720
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
1721
|
-
case "ServerException": return [3
|
|
1722
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
1822
|
+
case "InvalidParameterException": return [3, 2];
|
|
1823
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1824
|
+
case "LifecyclePolicyPreviewNotFoundException": return [3, 4];
|
|
1825
|
+
case "com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException": return [3, 4];
|
|
1826
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
1827
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 6];
|
|
1828
|
+
case "ServerException": return [3, 8];
|
|
1829
|
+
case "com.amazonaws.ecr#ServerException": return [3, 8];
|
|
1723
1830
|
}
|
|
1724
|
-
return [3
|
|
1831
|
+
return [3, 10];
|
|
1725
1832
|
case 2:
|
|
1726
1833
|
_c = [{}];
|
|
1727
|
-
return [4
|
|
1834
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1728
1835
|
case 3:
|
|
1729
1836
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1730
|
-
return [3
|
|
1837
|
+
return [3, 11];
|
|
1731
1838
|
case 4:
|
|
1732
1839
|
_d = [{}];
|
|
1733
|
-
return [4
|
|
1840
|
+
return [4, deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse(parsedOutput, context)];
|
|
1734
1841
|
case 5:
|
|
1735
1842
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1736
|
-
return [3
|
|
1843
|
+
return [3, 11];
|
|
1737
1844
|
case 6:
|
|
1738
1845
|
_e = [{}];
|
|
1739
|
-
return [4
|
|
1846
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1740
1847
|
case 7:
|
|
1741
1848
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1742
|
-
return [3
|
|
1849
|
+
return [3, 11];
|
|
1743
1850
|
case 8:
|
|
1744
1851
|
_f = [{}];
|
|
1745
|
-
return [4
|
|
1852
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1746
1853
|
case 9:
|
|
1747
1854
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1748
|
-
return [3
|
|
1855
|
+
return [3, 11];
|
|
1749
1856
|
case 10:
|
|
1750
1857
|
parsedBody = parsedOutput.body;
|
|
1751
1858
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1755,7 +1862,7 @@ var deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError = function (outp
|
|
|
1755
1862
|
message = response.message || response.Message || errorCode;
|
|
1756
1863
|
response.message = message;
|
|
1757
1864
|
delete response.Message;
|
|
1758
|
-
return [2
|
|
1865
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1759
1866
|
}
|
|
1760
1867
|
});
|
|
1761
1868
|
}); };
|
|
@@ -1765,69 +1872,77 @@ export var deserializeAws_json1_1GetRegistryPolicyCommand = function (output, co
|
|
|
1765
1872
|
switch (_a.label) {
|
|
1766
1873
|
case 0:
|
|
1767
1874
|
if (output.statusCode >= 300) {
|
|
1768
|
-
return [2
|
|
1875
|
+
return [2, deserializeAws_json1_1GetRegistryPolicyCommandError(output, context)];
|
|
1769
1876
|
}
|
|
1770
|
-
return [4
|
|
1877
|
+
return [4, parseBody(output.body, context)];
|
|
1771
1878
|
case 1:
|
|
1772
1879
|
data = _a.sent();
|
|
1773
1880
|
contents = {};
|
|
1774
1881
|
contents = deserializeAws_json1_1GetRegistryPolicyResponse(data, context);
|
|
1775
1882
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1776
|
-
return [2
|
|
1883
|
+
return [2, Promise.resolve(response)];
|
|
1777
1884
|
}
|
|
1778
1885
|
});
|
|
1779
1886
|
}); };
|
|
1780
1887
|
var deserializeAws_json1_1GetRegistryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1781
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1782
|
-
var
|
|
1783
|
-
return __generator(this, function (
|
|
1784
|
-
switch (
|
|
1888
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1889
|
+
var _g;
|
|
1890
|
+
return __generator(this, function (_h) {
|
|
1891
|
+
switch (_h.label) {
|
|
1785
1892
|
case 0:
|
|
1786
1893
|
_a = [__assign({}, output)];
|
|
1787
|
-
|
|
1788
|
-
return [4
|
|
1894
|
+
_g = {};
|
|
1895
|
+
return [4, parseBody(output.body, context)];
|
|
1789
1896
|
case 1:
|
|
1790
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1897
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1791
1898
|
errorCode = "UnknownError";
|
|
1792
1899
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
1900
|
_b = errorCode;
|
|
1794
1901
|
switch (_b) {
|
|
1795
|
-
case "InvalidParameterException": return [3
|
|
1796
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
1797
|
-
case "RegistryPolicyNotFoundException": return [3
|
|
1798
|
-
case "com.amazonaws.ecr#RegistryPolicyNotFoundException": return [3
|
|
1799
|
-
case "ServerException": return [3
|
|
1800
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
1902
|
+
case "InvalidParameterException": return [3, 2];
|
|
1903
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1904
|
+
case "RegistryPolicyNotFoundException": return [3, 4];
|
|
1905
|
+
case "com.amazonaws.ecr#RegistryPolicyNotFoundException": return [3, 4];
|
|
1906
|
+
case "ServerException": return [3, 6];
|
|
1907
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
1908
|
+
case "ValidationException": return [3, 8];
|
|
1909
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 8];
|
|
1801
1910
|
}
|
|
1802
|
-
return [3
|
|
1911
|
+
return [3, 10];
|
|
1803
1912
|
case 2:
|
|
1804
1913
|
_c = [{}];
|
|
1805
|
-
return [4
|
|
1914
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1806
1915
|
case 3:
|
|
1807
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
1808
|
-
return [3
|
|
1916
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1917
|
+
return [3, 11];
|
|
1809
1918
|
case 4:
|
|
1810
1919
|
_d = [{}];
|
|
1811
|
-
return [4
|
|
1920
|
+
return [4, deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
1812
1921
|
case 5:
|
|
1813
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
1814
|
-
return [3
|
|
1922
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1923
|
+
return [3, 11];
|
|
1815
1924
|
case 6:
|
|
1816
1925
|
_e = [{}];
|
|
1817
|
-
return [4
|
|
1926
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1818
1927
|
case 7:
|
|
1819
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
1820
|
-
return [3
|
|
1928
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1929
|
+
return [3, 11];
|
|
1821
1930
|
case 8:
|
|
1931
|
+
_f = [{}];
|
|
1932
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1933
|
+
case 9:
|
|
1934
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1935
|
+
return [3, 11];
|
|
1936
|
+
case 10:
|
|
1822
1937
|
parsedBody = parsedOutput.body;
|
|
1823
1938
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1824
1939
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1825
|
-
|
|
1826
|
-
case
|
|
1940
|
+
_h.label = 11;
|
|
1941
|
+
case 11:
|
|
1827
1942
|
message = response.message || response.Message || errorCode;
|
|
1828
1943
|
response.message = message;
|
|
1829
1944
|
delete response.Message;
|
|
1830
|
-
return [2
|
|
1945
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1831
1946
|
}
|
|
1832
1947
|
});
|
|
1833
1948
|
}); };
|
|
@@ -1837,15 +1952,15 @@ export var deserializeAws_json1_1GetRepositoryPolicyCommand = function (output,
|
|
|
1837
1952
|
switch (_a.label) {
|
|
1838
1953
|
case 0:
|
|
1839
1954
|
if (output.statusCode >= 300) {
|
|
1840
|
-
return [2
|
|
1955
|
+
return [2, deserializeAws_json1_1GetRepositoryPolicyCommandError(output, context)];
|
|
1841
1956
|
}
|
|
1842
|
-
return [4
|
|
1957
|
+
return [4, parseBody(output.body, context)];
|
|
1843
1958
|
case 1:
|
|
1844
1959
|
data = _a.sent();
|
|
1845
1960
|
contents = {};
|
|
1846
1961
|
contents = deserializeAws_json1_1GetRepositoryPolicyResponse(data, context);
|
|
1847
1962
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1848
|
-
return [2
|
|
1963
|
+
return [2, Promise.resolve(response)];
|
|
1849
1964
|
}
|
|
1850
1965
|
});
|
|
1851
1966
|
}); };
|
|
@@ -1857,47 +1972,47 @@ var deserializeAws_json1_1GetRepositoryPolicyCommandError = function (output, co
|
|
|
1857
1972
|
case 0:
|
|
1858
1973
|
_a = [__assign({}, output)];
|
|
1859
1974
|
_g = {};
|
|
1860
|
-
return [4
|
|
1975
|
+
return [4, parseBody(output.body, context)];
|
|
1861
1976
|
case 1:
|
|
1862
1977
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1863
1978
|
errorCode = "UnknownError";
|
|
1864
1979
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
1980
|
_b = errorCode;
|
|
1866
1981
|
switch (_b) {
|
|
1867
|
-
case "InvalidParameterException": return [3
|
|
1868
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
1869
|
-
case "RepositoryNotFoundException": return [3
|
|
1870
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
1871
|
-
case "RepositoryPolicyNotFoundException": return [3
|
|
1872
|
-
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException": return [3
|
|
1873
|
-
case "ServerException": return [3
|
|
1874
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
1982
|
+
case "InvalidParameterException": return [3, 2];
|
|
1983
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
1984
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1985
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
1986
|
+
case "RepositoryPolicyNotFoundException": return [3, 6];
|
|
1987
|
+
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException": return [3, 6];
|
|
1988
|
+
case "ServerException": return [3, 8];
|
|
1989
|
+
case "com.amazonaws.ecr#ServerException": return [3, 8];
|
|
1875
1990
|
}
|
|
1876
|
-
return [3
|
|
1991
|
+
return [3, 10];
|
|
1877
1992
|
case 2:
|
|
1878
1993
|
_c = [{}];
|
|
1879
|
-
return [4
|
|
1994
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1880
1995
|
case 3:
|
|
1881
1996
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1882
|
-
return [3
|
|
1997
|
+
return [3, 11];
|
|
1883
1998
|
case 4:
|
|
1884
1999
|
_d = [{}];
|
|
1885
|
-
return [4
|
|
2000
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1886
2001
|
case 5:
|
|
1887
2002
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1888
|
-
return [3
|
|
2003
|
+
return [3, 11];
|
|
1889
2004
|
case 6:
|
|
1890
2005
|
_e = [{}];
|
|
1891
|
-
return [4
|
|
2006
|
+
return [4, deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
1892
2007
|
case 7:
|
|
1893
2008
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1894
|
-
return [3
|
|
2009
|
+
return [3, 11];
|
|
1895
2010
|
case 8:
|
|
1896
2011
|
_f = [{}];
|
|
1897
|
-
return [4
|
|
2012
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1898
2013
|
case 9:
|
|
1899
2014
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1900
|
-
return [3
|
|
2015
|
+
return [3, 11];
|
|
1901
2016
|
case 10:
|
|
1902
2017
|
parsedBody = parsedOutput.body;
|
|
1903
2018
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1907,7 +2022,7 @@ var deserializeAws_json1_1GetRepositoryPolicyCommandError = function (output, co
|
|
|
1907
2022
|
message = response.message || response.Message || errorCode;
|
|
1908
2023
|
response.message = message;
|
|
1909
2024
|
delete response.Message;
|
|
1910
|
-
return [2
|
|
2025
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1911
2026
|
}
|
|
1912
2027
|
});
|
|
1913
2028
|
}); };
|
|
@@ -1917,15 +2032,15 @@ export var deserializeAws_json1_1InitiateLayerUploadCommand = function (output,
|
|
|
1917
2032
|
switch (_a.label) {
|
|
1918
2033
|
case 0:
|
|
1919
2034
|
if (output.statusCode >= 300) {
|
|
1920
|
-
return [2
|
|
2035
|
+
return [2, deserializeAws_json1_1InitiateLayerUploadCommandError(output, context)];
|
|
1921
2036
|
}
|
|
1922
|
-
return [4
|
|
2037
|
+
return [4, parseBody(output.body, context)];
|
|
1923
2038
|
case 1:
|
|
1924
2039
|
data = _a.sent();
|
|
1925
2040
|
contents = {};
|
|
1926
2041
|
contents = deserializeAws_json1_1InitiateLayerUploadResponse(data, context);
|
|
1927
2042
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1928
|
-
return [2
|
|
2043
|
+
return [2, Promise.resolve(response)];
|
|
1929
2044
|
}
|
|
1930
2045
|
});
|
|
1931
2046
|
}); };
|
|
@@ -1937,47 +2052,47 @@ var deserializeAws_json1_1InitiateLayerUploadCommandError = function (output, co
|
|
|
1937
2052
|
case 0:
|
|
1938
2053
|
_a = [__assign({}, output)];
|
|
1939
2054
|
_g = {};
|
|
1940
|
-
return [4
|
|
2055
|
+
return [4, parseBody(output.body, context)];
|
|
1941
2056
|
case 1:
|
|
1942
2057
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1943
2058
|
errorCode = "UnknownError";
|
|
1944
2059
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1945
2060
|
_b = errorCode;
|
|
1946
2061
|
switch (_b) {
|
|
1947
|
-
case "InvalidParameterException": return [3
|
|
1948
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
1949
|
-
case "KmsException": return [3
|
|
1950
|
-
case "com.amazonaws.ecr#KmsException": return [3
|
|
1951
|
-
case "RepositoryNotFoundException": return [3
|
|
1952
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
1953
|
-
case "ServerException": return [3
|
|
1954
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
2062
|
+
case "InvalidParameterException": return [3, 2];
|
|
2063
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
2064
|
+
case "KmsException": return [3, 4];
|
|
2065
|
+
case "com.amazonaws.ecr#KmsException": return [3, 4];
|
|
2066
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
2067
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 6];
|
|
2068
|
+
case "ServerException": return [3, 8];
|
|
2069
|
+
case "com.amazonaws.ecr#ServerException": return [3, 8];
|
|
1955
2070
|
}
|
|
1956
|
-
return [3
|
|
2071
|
+
return [3, 10];
|
|
1957
2072
|
case 2:
|
|
1958
2073
|
_c = [{}];
|
|
1959
|
-
return [4
|
|
2074
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1960
2075
|
case 3:
|
|
1961
2076
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1962
|
-
return [3
|
|
2077
|
+
return [3, 11];
|
|
1963
2078
|
case 4:
|
|
1964
2079
|
_d = [{}];
|
|
1965
|
-
return [4
|
|
2080
|
+
return [4, deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)];
|
|
1966
2081
|
case 5:
|
|
1967
2082
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1968
|
-
return [3
|
|
2083
|
+
return [3, 11];
|
|
1969
2084
|
case 6:
|
|
1970
2085
|
_e = [{}];
|
|
1971
|
-
return [4
|
|
2086
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1972
2087
|
case 7:
|
|
1973
2088
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1974
|
-
return [3
|
|
2089
|
+
return [3, 11];
|
|
1975
2090
|
case 8:
|
|
1976
2091
|
_f = [{}];
|
|
1977
|
-
return [4
|
|
2092
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1978
2093
|
case 9:
|
|
1979
2094
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1980
|
-
return [3
|
|
2095
|
+
return [3, 11];
|
|
1981
2096
|
case 10:
|
|
1982
2097
|
parsedBody = parsedOutput.body;
|
|
1983
2098
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1987,7 +2102,7 @@ var deserializeAws_json1_1InitiateLayerUploadCommandError = function (output, co
|
|
|
1987
2102
|
message = response.message || response.Message || errorCode;
|
|
1988
2103
|
response.message = message;
|
|
1989
2104
|
delete response.Message;
|
|
1990
|
-
return [2
|
|
2105
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1991
2106
|
}
|
|
1992
2107
|
});
|
|
1993
2108
|
}); };
|
|
@@ -1997,15 +2112,15 @@ export var deserializeAws_json1_1ListImagesCommand = function (output, context)
|
|
|
1997
2112
|
switch (_a.label) {
|
|
1998
2113
|
case 0:
|
|
1999
2114
|
if (output.statusCode >= 300) {
|
|
2000
|
-
return [2
|
|
2115
|
+
return [2, deserializeAws_json1_1ListImagesCommandError(output, context)];
|
|
2001
2116
|
}
|
|
2002
|
-
return [4
|
|
2117
|
+
return [4, parseBody(output.body, context)];
|
|
2003
2118
|
case 1:
|
|
2004
2119
|
data = _a.sent();
|
|
2005
2120
|
contents = {};
|
|
2006
2121
|
contents = deserializeAws_json1_1ListImagesResponse(data, context);
|
|
2007
2122
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2008
|
-
return [2
|
|
2123
|
+
return [2, Promise.resolve(response)];
|
|
2009
2124
|
}
|
|
2010
2125
|
});
|
|
2011
2126
|
}); };
|
|
@@ -2017,39 +2132,39 @@ var deserializeAws_json1_1ListImagesCommandError = function (output, context) {
|
|
|
2017
2132
|
case 0:
|
|
2018
2133
|
_a = [__assign({}, output)];
|
|
2019
2134
|
_f = {};
|
|
2020
|
-
return [4
|
|
2135
|
+
return [4, parseBody(output.body, context)];
|
|
2021
2136
|
case 1:
|
|
2022
2137
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2023
2138
|
errorCode = "UnknownError";
|
|
2024
2139
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2025
2140
|
_b = errorCode;
|
|
2026
2141
|
switch (_b) {
|
|
2027
|
-
case "InvalidParameterException": return [3
|
|
2028
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
2029
|
-
case "RepositoryNotFoundException": return [3
|
|
2030
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
2031
|
-
case "ServerException": return [3
|
|
2032
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
2142
|
+
case "InvalidParameterException": return [3, 2];
|
|
2143
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
2144
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
2145
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
2146
|
+
case "ServerException": return [3, 6];
|
|
2147
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
2033
2148
|
}
|
|
2034
|
-
return [3
|
|
2149
|
+
return [3, 8];
|
|
2035
2150
|
case 2:
|
|
2036
2151
|
_c = [{}];
|
|
2037
|
-
return [4
|
|
2152
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2038
2153
|
case 3:
|
|
2039
2154
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2040
|
-
return [3
|
|
2155
|
+
return [3, 9];
|
|
2041
2156
|
case 4:
|
|
2042
2157
|
_d = [{}];
|
|
2043
|
-
return [4
|
|
2158
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2044
2159
|
case 5:
|
|
2045
2160
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2046
|
-
return [3
|
|
2161
|
+
return [3, 9];
|
|
2047
2162
|
case 6:
|
|
2048
2163
|
_e = [{}];
|
|
2049
|
-
return [4
|
|
2164
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2050
2165
|
case 7:
|
|
2051
2166
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2052
|
-
return [3
|
|
2167
|
+
return [3, 9];
|
|
2053
2168
|
case 8:
|
|
2054
2169
|
parsedBody = parsedOutput.body;
|
|
2055
2170
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2059,7 +2174,7 @@ var deserializeAws_json1_1ListImagesCommandError = function (output, context) {
|
|
|
2059
2174
|
message = response.message || response.Message || errorCode;
|
|
2060
2175
|
response.message = message;
|
|
2061
2176
|
delete response.Message;
|
|
2062
|
-
return [2
|
|
2177
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2063
2178
|
}
|
|
2064
2179
|
});
|
|
2065
2180
|
}); };
|
|
@@ -2069,15 +2184,15 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
2069
2184
|
switch (_a.label) {
|
|
2070
2185
|
case 0:
|
|
2071
2186
|
if (output.statusCode >= 300) {
|
|
2072
|
-
return [2
|
|
2187
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
2073
2188
|
}
|
|
2074
|
-
return [4
|
|
2189
|
+
return [4, parseBody(output.body, context)];
|
|
2075
2190
|
case 1:
|
|
2076
2191
|
data = _a.sent();
|
|
2077
2192
|
contents = {};
|
|
2078
2193
|
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
2079
2194
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2080
|
-
return [2
|
|
2195
|
+
return [2, Promise.resolve(response)];
|
|
2081
2196
|
}
|
|
2082
2197
|
});
|
|
2083
2198
|
}); };
|
|
@@ -2089,39 +2204,39 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2089
2204
|
case 0:
|
|
2090
2205
|
_a = [__assign({}, output)];
|
|
2091
2206
|
_f = {};
|
|
2092
|
-
return [4
|
|
2207
|
+
return [4, parseBody(output.body, context)];
|
|
2093
2208
|
case 1:
|
|
2094
2209
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2095
2210
|
errorCode = "UnknownError";
|
|
2096
2211
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2097
2212
|
_b = errorCode;
|
|
2098
2213
|
switch (_b) {
|
|
2099
|
-
case "InvalidParameterException": return [3
|
|
2100
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
2101
|
-
case "RepositoryNotFoundException": return [3
|
|
2102
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
2103
|
-
case "ServerException": return [3
|
|
2104
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
2214
|
+
case "InvalidParameterException": return [3, 2];
|
|
2215
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
2216
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
2217
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
2218
|
+
case "ServerException": return [3, 6];
|
|
2219
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
2105
2220
|
}
|
|
2106
|
-
return [3
|
|
2221
|
+
return [3, 8];
|
|
2107
2222
|
case 2:
|
|
2108
2223
|
_c = [{}];
|
|
2109
|
-
return [4
|
|
2224
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2110
2225
|
case 3:
|
|
2111
2226
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2112
|
-
return [3
|
|
2227
|
+
return [3, 9];
|
|
2113
2228
|
case 4:
|
|
2114
2229
|
_d = [{}];
|
|
2115
|
-
return [4
|
|
2230
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2116
2231
|
case 5:
|
|
2117
2232
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2118
|
-
return [3
|
|
2233
|
+
return [3, 9];
|
|
2119
2234
|
case 6:
|
|
2120
2235
|
_e = [{}];
|
|
2121
|
-
return [4
|
|
2236
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2122
2237
|
case 7:
|
|
2123
2238
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2124
|
-
return [3
|
|
2239
|
+
return [3, 9];
|
|
2125
2240
|
case 8:
|
|
2126
2241
|
parsedBody = parsedOutput.body;
|
|
2127
2242
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2131,7 +2246,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2131
2246
|
message = response.message || response.Message || errorCode;
|
|
2132
2247
|
response.message = message;
|
|
2133
2248
|
delete response.Message;
|
|
2134
|
-
return [2
|
|
2249
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2135
2250
|
}
|
|
2136
2251
|
});
|
|
2137
2252
|
}); };
|
|
@@ -2141,15 +2256,15 @@ export var deserializeAws_json1_1PutImageCommand = function (output, context) {
|
|
|
2141
2256
|
switch (_a.label) {
|
|
2142
2257
|
case 0:
|
|
2143
2258
|
if (output.statusCode >= 300) {
|
|
2144
|
-
return [2
|
|
2259
|
+
return [2, deserializeAws_json1_1PutImageCommandError(output, context)];
|
|
2145
2260
|
}
|
|
2146
|
-
return [4
|
|
2261
|
+
return [4, parseBody(output.body, context)];
|
|
2147
2262
|
case 1:
|
|
2148
2263
|
data = _a.sent();
|
|
2149
2264
|
contents = {};
|
|
2150
2265
|
contents = deserializeAws_json1_1PutImageResponse(data, context);
|
|
2151
2266
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2152
|
-
return [2
|
|
2267
|
+
return [2, Promise.resolve(response)];
|
|
2153
2268
|
}
|
|
2154
2269
|
});
|
|
2155
2270
|
}); };
|
|
@@ -2161,95 +2276,95 @@ var deserializeAws_json1_1PutImageCommandError = function (output, context) { re
|
|
|
2161
2276
|
case 0:
|
|
2162
2277
|
_a = [__assign({}, output)];
|
|
2163
2278
|
_o = {};
|
|
2164
|
-
return [4
|
|
2279
|
+
return [4, parseBody(output.body, context)];
|
|
2165
2280
|
case 1:
|
|
2166
2281
|
parsedOutput = __assign.apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
|
|
2167
2282
|
errorCode = "UnknownError";
|
|
2168
2283
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2169
2284
|
_b = errorCode;
|
|
2170
2285
|
switch (_b) {
|
|
2171
|
-
case "ImageAlreadyExistsException": return [3
|
|
2172
|
-
case "com.amazonaws.ecr#ImageAlreadyExistsException": return [3
|
|
2173
|
-
case "ImageDigestDoesNotMatchException": return [3
|
|
2174
|
-
case "com.amazonaws.ecr#ImageDigestDoesNotMatchException": return [3
|
|
2175
|
-
case "ImageTagAlreadyExistsException": return [3
|
|
2176
|
-
case "com.amazonaws.ecr#ImageTagAlreadyExistsException": return [3
|
|
2177
|
-
case "InvalidParameterException": return [3
|
|
2178
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
2179
|
-
case "KmsException": return [3
|
|
2180
|
-
case "com.amazonaws.ecr#KmsException": return [3
|
|
2181
|
-
case "LayersNotFoundException": return [3
|
|
2182
|
-
case "com.amazonaws.ecr#LayersNotFoundException": return [3
|
|
2183
|
-
case "LimitExceededException": return [3
|
|
2184
|
-
case "com.amazonaws.ecr#LimitExceededException": return [3
|
|
2185
|
-
case "ReferencedImagesNotFoundException": return [3
|
|
2186
|
-
case "com.amazonaws.ecr#ReferencedImagesNotFoundException": return [3
|
|
2187
|
-
case "RepositoryNotFoundException": return [3
|
|
2188
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
2189
|
-
case "ServerException": return [3
|
|
2190
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
2286
|
+
case "ImageAlreadyExistsException": return [3, 2];
|
|
2287
|
+
case "com.amazonaws.ecr#ImageAlreadyExistsException": return [3, 2];
|
|
2288
|
+
case "ImageDigestDoesNotMatchException": return [3, 4];
|
|
2289
|
+
case "com.amazonaws.ecr#ImageDigestDoesNotMatchException": return [3, 4];
|
|
2290
|
+
case "ImageTagAlreadyExistsException": return [3, 6];
|
|
2291
|
+
case "com.amazonaws.ecr#ImageTagAlreadyExistsException": return [3, 6];
|
|
2292
|
+
case "InvalidParameterException": return [3, 8];
|
|
2293
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 8];
|
|
2294
|
+
case "KmsException": return [3, 10];
|
|
2295
|
+
case "com.amazonaws.ecr#KmsException": return [3, 10];
|
|
2296
|
+
case "LayersNotFoundException": return [3, 12];
|
|
2297
|
+
case "com.amazonaws.ecr#LayersNotFoundException": return [3, 12];
|
|
2298
|
+
case "LimitExceededException": return [3, 14];
|
|
2299
|
+
case "com.amazonaws.ecr#LimitExceededException": return [3, 14];
|
|
2300
|
+
case "ReferencedImagesNotFoundException": return [3, 16];
|
|
2301
|
+
case "com.amazonaws.ecr#ReferencedImagesNotFoundException": return [3, 16];
|
|
2302
|
+
case "RepositoryNotFoundException": return [3, 18];
|
|
2303
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 18];
|
|
2304
|
+
case "ServerException": return [3, 20];
|
|
2305
|
+
case "com.amazonaws.ecr#ServerException": return [3, 20];
|
|
2191
2306
|
}
|
|
2192
|
-
return [3
|
|
2307
|
+
return [3, 22];
|
|
2193
2308
|
case 2:
|
|
2194
2309
|
_c = [{}];
|
|
2195
|
-
return [4
|
|
2310
|
+
return [4, deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
2196
2311
|
case 3:
|
|
2197
2312
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2198
|
-
return [3
|
|
2313
|
+
return [3, 23];
|
|
2199
2314
|
case 4:
|
|
2200
2315
|
_d = [{}];
|
|
2201
|
-
return [4
|
|
2316
|
+
return [4, deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(parsedOutput, context)];
|
|
2202
2317
|
case 5:
|
|
2203
2318
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2204
|
-
return [3
|
|
2319
|
+
return [3, 23];
|
|
2205
2320
|
case 6:
|
|
2206
2321
|
_e = [{}];
|
|
2207
|
-
return [4
|
|
2322
|
+
return [4, deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
2208
2323
|
case 7:
|
|
2209
2324
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2210
|
-
return [3
|
|
2325
|
+
return [3, 23];
|
|
2211
2326
|
case 8:
|
|
2212
2327
|
_f = [{}];
|
|
2213
|
-
return [4
|
|
2328
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2214
2329
|
case 9:
|
|
2215
2330
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2216
|
-
return [3
|
|
2331
|
+
return [3, 23];
|
|
2217
2332
|
case 10:
|
|
2218
2333
|
_g = [{}];
|
|
2219
|
-
return [4
|
|
2334
|
+
return [4, deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)];
|
|
2220
2335
|
case 11:
|
|
2221
2336
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2222
|
-
return [3
|
|
2337
|
+
return [3, 23];
|
|
2223
2338
|
case 12:
|
|
2224
2339
|
_h = [{}];
|
|
2225
|
-
return [4
|
|
2340
|
+
return [4, deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context)];
|
|
2226
2341
|
case 13:
|
|
2227
2342
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2228
|
-
return [3
|
|
2343
|
+
return [3, 23];
|
|
2229
2344
|
case 14:
|
|
2230
2345
|
_j = [{}];
|
|
2231
|
-
return [4
|
|
2346
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2232
2347
|
case 15:
|
|
2233
2348
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2234
|
-
return [3
|
|
2349
|
+
return [3, 23];
|
|
2235
2350
|
case 16:
|
|
2236
2351
|
_k = [{}];
|
|
2237
|
-
return [4
|
|
2352
|
+
return [4, deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(parsedOutput, context)];
|
|
2238
2353
|
case 17:
|
|
2239
2354
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2240
|
-
return [3
|
|
2355
|
+
return [3, 23];
|
|
2241
2356
|
case 18:
|
|
2242
2357
|
_l = [{}];
|
|
2243
|
-
return [4
|
|
2358
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2244
2359
|
case 19:
|
|
2245
2360
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2246
|
-
return [3
|
|
2361
|
+
return [3, 23];
|
|
2247
2362
|
case 20:
|
|
2248
2363
|
_m = [{}];
|
|
2249
|
-
return [4
|
|
2364
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2250
2365
|
case 21:
|
|
2251
2366
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2252
|
-
return [3
|
|
2367
|
+
return [3, 23];
|
|
2253
2368
|
case 22:
|
|
2254
2369
|
parsedBody = parsedOutput.body;
|
|
2255
2370
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2259,7 +2374,7 @@ var deserializeAws_json1_1PutImageCommandError = function (output, context) { re
|
|
|
2259
2374
|
message = response.message || response.Message || errorCode;
|
|
2260
2375
|
response.message = message;
|
|
2261
2376
|
delete response.Message;
|
|
2262
|
-
return [2
|
|
2377
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2263
2378
|
}
|
|
2264
2379
|
});
|
|
2265
2380
|
}); };
|
|
@@ -2269,15 +2384,15 @@ export var deserializeAws_json1_1PutImageScanningConfigurationCommand = function
|
|
|
2269
2384
|
switch (_a.label) {
|
|
2270
2385
|
case 0:
|
|
2271
2386
|
if (output.statusCode >= 300) {
|
|
2272
|
-
return [2
|
|
2387
|
+
return [2, deserializeAws_json1_1PutImageScanningConfigurationCommandError(output, context)];
|
|
2273
2388
|
}
|
|
2274
|
-
return [4
|
|
2389
|
+
return [4, parseBody(output.body, context)];
|
|
2275
2390
|
case 1:
|
|
2276
2391
|
data = _a.sent();
|
|
2277
2392
|
contents = {};
|
|
2278
2393
|
contents = deserializeAws_json1_1PutImageScanningConfigurationResponse(data, context);
|
|
2279
2394
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2280
|
-
return [2
|
|
2395
|
+
return [2, Promise.resolve(response)];
|
|
2281
2396
|
}
|
|
2282
2397
|
});
|
|
2283
2398
|
}); };
|
|
@@ -2289,39 +2404,39 @@ var deserializeAws_json1_1PutImageScanningConfigurationCommandError = function (
|
|
|
2289
2404
|
case 0:
|
|
2290
2405
|
_a = [__assign({}, output)];
|
|
2291
2406
|
_f = {};
|
|
2292
|
-
return [4
|
|
2407
|
+
return [4, parseBody(output.body, context)];
|
|
2293
2408
|
case 1:
|
|
2294
2409
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2295
2410
|
errorCode = "UnknownError";
|
|
2296
2411
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2297
2412
|
_b = errorCode;
|
|
2298
2413
|
switch (_b) {
|
|
2299
|
-
case "InvalidParameterException": return [3
|
|
2300
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
2301
|
-
case "RepositoryNotFoundException": return [3
|
|
2302
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
2303
|
-
case "ServerException": return [3
|
|
2304
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
2414
|
+
case "InvalidParameterException": return [3, 2];
|
|
2415
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
2416
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
2417
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
2418
|
+
case "ServerException": return [3, 6];
|
|
2419
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
2305
2420
|
}
|
|
2306
|
-
return [3
|
|
2421
|
+
return [3, 8];
|
|
2307
2422
|
case 2:
|
|
2308
2423
|
_c = [{}];
|
|
2309
|
-
return [4
|
|
2424
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2310
2425
|
case 3:
|
|
2311
2426
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2312
|
-
return [3
|
|
2427
|
+
return [3, 9];
|
|
2313
2428
|
case 4:
|
|
2314
2429
|
_d = [{}];
|
|
2315
|
-
return [4
|
|
2430
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2316
2431
|
case 5:
|
|
2317
2432
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2318
|
-
return [3
|
|
2433
|
+
return [3, 9];
|
|
2319
2434
|
case 6:
|
|
2320
2435
|
_e = [{}];
|
|
2321
|
-
return [4
|
|
2436
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2322
2437
|
case 7:
|
|
2323
2438
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2324
|
-
return [3
|
|
2439
|
+
return [3, 9];
|
|
2325
2440
|
case 8:
|
|
2326
2441
|
parsedBody = parsedOutput.body;
|
|
2327
2442
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2331,7 +2446,7 @@ var deserializeAws_json1_1PutImageScanningConfigurationCommandError = function (
|
|
|
2331
2446
|
message = response.message || response.Message || errorCode;
|
|
2332
2447
|
response.message = message;
|
|
2333
2448
|
delete response.Message;
|
|
2334
|
-
return [2
|
|
2449
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2335
2450
|
}
|
|
2336
2451
|
});
|
|
2337
2452
|
}); };
|
|
@@ -2341,15 +2456,15 @@ export var deserializeAws_json1_1PutImageTagMutabilityCommand = function (output
|
|
|
2341
2456
|
switch (_a.label) {
|
|
2342
2457
|
case 0:
|
|
2343
2458
|
if (output.statusCode >= 300) {
|
|
2344
|
-
return [2
|
|
2459
|
+
return [2, deserializeAws_json1_1PutImageTagMutabilityCommandError(output, context)];
|
|
2345
2460
|
}
|
|
2346
|
-
return [4
|
|
2461
|
+
return [4, parseBody(output.body, context)];
|
|
2347
2462
|
case 1:
|
|
2348
2463
|
data = _a.sent();
|
|
2349
2464
|
contents = {};
|
|
2350
2465
|
contents = deserializeAws_json1_1PutImageTagMutabilityResponse(data, context);
|
|
2351
2466
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2352
|
-
return [2
|
|
2467
|
+
return [2, Promise.resolve(response)];
|
|
2353
2468
|
}
|
|
2354
2469
|
});
|
|
2355
2470
|
}); };
|
|
@@ -2361,39 +2476,39 @@ var deserializeAws_json1_1PutImageTagMutabilityCommandError = function (output,
|
|
|
2361
2476
|
case 0:
|
|
2362
2477
|
_a = [__assign({}, output)];
|
|
2363
2478
|
_f = {};
|
|
2364
|
-
return [4
|
|
2479
|
+
return [4, parseBody(output.body, context)];
|
|
2365
2480
|
case 1:
|
|
2366
2481
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2367
2482
|
errorCode = "UnknownError";
|
|
2368
2483
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2369
2484
|
_b = errorCode;
|
|
2370
2485
|
switch (_b) {
|
|
2371
|
-
case "InvalidParameterException": return [3
|
|
2372
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
2373
|
-
case "RepositoryNotFoundException": return [3
|
|
2374
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
2375
|
-
case "ServerException": return [3
|
|
2376
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
2486
|
+
case "InvalidParameterException": return [3, 2];
|
|
2487
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
2488
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
2489
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
2490
|
+
case "ServerException": return [3, 6];
|
|
2491
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
2377
2492
|
}
|
|
2378
|
-
return [3
|
|
2493
|
+
return [3, 8];
|
|
2379
2494
|
case 2:
|
|
2380
2495
|
_c = [{}];
|
|
2381
|
-
return [4
|
|
2496
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2382
2497
|
case 3:
|
|
2383
2498
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2384
|
-
return [3
|
|
2499
|
+
return [3, 9];
|
|
2385
2500
|
case 4:
|
|
2386
2501
|
_d = [{}];
|
|
2387
|
-
return [4
|
|
2502
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2388
2503
|
case 5:
|
|
2389
2504
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2390
|
-
return [3
|
|
2505
|
+
return [3, 9];
|
|
2391
2506
|
case 6:
|
|
2392
2507
|
_e = [{}];
|
|
2393
|
-
return [4
|
|
2508
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2394
2509
|
case 7:
|
|
2395
2510
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2396
|
-
return [3
|
|
2511
|
+
return [3, 9];
|
|
2397
2512
|
case 8:
|
|
2398
2513
|
parsedBody = parsedOutput.body;
|
|
2399
2514
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2403,7 +2518,7 @@ var deserializeAws_json1_1PutImageTagMutabilityCommandError = function (output,
|
|
|
2403
2518
|
message = response.message || response.Message || errorCode;
|
|
2404
2519
|
response.message = message;
|
|
2405
2520
|
delete response.Message;
|
|
2406
|
-
return [2
|
|
2521
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2407
2522
|
}
|
|
2408
2523
|
});
|
|
2409
2524
|
}); };
|
|
@@ -2413,15 +2528,15 @@ export var deserializeAws_json1_1PutLifecyclePolicyCommand = function (output, c
|
|
|
2413
2528
|
switch (_a.label) {
|
|
2414
2529
|
case 0:
|
|
2415
2530
|
if (output.statusCode >= 300) {
|
|
2416
|
-
return [2
|
|
2531
|
+
return [2, deserializeAws_json1_1PutLifecyclePolicyCommandError(output, context)];
|
|
2417
2532
|
}
|
|
2418
|
-
return [4
|
|
2533
|
+
return [4, parseBody(output.body, context)];
|
|
2419
2534
|
case 1:
|
|
2420
2535
|
data = _a.sent();
|
|
2421
2536
|
contents = {};
|
|
2422
2537
|
contents = deserializeAws_json1_1PutLifecyclePolicyResponse(data, context);
|
|
2423
2538
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2424
|
-
return [2
|
|
2539
|
+
return [2, Promise.resolve(response)];
|
|
2425
2540
|
}
|
|
2426
2541
|
});
|
|
2427
2542
|
}); };
|
|
@@ -2433,39 +2548,39 @@ var deserializeAws_json1_1PutLifecyclePolicyCommandError = function (output, con
|
|
|
2433
2548
|
case 0:
|
|
2434
2549
|
_a = [__assign({}, output)];
|
|
2435
2550
|
_f = {};
|
|
2436
|
-
return [4
|
|
2551
|
+
return [4, parseBody(output.body, context)];
|
|
2437
2552
|
case 1:
|
|
2438
2553
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2439
2554
|
errorCode = "UnknownError";
|
|
2440
2555
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2441
2556
|
_b = errorCode;
|
|
2442
2557
|
switch (_b) {
|
|
2443
|
-
case "InvalidParameterException": return [3
|
|
2444
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
2445
|
-
case "RepositoryNotFoundException": return [3
|
|
2446
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
2447
|
-
case "ServerException": return [3
|
|
2448
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
2558
|
+
case "InvalidParameterException": return [3, 2];
|
|
2559
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
2560
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
2561
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
2562
|
+
case "ServerException": return [3, 6];
|
|
2563
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
2449
2564
|
}
|
|
2450
|
-
return [3
|
|
2565
|
+
return [3, 8];
|
|
2451
2566
|
case 2:
|
|
2452
2567
|
_c = [{}];
|
|
2453
|
-
return [4
|
|
2568
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2454
2569
|
case 3:
|
|
2455
2570
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2456
|
-
return [3
|
|
2571
|
+
return [3, 9];
|
|
2457
2572
|
case 4:
|
|
2458
2573
|
_d = [{}];
|
|
2459
|
-
return [4
|
|
2574
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2460
2575
|
case 5:
|
|
2461
2576
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2462
|
-
return [3
|
|
2577
|
+
return [3, 9];
|
|
2463
2578
|
case 6:
|
|
2464
2579
|
_e = [{}];
|
|
2465
|
-
return [4
|
|
2580
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2466
2581
|
case 7:
|
|
2467
2582
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2468
|
-
return [3
|
|
2583
|
+
return [3, 9];
|
|
2469
2584
|
case 8:
|
|
2470
2585
|
parsedBody = parsedOutput.body;
|
|
2471
2586
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2475,7 +2590,7 @@ var deserializeAws_json1_1PutLifecyclePolicyCommandError = function (output, con
|
|
|
2475
2590
|
message = response.message || response.Message || errorCode;
|
|
2476
2591
|
response.message = message;
|
|
2477
2592
|
delete response.Message;
|
|
2478
|
-
return [2
|
|
2593
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2479
2594
|
}
|
|
2480
2595
|
});
|
|
2481
2596
|
}); };
|
|
@@ -2485,61 +2600,69 @@ export var deserializeAws_json1_1PutRegistryPolicyCommand = function (output, co
|
|
|
2485
2600
|
switch (_a.label) {
|
|
2486
2601
|
case 0:
|
|
2487
2602
|
if (output.statusCode >= 300) {
|
|
2488
|
-
return [2
|
|
2603
|
+
return [2, deserializeAws_json1_1PutRegistryPolicyCommandError(output, context)];
|
|
2489
2604
|
}
|
|
2490
|
-
return [4
|
|
2605
|
+
return [4, parseBody(output.body, context)];
|
|
2491
2606
|
case 1:
|
|
2492
2607
|
data = _a.sent();
|
|
2493
2608
|
contents = {};
|
|
2494
2609
|
contents = deserializeAws_json1_1PutRegistryPolicyResponse(data, context);
|
|
2495
2610
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2496
|
-
return [2
|
|
2611
|
+
return [2, Promise.resolve(response)];
|
|
2497
2612
|
}
|
|
2498
2613
|
});
|
|
2499
2614
|
}); };
|
|
2500
2615
|
var deserializeAws_json1_1PutRegistryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2501
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
2502
|
-
var
|
|
2503
|
-
return __generator(this, function (
|
|
2504
|
-
switch (
|
|
2616
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
2617
|
+
var _f;
|
|
2618
|
+
return __generator(this, function (_g) {
|
|
2619
|
+
switch (_g.label) {
|
|
2505
2620
|
case 0:
|
|
2506
2621
|
_a = [__assign({}, output)];
|
|
2507
|
-
|
|
2508
|
-
return [4
|
|
2622
|
+
_f = {};
|
|
2623
|
+
return [4, parseBody(output.body, context)];
|
|
2509
2624
|
case 1:
|
|
2510
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2625
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2511
2626
|
errorCode = "UnknownError";
|
|
2512
2627
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2513
2628
|
_b = errorCode;
|
|
2514
2629
|
switch (_b) {
|
|
2515
|
-
case "InvalidParameterException": return [3
|
|
2516
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
2517
|
-
case "ServerException": return [3
|
|
2518
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
2630
|
+
case "InvalidParameterException": return [3, 2];
|
|
2631
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
2632
|
+
case "ServerException": return [3, 4];
|
|
2633
|
+
case "com.amazonaws.ecr#ServerException": return [3, 4];
|
|
2634
|
+
case "ValidationException": return [3, 6];
|
|
2635
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 6];
|
|
2519
2636
|
}
|
|
2520
|
-
return [3
|
|
2637
|
+
return [3, 8];
|
|
2521
2638
|
case 2:
|
|
2522
2639
|
_c = [{}];
|
|
2523
|
-
return [4
|
|
2640
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2524
2641
|
case 3:
|
|
2525
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2526
|
-
return [3
|
|
2642
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2643
|
+
return [3, 9];
|
|
2527
2644
|
case 4:
|
|
2528
2645
|
_d = [{}];
|
|
2529
|
-
return [4
|
|
2646
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2530
2647
|
case 5:
|
|
2531
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
2532
|
-
return [3
|
|
2648
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2649
|
+
return [3, 9];
|
|
2533
2650
|
case 6:
|
|
2651
|
+
_e = [{}];
|
|
2652
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2653
|
+
case 7:
|
|
2654
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2655
|
+
return [3, 9];
|
|
2656
|
+
case 8:
|
|
2534
2657
|
parsedBody = parsedOutput.body;
|
|
2535
2658
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2536
2659
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2537
|
-
|
|
2538
|
-
case
|
|
2660
|
+
_g.label = 9;
|
|
2661
|
+
case 9:
|
|
2539
2662
|
message = response.message || response.Message || errorCode;
|
|
2540
2663
|
response.message = message;
|
|
2541
2664
|
delete response.Message;
|
|
2542
|
-
return [2
|
|
2665
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2543
2666
|
}
|
|
2544
2667
|
});
|
|
2545
2668
|
}); };
|
|
@@ -2549,15 +2672,15 @@ export var deserializeAws_json1_1PutReplicationConfigurationCommand = function (
|
|
|
2549
2672
|
switch (_a.label) {
|
|
2550
2673
|
case 0:
|
|
2551
2674
|
if (output.statusCode >= 300) {
|
|
2552
|
-
return [2
|
|
2675
|
+
return [2, deserializeAws_json1_1PutReplicationConfigurationCommandError(output, context)];
|
|
2553
2676
|
}
|
|
2554
|
-
return [4
|
|
2677
|
+
return [4, parseBody(output.body, context)];
|
|
2555
2678
|
case 1:
|
|
2556
2679
|
data = _a.sent();
|
|
2557
2680
|
contents = {};
|
|
2558
2681
|
contents = deserializeAws_json1_1PutReplicationConfigurationResponse(data, context);
|
|
2559
2682
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2560
|
-
return [2
|
|
2683
|
+
return [2, Promise.resolve(response)];
|
|
2561
2684
|
}
|
|
2562
2685
|
});
|
|
2563
2686
|
}); };
|
|
@@ -2569,39 +2692,39 @@ var deserializeAws_json1_1PutReplicationConfigurationCommandError = function (ou
|
|
|
2569
2692
|
case 0:
|
|
2570
2693
|
_a = [__assign({}, output)];
|
|
2571
2694
|
_f = {};
|
|
2572
|
-
return [4
|
|
2695
|
+
return [4, parseBody(output.body, context)];
|
|
2573
2696
|
case 1:
|
|
2574
2697
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2575
2698
|
errorCode = "UnknownError";
|
|
2576
2699
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2577
2700
|
_b = errorCode;
|
|
2578
2701
|
switch (_b) {
|
|
2579
|
-
case "InvalidParameterException": return [3
|
|
2580
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
2581
|
-
case "ServerException": return [3
|
|
2582
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
2583
|
-
case "ValidationException": return [3
|
|
2584
|
-
case "com.amazonaws.ecr#ValidationException": return [3
|
|
2702
|
+
case "InvalidParameterException": return [3, 2];
|
|
2703
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
2704
|
+
case "ServerException": return [3, 4];
|
|
2705
|
+
case "com.amazonaws.ecr#ServerException": return [3, 4];
|
|
2706
|
+
case "ValidationException": return [3, 6];
|
|
2707
|
+
case "com.amazonaws.ecr#ValidationException": return [3, 6];
|
|
2585
2708
|
}
|
|
2586
|
-
return [3
|
|
2709
|
+
return [3, 8];
|
|
2587
2710
|
case 2:
|
|
2588
2711
|
_c = [{}];
|
|
2589
|
-
return [4
|
|
2712
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2590
2713
|
case 3:
|
|
2591
2714
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2592
|
-
return [3
|
|
2715
|
+
return [3, 9];
|
|
2593
2716
|
case 4:
|
|
2594
2717
|
_d = [{}];
|
|
2595
|
-
return [4
|
|
2718
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2596
2719
|
case 5:
|
|
2597
2720
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2598
|
-
return [3
|
|
2721
|
+
return [3, 9];
|
|
2599
2722
|
case 6:
|
|
2600
2723
|
_e = [{}];
|
|
2601
|
-
return [4
|
|
2724
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2602
2725
|
case 7:
|
|
2603
2726
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2604
|
-
return [3
|
|
2727
|
+
return [3, 9];
|
|
2605
2728
|
case 8:
|
|
2606
2729
|
parsedBody = parsedOutput.body;
|
|
2607
2730
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2611,7 +2734,7 @@ var deserializeAws_json1_1PutReplicationConfigurationCommandError = function (ou
|
|
|
2611
2734
|
message = response.message || response.Message || errorCode;
|
|
2612
2735
|
response.message = message;
|
|
2613
2736
|
delete response.Message;
|
|
2614
|
-
return [2
|
|
2737
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2615
2738
|
}
|
|
2616
2739
|
});
|
|
2617
2740
|
}); };
|
|
@@ -2621,15 +2744,15 @@ export var deserializeAws_json1_1SetRepositoryPolicyCommand = function (output,
|
|
|
2621
2744
|
switch (_a.label) {
|
|
2622
2745
|
case 0:
|
|
2623
2746
|
if (output.statusCode >= 300) {
|
|
2624
|
-
return [2
|
|
2747
|
+
return [2, deserializeAws_json1_1SetRepositoryPolicyCommandError(output, context)];
|
|
2625
2748
|
}
|
|
2626
|
-
return [4
|
|
2749
|
+
return [4, parseBody(output.body, context)];
|
|
2627
2750
|
case 1:
|
|
2628
2751
|
data = _a.sent();
|
|
2629
2752
|
contents = {};
|
|
2630
2753
|
contents = deserializeAws_json1_1SetRepositoryPolicyResponse(data, context);
|
|
2631
2754
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2632
|
-
return [2
|
|
2755
|
+
return [2, Promise.resolve(response)];
|
|
2633
2756
|
}
|
|
2634
2757
|
});
|
|
2635
2758
|
}); };
|
|
@@ -2641,39 +2764,39 @@ var deserializeAws_json1_1SetRepositoryPolicyCommandError = function (output, co
|
|
|
2641
2764
|
case 0:
|
|
2642
2765
|
_a = [__assign({}, output)];
|
|
2643
2766
|
_f = {};
|
|
2644
|
-
return [4
|
|
2767
|
+
return [4, parseBody(output.body, context)];
|
|
2645
2768
|
case 1:
|
|
2646
2769
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2647
2770
|
errorCode = "UnknownError";
|
|
2648
2771
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2649
2772
|
_b = errorCode;
|
|
2650
2773
|
switch (_b) {
|
|
2651
|
-
case "InvalidParameterException": return [3
|
|
2652
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
2653
|
-
case "RepositoryNotFoundException": return [3
|
|
2654
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
2655
|
-
case "ServerException": return [3
|
|
2656
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
2774
|
+
case "InvalidParameterException": return [3, 2];
|
|
2775
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
2776
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
2777
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 4];
|
|
2778
|
+
case "ServerException": return [3, 6];
|
|
2779
|
+
case "com.amazonaws.ecr#ServerException": return [3, 6];
|
|
2657
2780
|
}
|
|
2658
|
-
return [3
|
|
2781
|
+
return [3, 8];
|
|
2659
2782
|
case 2:
|
|
2660
2783
|
_c = [{}];
|
|
2661
|
-
return [4
|
|
2784
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2662
2785
|
case 3:
|
|
2663
2786
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2664
|
-
return [3
|
|
2787
|
+
return [3, 9];
|
|
2665
2788
|
case 4:
|
|
2666
2789
|
_d = [{}];
|
|
2667
|
-
return [4
|
|
2790
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2668
2791
|
case 5:
|
|
2669
2792
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2670
|
-
return [3
|
|
2793
|
+
return [3, 9];
|
|
2671
2794
|
case 6:
|
|
2672
2795
|
_e = [{}];
|
|
2673
|
-
return [4
|
|
2796
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2674
2797
|
case 7:
|
|
2675
2798
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2676
|
-
return [3
|
|
2799
|
+
return [3, 9];
|
|
2677
2800
|
case 8:
|
|
2678
2801
|
parsedBody = parsedOutput.body;
|
|
2679
2802
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2683,7 +2806,7 @@ var deserializeAws_json1_1SetRepositoryPolicyCommandError = function (output, co
|
|
|
2683
2806
|
message = response.message || response.Message || errorCode;
|
|
2684
2807
|
response.message = message;
|
|
2685
2808
|
delete response.Message;
|
|
2686
|
-
return [2
|
|
2809
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2687
2810
|
}
|
|
2688
2811
|
});
|
|
2689
2812
|
}); };
|
|
@@ -2693,15 +2816,15 @@ export var deserializeAws_json1_1StartImageScanCommand = function (output, conte
|
|
|
2693
2816
|
switch (_a.label) {
|
|
2694
2817
|
case 0:
|
|
2695
2818
|
if (output.statusCode >= 300) {
|
|
2696
|
-
return [2
|
|
2819
|
+
return [2, deserializeAws_json1_1StartImageScanCommandError(output, context)];
|
|
2697
2820
|
}
|
|
2698
|
-
return [4
|
|
2821
|
+
return [4, parseBody(output.body, context)];
|
|
2699
2822
|
case 1:
|
|
2700
2823
|
data = _a.sent();
|
|
2701
2824
|
contents = {};
|
|
2702
2825
|
contents = deserializeAws_json1_1StartImageScanResponse(data, context);
|
|
2703
2826
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2704
|
-
return [2
|
|
2827
|
+
return [2, Promise.resolve(response)];
|
|
2705
2828
|
}
|
|
2706
2829
|
});
|
|
2707
2830
|
}); };
|
|
@@ -2713,63 +2836,63 @@ var deserializeAws_json1_1StartImageScanCommandError = function (output, context
|
|
|
2713
2836
|
case 0:
|
|
2714
2837
|
_a = [__assign({}, output)];
|
|
2715
2838
|
_j = {};
|
|
2716
|
-
return [4
|
|
2839
|
+
return [4, parseBody(output.body, context)];
|
|
2717
2840
|
case 1:
|
|
2718
2841
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2719
2842
|
errorCode = "UnknownError";
|
|
2720
2843
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2721
2844
|
_b = errorCode;
|
|
2722
2845
|
switch (_b) {
|
|
2723
|
-
case "ImageNotFoundException": return [3
|
|
2724
|
-
case "com.amazonaws.ecr#ImageNotFoundException": return [3
|
|
2725
|
-
case "InvalidParameterException": return [3
|
|
2726
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
2727
|
-
case "LimitExceededException": return [3
|
|
2728
|
-
case "com.amazonaws.ecr#LimitExceededException": return [3
|
|
2729
|
-
case "RepositoryNotFoundException": return [3
|
|
2730
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
2731
|
-
case "ServerException": return [3
|
|
2732
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
2733
|
-
case "UnsupportedImageTypeException": return [3
|
|
2734
|
-
case "com.amazonaws.ecr#UnsupportedImageTypeException": return [3
|
|
2846
|
+
case "ImageNotFoundException": return [3, 2];
|
|
2847
|
+
case "com.amazonaws.ecr#ImageNotFoundException": return [3, 2];
|
|
2848
|
+
case "InvalidParameterException": return [3, 4];
|
|
2849
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 4];
|
|
2850
|
+
case "LimitExceededException": return [3, 6];
|
|
2851
|
+
case "com.amazonaws.ecr#LimitExceededException": return [3, 6];
|
|
2852
|
+
case "RepositoryNotFoundException": return [3, 8];
|
|
2853
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 8];
|
|
2854
|
+
case "ServerException": return [3, 10];
|
|
2855
|
+
case "com.amazonaws.ecr#ServerException": return [3, 10];
|
|
2856
|
+
case "UnsupportedImageTypeException": return [3, 12];
|
|
2857
|
+
case "com.amazonaws.ecr#UnsupportedImageTypeException": return [3, 12];
|
|
2735
2858
|
}
|
|
2736
|
-
return [3
|
|
2859
|
+
return [3, 14];
|
|
2737
2860
|
case 2:
|
|
2738
2861
|
_c = [{}];
|
|
2739
|
-
return [4
|
|
2862
|
+
return [4, deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)];
|
|
2740
2863
|
case 3:
|
|
2741
2864
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2742
|
-
return [3
|
|
2865
|
+
return [3, 15];
|
|
2743
2866
|
case 4:
|
|
2744
2867
|
_d = [{}];
|
|
2745
|
-
return [4
|
|
2868
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2746
2869
|
case 5:
|
|
2747
2870
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2748
|
-
return [3
|
|
2871
|
+
return [3, 15];
|
|
2749
2872
|
case 6:
|
|
2750
2873
|
_e = [{}];
|
|
2751
|
-
return [4
|
|
2874
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2752
2875
|
case 7:
|
|
2753
2876
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2754
|
-
return [3
|
|
2877
|
+
return [3, 15];
|
|
2755
2878
|
case 8:
|
|
2756
2879
|
_f = [{}];
|
|
2757
|
-
return [4
|
|
2880
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2758
2881
|
case 9:
|
|
2759
2882
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2760
|
-
return [3
|
|
2883
|
+
return [3, 15];
|
|
2761
2884
|
case 10:
|
|
2762
2885
|
_g = [{}];
|
|
2763
|
-
return [4
|
|
2886
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2764
2887
|
case 11:
|
|
2765
2888
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2766
|
-
return [3
|
|
2889
|
+
return [3, 15];
|
|
2767
2890
|
case 12:
|
|
2768
2891
|
_h = [{}];
|
|
2769
|
-
return [4
|
|
2892
|
+
return [4, deserializeAws_json1_1UnsupportedImageTypeExceptionResponse(parsedOutput, context)];
|
|
2770
2893
|
case 13:
|
|
2771
2894
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2772
|
-
return [3
|
|
2895
|
+
return [3, 15];
|
|
2773
2896
|
case 14:
|
|
2774
2897
|
parsedBody = parsedOutput.body;
|
|
2775
2898
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2779,7 +2902,7 @@ var deserializeAws_json1_1StartImageScanCommandError = function (output, context
|
|
|
2779
2902
|
message = response.message || response.Message || errorCode;
|
|
2780
2903
|
response.message = message;
|
|
2781
2904
|
delete response.Message;
|
|
2782
|
-
return [2
|
|
2905
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2783
2906
|
}
|
|
2784
2907
|
});
|
|
2785
2908
|
}); };
|
|
@@ -2789,15 +2912,15 @@ export var deserializeAws_json1_1StartLifecyclePolicyPreviewCommand = function (
|
|
|
2789
2912
|
switch (_a.label) {
|
|
2790
2913
|
case 0:
|
|
2791
2914
|
if (output.statusCode >= 300) {
|
|
2792
|
-
return [2
|
|
2915
|
+
return [2, deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError(output, context)];
|
|
2793
2916
|
}
|
|
2794
|
-
return [4
|
|
2917
|
+
return [4, parseBody(output.body, context)];
|
|
2795
2918
|
case 1:
|
|
2796
2919
|
data = _a.sent();
|
|
2797
2920
|
contents = {};
|
|
2798
2921
|
contents = deserializeAws_json1_1StartLifecyclePolicyPreviewResponse(data, context);
|
|
2799
2922
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2800
|
-
return [2
|
|
2923
|
+
return [2, Promise.resolve(response)];
|
|
2801
2924
|
}
|
|
2802
2925
|
});
|
|
2803
2926
|
}); };
|
|
@@ -2809,55 +2932,55 @@ var deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError = function (ou
|
|
|
2809
2932
|
case 0:
|
|
2810
2933
|
_a = [__assign({}, output)];
|
|
2811
2934
|
_h = {};
|
|
2812
|
-
return [4
|
|
2935
|
+
return [4, parseBody(output.body, context)];
|
|
2813
2936
|
case 1:
|
|
2814
2937
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2815
2938
|
errorCode = "UnknownError";
|
|
2816
2939
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2817
2940
|
_b = errorCode;
|
|
2818
2941
|
switch (_b) {
|
|
2819
|
-
case "InvalidParameterException": return [3
|
|
2820
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
2821
|
-
case "LifecyclePolicyNotFoundException": return [3
|
|
2822
|
-
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException": return [3
|
|
2823
|
-
case "LifecyclePolicyPreviewInProgressException": return [3
|
|
2824
|
-
case "com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException": return [3
|
|
2825
|
-
case "RepositoryNotFoundException": return [3
|
|
2826
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
2827
|
-
case "ServerException": return [3
|
|
2828
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
2942
|
+
case "InvalidParameterException": return [3, 2];
|
|
2943
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
2944
|
+
case "LifecyclePolicyNotFoundException": return [3, 4];
|
|
2945
|
+
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException": return [3, 4];
|
|
2946
|
+
case "LifecyclePolicyPreviewInProgressException": return [3, 6];
|
|
2947
|
+
case "com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException": return [3, 6];
|
|
2948
|
+
case "RepositoryNotFoundException": return [3, 8];
|
|
2949
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 8];
|
|
2950
|
+
case "ServerException": return [3, 10];
|
|
2951
|
+
case "com.amazonaws.ecr#ServerException": return [3, 10];
|
|
2829
2952
|
}
|
|
2830
|
-
return [3
|
|
2953
|
+
return [3, 12];
|
|
2831
2954
|
case 2:
|
|
2832
2955
|
_c = [{}];
|
|
2833
|
-
return [4
|
|
2956
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2834
2957
|
case 3:
|
|
2835
2958
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2836
|
-
return [3
|
|
2959
|
+
return [3, 13];
|
|
2837
2960
|
case 4:
|
|
2838
2961
|
_d = [{}];
|
|
2839
|
-
return [4
|
|
2962
|
+
return [4, deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
2840
2963
|
case 5:
|
|
2841
2964
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2842
|
-
return [3
|
|
2965
|
+
return [3, 13];
|
|
2843
2966
|
case 6:
|
|
2844
2967
|
_e = [{}];
|
|
2845
|
-
return [4
|
|
2968
|
+
return [4, deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse(parsedOutput, context)];
|
|
2846
2969
|
case 7:
|
|
2847
2970
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2848
|
-
return [3
|
|
2971
|
+
return [3, 13];
|
|
2849
2972
|
case 8:
|
|
2850
2973
|
_f = [{}];
|
|
2851
|
-
return [4
|
|
2974
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2852
2975
|
case 9:
|
|
2853
2976
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2854
|
-
return [3
|
|
2977
|
+
return [3, 13];
|
|
2855
2978
|
case 10:
|
|
2856
2979
|
_g = [{}];
|
|
2857
|
-
return [4
|
|
2980
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2858
2981
|
case 11:
|
|
2859
2982
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2860
|
-
return [3
|
|
2983
|
+
return [3, 13];
|
|
2861
2984
|
case 12:
|
|
2862
2985
|
parsedBody = parsedOutput.body;
|
|
2863
2986
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2867,7 +2990,7 @@ var deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError = function (ou
|
|
|
2867
2990
|
message = response.message || response.Message || errorCode;
|
|
2868
2991
|
response.message = message;
|
|
2869
2992
|
delete response.Message;
|
|
2870
|
-
return [2
|
|
2993
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2871
2994
|
}
|
|
2872
2995
|
});
|
|
2873
2996
|
}); };
|
|
@@ -2877,15 +3000,15 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
2877
3000
|
switch (_a.label) {
|
|
2878
3001
|
case 0:
|
|
2879
3002
|
if (output.statusCode >= 300) {
|
|
2880
|
-
return [2
|
|
3003
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
2881
3004
|
}
|
|
2882
|
-
return [4
|
|
3005
|
+
return [4, parseBody(output.body, context)];
|
|
2883
3006
|
case 1:
|
|
2884
3007
|
data = _a.sent();
|
|
2885
3008
|
contents = {};
|
|
2886
3009
|
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
2887
3010
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2888
|
-
return [2
|
|
3011
|
+
return [2, Promise.resolve(response)];
|
|
2889
3012
|
}
|
|
2890
3013
|
});
|
|
2891
3014
|
}); };
|
|
@@ -2897,55 +3020,55 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2897
3020
|
case 0:
|
|
2898
3021
|
_a = [__assign({}, output)];
|
|
2899
3022
|
_h = {};
|
|
2900
|
-
return [4
|
|
3023
|
+
return [4, parseBody(output.body, context)];
|
|
2901
3024
|
case 1:
|
|
2902
3025
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2903
3026
|
errorCode = "UnknownError";
|
|
2904
3027
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2905
3028
|
_b = errorCode;
|
|
2906
3029
|
switch (_b) {
|
|
2907
|
-
case "InvalidParameterException": return [3
|
|
2908
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
2909
|
-
case "InvalidTagParameterException": return [3
|
|
2910
|
-
case "com.amazonaws.ecr#InvalidTagParameterException": return [3
|
|
2911
|
-
case "RepositoryNotFoundException": return [3
|
|
2912
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
2913
|
-
case "ServerException": return [3
|
|
2914
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
2915
|
-
case "TooManyTagsException": return [3
|
|
2916
|
-
case "com.amazonaws.ecr#TooManyTagsException": return [3
|
|
3030
|
+
case "InvalidParameterException": return [3, 2];
|
|
3031
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
3032
|
+
case "InvalidTagParameterException": return [3, 4];
|
|
3033
|
+
case "com.amazonaws.ecr#InvalidTagParameterException": return [3, 4];
|
|
3034
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
3035
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 6];
|
|
3036
|
+
case "ServerException": return [3, 8];
|
|
3037
|
+
case "com.amazonaws.ecr#ServerException": return [3, 8];
|
|
3038
|
+
case "TooManyTagsException": return [3, 10];
|
|
3039
|
+
case "com.amazonaws.ecr#TooManyTagsException": return [3, 10];
|
|
2917
3040
|
}
|
|
2918
|
-
return [3
|
|
3041
|
+
return [3, 12];
|
|
2919
3042
|
case 2:
|
|
2920
3043
|
_c = [{}];
|
|
2921
|
-
return [4
|
|
3044
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2922
3045
|
case 3:
|
|
2923
3046
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2924
|
-
return [3
|
|
3047
|
+
return [3, 13];
|
|
2925
3048
|
case 4:
|
|
2926
3049
|
_d = [{}];
|
|
2927
|
-
return [4
|
|
3050
|
+
return [4, deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)];
|
|
2928
3051
|
case 5:
|
|
2929
3052
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2930
|
-
return [3
|
|
3053
|
+
return [3, 13];
|
|
2931
3054
|
case 6:
|
|
2932
3055
|
_e = [{}];
|
|
2933
|
-
return [4
|
|
3056
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2934
3057
|
case 7:
|
|
2935
3058
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2936
|
-
return [3
|
|
3059
|
+
return [3, 13];
|
|
2937
3060
|
case 8:
|
|
2938
3061
|
_f = [{}];
|
|
2939
|
-
return [4
|
|
3062
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
2940
3063
|
case 9:
|
|
2941
3064
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2942
|
-
return [3
|
|
3065
|
+
return [3, 13];
|
|
2943
3066
|
case 10:
|
|
2944
3067
|
_g = [{}];
|
|
2945
|
-
return [4
|
|
3068
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2946
3069
|
case 11:
|
|
2947
3070
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2948
|
-
return [3
|
|
3071
|
+
return [3, 13];
|
|
2949
3072
|
case 12:
|
|
2950
3073
|
parsedBody = parsedOutput.body;
|
|
2951
3074
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2955,7 +3078,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2955
3078
|
message = response.message || response.Message || errorCode;
|
|
2956
3079
|
response.message = message;
|
|
2957
3080
|
delete response.Message;
|
|
2958
|
-
return [2
|
|
3081
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2959
3082
|
}
|
|
2960
3083
|
});
|
|
2961
3084
|
}); };
|
|
@@ -2965,15 +3088,15 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
2965
3088
|
switch (_a.label) {
|
|
2966
3089
|
case 0:
|
|
2967
3090
|
if (output.statusCode >= 300) {
|
|
2968
|
-
return [2
|
|
3091
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
2969
3092
|
}
|
|
2970
|
-
return [4
|
|
3093
|
+
return [4, parseBody(output.body, context)];
|
|
2971
3094
|
case 1:
|
|
2972
3095
|
data = _a.sent();
|
|
2973
3096
|
contents = {};
|
|
2974
3097
|
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
2975
3098
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2976
|
-
return [2
|
|
3099
|
+
return [2, Promise.resolve(response)];
|
|
2977
3100
|
}
|
|
2978
3101
|
});
|
|
2979
3102
|
}); };
|
|
@@ -2985,55 +3108,55 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2985
3108
|
case 0:
|
|
2986
3109
|
_a = [__assign({}, output)];
|
|
2987
3110
|
_h = {};
|
|
2988
|
-
return [4
|
|
3111
|
+
return [4, parseBody(output.body, context)];
|
|
2989
3112
|
case 1:
|
|
2990
3113
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2991
3114
|
errorCode = "UnknownError";
|
|
2992
3115
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2993
3116
|
_b = errorCode;
|
|
2994
3117
|
switch (_b) {
|
|
2995
|
-
case "InvalidParameterException": return [3
|
|
2996
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
2997
|
-
case "InvalidTagParameterException": return [3
|
|
2998
|
-
case "com.amazonaws.ecr#InvalidTagParameterException": return [3
|
|
2999
|
-
case "RepositoryNotFoundException": return [3
|
|
3000
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
3001
|
-
case "ServerException": return [3
|
|
3002
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
3003
|
-
case "TooManyTagsException": return [3
|
|
3004
|
-
case "com.amazonaws.ecr#TooManyTagsException": return [3
|
|
3118
|
+
case "InvalidParameterException": return [3, 2];
|
|
3119
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 2];
|
|
3120
|
+
case "InvalidTagParameterException": return [3, 4];
|
|
3121
|
+
case "com.amazonaws.ecr#InvalidTagParameterException": return [3, 4];
|
|
3122
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
3123
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 6];
|
|
3124
|
+
case "ServerException": return [3, 8];
|
|
3125
|
+
case "com.amazonaws.ecr#ServerException": return [3, 8];
|
|
3126
|
+
case "TooManyTagsException": return [3, 10];
|
|
3127
|
+
case "com.amazonaws.ecr#TooManyTagsException": return [3, 10];
|
|
3005
3128
|
}
|
|
3006
|
-
return [3
|
|
3129
|
+
return [3, 12];
|
|
3007
3130
|
case 2:
|
|
3008
3131
|
_c = [{}];
|
|
3009
|
-
return [4
|
|
3132
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3010
3133
|
case 3:
|
|
3011
3134
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3012
|
-
return [3
|
|
3135
|
+
return [3, 13];
|
|
3013
3136
|
case 4:
|
|
3014
3137
|
_d = [{}];
|
|
3015
|
-
return [4
|
|
3138
|
+
return [4, deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)];
|
|
3016
3139
|
case 5:
|
|
3017
3140
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3018
|
-
return [3
|
|
3141
|
+
return [3, 13];
|
|
3019
3142
|
case 6:
|
|
3020
3143
|
_e = [{}];
|
|
3021
|
-
return [4
|
|
3144
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
3022
3145
|
case 7:
|
|
3023
3146
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3024
|
-
return [3
|
|
3147
|
+
return [3, 13];
|
|
3025
3148
|
case 8:
|
|
3026
3149
|
_f = [{}];
|
|
3027
|
-
return [4
|
|
3150
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
3028
3151
|
case 9:
|
|
3029
3152
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3030
|
-
return [3
|
|
3153
|
+
return [3, 13];
|
|
3031
3154
|
case 10:
|
|
3032
3155
|
_g = [{}];
|
|
3033
|
-
return [4
|
|
3156
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
3034
3157
|
case 11:
|
|
3035
3158
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3036
|
-
return [3
|
|
3159
|
+
return [3, 13];
|
|
3037
3160
|
case 12:
|
|
3038
3161
|
parsedBody = parsedOutput.body;
|
|
3039
3162
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3043,7 +3166,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
3043
3166
|
message = response.message || response.Message || errorCode;
|
|
3044
3167
|
response.message = message;
|
|
3045
3168
|
delete response.Message;
|
|
3046
|
-
return [2
|
|
3169
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3047
3170
|
}
|
|
3048
3171
|
});
|
|
3049
3172
|
}); };
|
|
@@ -3053,15 +3176,15 @@ export var deserializeAws_json1_1UploadLayerPartCommand = function (output, cont
|
|
|
3053
3176
|
switch (_a.label) {
|
|
3054
3177
|
case 0:
|
|
3055
3178
|
if (output.statusCode >= 300) {
|
|
3056
|
-
return [2
|
|
3179
|
+
return [2, deserializeAws_json1_1UploadLayerPartCommandError(output, context)];
|
|
3057
3180
|
}
|
|
3058
|
-
return [4
|
|
3181
|
+
return [4, parseBody(output.body, context)];
|
|
3059
3182
|
case 1:
|
|
3060
3183
|
data = _a.sent();
|
|
3061
3184
|
contents = {};
|
|
3062
3185
|
contents = deserializeAws_json1_1UploadLayerPartResponse(data, context);
|
|
3063
3186
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3064
|
-
return [2
|
|
3187
|
+
return [2, Promise.resolve(response)];
|
|
3065
3188
|
}
|
|
3066
3189
|
});
|
|
3067
3190
|
}); };
|
|
@@ -3073,71 +3196,71 @@ var deserializeAws_json1_1UploadLayerPartCommandError = function (output, contex
|
|
|
3073
3196
|
case 0:
|
|
3074
3197
|
_a = [__assign({}, output)];
|
|
3075
3198
|
_k = {};
|
|
3076
|
-
return [4
|
|
3199
|
+
return [4, parseBody(output.body, context)];
|
|
3077
3200
|
case 1:
|
|
3078
3201
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
3079
3202
|
errorCode = "UnknownError";
|
|
3080
3203
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3081
3204
|
_b = errorCode;
|
|
3082
3205
|
switch (_b) {
|
|
3083
|
-
case "InvalidLayerPartException": return [3
|
|
3084
|
-
case "com.amazonaws.ecr#InvalidLayerPartException": return [3
|
|
3085
|
-
case "InvalidParameterException": return [3
|
|
3086
|
-
case "com.amazonaws.ecr#InvalidParameterException": return [3
|
|
3087
|
-
case "KmsException": return [3
|
|
3088
|
-
case "com.amazonaws.ecr#KmsException": return [3
|
|
3089
|
-
case "LimitExceededException": return [3
|
|
3090
|
-
case "com.amazonaws.ecr#LimitExceededException": return [3
|
|
3091
|
-
case "RepositoryNotFoundException": return [3
|
|
3092
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3
|
|
3093
|
-
case "ServerException": return [3
|
|
3094
|
-
case "com.amazonaws.ecr#ServerException": return [3
|
|
3095
|
-
case "UploadNotFoundException": return [3
|
|
3096
|
-
case "com.amazonaws.ecr#UploadNotFoundException": return [3
|
|
3206
|
+
case "InvalidLayerPartException": return [3, 2];
|
|
3207
|
+
case "com.amazonaws.ecr#InvalidLayerPartException": return [3, 2];
|
|
3208
|
+
case "InvalidParameterException": return [3, 4];
|
|
3209
|
+
case "com.amazonaws.ecr#InvalidParameterException": return [3, 4];
|
|
3210
|
+
case "KmsException": return [3, 6];
|
|
3211
|
+
case "com.amazonaws.ecr#KmsException": return [3, 6];
|
|
3212
|
+
case "LimitExceededException": return [3, 8];
|
|
3213
|
+
case "com.amazonaws.ecr#LimitExceededException": return [3, 8];
|
|
3214
|
+
case "RepositoryNotFoundException": return [3, 10];
|
|
3215
|
+
case "com.amazonaws.ecr#RepositoryNotFoundException": return [3, 10];
|
|
3216
|
+
case "ServerException": return [3, 12];
|
|
3217
|
+
case "com.amazonaws.ecr#ServerException": return [3, 12];
|
|
3218
|
+
case "UploadNotFoundException": return [3, 14];
|
|
3219
|
+
case "com.amazonaws.ecr#UploadNotFoundException": return [3, 14];
|
|
3097
3220
|
}
|
|
3098
|
-
return [3
|
|
3221
|
+
return [3, 16];
|
|
3099
3222
|
case 2:
|
|
3100
3223
|
_c = [{}];
|
|
3101
|
-
return [4
|
|
3224
|
+
return [4, deserializeAws_json1_1InvalidLayerPartExceptionResponse(parsedOutput, context)];
|
|
3102
3225
|
case 3:
|
|
3103
3226
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3104
|
-
return [3
|
|
3227
|
+
return [3, 17];
|
|
3105
3228
|
case 4:
|
|
3106
3229
|
_d = [{}];
|
|
3107
|
-
return [4
|
|
3230
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3108
3231
|
case 5:
|
|
3109
3232
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3110
|
-
return [3
|
|
3233
|
+
return [3, 17];
|
|
3111
3234
|
case 6:
|
|
3112
3235
|
_e = [{}];
|
|
3113
|
-
return [4
|
|
3236
|
+
return [4, deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)];
|
|
3114
3237
|
case 7:
|
|
3115
3238
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3116
|
-
return [3
|
|
3239
|
+
return [3, 17];
|
|
3117
3240
|
case 8:
|
|
3118
3241
|
_f = [{}];
|
|
3119
|
-
return [4
|
|
3242
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
3120
3243
|
case 9:
|
|
3121
3244
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3122
|
-
return [3
|
|
3245
|
+
return [3, 17];
|
|
3123
3246
|
case 10:
|
|
3124
3247
|
_g = [{}];
|
|
3125
|
-
return [4
|
|
3248
|
+
return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
3126
3249
|
case 11:
|
|
3127
3250
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3128
|
-
return [3
|
|
3251
|
+
return [3, 17];
|
|
3129
3252
|
case 12:
|
|
3130
3253
|
_h = [{}];
|
|
3131
|
-
return [4
|
|
3254
|
+
return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
3132
3255
|
case 13:
|
|
3133
3256
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3134
|
-
return [3
|
|
3257
|
+
return [3, 17];
|
|
3135
3258
|
case 14:
|
|
3136
3259
|
_j = [{}];
|
|
3137
|
-
return [4
|
|
3260
|
+
return [4, deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)];
|
|
3138
3261
|
case 15:
|
|
3139
3262
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3140
|
-
return [3
|
|
3263
|
+
return [3, 17];
|
|
3141
3264
|
case 16:
|
|
3142
3265
|
parsedBody = parsedOutput.body;
|
|
3143
3266
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3147,7 +3270,7 @@ var deserializeAws_json1_1UploadLayerPartCommandError = function (output, contex
|
|
|
3147
3270
|
message = response.message || response.Message || errorCode;
|
|
3148
3271
|
response.message = message;
|
|
3149
3272
|
delete response.Message;
|
|
3150
|
-
return [2
|
|
3273
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3151
3274
|
}
|
|
3152
3275
|
});
|
|
3153
3276
|
}); };
|
|
@@ -3157,7 +3280,7 @@ var deserializeAws_json1_1EmptyUploadExceptionResponse = function (parsedOutput,
|
|
|
3157
3280
|
body = parsedOutput.body;
|
|
3158
3281
|
deserialized = deserializeAws_json1_1EmptyUploadException(body, context);
|
|
3159
3282
|
contents = __assign({ name: "EmptyUploadException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3160
|
-
return [2
|
|
3283
|
+
return [2, contents];
|
|
3161
3284
|
});
|
|
3162
3285
|
}); };
|
|
3163
3286
|
var deserializeAws_json1_1ImageAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3166,7 +3289,7 @@ var deserializeAws_json1_1ImageAlreadyExistsExceptionResponse = function (parsed
|
|
|
3166
3289
|
body = parsedOutput.body;
|
|
3167
3290
|
deserialized = deserializeAws_json1_1ImageAlreadyExistsException(body, context);
|
|
3168
3291
|
contents = __assign({ name: "ImageAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3169
|
-
return [2
|
|
3292
|
+
return [2, contents];
|
|
3170
3293
|
});
|
|
3171
3294
|
}); };
|
|
3172
3295
|
var deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3175,7 +3298,7 @@ var deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse = function (p
|
|
|
3175
3298
|
body = parsedOutput.body;
|
|
3176
3299
|
deserialized = deserializeAws_json1_1ImageDigestDoesNotMatchException(body, context);
|
|
3177
3300
|
contents = __assign({ name: "ImageDigestDoesNotMatchException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3178
|
-
return [2
|
|
3301
|
+
return [2, contents];
|
|
3179
3302
|
});
|
|
3180
3303
|
}); };
|
|
3181
3304
|
var deserializeAws_json1_1ImageNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3184,7 +3307,7 @@ var deserializeAws_json1_1ImageNotFoundExceptionResponse = function (parsedOutpu
|
|
|
3184
3307
|
body = parsedOutput.body;
|
|
3185
3308
|
deserialized = deserializeAws_json1_1ImageNotFoundException(body, context);
|
|
3186
3309
|
contents = __assign({ name: "ImageNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3187
|
-
return [2
|
|
3310
|
+
return [2, contents];
|
|
3188
3311
|
});
|
|
3189
3312
|
}); };
|
|
3190
3313
|
var deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3193,7 +3316,7 @@ var deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse = function (par
|
|
|
3193
3316
|
body = parsedOutput.body;
|
|
3194
3317
|
deserialized = deserializeAws_json1_1ImageTagAlreadyExistsException(body, context);
|
|
3195
3318
|
contents = __assign({ name: "ImageTagAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3196
|
-
return [2
|
|
3319
|
+
return [2, contents];
|
|
3197
3320
|
});
|
|
3198
3321
|
}); };
|
|
3199
3322
|
var deserializeAws_json1_1InvalidLayerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3202,7 +3325,7 @@ var deserializeAws_json1_1InvalidLayerExceptionResponse = function (parsedOutput
|
|
|
3202
3325
|
body = parsedOutput.body;
|
|
3203
3326
|
deserialized = deserializeAws_json1_1InvalidLayerException(body, context);
|
|
3204
3327
|
contents = __assign({ name: "InvalidLayerException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3205
|
-
return [2
|
|
3328
|
+
return [2, contents];
|
|
3206
3329
|
});
|
|
3207
3330
|
}); };
|
|
3208
3331
|
var deserializeAws_json1_1InvalidLayerPartExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3211,7 +3334,7 @@ var deserializeAws_json1_1InvalidLayerPartExceptionResponse = function (parsedOu
|
|
|
3211
3334
|
body = parsedOutput.body;
|
|
3212
3335
|
deserialized = deserializeAws_json1_1InvalidLayerPartException(body, context);
|
|
3213
3336
|
contents = __assign({ name: "InvalidLayerPartException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3214
|
-
return [2
|
|
3337
|
+
return [2, contents];
|
|
3215
3338
|
});
|
|
3216
3339
|
}); };
|
|
3217
3340
|
var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3220,7 +3343,7 @@ var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOu
|
|
|
3220
3343
|
body = parsedOutput.body;
|
|
3221
3344
|
deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
3222
3345
|
contents = __assign({ name: "InvalidParameterException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3223
|
-
return [2
|
|
3346
|
+
return [2, contents];
|
|
3224
3347
|
});
|
|
3225
3348
|
}); };
|
|
3226
3349
|
var deserializeAws_json1_1InvalidTagParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3229,7 +3352,7 @@ var deserializeAws_json1_1InvalidTagParameterExceptionResponse = function (parse
|
|
|
3229
3352
|
body = parsedOutput.body;
|
|
3230
3353
|
deserialized = deserializeAws_json1_1InvalidTagParameterException(body, context);
|
|
3231
3354
|
contents = __assign({ name: "InvalidTagParameterException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3232
|
-
return [2
|
|
3355
|
+
return [2, contents];
|
|
3233
3356
|
});
|
|
3234
3357
|
}); };
|
|
3235
3358
|
var deserializeAws_json1_1KmsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3238,7 +3361,7 @@ var deserializeAws_json1_1KmsExceptionResponse = function (parsedOutput, context
|
|
|
3238
3361
|
body = parsedOutput.body;
|
|
3239
3362
|
deserialized = deserializeAws_json1_1KmsException(body, context);
|
|
3240
3363
|
contents = __assign({ name: "KmsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3241
|
-
return [2
|
|
3364
|
+
return [2, contents];
|
|
3242
3365
|
});
|
|
3243
3366
|
}); };
|
|
3244
3367
|
var deserializeAws_json1_1LayerAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3247,7 +3370,7 @@ var deserializeAws_json1_1LayerAlreadyExistsExceptionResponse = function (parsed
|
|
|
3247
3370
|
body = parsedOutput.body;
|
|
3248
3371
|
deserialized = deserializeAws_json1_1LayerAlreadyExistsException(body, context);
|
|
3249
3372
|
contents = __assign({ name: "LayerAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3250
|
-
return [2
|
|
3373
|
+
return [2, contents];
|
|
3251
3374
|
});
|
|
3252
3375
|
}); };
|
|
3253
3376
|
var deserializeAws_json1_1LayerInaccessibleExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3256,7 +3379,7 @@ var deserializeAws_json1_1LayerInaccessibleExceptionResponse = function (parsedO
|
|
|
3256
3379
|
body = parsedOutput.body;
|
|
3257
3380
|
deserialized = deserializeAws_json1_1LayerInaccessibleException(body, context);
|
|
3258
3381
|
contents = __assign({ name: "LayerInaccessibleException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3259
|
-
return [2
|
|
3382
|
+
return [2, contents];
|
|
3260
3383
|
});
|
|
3261
3384
|
}); };
|
|
3262
3385
|
var deserializeAws_json1_1LayerPartTooSmallExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3265,7 +3388,7 @@ var deserializeAws_json1_1LayerPartTooSmallExceptionResponse = function (parsedO
|
|
|
3265
3388
|
body = parsedOutput.body;
|
|
3266
3389
|
deserialized = deserializeAws_json1_1LayerPartTooSmallException(body, context);
|
|
3267
3390
|
contents = __assign({ name: "LayerPartTooSmallException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3268
|
-
return [2
|
|
3391
|
+
return [2, contents];
|
|
3269
3392
|
});
|
|
3270
3393
|
}); };
|
|
3271
3394
|
var deserializeAws_json1_1LayersNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3274,7 +3397,7 @@ var deserializeAws_json1_1LayersNotFoundExceptionResponse = function (parsedOutp
|
|
|
3274
3397
|
body = parsedOutput.body;
|
|
3275
3398
|
deserialized = deserializeAws_json1_1LayersNotFoundException(body, context);
|
|
3276
3399
|
contents = __assign({ name: "LayersNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3277
|
-
return [2
|
|
3400
|
+
return [2, contents];
|
|
3278
3401
|
});
|
|
3279
3402
|
}); };
|
|
3280
3403
|
var deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3283,7 +3406,7 @@ var deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse = function (p
|
|
|
3283
3406
|
body = parsedOutput.body;
|
|
3284
3407
|
deserialized = deserializeAws_json1_1LifecyclePolicyNotFoundException(body, context);
|
|
3285
3408
|
contents = __assign({ name: "LifecyclePolicyNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3286
|
-
return [2
|
|
3409
|
+
return [2, contents];
|
|
3287
3410
|
});
|
|
3288
3411
|
}); };
|
|
3289
3412
|
var deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3292,7 +3415,7 @@ var deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse = fu
|
|
|
3292
3415
|
body = parsedOutput.body;
|
|
3293
3416
|
deserialized = deserializeAws_json1_1LifecyclePolicyPreviewInProgressException(body, context);
|
|
3294
3417
|
contents = __assign({ name: "LifecyclePolicyPreviewInProgressException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3295
|
-
return [2
|
|
3418
|
+
return [2, contents];
|
|
3296
3419
|
});
|
|
3297
3420
|
}); };
|
|
3298
3421
|
var deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3301,7 +3424,7 @@ var deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse = func
|
|
|
3301
3424
|
body = parsedOutput.body;
|
|
3302
3425
|
deserialized = deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException(body, context);
|
|
3303
3426
|
contents = __assign({ name: "LifecyclePolicyPreviewNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3304
|
-
return [2
|
|
3427
|
+
return [2, contents];
|
|
3305
3428
|
});
|
|
3306
3429
|
}); };
|
|
3307
3430
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3310,7 +3433,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
3310
3433
|
body = parsedOutput.body;
|
|
3311
3434
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
3312
3435
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3313
|
-
return [2
|
|
3436
|
+
return [2, contents];
|
|
3314
3437
|
});
|
|
3315
3438
|
}); };
|
|
3316
3439
|
var deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3319,7 +3442,7 @@ var deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse = function (
|
|
|
3319
3442
|
body = parsedOutput.body;
|
|
3320
3443
|
deserialized = deserializeAws_json1_1ReferencedImagesNotFoundException(body, context);
|
|
3321
3444
|
contents = __assign({ name: "ReferencedImagesNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3322
|
-
return [2
|
|
3445
|
+
return [2, contents];
|
|
3323
3446
|
});
|
|
3324
3447
|
}); };
|
|
3325
3448
|
var deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3328,7 +3451,7 @@ var deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse = function (pa
|
|
|
3328
3451
|
body = parsedOutput.body;
|
|
3329
3452
|
deserialized = deserializeAws_json1_1RegistryPolicyNotFoundException(body, context);
|
|
3330
3453
|
contents = __assign({ name: "RegistryPolicyNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3331
|
-
return [2
|
|
3454
|
+
return [2, contents];
|
|
3332
3455
|
});
|
|
3333
3456
|
}); };
|
|
3334
3457
|
var deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3337,7 +3460,7 @@ var deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse = function (p
|
|
|
3337
3460
|
body = parsedOutput.body;
|
|
3338
3461
|
deserialized = deserializeAws_json1_1RepositoryAlreadyExistsException(body, context);
|
|
3339
3462
|
contents = __assign({ name: "RepositoryAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3340
|
-
return [2
|
|
3463
|
+
return [2, contents];
|
|
3341
3464
|
});
|
|
3342
3465
|
}); };
|
|
3343
3466
|
var deserializeAws_json1_1RepositoryNotEmptyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3346,7 +3469,7 @@ var deserializeAws_json1_1RepositoryNotEmptyExceptionResponse = function (parsed
|
|
|
3346
3469
|
body = parsedOutput.body;
|
|
3347
3470
|
deserialized = deserializeAws_json1_1RepositoryNotEmptyException(body, context);
|
|
3348
3471
|
contents = __assign({ name: "RepositoryNotEmptyException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3349
|
-
return [2
|
|
3472
|
+
return [2, contents];
|
|
3350
3473
|
});
|
|
3351
3474
|
}); };
|
|
3352
3475
|
var deserializeAws_json1_1RepositoryNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3355,7 +3478,7 @@ var deserializeAws_json1_1RepositoryNotFoundExceptionResponse = function (parsed
|
|
|
3355
3478
|
body = parsedOutput.body;
|
|
3356
3479
|
deserialized = deserializeAws_json1_1RepositoryNotFoundException(body, context);
|
|
3357
3480
|
contents = __assign({ name: "RepositoryNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3358
|
-
return [2
|
|
3481
|
+
return [2, contents];
|
|
3359
3482
|
});
|
|
3360
3483
|
}); };
|
|
3361
3484
|
var deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3364,7 +3487,7 @@ var deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse = function (
|
|
|
3364
3487
|
body = parsedOutput.body;
|
|
3365
3488
|
deserialized = deserializeAws_json1_1RepositoryPolicyNotFoundException(body, context);
|
|
3366
3489
|
contents = __assign({ name: "RepositoryPolicyNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3367
|
-
return [2
|
|
3490
|
+
return [2, contents];
|
|
3368
3491
|
});
|
|
3369
3492
|
}); };
|
|
3370
3493
|
var deserializeAws_json1_1ScanNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3373,7 +3496,7 @@ var deserializeAws_json1_1ScanNotFoundExceptionResponse = function (parsedOutput
|
|
|
3373
3496
|
body = parsedOutput.body;
|
|
3374
3497
|
deserialized = deserializeAws_json1_1ScanNotFoundException(body, context);
|
|
3375
3498
|
contents = __assign({ name: "ScanNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3376
|
-
return [2
|
|
3499
|
+
return [2, contents];
|
|
3377
3500
|
});
|
|
3378
3501
|
}); };
|
|
3379
3502
|
var deserializeAws_json1_1ServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3382,7 +3505,7 @@ var deserializeAws_json1_1ServerExceptionResponse = function (parsedOutput, cont
|
|
|
3382
3505
|
body = parsedOutput.body;
|
|
3383
3506
|
deserialized = deserializeAws_json1_1ServerException(body, context);
|
|
3384
3507
|
contents = __assign({ name: "ServerException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3385
|
-
return [2
|
|
3508
|
+
return [2, contents];
|
|
3386
3509
|
});
|
|
3387
3510
|
}); };
|
|
3388
3511
|
var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3391,7 +3514,7 @@ var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput,
|
|
|
3391
3514
|
body = parsedOutput.body;
|
|
3392
3515
|
deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
3393
3516
|
contents = __assign({ name: "TooManyTagsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3394
|
-
return [2
|
|
3517
|
+
return [2, contents];
|
|
3395
3518
|
});
|
|
3396
3519
|
}); };
|
|
3397
3520
|
var deserializeAws_json1_1UnsupportedImageTypeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3400,7 +3523,7 @@ var deserializeAws_json1_1UnsupportedImageTypeExceptionResponse = function (pars
|
|
|
3400
3523
|
body = parsedOutput.body;
|
|
3401
3524
|
deserialized = deserializeAws_json1_1UnsupportedImageTypeException(body, context);
|
|
3402
3525
|
contents = __assign({ name: "UnsupportedImageTypeException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3403
|
-
return [2
|
|
3526
|
+
return [2, contents];
|
|
3404
3527
|
});
|
|
3405
3528
|
}); };
|
|
3406
3529
|
var deserializeAws_json1_1UploadNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3409,7 +3532,7 @@ var deserializeAws_json1_1UploadNotFoundExceptionResponse = function (parsedOutp
|
|
|
3409
3532
|
body = parsedOutput.body;
|
|
3410
3533
|
deserialized = deserializeAws_json1_1UploadNotFoundException(body, context);
|
|
3411
3534
|
contents = __assign({ name: "UploadNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3412
|
-
return [2
|
|
3535
|
+
return [2, contents];
|
|
3413
3536
|
});
|
|
3414
3537
|
}); };
|
|
3415
3538
|
var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3418,7 +3541,7 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
|
|
|
3418
3541
|
body = parsedOutput.body;
|
|
3419
3542
|
deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
3420
3543
|
contents = __assign({ name: "ValidationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3421
|
-
return [2
|
|
3544
|
+
return [2, contents];
|
|
3422
3545
|
});
|
|
3423
3546
|
}); };
|
|
3424
3547
|
var serializeAws_json1_1BatchCheckLayerAvailabilityRequest = function (input, context) {
|
|
@@ -3459,14 +3582,14 @@ var serializeAws_json1_1CompleteLayerUploadRequest = function (input, context) {
|
|
|
3459
3582
|
input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }));
|
|
3460
3583
|
};
|
|
3461
3584
|
var serializeAws_json1_1CreateRepositoryRequest = function (input, context) {
|
|
3462
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.encryptionConfiguration !== undefined &&
|
|
3585
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.encryptionConfiguration !== undefined &&
|
|
3463
3586
|
input.encryptionConfiguration !== null && {
|
|
3464
3587
|
encryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.encryptionConfiguration, context),
|
|
3465
3588
|
})), (input.imageScanningConfiguration !== undefined &&
|
|
3466
3589
|
input.imageScanningConfiguration !== null && {
|
|
3467
3590
|
imageScanningConfiguration: serializeAws_json1_1ImageScanningConfiguration(input.imageScanningConfiguration, context),
|
|
3468
3591
|
})), (input.imageTagMutability !== undefined &&
|
|
3469
|
-
input.imageTagMutability !== null && { imageTagMutability: input.imageTagMutability })), (input.repositoryName !== undefined &&
|
|
3592
|
+
input.imageTagMutability !== null && { imageTagMutability: input.imageTagMutability })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
|
|
3470
3593
|
input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
|
|
3471
3594
|
};
|
|
3472
3595
|
var serializeAws_json1_1DeleteLifecyclePolicyRequest = function (input, context) {
|
|
@@ -3484,6 +3607,11 @@ var serializeAws_json1_1DeleteRepositoryRequest = function (input, context) {
|
|
|
3484
3607
|
return __assign(__assign(__assign({}, (input.force !== undefined && input.force !== null && { force: input.force })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
|
|
3485
3608
|
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
3486
3609
|
};
|
|
3610
|
+
var serializeAws_json1_1DescribeImageReplicationStatusRequest = function (input, context) {
|
|
3611
|
+
return __assign(__assign(__assign({}, (input.imageId !== undefined &&
|
|
3612
|
+
input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
|
|
3613
|
+
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
3614
|
+
};
|
|
3487
3615
|
var serializeAws_json1_1DescribeImageScanFindingsRequest = function (input, context) {
|
|
3488
3616
|
return __assign(__assign(__assign(__assign(__assign({}, (input.imageId !== undefined &&
|
|
3489
3617
|
input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, 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 &&
|
|
@@ -3651,9 +3779,12 @@ var serializeAws_json1_1ReplicationDestinationList = function (input, context) {
|
|
|
3651
3779
|
});
|
|
3652
3780
|
};
|
|
3653
3781
|
var serializeAws_json1_1ReplicationRule = function (input, context) {
|
|
3654
|
-
return __assign({}, (input.destinations !== undefined &&
|
|
3782
|
+
return __assign(__assign({}, (input.destinations !== undefined &&
|
|
3655
3783
|
input.destinations !== null && {
|
|
3656
3784
|
destinations: serializeAws_json1_1ReplicationDestinationList(input.destinations, context),
|
|
3785
|
+
})), (input.repositoryFilters !== undefined &&
|
|
3786
|
+
input.repositoryFilters !== null && {
|
|
3787
|
+
repositoryFilters: serializeAws_json1_1RepositoryFilterList(input.repositoryFilters, context),
|
|
3657
3788
|
}));
|
|
3658
3789
|
};
|
|
3659
3790
|
var serializeAws_json1_1ReplicationRuleList = function (input, context) {
|
|
@@ -3666,6 +3797,19 @@ var serializeAws_json1_1ReplicationRuleList = function (input, context) {
|
|
|
3666
3797
|
return serializeAws_json1_1ReplicationRule(entry, context);
|
|
3667
3798
|
});
|
|
3668
3799
|
};
|
|
3800
|
+
var serializeAws_json1_1RepositoryFilter = function (input, context) {
|
|
3801
|
+
return __assign(__assign({}, (input.filter !== undefined && input.filter !== null && { filter: input.filter })), (input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }));
|
|
3802
|
+
};
|
|
3803
|
+
var serializeAws_json1_1RepositoryFilterList = function (input, context) {
|
|
3804
|
+
return input
|
|
3805
|
+
.filter(function (e) { return e != null; })
|
|
3806
|
+
.map(function (entry) {
|
|
3807
|
+
if (entry === null) {
|
|
3808
|
+
return null;
|
|
3809
|
+
}
|
|
3810
|
+
return serializeAws_json1_1RepositoryFilter(entry, context);
|
|
3811
|
+
});
|
|
3812
|
+
};
|
|
3669
3813
|
var serializeAws_json1_1RepositoryNameList = function (input, context) {
|
|
3670
3814
|
return input
|
|
3671
3815
|
.filter(function (e) { return e != null; })
|
|
@@ -3835,6 +3979,17 @@ var deserializeAws_json1_1DeleteRepositoryResponse = function (output, context)
|
|
|
3835
3979
|
: undefined,
|
|
3836
3980
|
};
|
|
3837
3981
|
};
|
|
3982
|
+
var deserializeAws_json1_1DescribeImageReplicationStatusResponse = function (output, context) {
|
|
3983
|
+
return {
|
|
3984
|
+
imageId: output.imageId !== undefined && output.imageId !== null
|
|
3985
|
+
? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
|
|
3986
|
+
: undefined,
|
|
3987
|
+
replicationStatuses: output.replicationStatuses !== undefined && output.replicationStatuses !== null
|
|
3988
|
+
? deserializeAws_json1_1ImageReplicationStatusList(output.replicationStatuses, context)
|
|
3989
|
+
: undefined,
|
|
3990
|
+
repositoryName: __expectString(output.repositoryName),
|
|
3991
|
+
};
|
|
3992
|
+
};
|
|
3838
3993
|
var deserializeAws_json1_1DescribeImageScanFindingsResponse = function (output, context) {
|
|
3839
3994
|
return {
|
|
3840
3995
|
imageId: output.imageId !== undefined && output.imageId !== null
|
|
@@ -4050,6 +4205,24 @@ var deserializeAws_json1_1ImageNotFoundException = function (output, context) {
|
|
|
4050
4205
|
message: __expectString(output.message),
|
|
4051
4206
|
};
|
|
4052
4207
|
};
|
|
4208
|
+
var deserializeAws_json1_1ImageReplicationStatus = function (output, context) {
|
|
4209
|
+
return {
|
|
4210
|
+
failureCode: __expectString(output.failureCode),
|
|
4211
|
+
region: __expectString(output.region),
|
|
4212
|
+
registryId: __expectString(output.registryId),
|
|
4213
|
+
status: __expectString(output.status),
|
|
4214
|
+
};
|
|
4215
|
+
};
|
|
4216
|
+
var deserializeAws_json1_1ImageReplicationStatusList = function (output, context) {
|
|
4217
|
+
return (output || [])
|
|
4218
|
+
.filter(function (e) { return e != null; })
|
|
4219
|
+
.map(function (entry) {
|
|
4220
|
+
if (entry === null) {
|
|
4221
|
+
return null;
|
|
4222
|
+
}
|
|
4223
|
+
return deserializeAws_json1_1ImageReplicationStatus(entry, context);
|
|
4224
|
+
});
|
|
4225
|
+
};
|
|
4053
4226
|
var deserializeAws_json1_1ImageScanFinding = function (output, context) {
|
|
4054
4227
|
return {
|
|
4055
4228
|
attributes: output.attributes !== undefined && output.attributes !== null
|
|
@@ -4368,6 +4541,9 @@ var deserializeAws_json1_1ReplicationRule = function (output, context) {
|
|
|
4368
4541
|
destinations: output.destinations !== undefined && output.destinations !== null
|
|
4369
4542
|
? deserializeAws_json1_1ReplicationDestinationList(output.destinations, context)
|
|
4370
4543
|
: undefined,
|
|
4544
|
+
repositoryFilters: output.repositoryFilters !== undefined && output.repositoryFilters !== null
|
|
4545
|
+
? deserializeAws_json1_1RepositoryFilterList(output.repositoryFilters, context)
|
|
4546
|
+
: undefined,
|
|
4371
4547
|
};
|
|
4372
4548
|
};
|
|
4373
4549
|
var deserializeAws_json1_1ReplicationRuleList = function (output, context) {
|
|
@@ -4403,6 +4579,22 @@ var deserializeAws_json1_1RepositoryAlreadyExistsException = function (output, c
|
|
|
4403
4579
|
message: __expectString(output.message),
|
|
4404
4580
|
};
|
|
4405
4581
|
};
|
|
4582
|
+
var deserializeAws_json1_1RepositoryFilter = function (output, context) {
|
|
4583
|
+
return {
|
|
4584
|
+
filter: __expectString(output.filter),
|
|
4585
|
+
filterType: __expectString(output.filterType),
|
|
4586
|
+
};
|
|
4587
|
+
};
|
|
4588
|
+
var deserializeAws_json1_1RepositoryFilterList = function (output, context) {
|
|
4589
|
+
return (output || [])
|
|
4590
|
+
.filter(function (e) { return e != null; })
|
|
4591
|
+
.map(function (entry) {
|
|
4592
|
+
if (entry === null) {
|
|
4593
|
+
return null;
|
|
4594
|
+
}
|
|
4595
|
+
return deserializeAws_json1_1RepositoryFilter(entry, context);
|
|
4596
|
+
});
|
|
4597
|
+
};
|
|
4406
4598
|
var deserializeAws_json1_1RepositoryList = function (output, context) {
|
|
4407
4599
|
return (output || [])
|
|
4408
4600
|
.filter(function (e) { return e != null; })
|
|
@@ -4524,7 +4716,6 @@ var deserializeMetadata = function (output) {
|
|
|
4524
4716
|
cfId: output.headers["x-amz-cf-id"],
|
|
4525
4717
|
});
|
|
4526
4718
|
};
|
|
4527
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4528
4719
|
var collectBody = function (streamBody, context) {
|
|
4529
4720
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
4530
4721
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -4532,7 +4723,6 @@ var collectBody = function (streamBody, context) {
|
|
|
4532
4723
|
}
|
|
4533
4724
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4534
4725
|
};
|
|
4535
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4536
4726
|
var collectBodyString = function (streamBody, context) {
|
|
4537
4727
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
4538
4728
|
};
|
|
@@ -4540,7 +4730,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
4540
4730
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
4541
4731
|
return __generator(this, function (_c) {
|
|
4542
4732
|
switch (_c.label) {
|
|
4543
|
-
case 0: return [4
|
|
4733
|
+
case 0: return [4, context.endpoint()];
|
|
4544
4734
|
case 1:
|
|
4545
4735
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4546
4736
|
contents = {
|
|
@@ -4557,7 +4747,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
4557
4747
|
if (body !== undefined) {
|
|
4558
4748
|
contents.body = body;
|
|
4559
4749
|
}
|
|
4560
|
-
return [2
|
|
4750
|
+
return [2, new __HttpRequest(contents)];
|
|
4561
4751
|
}
|
|
4562
4752
|
});
|
|
4563
4753
|
}); };
|
|
@@ -4569,9 +4759,6 @@ var parseBody = function (streamBody, context) {
|
|
|
4569
4759
|
return {};
|
|
4570
4760
|
});
|
|
4571
4761
|
};
|
|
4572
|
-
/**
|
|
4573
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4574
|
-
*/
|
|
4575
4762
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4576
4763
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4577
4764
|
var sanitizeErrorCode = function (rawValue) {
|