@aws-sdk/client-ecr 3.927.0 → 3.929.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/dist-cjs/index.js +2244 -2306
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/ECRClient.js +2 -0
- package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +3 -9
- package/dist-es/commands/BatchDeleteImageCommand.js +3 -9
- package/dist-es/commands/BatchGetImageCommand.js +3 -9
- package/dist-es/commands/BatchGetRepositoryScanningConfigurationCommand.js +3 -9
- package/dist-es/commands/CompleteLayerUploadCommand.js +3 -9
- package/dist-es/commands/CreatePullThroughCacheRuleCommand.js +3 -9
- package/dist-es/commands/CreateRepositoryCommand.js +3 -9
- package/dist-es/commands/CreateRepositoryCreationTemplateCommand.js +3 -9
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +3 -9
- package/dist-es/commands/DeletePullThroughCacheRuleCommand.js +3 -9
- package/dist-es/commands/DeleteRegistryPolicyCommand.js +3 -9
- package/dist-es/commands/DeleteRepositoryCommand.js +3 -9
- package/dist-es/commands/DeleteRepositoryCreationTemplateCommand.js +3 -9
- package/dist-es/commands/DeleteRepositoryPolicyCommand.js +3 -9
- package/dist-es/commands/DescribeImageReplicationStatusCommand.js +3 -9
- package/dist-es/commands/DescribeImageScanFindingsCommand.js +3 -9
- package/dist-es/commands/DescribeImagesCommand.js +3 -9
- package/dist-es/commands/DescribePullThroughCacheRulesCommand.js +3 -9
- package/dist-es/commands/DescribeRegistryCommand.js +3 -9
- package/dist-es/commands/DescribeRepositoriesCommand.js +3 -9
- package/dist-es/commands/DescribeRepositoryCreationTemplatesCommand.js +3 -9
- package/dist-es/commands/GetAccountSettingCommand.js +3 -9
- package/dist-es/commands/GetAuthorizationTokenCommand.js +3 -9
- package/dist-es/commands/GetDownloadUrlForLayerCommand.js +3 -9
- package/dist-es/commands/GetLifecyclePolicyCommand.js +3 -9
- package/dist-es/commands/GetLifecyclePolicyPreviewCommand.js +3 -9
- package/dist-es/commands/GetRegistryPolicyCommand.js +3 -9
- package/dist-es/commands/GetRegistryScanningConfigurationCommand.js +3 -9
- package/dist-es/commands/GetRepositoryPolicyCommand.js +3 -9
- package/dist-es/commands/InitiateLayerUploadCommand.js +3 -9
- package/dist-es/commands/ListImagesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/PutAccountSettingCommand.js +3 -9
- package/dist-es/commands/PutImageCommand.js +3 -9
- package/dist-es/commands/PutImageScanningConfigurationCommand.js +3 -9
- package/dist-es/commands/PutImageTagMutabilityCommand.js +3 -9
- package/dist-es/commands/PutLifecyclePolicyCommand.js +3 -9
- package/dist-es/commands/PutRegistryPolicyCommand.js +3 -9
- package/dist-es/commands/PutRegistryScanningConfigurationCommand.js +3 -9
- package/dist-es/commands/PutReplicationConfigurationCommand.js +3 -9
- package/dist-es/commands/SetRepositoryPolicyCommand.js +3 -9
- package/dist-es/commands/StartImageScanCommand.js +3 -9
- package/dist-es/commands/StartLifecyclePolicyPreviewCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdatePullThroughCacheRuleCommand.js +3 -9
- package/dist-es/commands/UpdateRepositoryCreationTemplateCommand.js +3 -9
- package/dist-es/commands/UploadLayerPartCommand.js +3 -9
- package/dist-es/commands/ValidatePullThroughCacheRuleCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +2041 -0
- package/dist-types/ECRClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +282 -0
- package/dist-types/ts3.4/ECRClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +287 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -1847
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -443
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -593
|
@@ -1,1847 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { ECRServiceException as __BaseException } from "../models/ECRServiceException";
|
|
5
|
-
import { EmptyUploadException, ImageAlreadyExistsException, ImageDigestDoesNotMatchException, ImageNotFoundException, ImageTagAlreadyExistsException, InvalidLayerException, InvalidLayerPartException, InvalidParameterException, InvalidTagParameterException, KmsException, LayerAlreadyExistsException, LayerInaccessibleException, LayerPartTooSmallException, LayersNotFoundException, LifecyclePolicyNotFoundException, LifecyclePolicyPreviewInProgressException, LifecyclePolicyPreviewNotFoundException, LimitExceededException, PullThroughCacheRuleAlreadyExistsException, PullThroughCacheRuleNotFoundException, ReferencedImagesNotFoundException, RegistryPolicyNotFoundException, RepositoryAlreadyExistsException, RepositoryNotEmptyException, RepositoryNotFoundException, RepositoryPolicyNotFoundException, ScanNotFoundException, SecretNotFoundException, ServerException, TemplateAlreadyExistsException, TemplateNotFoundException, TooManyTagsException, UnableToAccessSecretException, UnableToDecryptSecretValueException, UnableToGetUpstreamImageException, UnableToGetUpstreamLayerException, UnsupportedImageTypeException, UnsupportedUpstreamRegistryException, UploadNotFoundException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_BatchCheckLayerAvailabilityCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("BatchCheckLayerAvailability");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_BatchDeleteImageCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("BatchDeleteImage");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_BatchGetImageCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("BatchGetImage");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_BatchGetRepositoryScanningConfigurationCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("BatchGetRepositoryScanningConfiguration");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_CompleteLayerUploadCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("CompleteLayerUpload");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_CreatePullThroughCacheRuleCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("CreatePullThroughCacheRule");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_CreateRepositoryCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("CreateRepository");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_CreateRepositoryCreationTemplateCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("CreateRepositoryCreationTemplate");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_DeleteLifecyclePolicyCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("DeleteLifecyclePolicy");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_DeletePullThroughCacheRuleCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("DeletePullThroughCacheRule");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_DeleteRegistryPolicyCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DeleteRegistryPolicy");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_DeleteRepositoryCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DeleteRepository");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_DeleteRepositoryCreationTemplateCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DeleteRepositoryCreationTemplate");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_DeleteRepositoryPolicyCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("DeleteRepositoryPolicy");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_DescribeImageReplicationStatusCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("DescribeImageReplicationStatus");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_DescribeImagesCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("DescribeImages");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_DescribeImageScanFindingsCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DescribeImageScanFindings");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_DescribePullThroughCacheRulesCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("DescribePullThroughCacheRules");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_DescribeRegistryCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("DescribeRegistry");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_DescribeRepositoriesCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("DescribeRepositories");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_DescribeRepositoryCreationTemplatesCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("DescribeRepositoryCreationTemplates");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const se_GetAccountSettingCommand = async (input, context) => {
|
|
133
|
-
const headers = sharedHeaders("GetAccountSetting");
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(_json(input));
|
|
136
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
-
};
|
|
138
|
-
export const se_GetAuthorizationTokenCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("GetAuthorizationToken");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(_json(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
export const se_GetDownloadUrlForLayerCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("GetDownloadUrlForLayer");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(_json(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
export const se_GetLifecyclePolicyCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("GetLifecyclePolicy");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(_json(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_GetLifecyclePolicyPreviewCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("GetLifecyclePolicyPreview");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(_json(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
export const se_GetRegistryPolicyCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("GetRegistryPolicy");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(_json(input));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
export const se_GetRegistryScanningConfigurationCommand = async (input, context) => {
|
|
169
|
-
const headers = sharedHeaders("GetRegistryScanningConfiguration");
|
|
170
|
-
let body;
|
|
171
|
-
body = JSON.stringify(_json(input));
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
export const se_GetRepositoryPolicyCommand = async (input, context) => {
|
|
175
|
-
const headers = sharedHeaders("GetRepositoryPolicy");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify(_json(input));
|
|
178
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
-
};
|
|
180
|
-
export const se_InitiateLayerUploadCommand = async (input, context) => {
|
|
181
|
-
const headers = sharedHeaders("InitiateLayerUpload");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify(_json(input));
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
export const se_ListImagesCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("ListImages");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify(_json(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify(_json(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
export const se_PutAccountSettingCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("PutAccountSetting");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify(_json(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
export const se_PutImageCommand = async (input, context) => {
|
|
205
|
-
const headers = sharedHeaders("PutImage");
|
|
206
|
-
let body;
|
|
207
|
-
body = JSON.stringify(_json(input));
|
|
208
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
-
};
|
|
210
|
-
export const se_PutImageScanningConfigurationCommand = async (input, context) => {
|
|
211
|
-
const headers = sharedHeaders("PutImageScanningConfiguration");
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify(_json(input));
|
|
214
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
-
};
|
|
216
|
-
export const se_PutImageTagMutabilityCommand = async (input, context) => {
|
|
217
|
-
const headers = sharedHeaders("PutImageTagMutability");
|
|
218
|
-
let body;
|
|
219
|
-
body = JSON.stringify(_json(input));
|
|
220
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
|
-
};
|
|
222
|
-
export const se_PutLifecyclePolicyCommand = async (input, context) => {
|
|
223
|
-
const headers = sharedHeaders("PutLifecyclePolicy");
|
|
224
|
-
let body;
|
|
225
|
-
body = JSON.stringify(_json(input));
|
|
226
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
-
};
|
|
228
|
-
export const se_PutRegistryPolicyCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("PutRegistryPolicy");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify(_json(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
export const se_PutRegistryScanningConfigurationCommand = async (input, context) => {
|
|
235
|
-
const headers = sharedHeaders("PutRegistryScanningConfiguration");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify(_json(input));
|
|
238
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
-
};
|
|
240
|
-
export const se_PutReplicationConfigurationCommand = async (input, context) => {
|
|
241
|
-
const headers = sharedHeaders("PutReplicationConfiguration");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify(_json(input));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
export const se_SetRepositoryPolicyCommand = async (input, context) => {
|
|
247
|
-
const headers = sharedHeaders("SetRepositoryPolicy");
|
|
248
|
-
let body;
|
|
249
|
-
body = JSON.stringify(_json(input));
|
|
250
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
251
|
-
};
|
|
252
|
-
export const se_StartImageScanCommand = async (input, context) => {
|
|
253
|
-
const headers = sharedHeaders("StartImageScan");
|
|
254
|
-
let body;
|
|
255
|
-
body = JSON.stringify(_json(input));
|
|
256
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
|
-
};
|
|
258
|
-
export const se_StartLifecyclePolicyPreviewCommand = async (input, context) => {
|
|
259
|
-
const headers = sharedHeaders("StartLifecyclePolicyPreview");
|
|
260
|
-
let body;
|
|
261
|
-
body = JSON.stringify(_json(input));
|
|
262
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
263
|
-
};
|
|
264
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
265
|
-
const headers = sharedHeaders("TagResource");
|
|
266
|
-
let body;
|
|
267
|
-
body = JSON.stringify(_json(input));
|
|
268
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
|
-
};
|
|
270
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("UntagResource");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify(_json(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
export const se_UpdatePullThroughCacheRuleCommand = async (input, context) => {
|
|
277
|
-
const headers = sharedHeaders("UpdatePullThroughCacheRule");
|
|
278
|
-
let body;
|
|
279
|
-
body = JSON.stringify(_json(input));
|
|
280
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
|
-
};
|
|
282
|
-
export const se_UpdateRepositoryCreationTemplateCommand = async (input, context) => {
|
|
283
|
-
const headers = sharedHeaders("UpdateRepositoryCreationTemplate");
|
|
284
|
-
let body;
|
|
285
|
-
body = JSON.stringify(_json(input));
|
|
286
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
|
-
};
|
|
288
|
-
export const se_UploadLayerPartCommand = async (input, context) => {
|
|
289
|
-
const headers = sharedHeaders("UploadLayerPart");
|
|
290
|
-
let body;
|
|
291
|
-
body = JSON.stringify(se_UploadLayerPartRequest(input, context));
|
|
292
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
|
-
};
|
|
294
|
-
export const se_ValidatePullThroughCacheRuleCommand = async (input, context) => {
|
|
295
|
-
const headers = sharedHeaders("ValidatePullThroughCacheRule");
|
|
296
|
-
let body;
|
|
297
|
-
body = JSON.stringify(_json(input));
|
|
298
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
299
|
-
};
|
|
300
|
-
export const de_BatchCheckLayerAvailabilityCommand = async (output, context) => {
|
|
301
|
-
if (output.statusCode >= 300) {
|
|
302
|
-
return de_CommandError(output, context);
|
|
303
|
-
}
|
|
304
|
-
const data = await parseBody(output.body, context);
|
|
305
|
-
let contents = {};
|
|
306
|
-
contents = _json(data);
|
|
307
|
-
const response = {
|
|
308
|
-
$metadata: deserializeMetadata(output),
|
|
309
|
-
...contents,
|
|
310
|
-
};
|
|
311
|
-
return response;
|
|
312
|
-
};
|
|
313
|
-
export const de_BatchDeleteImageCommand = async (output, context) => {
|
|
314
|
-
if (output.statusCode >= 300) {
|
|
315
|
-
return de_CommandError(output, context);
|
|
316
|
-
}
|
|
317
|
-
const data = await parseBody(output.body, context);
|
|
318
|
-
let contents = {};
|
|
319
|
-
contents = _json(data);
|
|
320
|
-
const response = {
|
|
321
|
-
$metadata: deserializeMetadata(output),
|
|
322
|
-
...contents,
|
|
323
|
-
};
|
|
324
|
-
return response;
|
|
325
|
-
};
|
|
326
|
-
export const de_BatchGetImageCommand = async (output, context) => {
|
|
327
|
-
if (output.statusCode >= 300) {
|
|
328
|
-
return de_CommandError(output, context);
|
|
329
|
-
}
|
|
330
|
-
const data = await parseBody(output.body, context);
|
|
331
|
-
let contents = {};
|
|
332
|
-
contents = _json(data);
|
|
333
|
-
const response = {
|
|
334
|
-
$metadata: deserializeMetadata(output),
|
|
335
|
-
...contents,
|
|
336
|
-
};
|
|
337
|
-
return response;
|
|
338
|
-
};
|
|
339
|
-
export const de_BatchGetRepositoryScanningConfigurationCommand = async (output, context) => {
|
|
340
|
-
if (output.statusCode >= 300) {
|
|
341
|
-
return de_CommandError(output, context);
|
|
342
|
-
}
|
|
343
|
-
const data = await parseBody(output.body, context);
|
|
344
|
-
let contents = {};
|
|
345
|
-
contents = _json(data);
|
|
346
|
-
const response = {
|
|
347
|
-
$metadata: deserializeMetadata(output),
|
|
348
|
-
...contents,
|
|
349
|
-
};
|
|
350
|
-
return response;
|
|
351
|
-
};
|
|
352
|
-
export const de_CompleteLayerUploadCommand = async (output, context) => {
|
|
353
|
-
if (output.statusCode >= 300) {
|
|
354
|
-
return de_CommandError(output, context);
|
|
355
|
-
}
|
|
356
|
-
const data = await parseBody(output.body, context);
|
|
357
|
-
let contents = {};
|
|
358
|
-
contents = _json(data);
|
|
359
|
-
const response = {
|
|
360
|
-
$metadata: deserializeMetadata(output),
|
|
361
|
-
...contents,
|
|
362
|
-
};
|
|
363
|
-
return response;
|
|
364
|
-
};
|
|
365
|
-
export const de_CreatePullThroughCacheRuleCommand = async (output, context) => {
|
|
366
|
-
if (output.statusCode >= 300) {
|
|
367
|
-
return de_CommandError(output, context);
|
|
368
|
-
}
|
|
369
|
-
const data = await parseBody(output.body, context);
|
|
370
|
-
let contents = {};
|
|
371
|
-
contents = de_CreatePullThroughCacheRuleResponse(data, context);
|
|
372
|
-
const response = {
|
|
373
|
-
$metadata: deserializeMetadata(output),
|
|
374
|
-
...contents,
|
|
375
|
-
};
|
|
376
|
-
return response;
|
|
377
|
-
};
|
|
378
|
-
export const de_CreateRepositoryCommand = async (output, context) => {
|
|
379
|
-
if (output.statusCode >= 300) {
|
|
380
|
-
return de_CommandError(output, context);
|
|
381
|
-
}
|
|
382
|
-
const data = await parseBody(output.body, context);
|
|
383
|
-
let contents = {};
|
|
384
|
-
contents = de_CreateRepositoryResponse(data, context);
|
|
385
|
-
const response = {
|
|
386
|
-
$metadata: deserializeMetadata(output),
|
|
387
|
-
...contents,
|
|
388
|
-
};
|
|
389
|
-
return response;
|
|
390
|
-
};
|
|
391
|
-
export const de_CreateRepositoryCreationTemplateCommand = async (output, context) => {
|
|
392
|
-
if (output.statusCode >= 300) {
|
|
393
|
-
return de_CommandError(output, context);
|
|
394
|
-
}
|
|
395
|
-
const data = await parseBody(output.body, context);
|
|
396
|
-
let contents = {};
|
|
397
|
-
contents = de_CreateRepositoryCreationTemplateResponse(data, context);
|
|
398
|
-
const response = {
|
|
399
|
-
$metadata: deserializeMetadata(output),
|
|
400
|
-
...contents,
|
|
401
|
-
};
|
|
402
|
-
return response;
|
|
403
|
-
};
|
|
404
|
-
export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
405
|
-
if (output.statusCode >= 300) {
|
|
406
|
-
return de_CommandError(output, context);
|
|
407
|
-
}
|
|
408
|
-
const data = await parseBody(output.body, context);
|
|
409
|
-
let contents = {};
|
|
410
|
-
contents = de_DeleteLifecyclePolicyResponse(data, context);
|
|
411
|
-
const response = {
|
|
412
|
-
$metadata: deserializeMetadata(output),
|
|
413
|
-
...contents,
|
|
414
|
-
};
|
|
415
|
-
return response;
|
|
416
|
-
};
|
|
417
|
-
export const de_DeletePullThroughCacheRuleCommand = async (output, context) => {
|
|
418
|
-
if (output.statusCode >= 300) {
|
|
419
|
-
return de_CommandError(output, context);
|
|
420
|
-
}
|
|
421
|
-
const data = await parseBody(output.body, context);
|
|
422
|
-
let contents = {};
|
|
423
|
-
contents = de_DeletePullThroughCacheRuleResponse(data, context);
|
|
424
|
-
const response = {
|
|
425
|
-
$metadata: deserializeMetadata(output),
|
|
426
|
-
...contents,
|
|
427
|
-
};
|
|
428
|
-
return response;
|
|
429
|
-
};
|
|
430
|
-
export const de_DeleteRegistryPolicyCommand = async (output, context) => {
|
|
431
|
-
if (output.statusCode >= 300) {
|
|
432
|
-
return de_CommandError(output, context);
|
|
433
|
-
}
|
|
434
|
-
const data = await parseBody(output.body, context);
|
|
435
|
-
let contents = {};
|
|
436
|
-
contents = _json(data);
|
|
437
|
-
const response = {
|
|
438
|
-
$metadata: deserializeMetadata(output),
|
|
439
|
-
...contents,
|
|
440
|
-
};
|
|
441
|
-
return response;
|
|
442
|
-
};
|
|
443
|
-
export const de_DeleteRepositoryCommand = async (output, context) => {
|
|
444
|
-
if (output.statusCode >= 300) {
|
|
445
|
-
return de_CommandError(output, context);
|
|
446
|
-
}
|
|
447
|
-
const data = await parseBody(output.body, context);
|
|
448
|
-
let contents = {};
|
|
449
|
-
contents = de_DeleteRepositoryResponse(data, context);
|
|
450
|
-
const response = {
|
|
451
|
-
$metadata: deserializeMetadata(output),
|
|
452
|
-
...contents,
|
|
453
|
-
};
|
|
454
|
-
return response;
|
|
455
|
-
};
|
|
456
|
-
export const de_DeleteRepositoryCreationTemplateCommand = async (output, context) => {
|
|
457
|
-
if (output.statusCode >= 300) {
|
|
458
|
-
return de_CommandError(output, context);
|
|
459
|
-
}
|
|
460
|
-
const data = await parseBody(output.body, context);
|
|
461
|
-
let contents = {};
|
|
462
|
-
contents = de_DeleteRepositoryCreationTemplateResponse(data, context);
|
|
463
|
-
const response = {
|
|
464
|
-
$metadata: deserializeMetadata(output),
|
|
465
|
-
...contents,
|
|
466
|
-
};
|
|
467
|
-
return response;
|
|
468
|
-
};
|
|
469
|
-
export const de_DeleteRepositoryPolicyCommand = async (output, context) => {
|
|
470
|
-
if (output.statusCode >= 300) {
|
|
471
|
-
return de_CommandError(output, context);
|
|
472
|
-
}
|
|
473
|
-
const data = await parseBody(output.body, context);
|
|
474
|
-
let contents = {};
|
|
475
|
-
contents = _json(data);
|
|
476
|
-
const response = {
|
|
477
|
-
$metadata: deserializeMetadata(output),
|
|
478
|
-
...contents,
|
|
479
|
-
};
|
|
480
|
-
return response;
|
|
481
|
-
};
|
|
482
|
-
export const de_DescribeImageReplicationStatusCommand = async (output, context) => {
|
|
483
|
-
if (output.statusCode >= 300) {
|
|
484
|
-
return de_CommandError(output, context);
|
|
485
|
-
}
|
|
486
|
-
const data = await parseBody(output.body, context);
|
|
487
|
-
let contents = {};
|
|
488
|
-
contents = _json(data);
|
|
489
|
-
const response = {
|
|
490
|
-
$metadata: deserializeMetadata(output),
|
|
491
|
-
...contents,
|
|
492
|
-
};
|
|
493
|
-
return response;
|
|
494
|
-
};
|
|
495
|
-
export const de_DescribeImagesCommand = async (output, context) => {
|
|
496
|
-
if (output.statusCode >= 300) {
|
|
497
|
-
return de_CommandError(output, context);
|
|
498
|
-
}
|
|
499
|
-
const data = await parseBody(output.body, context);
|
|
500
|
-
let contents = {};
|
|
501
|
-
contents = de_DescribeImagesResponse(data, context);
|
|
502
|
-
const response = {
|
|
503
|
-
$metadata: deserializeMetadata(output),
|
|
504
|
-
...contents,
|
|
505
|
-
};
|
|
506
|
-
return response;
|
|
507
|
-
};
|
|
508
|
-
export const de_DescribeImageScanFindingsCommand = async (output, context) => {
|
|
509
|
-
if (output.statusCode >= 300) {
|
|
510
|
-
return de_CommandError(output, context);
|
|
511
|
-
}
|
|
512
|
-
const data = await parseBody(output.body, context);
|
|
513
|
-
let contents = {};
|
|
514
|
-
contents = de_DescribeImageScanFindingsResponse(data, context);
|
|
515
|
-
const response = {
|
|
516
|
-
$metadata: deserializeMetadata(output),
|
|
517
|
-
...contents,
|
|
518
|
-
};
|
|
519
|
-
return response;
|
|
520
|
-
};
|
|
521
|
-
export const de_DescribePullThroughCacheRulesCommand = async (output, context) => {
|
|
522
|
-
if (output.statusCode >= 300) {
|
|
523
|
-
return de_CommandError(output, context);
|
|
524
|
-
}
|
|
525
|
-
const data = await parseBody(output.body, context);
|
|
526
|
-
let contents = {};
|
|
527
|
-
contents = de_DescribePullThroughCacheRulesResponse(data, context);
|
|
528
|
-
const response = {
|
|
529
|
-
$metadata: deserializeMetadata(output),
|
|
530
|
-
...contents,
|
|
531
|
-
};
|
|
532
|
-
return response;
|
|
533
|
-
};
|
|
534
|
-
export const de_DescribeRegistryCommand = async (output, context) => {
|
|
535
|
-
if (output.statusCode >= 300) {
|
|
536
|
-
return de_CommandError(output, context);
|
|
537
|
-
}
|
|
538
|
-
const data = await parseBody(output.body, context);
|
|
539
|
-
let contents = {};
|
|
540
|
-
contents = _json(data);
|
|
541
|
-
const response = {
|
|
542
|
-
$metadata: deserializeMetadata(output),
|
|
543
|
-
...contents,
|
|
544
|
-
};
|
|
545
|
-
return response;
|
|
546
|
-
};
|
|
547
|
-
export const de_DescribeRepositoriesCommand = async (output, context) => {
|
|
548
|
-
if (output.statusCode >= 300) {
|
|
549
|
-
return de_CommandError(output, context);
|
|
550
|
-
}
|
|
551
|
-
const data = await parseBody(output.body, context);
|
|
552
|
-
let contents = {};
|
|
553
|
-
contents = de_DescribeRepositoriesResponse(data, context);
|
|
554
|
-
const response = {
|
|
555
|
-
$metadata: deserializeMetadata(output),
|
|
556
|
-
...contents,
|
|
557
|
-
};
|
|
558
|
-
return response;
|
|
559
|
-
};
|
|
560
|
-
export const de_DescribeRepositoryCreationTemplatesCommand = async (output, context) => {
|
|
561
|
-
if (output.statusCode >= 300) {
|
|
562
|
-
return de_CommandError(output, context);
|
|
563
|
-
}
|
|
564
|
-
const data = await parseBody(output.body, context);
|
|
565
|
-
let contents = {};
|
|
566
|
-
contents = de_DescribeRepositoryCreationTemplatesResponse(data, context);
|
|
567
|
-
const response = {
|
|
568
|
-
$metadata: deserializeMetadata(output),
|
|
569
|
-
...contents,
|
|
570
|
-
};
|
|
571
|
-
return response;
|
|
572
|
-
};
|
|
573
|
-
export const de_GetAccountSettingCommand = async (output, context) => {
|
|
574
|
-
if (output.statusCode >= 300) {
|
|
575
|
-
return de_CommandError(output, context);
|
|
576
|
-
}
|
|
577
|
-
const data = await parseBody(output.body, context);
|
|
578
|
-
let contents = {};
|
|
579
|
-
contents = _json(data);
|
|
580
|
-
const response = {
|
|
581
|
-
$metadata: deserializeMetadata(output),
|
|
582
|
-
...contents,
|
|
583
|
-
};
|
|
584
|
-
return response;
|
|
585
|
-
};
|
|
586
|
-
export const de_GetAuthorizationTokenCommand = async (output, context) => {
|
|
587
|
-
if (output.statusCode >= 300) {
|
|
588
|
-
return de_CommandError(output, context);
|
|
589
|
-
}
|
|
590
|
-
const data = await parseBody(output.body, context);
|
|
591
|
-
let contents = {};
|
|
592
|
-
contents = de_GetAuthorizationTokenResponse(data, context);
|
|
593
|
-
const response = {
|
|
594
|
-
$metadata: deserializeMetadata(output),
|
|
595
|
-
...contents,
|
|
596
|
-
};
|
|
597
|
-
return response;
|
|
598
|
-
};
|
|
599
|
-
export const de_GetDownloadUrlForLayerCommand = async (output, context) => {
|
|
600
|
-
if (output.statusCode >= 300) {
|
|
601
|
-
return de_CommandError(output, context);
|
|
602
|
-
}
|
|
603
|
-
const data = await parseBody(output.body, context);
|
|
604
|
-
let contents = {};
|
|
605
|
-
contents = _json(data);
|
|
606
|
-
const response = {
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
...contents,
|
|
609
|
-
};
|
|
610
|
-
return response;
|
|
611
|
-
};
|
|
612
|
-
export const de_GetLifecyclePolicyCommand = async (output, context) => {
|
|
613
|
-
if (output.statusCode >= 300) {
|
|
614
|
-
return de_CommandError(output, context);
|
|
615
|
-
}
|
|
616
|
-
const data = await parseBody(output.body, context);
|
|
617
|
-
let contents = {};
|
|
618
|
-
contents = de_GetLifecyclePolicyResponse(data, context);
|
|
619
|
-
const response = {
|
|
620
|
-
$metadata: deserializeMetadata(output),
|
|
621
|
-
...contents,
|
|
622
|
-
};
|
|
623
|
-
return response;
|
|
624
|
-
};
|
|
625
|
-
export const de_GetLifecyclePolicyPreviewCommand = async (output, context) => {
|
|
626
|
-
if (output.statusCode >= 300) {
|
|
627
|
-
return de_CommandError(output, context);
|
|
628
|
-
}
|
|
629
|
-
const data = await parseBody(output.body, context);
|
|
630
|
-
let contents = {};
|
|
631
|
-
contents = de_GetLifecyclePolicyPreviewResponse(data, context);
|
|
632
|
-
const response = {
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
...contents,
|
|
635
|
-
};
|
|
636
|
-
return response;
|
|
637
|
-
};
|
|
638
|
-
export const de_GetRegistryPolicyCommand = async (output, context) => {
|
|
639
|
-
if (output.statusCode >= 300) {
|
|
640
|
-
return de_CommandError(output, context);
|
|
641
|
-
}
|
|
642
|
-
const data = await parseBody(output.body, context);
|
|
643
|
-
let contents = {};
|
|
644
|
-
contents = _json(data);
|
|
645
|
-
const response = {
|
|
646
|
-
$metadata: deserializeMetadata(output),
|
|
647
|
-
...contents,
|
|
648
|
-
};
|
|
649
|
-
return response;
|
|
650
|
-
};
|
|
651
|
-
export const de_GetRegistryScanningConfigurationCommand = async (output, context) => {
|
|
652
|
-
if (output.statusCode >= 300) {
|
|
653
|
-
return de_CommandError(output, context);
|
|
654
|
-
}
|
|
655
|
-
const data = await parseBody(output.body, context);
|
|
656
|
-
let contents = {};
|
|
657
|
-
contents = _json(data);
|
|
658
|
-
const response = {
|
|
659
|
-
$metadata: deserializeMetadata(output),
|
|
660
|
-
...contents,
|
|
661
|
-
};
|
|
662
|
-
return response;
|
|
663
|
-
};
|
|
664
|
-
export const de_GetRepositoryPolicyCommand = async (output, context) => {
|
|
665
|
-
if (output.statusCode >= 300) {
|
|
666
|
-
return de_CommandError(output, context);
|
|
667
|
-
}
|
|
668
|
-
const data = await parseBody(output.body, context);
|
|
669
|
-
let contents = {};
|
|
670
|
-
contents = _json(data);
|
|
671
|
-
const response = {
|
|
672
|
-
$metadata: deserializeMetadata(output),
|
|
673
|
-
...contents,
|
|
674
|
-
};
|
|
675
|
-
return response;
|
|
676
|
-
};
|
|
677
|
-
export const de_InitiateLayerUploadCommand = async (output, context) => {
|
|
678
|
-
if (output.statusCode >= 300) {
|
|
679
|
-
return de_CommandError(output, context);
|
|
680
|
-
}
|
|
681
|
-
const data = await parseBody(output.body, context);
|
|
682
|
-
let contents = {};
|
|
683
|
-
contents = _json(data);
|
|
684
|
-
const response = {
|
|
685
|
-
$metadata: deserializeMetadata(output),
|
|
686
|
-
...contents,
|
|
687
|
-
};
|
|
688
|
-
return response;
|
|
689
|
-
};
|
|
690
|
-
export const de_ListImagesCommand = async (output, context) => {
|
|
691
|
-
if (output.statusCode >= 300) {
|
|
692
|
-
return de_CommandError(output, context);
|
|
693
|
-
}
|
|
694
|
-
const data = await parseBody(output.body, context);
|
|
695
|
-
let contents = {};
|
|
696
|
-
contents = _json(data);
|
|
697
|
-
const response = {
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
...contents,
|
|
700
|
-
};
|
|
701
|
-
return response;
|
|
702
|
-
};
|
|
703
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
704
|
-
if (output.statusCode >= 300) {
|
|
705
|
-
return de_CommandError(output, context);
|
|
706
|
-
}
|
|
707
|
-
const data = await parseBody(output.body, context);
|
|
708
|
-
let contents = {};
|
|
709
|
-
contents = _json(data);
|
|
710
|
-
const response = {
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
...contents,
|
|
713
|
-
};
|
|
714
|
-
return response;
|
|
715
|
-
};
|
|
716
|
-
export const de_PutAccountSettingCommand = async (output, context) => {
|
|
717
|
-
if (output.statusCode >= 300) {
|
|
718
|
-
return de_CommandError(output, context);
|
|
719
|
-
}
|
|
720
|
-
const data = await parseBody(output.body, context);
|
|
721
|
-
let contents = {};
|
|
722
|
-
contents = _json(data);
|
|
723
|
-
const response = {
|
|
724
|
-
$metadata: deserializeMetadata(output),
|
|
725
|
-
...contents,
|
|
726
|
-
};
|
|
727
|
-
return response;
|
|
728
|
-
};
|
|
729
|
-
export const de_PutImageCommand = async (output, context) => {
|
|
730
|
-
if (output.statusCode >= 300) {
|
|
731
|
-
return de_CommandError(output, context);
|
|
732
|
-
}
|
|
733
|
-
const data = await parseBody(output.body, context);
|
|
734
|
-
let contents = {};
|
|
735
|
-
contents = _json(data);
|
|
736
|
-
const response = {
|
|
737
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
-
...contents,
|
|
739
|
-
};
|
|
740
|
-
return response;
|
|
741
|
-
};
|
|
742
|
-
export const de_PutImageScanningConfigurationCommand = async (output, context) => {
|
|
743
|
-
if (output.statusCode >= 300) {
|
|
744
|
-
return de_CommandError(output, context);
|
|
745
|
-
}
|
|
746
|
-
const data = await parseBody(output.body, context);
|
|
747
|
-
let contents = {};
|
|
748
|
-
contents = _json(data);
|
|
749
|
-
const response = {
|
|
750
|
-
$metadata: deserializeMetadata(output),
|
|
751
|
-
...contents,
|
|
752
|
-
};
|
|
753
|
-
return response;
|
|
754
|
-
};
|
|
755
|
-
export const de_PutImageTagMutabilityCommand = async (output, context) => {
|
|
756
|
-
if (output.statusCode >= 300) {
|
|
757
|
-
return de_CommandError(output, context);
|
|
758
|
-
}
|
|
759
|
-
const data = await parseBody(output.body, context);
|
|
760
|
-
let contents = {};
|
|
761
|
-
contents = _json(data);
|
|
762
|
-
const response = {
|
|
763
|
-
$metadata: deserializeMetadata(output),
|
|
764
|
-
...contents,
|
|
765
|
-
};
|
|
766
|
-
return response;
|
|
767
|
-
};
|
|
768
|
-
export const de_PutLifecyclePolicyCommand = async (output, context) => {
|
|
769
|
-
if (output.statusCode >= 300) {
|
|
770
|
-
return de_CommandError(output, context);
|
|
771
|
-
}
|
|
772
|
-
const data = await parseBody(output.body, context);
|
|
773
|
-
let contents = {};
|
|
774
|
-
contents = _json(data);
|
|
775
|
-
const response = {
|
|
776
|
-
$metadata: deserializeMetadata(output),
|
|
777
|
-
...contents,
|
|
778
|
-
};
|
|
779
|
-
return response;
|
|
780
|
-
};
|
|
781
|
-
export const de_PutRegistryPolicyCommand = async (output, context) => {
|
|
782
|
-
if (output.statusCode >= 300) {
|
|
783
|
-
return de_CommandError(output, context);
|
|
784
|
-
}
|
|
785
|
-
const data = await parseBody(output.body, context);
|
|
786
|
-
let contents = {};
|
|
787
|
-
contents = _json(data);
|
|
788
|
-
const response = {
|
|
789
|
-
$metadata: deserializeMetadata(output),
|
|
790
|
-
...contents,
|
|
791
|
-
};
|
|
792
|
-
return response;
|
|
793
|
-
};
|
|
794
|
-
export const de_PutRegistryScanningConfigurationCommand = async (output, context) => {
|
|
795
|
-
if (output.statusCode >= 300) {
|
|
796
|
-
return de_CommandError(output, context);
|
|
797
|
-
}
|
|
798
|
-
const data = await parseBody(output.body, context);
|
|
799
|
-
let contents = {};
|
|
800
|
-
contents = _json(data);
|
|
801
|
-
const response = {
|
|
802
|
-
$metadata: deserializeMetadata(output),
|
|
803
|
-
...contents,
|
|
804
|
-
};
|
|
805
|
-
return response;
|
|
806
|
-
};
|
|
807
|
-
export const de_PutReplicationConfigurationCommand = async (output, context) => {
|
|
808
|
-
if (output.statusCode >= 300) {
|
|
809
|
-
return de_CommandError(output, context);
|
|
810
|
-
}
|
|
811
|
-
const data = await parseBody(output.body, context);
|
|
812
|
-
let contents = {};
|
|
813
|
-
contents = _json(data);
|
|
814
|
-
const response = {
|
|
815
|
-
$metadata: deserializeMetadata(output),
|
|
816
|
-
...contents,
|
|
817
|
-
};
|
|
818
|
-
return response;
|
|
819
|
-
};
|
|
820
|
-
export const de_SetRepositoryPolicyCommand = async (output, context) => {
|
|
821
|
-
if (output.statusCode >= 300) {
|
|
822
|
-
return de_CommandError(output, context);
|
|
823
|
-
}
|
|
824
|
-
const data = await parseBody(output.body, context);
|
|
825
|
-
let contents = {};
|
|
826
|
-
contents = _json(data);
|
|
827
|
-
const response = {
|
|
828
|
-
$metadata: deserializeMetadata(output),
|
|
829
|
-
...contents,
|
|
830
|
-
};
|
|
831
|
-
return response;
|
|
832
|
-
};
|
|
833
|
-
export const de_StartImageScanCommand = async (output, context) => {
|
|
834
|
-
if (output.statusCode >= 300) {
|
|
835
|
-
return de_CommandError(output, context);
|
|
836
|
-
}
|
|
837
|
-
const data = await parseBody(output.body, context);
|
|
838
|
-
let contents = {};
|
|
839
|
-
contents = _json(data);
|
|
840
|
-
const response = {
|
|
841
|
-
$metadata: deserializeMetadata(output),
|
|
842
|
-
...contents,
|
|
843
|
-
};
|
|
844
|
-
return response;
|
|
845
|
-
};
|
|
846
|
-
export const de_StartLifecyclePolicyPreviewCommand = async (output, context) => {
|
|
847
|
-
if (output.statusCode >= 300) {
|
|
848
|
-
return de_CommandError(output, context);
|
|
849
|
-
}
|
|
850
|
-
const data = await parseBody(output.body, context);
|
|
851
|
-
let contents = {};
|
|
852
|
-
contents = _json(data);
|
|
853
|
-
const response = {
|
|
854
|
-
$metadata: deserializeMetadata(output),
|
|
855
|
-
...contents,
|
|
856
|
-
};
|
|
857
|
-
return response;
|
|
858
|
-
};
|
|
859
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
860
|
-
if (output.statusCode >= 300) {
|
|
861
|
-
return de_CommandError(output, context);
|
|
862
|
-
}
|
|
863
|
-
const data = await parseBody(output.body, context);
|
|
864
|
-
let contents = {};
|
|
865
|
-
contents = _json(data);
|
|
866
|
-
const response = {
|
|
867
|
-
$metadata: deserializeMetadata(output),
|
|
868
|
-
...contents,
|
|
869
|
-
};
|
|
870
|
-
return response;
|
|
871
|
-
};
|
|
872
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
873
|
-
if (output.statusCode >= 300) {
|
|
874
|
-
return de_CommandError(output, context);
|
|
875
|
-
}
|
|
876
|
-
const data = await parseBody(output.body, context);
|
|
877
|
-
let contents = {};
|
|
878
|
-
contents = _json(data);
|
|
879
|
-
const response = {
|
|
880
|
-
$metadata: deserializeMetadata(output),
|
|
881
|
-
...contents,
|
|
882
|
-
};
|
|
883
|
-
return response;
|
|
884
|
-
};
|
|
885
|
-
export const de_UpdatePullThroughCacheRuleCommand = async (output, context) => {
|
|
886
|
-
if (output.statusCode >= 300) {
|
|
887
|
-
return de_CommandError(output, context);
|
|
888
|
-
}
|
|
889
|
-
const data = await parseBody(output.body, context);
|
|
890
|
-
let contents = {};
|
|
891
|
-
contents = de_UpdatePullThroughCacheRuleResponse(data, context);
|
|
892
|
-
const response = {
|
|
893
|
-
$metadata: deserializeMetadata(output),
|
|
894
|
-
...contents,
|
|
895
|
-
};
|
|
896
|
-
return response;
|
|
897
|
-
};
|
|
898
|
-
export const de_UpdateRepositoryCreationTemplateCommand = async (output, context) => {
|
|
899
|
-
if (output.statusCode >= 300) {
|
|
900
|
-
return de_CommandError(output, context);
|
|
901
|
-
}
|
|
902
|
-
const data = await parseBody(output.body, context);
|
|
903
|
-
let contents = {};
|
|
904
|
-
contents = de_UpdateRepositoryCreationTemplateResponse(data, context);
|
|
905
|
-
const response = {
|
|
906
|
-
$metadata: deserializeMetadata(output),
|
|
907
|
-
...contents,
|
|
908
|
-
};
|
|
909
|
-
return response;
|
|
910
|
-
};
|
|
911
|
-
export const de_UploadLayerPartCommand = async (output, context) => {
|
|
912
|
-
if (output.statusCode >= 300) {
|
|
913
|
-
return de_CommandError(output, context);
|
|
914
|
-
}
|
|
915
|
-
const data = await parseBody(output.body, context);
|
|
916
|
-
let contents = {};
|
|
917
|
-
contents = _json(data);
|
|
918
|
-
const response = {
|
|
919
|
-
$metadata: deserializeMetadata(output),
|
|
920
|
-
...contents,
|
|
921
|
-
};
|
|
922
|
-
return response;
|
|
923
|
-
};
|
|
924
|
-
export const de_ValidatePullThroughCacheRuleCommand = async (output, context) => {
|
|
925
|
-
if (output.statusCode >= 300) {
|
|
926
|
-
return de_CommandError(output, context);
|
|
927
|
-
}
|
|
928
|
-
const data = await parseBody(output.body, context);
|
|
929
|
-
let contents = {};
|
|
930
|
-
contents = _json(data);
|
|
931
|
-
const response = {
|
|
932
|
-
$metadata: deserializeMetadata(output),
|
|
933
|
-
...contents,
|
|
934
|
-
};
|
|
935
|
-
return response;
|
|
936
|
-
};
|
|
937
|
-
const de_CommandError = async (output, context) => {
|
|
938
|
-
const parsedOutput = {
|
|
939
|
-
...output,
|
|
940
|
-
body: await parseErrorBody(output.body, context),
|
|
941
|
-
};
|
|
942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
943
|
-
switch (errorCode) {
|
|
944
|
-
case "InvalidParameterException":
|
|
945
|
-
case "com.amazonaws.ecr#InvalidParameterException":
|
|
946
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
947
|
-
case "RepositoryNotFoundException":
|
|
948
|
-
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
949
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
950
|
-
case "ServerException":
|
|
951
|
-
case "com.amazonaws.ecr#ServerException":
|
|
952
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
953
|
-
case "LimitExceededException":
|
|
954
|
-
case "com.amazonaws.ecr#LimitExceededException":
|
|
955
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
956
|
-
case "UnableToGetUpstreamImageException":
|
|
957
|
-
case "com.amazonaws.ecr#UnableToGetUpstreamImageException":
|
|
958
|
-
throw await de_UnableToGetUpstreamImageExceptionRes(parsedOutput, context);
|
|
959
|
-
case "ValidationException":
|
|
960
|
-
case "com.amazonaws.ecr#ValidationException":
|
|
961
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
962
|
-
case "EmptyUploadException":
|
|
963
|
-
case "com.amazonaws.ecr#EmptyUploadException":
|
|
964
|
-
throw await de_EmptyUploadExceptionRes(parsedOutput, context);
|
|
965
|
-
case "InvalidLayerException":
|
|
966
|
-
case "com.amazonaws.ecr#InvalidLayerException":
|
|
967
|
-
throw await de_InvalidLayerExceptionRes(parsedOutput, context);
|
|
968
|
-
case "KmsException":
|
|
969
|
-
case "com.amazonaws.ecr#KmsException":
|
|
970
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
971
|
-
case "LayerAlreadyExistsException":
|
|
972
|
-
case "com.amazonaws.ecr#LayerAlreadyExistsException":
|
|
973
|
-
throw await de_LayerAlreadyExistsExceptionRes(parsedOutput, context);
|
|
974
|
-
case "LayerPartTooSmallException":
|
|
975
|
-
case "com.amazonaws.ecr#LayerPartTooSmallException":
|
|
976
|
-
throw await de_LayerPartTooSmallExceptionRes(parsedOutput, context);
|
|
977
|
-
case "UploadNotFoundException":
|
|
978
|
-
case "com.amazonaws.ecr#UploadNotFoundException":
|
|
979
|
-
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
980
|
-
case "PullThroughCacheRuleAlreadyExistsException":
|
|
981
|
-
case "com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":
|
|
982
|
-
throw await de_PullThroughCacheRuleAlreadyExistsExceptionRes(parsedOutput, context);
|
|
983
|
-
case "SecretNotFoundException":
|
|
984
|
-
case "com.amazonaws.ecr#SecretNotFoundException":
|
|
985
|
-
throw await de_SecretNotFoundExceptionRes(parsedOutput, context);
|
|
986
|
-
case "UnableToAccessSecretException":
|
|
987
|
-
case "com.amazonaws.ecr#UnableToAccessSecretException":
|
|
988
|
-
throw await de_UnableToAccessSecretExceptionRes(parsedOutput, context);
|
|
989
|
-
case "UnableToDecryptSecretValueException":
|
|
990
|
-
case "com.amazonaws.ecr#UnableToDecryptSecretValueException":
|
|
991
|
-
throw await de_UnableToDecryptSecretValueExceptionRes(parsedOutput, context);
|
|
992
|
-
case "UnsupportedUpstreamRegistryException":
|
|
993
|
-
case "com.amazonaws.ecr#UnsupportedUpstreamRegistryException":
|
|
994
|
-
throw await de_UnsupportedUpstreamRegistryExceptionRes(parsedOutput, context);
|
|
995
|
-
case "InvalidTagParameterException":
|
|
996
|
-
case "com.amazonaws.ecr#InvalidTagParameterException":
|
|
997
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
998
|
-
case "RepositoryAlreadyExistsException":
|
|
999
|
-
case "com.amazonaws.ecr#RepositoryAlreadyExistsException":
|
|
1000
|
-
throw await de_RepositoryAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1001
|
-
case "TooManyTagsException":
|
|
1002
|
-
case "com.amazonaws.ecr#TooManyTagsException":
|
|
1003
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1004
|
-
case "TemplateAlreadyExistsException":
|
|
1005
|
-
case "com.amazonaws.ecr#TemplateAlreadyExistsException":
|
|
1006
|
-
throw await de_TemplateAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "LifecyclePolicyNotFoundException":
|
|
1008
|
-
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
|
|
1009
|
-
throw await de_LifecyclePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "PullThroughCacheRuleNotFoundException":
|
|
1011
|
-
case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":
|
|
1012
|
-
throw await de_PullThroughCacheRuleNotFoundExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "RegistryPolicyNotFoundException":
|
|
1014
|
-
case "com.amazonaws.ecr#RegistryPolicyNotFoundException":
|
|
1015
|
-
throw await de_RegistryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "RepositoryNotEmptyException":
|
|
1017
|
-
case "com.amazonaws.ecr#RepositoryNotEmptyException":
|
|
1018
|
-
throw await de_RepositoryNotEmptyExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "TemplateNotFoundException":
|
|
1020
|
-
case "com.amazonaws.ecr#TemplateNotFoundException":
|
|
1021
|
-
throw await de_TemplateNotFoundExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "RepositoryPolicyNotFoundException":
|
|
1023
|
-
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException":
|
|
1024
|
-
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ImageNotFoundException":
|
|
1026
|
-
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
1027
|
-
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "ScanNotFoundException":
|
|
1029
|
-
case "com.amazonaws.ecr#ScanNotFoundException":
|
|
1030
|
-
throw await de_ScanNotFoundExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "LayerInaccessibleException":
|
|
1032
|
-
case "com.amazonaws.ecr#LayerInaccessibleException":
|
|
1033
|
-
throw await de_LayerInaccessibleExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "LayersNotFoundException":
|
|
1035
|
-
case "com.amazonaws.ecr#LayersNotFoundException":
|
|
1036
|
-
throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "UnableToGetUpstreamLayerException":
|
|
1038
|
-
case "com.amazonaws.ecr#UnableToGetUpstreamLayerException":
|
|
1039
|
-
throw await de_UnableToGetUpstreamLayerExceptionRes(parsedOutput, context);
|
|
1040
|
-
case "LifecyclePolicyPreviewNotFoundException":
|
|
1041
|
-
case "com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":
|
|
1042
|
-
throw await de_LifecyclePolicyPreviewNotFoundExceptionRes(parsedOutput, context);
|
|
1043
|
-
case "ImageAlreadyExistsException":
|
|
1044
|
-
case "com.amazonaws.ecr#ImageAlreadyExistsException":
|
|
1045
|
-
throw await de_ImageAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "ImageDigestDoesNotMatchException":
|
|
1047
|
-
case "com.amazonaws.ecr#ImageDigestDoesNotMatchException":
|
|
1048
|
-
throw await de_ImageDigestDoesNotMatchExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "ImageTagAlreadyExistsException":
|
|
1050
|
-
case "com.amazonaws.ecr#ImageTagAlreadyExistsException":
|
|
1051
|
-
throw await de_ImageTagAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "ReferencedImagesNotFoundException":
|
|
1053
|
-
case "com.amazonaws.ecr#ReferencedImagesNotFoundException":
|
|
1054
|
-
throw await de_ReferencedImagesNotFoundExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "UnsupportedImageTypeException":
|
|
1056
|
-
case "com.amazonaws.ecr#UnsupportedImageTypeException":
|
|
1057
|
-
throw await de_UnsupportedImageTypeExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "LifecyclePolicyPreviewInProgressException":
|
|
1059
|
-
case "com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":
|
|
1060
|
-
throw await de_LifecyclePolicyPreviewInProgressExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "InvalidLayerPartException":
|
|
1062
|
-
case "com.amazonaws.ecr#InvalidLayerPartException":
|
|
1063
|
-
throw await de_InvalidLayerPartExceptionRes(parsedOutput, context);
|
|
1064
|
-
default:
|
|
1065
|
-
const parsedBody = parsedOutput.body;
|
|
1066
|
-
return throwDefaultError({
|
|
1067
|
-
output,
|
|
1068
|
-
parsedBody,
|
|
1069
|
-
errorCode,
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1072
|
-
};
|
|
1073
|
-
const de_EmptyUploadExceptionRes = async (parsedOutput, context) => {
|
|
1074
|
-
const body = parsedOutput.body;
|
|
1075
|
-
const deserialized = _json(body);
|
|
1076
|
-
const exception = new EmptyUploadException({
|
|
1077
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1078
|
-
...deserialized,
|
|
1079
|
-
});
|
|
1080
|
-
return __decorateServiceException(exception, body);
|
|
1081
|
-
};
|
|
1082
|
-
const de_ImageAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1083
|
-
const body = parsedOutput.body;
|
|
1084
|
-
const deserialized = _json(body);
|
|
1085
|
-
const exception = new ImageAlreadyExistsException({
|
|
1086
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1087
|
-
...deserialized,
|
|
1088
|
-
});
|
|
1089
|
-
return __decorateServiceException(exception, body);
|
|
1090
|
-
};
|
|
1091
|
-
const de_ImageDigestDoesNotMatchExceptionRes = async (parsedOutput, context) => {
|
|
1092
|
-
const body = parsedOutput.body;
|
|
1093
|
-
const deserialized = _json(body);
|
|
1094
|
-
const exception = new ImageDigestDoesNotMatchException({
|
|
1095
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1096
|
-
...deserialized,
|
|
1097
|
-
});
|
|
1098
|
-
return __decorateServiceException(exception, body);
|
|
1099
|
-
};
|
|
1100
|
-
const de_ImageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1101
|
-
const body = parsedOutput.body;
|
|
1102
|
-
const deserialized = _json(body);
|
|
1103
|
-
const exception = new ImageNotFoundException({
|
|
1104
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1105
|
-
...deserialized,
|
|
1106
|
-
});
|
|
1107
|
-
return __decorateServiceException(exception, body);
|
|
1108
|
-
};
|
|
1109
|
-
const de_ImageTagAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1110
|
-
const body = parsedOutput.body;
|
|
1111
|
-
const deserialized = _json(body);
|
|
1112
|
-
const exception = new ImageTagAlreadyExistsException({
|
|
1113
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1114
|
-
...deserialized,
|
|
1115
|
-
});
|
|
1116
|
-
return __decorateServiceException(exception, body);
|
|
1117
|
-
};
|
|
1118
|
-
const de_InvalidLayerExceptionRes = async (parsedOutput, context) => {
|
|
1119
|
-
const body = parsedOutput.body;
|
|
1120
|
-
const deserialized = _json(body);
|
|
1121
|
-
const exception = new InvalidLayerException({
|
|
1122
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1123
|
-
...deserialized,
|
|
1124
|
-
});
|
|
1125
|
-
return __decorateServiceException(exception, body);
|
|
1126
|
-
};
|
|
1127
|
-
const de_InvalidLayerPartExceptionRes = async (parsedOutput, context) => {
|
|
1128
|
-
const body = parsedOutput.body;
|
|
1129
|
-
const deserialized = _json(body);
|
|
1130
|
-
const exception = new InvalidLayerPartException({
|
|
1131
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1132
|
-
...deserialized,
|
|
1133
|
-
});
|
|
1134
|
-
return __decorateServiceException(exception, body);
|
|
1135
|
-
};
|
|
1136
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1137
|
-
const body = parsedOutput.body;
|
|
1138
|
-
const deserialized = _json(body);
|
|
1139
|
-
const exception = new InvalidParameterException({
|
|
1140
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1141
|
-
...deserialized,
|
|
1142
|
-
});
|
|
1143
|
-
return __decorateServiceException(exception, body);
|
|
1144
|
-
};
|
|
1145
|
-
const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
|
|
1146
|
-
const body = parsedOutput.body;
|
|
1147
|
-
const deserialized = _json(body);
|
|
1148
|
-
const exception = new InvalidTagParameterException({
|
|
1149
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1150
|
-
...deserialized,
|
|
1151
|
-
});
|
|
1152
|
-
return __decorateServiceException(exception, body);
|
|
1153
|
-
};
|
|
1154
|
-
const de_KmsExceptionRes = async (parsedOutput, context) => {
|
|
1155
|
-
const body = parsedOutput.body;
|
|
1156
|
-
const deserialized = _json(body);
|
|
1157
|
-
const exception = new KmsException({
|
|
1158
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1159
|
-
...deserialized,
|
|
1160
|
-
});
|
|
1161
|
-
return __decorateServiceException(exception, body);
|
|
1162
|
-
};
|
|
1163
|
-
const de_LayerAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1164
|
-
const body = parsedOutput.body;
|
|
1165
|
-
const deserialized = _json(body);
|
|
1166
|
-
const exception = new LayerAlreadyExistsException({
|
|
1167
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1168
|
-
...deserialized,
|
|
1169
|
-
});
|
|
1170
|
-
return __decorateServiceException(exception, body);
|
|
1171
|
-
};
|
|
1172
|
-
const de_LayerInaccessibleExceptionRes = async (parsedOutput, context) => {
|
|
1173
|
-
const body = parsedOutput.body;
|
|
1174
|
-
const deserialized = _json(body);
|
|
1175
|
-
const exception = new LayerInaccessibleException({
|
|
1176
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1177
|
-
...deserialized,
|
|
1178
|
-
});
|
|
1179
|
-
return __decorateServiceException(exception, body);
|
|
1180
|
-
};
|
|
1181
|
-
const de_LayerPartTooSmallExceptionRes = async (parsedOutput, context) => {
|
|
1182
|
-
const body = parsedOutput.body;
|
|
1183
|
-
const deserialized = _json(body);
|
|
1184
|
-
const exception = new LayerPartTooSmallException({
|
|
1185
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1186
|
-
...deserialized,
|
|
1187
|
-
});
|
|
1188
|
-
return __decorateServiceException(exception, body);
|
|
1189
|
-
};
|
|
1190
|
-
const de_LayersNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1191
|
-
const body = parsedOutput.body;
|
|
1192
|
-
const deserialized = _json(body);
|
|
1193
|
-
const exception = new LayersNotFoundException({
|
|
1194
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1195
|
-
...deserialized,
|
|
1196
|
-
});
|
|
1197
|
-
return __decorateServiceException(exception, body);
|
|
1198
|
-
};
|
|
1199
|
-
const de_LifecyclePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1200
|
-
const body = parsedOutput.body;
|
|
1201
|
-
const deserialized = _json(body);
|
|
1202
|
-
const exception = new LifecyclePolicyNotFoundException({
|
|
1203
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1204
|
-
...deserialized,
|
|
1205
|
-
});
|
|
1206
|
-
return __decorateServiceException(exception, body);
|
|
1207
|
-
};
|
|
1208
|
-
const de_LifecyclePolicyPreviewInProgressExceptionRes = async (parsedOutput, context) => {
|
|
1209
|
-
const body = parsedOutput.body;
|
|
1210
|
-
const deserialized = _json(body);
|
|
1211
|
-
const exception = new LifecyclePolicyPreviewInProgressException({
|
|
1212
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1213
|
-
...deserialized,
|
|
1214
|
-
});
|
|
1215
|
-
return __decorateServiceException(exception, body);
|
|
1216
|
-
};
|
|
1217
|
-
const de_LifecyclePolicyPreviewNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1218
|
-
const body = parsedOutput.body;
|
|
1219
|
-
const deserialized = _json(body);
|
|
1220
|
-
const exception = new LifecyclePolicyPreviewNotFoundException({
|
|
1221
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1222
|
-
...deserialized,
|
|
1223
|
-
});
|
|
1224
|
-
return __decorateServiceException(exception, body);
|
|
1225
|
-
};
|
|
1226
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1227
|
-
const body = parsedOutput.body;
|
|
1228
|
-
const deserialized = _json(body);
|
|
1229
|
-
const exception = new LimitExceededException({
|
|
1230
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1231
|
-
...deserialized,
|
|
1232
|
-
});
|
|
1233
|
-
return __decorateServiceException(exception, body);
|
|
1234
|
-
};
|
|
1235
|
-
const de_PullThroughCacheRuleAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1236
|
-
const body = parsedOutput.body;
|
|
1237
|
-
const deserialized = _json(body);
|
|
1238
|
-
const exception = new PullThroughCacheRuleAlreadyExistsException({
|
|
1239
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1240
|
-
...deserialized,
|
|
1241
|
-
});
|
|
1242
|
-
return __decorateServiceException(exception, body);
|
|
1243
|
-
};
|
|
1244
|
-
const de_PullThroughCacheRuleNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1245
|
-
const body = parsedOutput.body;
|
|
1246
|
-
const deserialized = _json(body);
|
|
1247
|
-
const exception = new PullThroughCacheRuleNotFoundException({
|
|
1248
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1249
|
-
...deserialized,
|
|
1250
|
-
});
|
|
1251
|
-
return __decorateServiceException(exception, body);
|
|
1252
|
-
};
|
|
1253
|
-
const de_ReferencedImagesNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1254
|
-
const body = parsedOutput.body;
|
|
1255
|
-
const deserialized = _json(body);
|
|
1256
|
-
const exception = new ReferencedImagesNotFoundException({
|
|
1257
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1258
|
-
...deserialized,
|
|
1259
|
-
});
|
|
1260
|
-
return __decorateServiceException(exception, body);
|
|
1261
|
-
};
|
|
1262
|
-
const de_RegistryPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1263
|
-
const body = parsedOutput.body;
|
|
1264
|
-
const deserialized = _json(body);
|
|
1265
|
-
const exception = new RegistryPolicyNotFoundException({
|
|
1266
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1267
|
-
...deserialized,
|
|
1268
|
-
});
|
|
1269
|
-
return __decorateServiceException(exception, body);
|
|
1270
|
-
};
|
|
1271
|
-
const de_RepositoryAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1272
|
-
const body = parsedOutput.body;
|
|
1273
|
-
const deserialized = _json(body);
|
|
1274
|
-
const exception = new RepositoryAlreadyExistsException({
|
|
1275
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1276
|
-
...deserialized,
|
|
1277
|
-
});
|
|
1278
|
-
return __decorateServiceException(exception, body);
|
|
1279
|
-
};
|
|
1280
|
-
const de_RepositoryNotEmptyExceptionRes = async (parsedOutput, context) => {
|
|
1281
|
-
const body = parsedOutput.body;
|
|
1282
|
-
const deserialized = _json(body);
|
|
1283
|
-
const exception = new RepositoryNotEmptyException({
|
|
1284
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1285
|
-
...deserialized,
|
|
1286
|
-
});
|
|
1287
|
-
return __decorateServiceException(exception, body);
|
|
1288
|
-
};
|
|
1289
|
-
const de_RepositoryNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1290
|
-
const body = parsedOutput.body;
|
|
1291
|
-
const deserialized = _json(body);
|
|
1292
|
-
const exception = new RepositoryNotFoundException({
|
|
1293
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1294
|
-
...deserialized,
|
|
1295
|
-
});
|
|
1296
|
-
return __decorateServiceException(exception, body);
|
|
1297
|
-
};
|
|
1298
|
-
const de_RepositoryPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1299
|
-
const body = parsedOutput.body;
|
|
1300
|
-
const deserialized = _json(body);
|
|
1301
|
-
const exception = new RepositoryPolicyNotFoundException({
|
|
1302
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1303
|
-
...deserialized,
|
|
1304
|
-
});
|
|
1305
|
-
return __decorateServiceException(exception, body);
|
|
1306
|
-
};
|
|
1307
|
-
const de_ScanNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1308
|
-
const body = parsedOutput.body;
|
|
1309
|
-
const deserialized = _json(body);
|
|
1310
|
-
const exception = new ScanNotFoundException({
|
|
1311
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1312
|
-
...deserialized,
|
|
1313
|
-
});
|
|
1314
|
-
return __decorateServiceException(exception, body);
|
|
1315
|
-
};
|
|
1316
|
-
const de_SecretNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1317
|
-
const body = parsedOutput.body;
|
|
1318
|
-
const deserialized = _json(body);
|
|
1319
|
-
const exception = new SecretNotFoundException({
|
|
1320
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1321
|
-
...deserialized,
|
|
1322
|
-
});
|
|
1323
|
-
return __decorateServiceException(exception, body);
|
|
1324
|
-
};
|
|
1325
|
-
const de_ServerExceptionRes = async (parsedOutput, context) => {
|
|
1326
|
-
const body = parsedOutput.body;
|
|
1327
|
-
const deserialized = _json(body);
|
|
1328
|
-
const exception = new ServerException({
|
|
1329
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1330
|
-
...deserialized,
|
|
1331
|
-
});
|
|
1332
|
-
return __decorateServiceException(exception, body);
|
|
1333
|
-
};
|
|
1334
|
-
const de_TemplateAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1335
|
-
const body = parsedOutput.body;
|
|
1336
|
-
const deserialized = _json(body);
|
|
1337
|
-
const exception = new TemplateAlreadyExistsException({
|
|
1338
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1339
|
-
...deserialized,
|
|
1340
|
-
});
|
|
1341
|
-
return __decorateServiceException(exception, body);
|
|
1342
|
-
};
|
|
1343
|
-
const de_TemplateNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1344
|
-
const body = parsedOutput.body;
|
|
1345
|
-
const deserialized = _json(body);
|
|
1346
|
-
const exception = new TemplateNotFoundException({
|
|
1347
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1348
|
-
...deserialized,
|
|
1349
|
-
});
|
|
1350
|
-
return __decorateServiceException(exception, body);
|
|
1351
|
-
};
|
|
1352
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1353
|
-
const body = parsedOutput.body;
|
|
1354
|
-
const deserialized = _json(body);
|
|
1355
|
-
const exception = new TooManyTagsException({
|
|
1356
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1357
|
-
...deserialized,
|
|
1358
|
-
});
|
|
1359
|
-
return __decorateServiceException(exception, body);
|
|
1360
|
-
};
|
|
1361
|
-
const de_UnableToAccessSecretExceptionRes = async (parsedOutput, context) => {
|
|
1362
|
-
const body = parsedOutput.body;
|
|
1363
|
-
const deserialized = _json(body);
|
|
1364
|
-
const exception = new UnableToAccessSecretException({
|
|
1365
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1366
|
-
...deserialized,
|
|
1367
|
-
});
|
|
1368
|
-
return __decorateServiceException(exception, body);
|
|
1369
|
-
};
|
|
1370
|
-
const de_UnableToDecryptSecretValueExceptionRes = async (parsedOutput, context) => {
|
|
1371
|
-
const body = parsedOutput.body;
|
|
1372
|
-
const deserialized = _json(body);
|
|
1373
|
-
const exception = new UnableToDecryptSecretValueException({
|
|
1374
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1375
|
-
...deserialized,
|
|
1376
|
-
});
|
|
1377
|
-
return __decorateServiceException(exception, body);
|
|
1378
|
-
};
|
|
1379
|
-
const de_UnableToGetUpstreamImageExceptionRes = async (parsedOutput, context) => {
|
|
1380
|
-
const body = parsedOutput.body;
|
|
1381
|
-
const deserialized = _json(body);
|
|
1382
|
-
const exception = new UnableToGetUpstreamImageException({
|
|
1383
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1384
|
-
...deserialized,
|
|
1385
|
-
});
|
|
1386
|
-
return __decorateServiceException(exception, body);
|
|
1387
|
-
};
|
|
1388
|
-
const de_UnableToGetUpstreamLayerExceptionRes = async (parsedOutput, context) => {
|
|
1389
|
-
const body = parsedOutput.body;
|
|
1390
|
-
const deserialized = _json(body);
|
|
1391
|
-
const exception = new UnableToGetUpstreamLayerException({
|
|
1392
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1393
|
-
...deserialized,
|
|
1394
|
-
});
|
|
1395
|
-
return __decorateServiceException(exception, body);
|
|
1396
|
-
};
|
|
1397
|
-
const de_UnsupportedImageTypeExceptionRes = async (parsedOutput, context) => {
|
|
1398
|
-
const body = parsedOutput.body;
|
|
1399
|
-
const deserialized = _json(body);
|
|
1400
|
-
const exception = new UnsupportedImageTypeException({
|
|
1401
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1402
|
-
...deserialized,
|
|
1403
|
-
});
|
|
1404
|
-
return __decorateServiceException(exception, body);
|
|
1405
|
-
};
|
|
1406
|
-
const de_UnsupportedUpstreamRegistryExceptionRes = async (parsedOutput, context) => {
|
|
1407
|
-
const body = parsedOutput.body;
|
|
1408
|
-
const deserialized = _json(body);
|
|
1409
|
-
const exception = new UnsupportedUpstreamRegistryException({
|
|
1410
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1411
|
-
...deserialized,
|
|
1412
|
-
});
|
|
1413
|
-
return __decorateServiceException(exception, body);
|
|
1414
|
-
};
|
|
1415
|
-
const de_UploadNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1416
|
-
const body = parsedOutput.body;
|
|
1417
|
-
const deserialized = _json(body);
|
|
1418
|
-
const exception = new UploadNotFoundException({
|
|
1419
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1420
|
-
...deserialized,
|
|
1421
|
-
});
|
|
1422
|
-
return __decorateServiceException(exception, body);
|
|
1423
|
-
};
|
|
1424
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1425
|
-
const body = parsedOutput.body;
|
|
1426
|
-
const deserialized = _json(body);
|
|
1427
|
-
const exception = new ValidationException({
|
|
1428
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1429
|
-
...deserialized,
|
|
1430
|
-
});
|
|
1431
|
-
return __decorateServiceException(exception, body);
|
|
1432
|
-
};
|
|
1433
|
-
const se_UploadLayerPartRequest = (input, context) => {
|
|
1434
|
-
return take(input, {
|
|
1435
|
-
layerPartBlob: context.base64Encoder,
|
|
1436
|
-
partFirstByte: [],
|
|
1437
|
-
partLastByte: [],
|
|
1438
|
-
registryId: [],
|
|
1439
|
-
repositoryName: [],
|
|
1440
|
-
uploadId: [],
|
|
1441
|
-
});
|
|
1442
|
-
};
|
|
1443
|
-
const de_AuthorizationData = (output, context) => {
|
|
1444
|
-
return take(output, {
|
|
1445
|
-
authorizationToken: __expectString,
|
|
1446
|
-
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1447
|
-
proxyEndpoint: __expectString,
|
|
1448
|
-
});
|
|
1449
|
-
};
|
|
1450
|
-
const de_AuthorizationDataList = (output, context) => {
|
|
1451
|
-
const retVal = (output || [])
|
|
1452
|
-
.filter((e) => e != null)
|
|
1453
|
-
.map((entry) => {
|
|
1454
|
-
return de_AuthorizationData(entry, context);
|
|
1455
|
-
});
|
|
1456
|
-
return retVal;
|
|
1457
|
-
};
|
|
1458
|
-
const de_AwsEcrContainerImageDetails = (output, context) => {
|
|
1459
|
-
return take(output, {
|
|
1460
|
-
architecture: __expectString,
|
|
1461
|
-
author: __expectString,
|
|
1462
|
-
imageHash: __expectString,
|
|
1463
|
-
imageTags: _json,
|
|
1464
|
-
inUseCount: __expectLong,
|
|
1465
|
-
lastInUseAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1466
|
-
platform: __expectString,
|
|
1467
|
-
pushedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1468
|
-
registry: __expectString,
|
|
1469
|
-
repositoryName: __expectString,
|
|
1470
|
-
});
|
|
1471
|
-
};
|
|
1472
|
-
const de_CreatePullThroughCacheRuleResponse = (output, context) => {
|
|
1473
|
-
return take(output, {
|
|
1474
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1475
|
-
credentialArn: __expectString,
|
|
1476
|
-
customRoleArn: __expectString,
|
|
1477
|
-
ecrRepositoryPrefix: __expectString,
|
|
1478
|
-
registryId: __expectString,
|
|
1479
|
-
upstreamRegistry: __expectString,
|
|
1480
|
-
upstreamRegistryUrl: __expectString,
|
|
1481
|
-
upstreamRepositoryPrefix: __expectString,
|
|
1482
|
-
});
|
|
1483
|
-
};
|
|
1484
|
-
const de_CreateRepositoryCreationTemplateResponse = (output, context) => {
|
|
1485
|
-
return take(output, {
|
|
1486
|
-
registryId: __expectString,
|
|
1487
|
-
repositoryCreationTemplate: (_) => de_RepositoryCreationTemplate(_, context),
|
|
1488
|
-
});
|
|
1489
|
-
};
|
|
1490
|
-
const de_CreateRepositoryResponse = (output, context) => {
|
|
1491
|
-
return take(output, {
|
|
1492
|
-
repository: (_) => de_Repository(_, context),
|
|
1493
|
-
});
|
|
1494
|
-
};
|
|
1495
|
-
const de_CvssScore = (output, context) => {
|
|
1496
|
-
return take(output, {
|
|
1497
|
-
baseScore: __limitedParseDouble,
|
|
1498
|
-
scoringVector: __expectString,
|
|
1499
|
-
source: __expectString,
|
|
1500
|
-
version: __expectString,
|
|
1501
|
-
});
|
|
1502
|
-
};
|
|
1503
|
-
const de_CvssScoreDetails = (output, context) => {
|
|
1504
|
-
return take(output, {
|
|
1505
|
-
adjustments: _json,
|
|
1506
|
-
score: __limitedParseDouble,
|
|
1507
|
-
scoreSource: __expectString,
|
|
1508
|
-
scoringVector: __expectString,
|
|
1509
|
-
version: __expectString,
|
|
1510
|
-
});
|
|
1511
|
-
};
|
|
1512
|
-
const de_CvssScoreList = (output, context) => {
|
|
1513
|
-
const retVal = (output || [])
|
|
1514
|
-
.filter((e) => e != null)
|
|
1515
|
-
.map((entry) => {
|
|
1516
|
-
return de_CvssScore(entry, context);
|
|
1517
|
-
});
|
|
1518
|
-
return retVal;
|
|
1519
|
-
};
|
|
1520
|
-
const de_DeleteLifecyclePolicyResponse = (output, context) => {
|
|
1521
|
-
return take(output, {
|
|
1522
|
-
lastEvaluatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1523
|
-
lifecyclePolicyText: __expectString,
|
|
1524
|
-
registryId: __expectString,
|
|
1525
|
-
repositoryName: __expectString,
|
|
1526
|
-
});
|
|
1527
|
-
};
|
|
1528
|
-
const de_DeletePullThroughCacheRuleResponse = (output, context) => {
|
|
1529
|
-
return take(output, {
|
|
1530
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1531
|
-
credentialArn: __expectString,
|
|
1532
|
-
customRoleArn: __expectString,
|
|
1533
|
-
ecrRepositoryPrefix: __expectString,
|
|
1534
|
-
registryId: __expectString,
|
|
1535
|
-
upstreamRegistryUrl: __expectString,
|
|
1536
|
-
upstreamRepositoryPrefix: __expectString,
|
|
1537
|
-
});
|
|
1538
|
-
};
|
|
1539
|
-
const de_DeleteRepositoryCreationTemplateResponse = (output, context) => {
|
|
1540
|
-
return take(output, {
|
|
1541
|
-
registryId: __expectString,
|
|
1542
|
-
repositoryCreationTemplate: (_) => de_RepositoryCreationTemplate(_, context),
|
|
1543
|
-
});
|
|
1544
|
-
};
|
|
1545
|
-
const de_DeleteRepositoryResponse = (output, context) => {
|
|
1546
|
-
return take(output, {
|
|
1547
|
-
repository: (_) => de_Repository(_, context),
|
|
1548
|
-
});
|
|
1549
|
-
};
|
|
1550
|
-
const de_DescribeImageScanFindingsResponse = (output, context) => {
|
|
1551
|
-
return take(output, {
|
|
1552
|
-
imageId: _json,
|
|
1553
|
-
imageScanFindings: (_) => de_ImageScanFindings(_, context),
|
|
1554
|
-
imageScanStatus: _json,
|
|
1555
|
-
nextToken: __expectString,
|
|
1556
|
-
registryId: __expectString,
|
|
1557
|
-
repositoryName: __expectString,
|
|
1558
|
-
});
|
|
1559
|
-
};
|
|
1560
|
-
const de_DescribeImagesResponse = (output, context) => {
|
|
1561
|
-
return take(output, {
|
|
1562
|
-
imageDetails: (_) => de_ImageDetailList(_, context),
|
|
1563
|
-
nextToken: __expectString,
|
|
1564
|
-
});
|
|
1565
|
-
};
|
|
1566
|
-
const de_DescribePullThroughCacheRulesResponse = (output, context) => {
|
|
1567
|
-
return take(output, {
|
|
1568
|
-
nextToken: __expectString,
|
|
1569
|
-
pullThroughCacheRules: (_) => de_PullThroughCacheRuleList(_, context),
|
|
1570
|
-
});
|
|
1571
|
-
};
|
|
1572
|
-
const de_DescribeRepositoriesResponse = (output, context) => {
|
|
1573
|
-
return take(output, {
|
|
1574
|
-
nextToken: __expectString,
|
|
1575
|
-
repositories: (_) => de_RepositoryList(_, context),
|
|
1576
|
-
});
|
|
1577
|
-
};
|
|
1578
|
-
const de_DescribeRepositoryCreationTemplatesResponse = (output, context) => {
|
|
1579
|
-
return take(output, {
|
|
1580
|
-
nextToken: __expectString,
|
|
1581
|
-
registryId: __expectString,
|
|
1582
|
-
repositoryCreationTemplates: (_) => de_RepositoryCreationTemplateList(_, context),
|
|
1583
|
-
});
|
|
1584
|
-
};
|
|
1585
|
-
const de_EnhancedImageScanFinding = (output, context) => {
|
|
1586
|
-
return take(output, {
|
|
1587
|
-
awsAccountId: __expectString,
|
|
1588
|
-
description: __expectString,
|
|
1589
|
-
exploitAvailable: __expectString,
|
|
1590
|
-
findingArn: __expectString,
|
|
1591
|
-
firstObservedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1592
|
-
fixAvailable: __expectString,
|
|
1593
|
-
lastObservedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1594
|
-
packageVulnerabilityDetails: (_) => de_PackageVulnerabilityDetails(_, context),
|
|
1595
|
-
remediation: _json,
|
|
1596
|
-
resources: (_) => de_ResourceList(_, context),
|
|
1597
|
-
score: __limitedParseDouble,
|
|
1598
|
-
scoreDetails: (_) => de_ScoreDetails(_, context),
|
|
1599
|
-
severity: __expectString,
|
|
1600
|
-
status: __expectString,
|
|
1601
|
-
title: __expectString,
|
|
1602
|
-
type: __expectString,
|
|
1603
|
-
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1604
|
-
});
|
|
1605
|
-
};
|
|
1606
|
-
const de_EnhancedImageScanFindingList = (output, context) => {
|
|
1607
|
-
const retVal = (output || [])
|
|
1608
|
-
.filter((e) => e != null)
|
|
1609
|
-
.map((entry) => {
|
|
1610
|
-
return de_EnhancedImageScanFinding(entry, context);
|
|
1611
|
-
});
|
|
1612
|
-
return retVal;
|
|
1613
|
-
};
|
|
1614
|
-
const de_GetAuthorizationTokenResponse = (output, context) => {
|
|
1615
|
-
return take(output, {
|
|
1616
|
-
authorizationData: (_) => de_AuthorizationDataList(_, context),
|
|
1617
|
-
});
|
|
1618
|
-
};
|
|
1619
|
-
const de_GetLifecyclePolicyPreviewResponse = (output, context) => {
|
|
1620
|
-
return take(output, {
|
|
1621
|
-
lifecyclePolicyText: __expectString,
|
|
1622
|
-
nextToken: __expectString,
|
|
1623
|
-
previewResults: (_) => de_LifecyclePolicyPreviewResultList(_, context),
|
|
1624
|
-
registryId: __expectString,
|
|
1625
|
-
repositoryName: __expectString,
|
|
1626
|
-
status: __expectString,
|
|
1627
|
-
summary: _json,
|
|
1628
|
-
});
|
|
1629
|
-
};
|
|
1630
|
-
const de_GetLifecyclePolicyResponse = (output, context) => {
|
|
1631
|
-
return take(output, {
|
|
1632
|
-
lastEvaluatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1633
|
-
lifecyclePolicyText: __expectString,
|
|
1634
|
-
registryId: __expectString,
|
|
1635
|
-
repositoryName: __expectString,
|
|
1636
|
-
});
|
|
1637
|
-
};
|
|
1638
|
-
const de_ImageDetail = (output, context) => {
|
|
1639
|
-
return take(output, {
|
|
1640
|
-
artifactMediaType: __expectString,
|
|
1641
|
-
imageDigest: __expectString,
|
|
1642
|
-
imageManifestMediaType: __expectString,
|
|
1643
|
-
imagePushedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1644
|
-
imageScanFindingsSummary: (_) => de_ImageScanFindingsSummary(_, context),
|
|
1645
|
-
imageScanStatus: _json,
|
|
1646
|
-
imageSizeInBytes: __expectLong,
|
|
1647
|
-
imageTags: _json,
|
|
1648
|
-
lastRecordedPullTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1649
|
-
registryId: __expectString,
|
|
1650
|
-
repositoryName: __expectString,
|
|
1651
|
-
});
|
|
1652
|
-
};
|
|
1653
|
-
const de_ImageDetailList = (output, context) => {
|
|
1654
|
-
const retVal = (output || [])
|
|
1655
|
-
.filter((e) => e != null)
|
|
1656
|
-
.map((entry) => {
|
|
1657
|
-
return de_ImageDetail(entry, context);
|
|
1658
|
-
});
|
|
1659
|
-
return retVal;
|
|
1660
|
-
};
|
|
1661
|
-
const de_ImageScanFindings = (output, context) => {
|
|
1662
|
-
return take(output, {
|
|
1663
|
-
enhancedFindings: (_) => de_EnhancedImageScanFindingList(_, context),
|
|
1664
|
-
findingSeverityCounts: _json,
|
|
1665
|
-
findings: _json,
|
|
1666
|
-
imageScanCompletedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1667
|
-
vulnerabilitySourceUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1668
|
-
});
|
|
1669
|
-
};
|
|
1670
|
-
const de_ImageScanFindingsSummary = (output, context) => {
|
|
1671
|
-
return take(output, {
|
|
1672
|
-
findingSeverityCounts: _json,
|
|
1673
|
-
imageScanCompletedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1674
|
-
vulnerabilitySourceUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1675
|
-
});
|
|
1676
|
-
};
|
|
1677
|
-
const de_LifecyclePolicyPreviewResult = (output, context) => {
|
|
1678
|
-
return take(output, {
|
|
1679
|
-
action: _json,
|
|
1680
|
-
appliedRulePriority: __expectInt32,
|
|
1681
|
-
imageDigest: __expectString,
|
|
1682
|
-
imagePushedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1683
|
-
imageTags: _json,
|
|
1684
|
-
});
|
|
1685
|
-
};
|
|
1686
|
-
const de_LifecyclePolicyPreviewResultList = (output, context) => {
|
|
1687
|
-
const retVal = (output || [])
|
|
1688
|
-
.filter((e) => e != null)
|
|
1689
|
-
.map((entry) => {
|
|
1690
|
-
return de_LifecyclePolicyPreviewResult(entry, context);
|
|
1691
|
-
});
|
|
1692
|
-
return retVal;
|
|
1693
|
-
};
|
|
1694
|
-
const de_PackageVulnerabilityDetails = (output, context) => {
|
|
1695
|
-
return take(output, {
|
|
1696
|
-
cvss: (_) => de_CvssScoreList(_, context),
|
|
1697
|
-
referenceUrls: _json,
|
|
1698
|
-
relatedVulnerabilities: _json,
|
|
1699
|
-
source: __expectString,
|
|
1700
|
-
sourceUrl: __expectString,
|
|
1701
|
-
vendorCreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1702
|
-
vendorSeverity: __expectString,
|
|
1703
|
-
vendorUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1704
|
-
vulnerabilityId: __expectString,
|
|
1705
|
-
vulnerablePackages: _json,
|
|
1706
|
-
});
|
|
1707
|
-
};
|
|
1708
|
-
const de_PullThroughCacheRule = (output, context) => {
|
|
1709
|
-
return take(output, {
|
|
1710
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1711
|
-
credentialArn: __expectString,
|
|
1712
|
-
customRoleArn: __expectString,
|
|
1713
|
-
ecrRepositoryPrefix: __expectString,
|
|
1714
|
-
registryId: __expectString,
|
|
1715
|
-
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1716
|
-
upstreamRegistry: __expectString,
|
|
1717
|
-
upstreamRegistryUrl: __expectString,
|
|
1718
|
-
upstreamRepositoryPrefix: __expectString,
|
|
1719
|
-
});
|
|
1720
|
-
};
|
|
1721
|
-
const de_PullThroughCacheRuleList = (output, context) => {
|
|
1722
|
-
const retVal = (output || [])
|
|
1723
|
-
.filter((e) => e != null)
|
|
1724
|
-
.map((entry) => {
|
|
1725
|
-
return de_PullThroughCacheRule(entry, context);
|
|
1726
|
-
});
|
|
1727
|
-
return retVal;
|
|
1728
|
-
};
|
|
1729
|
-
const de_Repository = (output, context) => {
|
|
1730
|
-
return take(output, {
|
|
1731
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1732
|
-
encryptionConfiguration: _json,
|
|
1733
|
-
imageScanningConfiguration: _json,
|
|
1734
|
-
imageTagMutability: __expectString,
|
|
1735
|
-
imageTagMutabilityExclusionFilters: _json,
|
|
1736
|
-
registryId: __expectString,
|
|
1737
|
-
repositoryArn: __expectString,
|
|
1738
|
-
repositoryName: __expectString,
|
|
1739
|
-
repositoryUri: __expectString,
|
|
1740
|
-
});
|
|
1741
|
-
};
|
|
1742
|
-
const de_RepositoryCreationTemplate = (output, context) => {
|
|
1743
|
-
return take(output, {
|
|
1744
|
-
appliedFor: _json,
|
|
1745
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1746
|
-
customRoleArn: __expectString,
|
|
1747
|
-
description: __expectString,
|
|
1748
|
-
encryptionConfiguration: _json,
|
|
1749
|
-
imageTagMutability: __expectString,
|
|
1750
|
-
imageTagMutabilityExclusionFilters: _json,
|
|
1751
|
-
lifecyclePolicy: __expectString,
|
|
1752
|
-
prefix: __expectString,
|
|
1753
|
-
repositoryPolicy: __expectString,
|
|
1754
|
-
resourceTags: _json,
|
|
1755
|
-
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1756
|
-
});
|
|
1757
|
-
};
|
|
1758
|
-
const de_RepositoryCreationTemplateList = (output, context) => {
|
|
1759
|
-
const retVal = (output || [])
|
|
1760
|
-
.filter((e) => e != null)
|
|
1761
|
-
.map((entry) => {
|
|
1762
|
-
return de_RepositoryCreationTemplate(entry, context);
|
|
1763
|
-
});
|
|
1764
|
-
return retVal;
|
|
1765
|
-
};
|
|
1766
|
-
const de_RepositoryList = (output, context) => {
|
|
1767
|
-
const retVal = (output || [])
|
|
1768
|
-
.filter((e) => e != null)
|
|
1769
|
-
.map((entry) => {
|
|
1770
|
-
return de_Repository(entry, context);
|
|
1771
|
-
});
|
|
1772
|
-
return retVal;
|
|
1773
|
-
};
|
|
1774
|
-
const de_Resource = (output, context) => {
|
|
1775
|
-
return take(output, {
|
|
1776
|
-
details: (_) => de_ResourceDetails(_, context),
|
|
1777
|
-
id: __expectString,
|
|
1778
|
-
tags: _json,
|
|
1779
|
-
type: __expectString,
|
|
1780
|
-
});
|
|
1781
|
-
};
|
|
1782
|
-
const de_ResourceDetails = (output, context) => {
|
|
1783
|
-
return take(output, {
|
|
1784
|
-
awsEcrContainerImage: (_) => de_AwsEcrContainerImageDetails(_, context),
|
|
1785
|
-
});
|
|
1786
|
-
};
|
|
1787
|
-
const de_ResourceList = (output, context) => {
|
|
1788
|
-
const retVal = (output || [])
|
|
1789
|
-
.filter((e) => e != null)
|
|
1790
|
-
.map((entry) => {
|
|
1791
|
-
return de_Resource(entry, context);
|
|
1792
|
-
});
|
|
1793
|
-
return retVal;
|
|
1794
|
-
};
|
|
1795
|
-
const de_ScoreDetails = (output, context) => {
|
|
1796
|
-
return take(output, {
|
|
1797
|
-
cvss: (_) => de_CvssScoreDetails(_, context),
|
|
1798
|
-
});
|
|
1799
|
-
};
|
|
1800
|
-
const de_UpdatePullThroughCacheRuleResponse = (output, context) => {
|
|
1801
|
-
return take(output, {
|
|
1802
|
-
credentialArn: __expectString,
|
|
1803
|
-
customRoleArn: __expectString,
|
|
1804
|
-
ecrRepositoryPrefix: __expectString,
|
|
1805
|
-
registryId: __expectString,
|
|
1806
|
-
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1807
|
-
upstreamRepositoryPrefix: __expectString,
|
|
1808
|
-
});
|
|
1809
|
-
};
|
|
1810
|
-
const de_UpdateRepositoryCreationTemplateResponse = (output, context) => {
|
|
1811
|
-
return take(output, {
|
|
1812
|
-
registryId: __expectString,
|
|
1813
|
-
repositoryCreationTemplate: (_) => de_RepositoryCreationTemplate(_, context),
|
|
1814
|
-
});
|
|
1815
|
-
};
|
|
1816
|
-
const deserializeMetadata = (output) => ({
|
|
1817
|
-
httpStatusCode: output.statusCode,
|
|
1818
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1819
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1820
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1821
|
-
});
|
|
1822
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1823
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1824
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1825
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1826
|
-
const contents = {
|
|
1827
|
-
protocol,
|
|
1828
|
-
hostname,
|
|
1829
|
-
port,
|
|
1830
|
-
method: "POST",
|
|
1831
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1832
|
-
headers,
|
|
1833
|
-
};
|
|
1834
|
-
if (resolvedHostname !== undefined) {
|
|
1835
|
-
contents.hostname = resolvedHostname;
|
|
1836
|
-
}
|
|
1837
|
-
if (body !== undefined) {
|
|
1838
|
-
contents.body = body;
|
|
1839
|
-
}
|
|
1840
|
-
return new __HttpRequest(contents);
|
|
1841
|
-
};
|
|
1842
|
-
function sharedHeaders(operation) {
|
|
1843
|
-
return {
|
|
1844
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1845
|
-
"x-amz-target": `AmazonEC2ContainerRegistry_V20150921.${operation}`,
|
|
1846
|
-
};
|
|
1847
|
-
}
|