@aws-sdk/client-ecr 3.306.0 → 3.309.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/commands/BatchCheckLayerAvailabilityCommand.js +2 -2
- package/dist-cjs/commands/BatchDeleteImageCommand.js +2 -2
- package/dist-cjs/commands/BatchGetImageCommand.js +2 -2
- package/dist-cjs/commands/BatchGetRepositoryScanningConfigurationCommand.js +2 -2
- package/dist-cjs/commands/CompleteLayerUploadCommand.js +2 -2
- package/dist-cjs/commands/CreatePullThroughCacheRuleCommand.js +2 -2
- package/dist-cjs/commands/CreateRepositoryCommand.js +2 -2
- package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +2 -2
- package/dist-cjs/commands/DeletePullThroughCacheRuleCommand.js +2 -2
- package/dist-cjs/commands/DeleteRegistryPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteRepositoryCommand.js +2 -2
- package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js +2 -2
- package/dist-cjs/commands/DescribeImageReplicationStatusCommand.js +2 -2
- package/dist-cjs/commands/DescribeImageScanFindingsCommand.js +2 -2
- package/dist-cjs/commands/DescribeImagesCommand.js +2 -2
- package/dist-cjs/commands/DescribePullThroughCacheRulesCommand.js +2 -2
- package/dist-cjs/commands/DescribeRegistryCommand.js +2 -2
- package/dist-cjs/commands/DescribeRepositoriesCommand.js +2 -2
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js +2 -2
- package/dist-cjs/commands/GetDownloadUrlForLayerCommand.js +2 -2
- package/dist-cjs/commands/GetLifecyclePolicyCommand.js +2 -2
- package/dist-cjs/commands/GetLifecyclePolicyPreviewCommand.js +2 -2
- package/dist-cjs/commands/GetRegistryPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetRegistryScanningConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetRepositoryPolicyCommand.js +2 -2
- package/dist-cjs/commands/InitiateLayerUploadCommand.js +2 -2
- package/dist-cjs/commands/ListImagesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutImageCommand.js +2 -2
- package/dist-cjs/commands/PutImageScanningConfigurationCommand.js +2 -2
- package/dist-cjs/commands/PutImageTagMutabilityCommand.js +2 -2
- package/dist-cjs/commands/PutLifecyclePolicyCommand.js +2 -2
- package/dist-cjs/commands/PutRegistryPolicyCommand.js +2 -2
- package/dist-cjs/commands/PutRegistryScanningConfigurationCommand.js +2 -2
- package/dist-cjs/commands/PutReplicationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/SetRepositoryPolicyCommand.js +2 -2
- package/dist-cjs/commands/StartImageScanCommand.js +2 -2
- package/dist-cjs/commands/StartLifecyclePolicyPreviewCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UploadLayerPartCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +919 -951
- package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +3 -3
- package/dist-es/commands/BatchDeleteImageCommand.js +3 -3
- package/dist-es/commands/BatchGetImageCommand.js +3 -3
- package/dist-es/commands/BatchGetRepositoryScanningConfigurationCommand.js +3 -3
- package/dist-es/commands/CompleteLayerUploadCommand.js +3 -3
- package/dist-es/commands/CreatePullThroughCacheRuleCommand.js +3 -3
- package/dist-es/commands/CreateRepositoryCommand.js +3 -3
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +3 -3
- package/dist-es/commands/DeletePullThroughCacheRuleCommand.js +3 -3
- package/dist-es/commands/DeleteRegistryPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteRepositoryCommand.js +3 -3
- package/dist-es/commands/DeleteRepositoryPolicyCommand.js +3 -3
- package/dist-es/commands/DescribeImageReplicationStatusCommand.js +3 -3
- package/dist-es/commands/DescribeImageScanFindingsCommand.js +3 -3
- package/dist-es/commands/DescribeImagesCommand.js +3 -3
- package/dist-es/commands/DescribePullThroughCacheRulesCommand.js +3 -3
- package/dist-es/commands/DescribeRegistryCommand.js +3 -3
- package/dist-es/commands/DescribeRepositoriesCommand.js +3 -3
- package/dist-es/commands/GetAuthorizationTokenCommand.js +3 -3
- package/dist-es/commands/GetDownloadUrlForLayerCommand.js +3 -3
- package/dist-es/commands/GetLifecyclePolicyCommand.js +3 -3
- package/dist-es/commands/GetLifecyclePolicyPreviewCommand.js +3 -3
- package/dist-es/commands/GetRegistryPolicyCommand.js +3 -3
- package/dist-es/commands/GetRegistryScanningConfigurationCommand.js +3 -3
- package/dist-es/commands/GetRepositoryPolicyCommand.js +3 -3
- package/dist-es/commands/InitiateLayerUploadCommand.js +3 -3
- package/dist-es/commands/ListImagesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutImageCommand.js +3 -3
- package/dist-es/commands/PutImageScanningConfigurationCommand.js +3 -3
- package/dist-es/commands/PutImageTagMutabilityCommand.js +3 -3
- package/dist-es/commands/PutLifecyclePolicyCommand.js +3 -3
- package/dist-es/commands/PutRegistryPolicyCommand.js +3 -3
- package/dist-es/commands/PutRegistryScanningConfigurationCommand.js +3 -3
- package/dist-es/commands/PutReplicationConfigurationCommand.js +3 -3
- package/dist-es/commands/SetRepositoryPolicyCommand.js +3 -3
- package/dist-es/commands/StartImageScanCommand.js +3 -3
- package/dist-es/commands/StartLifecyclePolicyPreviewCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UploadLayerPartCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +835 -867
- package/dist-types/protocols/Aws_json1_1.d.ts +328 -82
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +82 -82
- package/package.json +6 -6
|
@@ -2,389 +2,389 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ECRServiceException as __BaseException } from "../models/ECRServiceException";
|
|
4
4
|
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, ServerException, TooManyTagsException, UnsupportedImageTypeException, UnsupportedUpstreamRegistryException, UploadNotFoundException, ValidationException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_BatchCheckLayerAvailabilityCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
8
8
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchCheckLayerAvailability",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_BatchCheckLayerAvailabilityRequest(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_BatchDeleteImageCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.1",
|
|
17
17
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchDeleteImage",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_BatchDeleteImageRequest(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const se_BatchGetImageCommand = async (input, context) => {
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/x-amz-json-1.1",
|
|
26
26
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchGetImage",
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
29
|
+
body = JSON.stringify(se_BatchGetImageRequest(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_BatchGetRepositoryScanningConfigurationCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.1",
|
|
35
35
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchGetRepositoryScanningConfiguration",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_BatchGetRepositoryScanningConfigurationRequest(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const se_CompleteLayerUploadCommand = async (input, context) => {
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/x-amz-json-1.1",
|
|
44
44
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.CompleteLayerUpload",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify(se_CompleteLayerUploadRequest(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_CreatePullThroughCacheRuleCommand = async (input, context) => {
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/x-amz-json-1.1",
|
|
53
53
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.CreatePullThroughCacheRule",
|
|
54
54
|
};
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(se_CreatePullThroughCacheRuleRequest(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
-
export const
|
|
59
|
+
export const se_CreateRepositoryCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.CreateRepository",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_CreateRepositoryRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_DeleteLifecyclePolicyCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteLifecyclePolicy",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_DeleteLifecyclePolicyRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
export const
|
|
77
|
+
export const se_DeletePullThroughCacheRuleCommand = async (input, context) => {
|
|
78
78
|
const headers = {
|
|
79
79
|
"content-type": "application/x-amz-json-1.1",
|
|
80
80
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule",
|
|
81
81
|
};
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify(se_DeletePullThroughCacheRuleRequest(input, context));
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const se_DeleteRegistryPolicyCommand = async (input, context) => {
|
|
87
87
|
const headers = {
|
|
88
88
|
"content-type": "application/x-amz-json-1.1",
|
|
89
89
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteRegistryPolicy",
|
|
90
90
|
};
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(se_DeleteRegistryPolicyRequest(input, context));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
|
-
export const
|
|
95
|
+
export const se_DeleteRepositoryCommand = async (input, context) => {
|
|
96
96
|
const headers = {
|
|
97
97
|
"content-type": "application/x-amz-json-1.1",
|
|
98
98
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteRepository",
|
|
99
99
|
};
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
101
|
+
body = JSON.stringify(se_DeleteRepositoryRequest(input, context));
|
|
102
102
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
103
|
};
|
|
104
|
-
export const
|
|
104
|
+
export const se_DeleteRepositoryPolicyCommand = async (input, context) => {
|
|
105
105
|
const headers = {
|
|
106
106
|
"content-type": "application/x-amz-json-1.1",
|
|
107
107
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy",
|
|
108
108
|
};
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(se_DeleteRepositoryPolicyRequest(input, context));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
|
-
export const
|
|
113
|
+
export const se_DescribeImageReplicationStatusCommand = async (input, context) => {
|
|
114
114
|
const headers = {
|
|
115
115
|
"content-type": "application/x-amz-json-1.1",
|
|
116
116
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus",
|
|
117
117
|
};
|
|
118
118
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
119
|
+
body = JSON.stringify(se_DescribeImageReplicationStatusRequest(input, context));
|
|
120
120
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
121
|
};
|
|
122
|
-
export const
|
|
122
|
+
export const se_DescribeImagesCommand = async (input, context) => {
|
|
123
123
|
const headers = {
|
|
124
124
|
"content-type": "application/x-amz-json-1.1",
|
|
125
125
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImages",
|
|
126
126
|
};
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(se_DescribeImagesRequest(input, context));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
|
-
export const
|
|
131
|
+
export const se_DescribeImageScanFindingsCommand = async (input, context) => {
|
|
132
132
|
const headers = {
|
|
133
133
|
"content-type": "application/x-amz-json-1.1",
|
|
134
134
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImageScanFindings",
|
|
135
135
|
};
|
|
136
136
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify(se_DescribeImageScanFindingsRequest(input, context));
|
|
138
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
139
|
};
|
|
140
|
-
export const
|
|
140
|
+
export const se_DescribePullThroughCacheRulesCommand = async (input, context) => {
|
|
141
141
|
const headers = {
|
|
142
142
|
"content-type": "application/x-amz-json-1.1",
|
|
143
143
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribePullThroughCacheRules",
|
|
144
144
|
};
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(se_DescribePullThroughCacheRulesRequest(input, context));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
|
-
export const
|
|
149
|
+
export const se_DescribeRegistryCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.1",
|
|
152
152
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeRegistry",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_DescribeRegistryRequest(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
export const
|
|
158
|
+
export const se_DescribeRepositoriesCommand = async (input, context) => {
|
|
159
159
|
const headers = {
|
|
160
160
|
"content-type": "application/x-amz-json-1.1",
|
|
161
161
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeRepositories",
|
|
162
162
|
};
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(se_DescribeRepositoriesRequest(input, context));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
|
-
export const
|
|
167
|
+
export const se_GetAuthorizationTokenCommand = async (input, context) => {
|
|
168
168
|
const headers = {
|
|
169
169
|
"content-type": "application/x-amz-json-1.1",
|
|
170
170
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetAuthorizationToken",
|
|
171
171
|
};
|
|
172
172
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify(se_GetAuthorizationTokenRequest(input, context));
|
|
174
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
175
|
};
|
|
176
|
-
export const
|
|
176
|
+
export const se_GetDownloadUrlForLayerCommand = async (input, context) => {
|
|
177
177
|
const headers = {
|
|
178
178
|
"content-type": "application/x-amz-json-1.1",
|
|
179
179
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetDownloadUrlForLayer",
|
|
180
180
|
};
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(se_GetDownloadUrlForLayerRequest(input, context));
|
|
183
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
184
|
};
|
|
185
|
-
export const
|
|
185
|
+
export const se_GetLifecyclePolicyCommand = async (input, context) => {
|
|
186
186
|
const headers = {
|
|
187
187
|
"content-type": "application/x-amz-json-1.1",
|
|
188
188
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicy",
|
|
189
189
|
};
|
|
190
190
|
let body;
|
|
191
|
-
body = JSON.stringify(
|
|
191
|
+
body = JSON.stringify(se_GetLifecyclePolicyRequest(input, context));
|
|
192
192
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
193
|
};
|
|
194
|
-
export const
|
|
194
|
+
export const se_GetLifecyclePolicyPreviewCommand = async (input, context) => {
|
|
195
195
|
const headers = {
|
|
196
196
|
"content-type": "application/x-amz-json-1.1",
|
|
197
197
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicyPreview",
|
|
198
198
|
};
|
|
199
199
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
200
|
+
body = JSON.stringify(se_GetLifecyclePolicyPreviewRequest(input, context));
|
|
201
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
202
|
};
|
|
203
|
-
export const
|
|
203
|
+
export const se_GetRegistryPolicyCommand = async (input, context) => {
|
|
204
204
|
const headers = {
|
|
205
205
|
"content-type": "application/x-amz-json-1.1",
|
|
206
206
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetRegistryPolicy",
|
|
207
207
|
};
|
|
208
208
|
let body;
|
|
209
|
-
body = JSON.stringify(
|
|
209
|
+
body = JSON.stringify(se_GetRegistryPolicyRequest(input, context));
|
|
210
210
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
211
|
};
|
|
212
|
-
export const
|
|
212
|
+
export const se_GetRegistryScanningConfigurationCommand = async (input, context) => {
|
|
213
213
|
const headers = {
|
|
214
214
|
"content-type": "application/x-amz-json-1.1",
|
|
215
215
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetRegistryScanningConfiguration",
|
|
216
216
|
};
|
|
217
217
|
let body;
|
|
218
|
-
body = JSON.stringify(
|
|
218
|
+
body = JSON.stringify(se_GetRegistryScanningConfigurationRequest(input, context));
|
|
219
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
220
|
};
|
|
221
|
-
export const
|
|
221
|
+
export const se_GetRepositoryPolicyCommand = async (input, context) => {
|
|
222
222
|
const headers = {
|
|
223
223
|
"content-type": "application/x-amz-json-1.1",
|
|
224
224
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetRepositoryPolicy",
|
|
225
225
|
};
|
|
226
226
|
let body;
|
|
227
|
-
body = JSON.stringify(
|
|
227
|
+
body = JSON.stringify(se_GetRepositoryPolicyRequest(input, context));
|
|
228
228
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
229
|
};
|
|
230
|
-
export const
|
|
230
|
+
export const se_InitiateLayerUploadCommand = async (input, context) => {
|
|
231
231
|
const headers = {
|
|
232
232
|
"content-type": "application/x-amz-json-1.1",
|
|
233
233
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.InitiateLayerUpload",
|
|
234
234
|
};
|
|
235
235
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify(se_InitiateLayerUploadRequest(input, context));
|
|
237
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
238
|
};
|
|
239
|
-
export const
|
|
239
|
+
export const se_ListImagesCommand = async (input, context) => {
|
|
240
240
|
const headers = {
|
|
241
241
|
"content-type": "application/x-amz-json-1.1",
|
|
242
242
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.ListImages",
|
|
243
243
|
};
|
|
244
244
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
245
|
+
body = JSON.stringify(se_ListImagesRequest(input, context));
|
|
246
246
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
247
|
};
|
|
248
|
-
export const
|
|
248
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
249
249
|
const headers = {
|
|
250
250
|
"content-type": "application/x-amz-json-1.1",
|
|
251
251
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.ListTagsForResource",
|
|
252
252
|
};
|
|
253
253
|
let body;
|
|
254
|
-
body = JSON.stringify(
|
|
254
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
255
255
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
256
|
};
|
|
257
|
-
export const
|
|
257
|
+
export const se_PutImageCommand = async (input, context) => {
|
|
258
258
|
const headers = {
|
|
259
259
|
"content-type": "application/x-amz-json-1.1",
|
|
260
260
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutImage",
|
|
261
261
|
};
|
|
262
262
|
let body;
|
|
263
|
-
body = JSON.stringify(
|
|
263
|
+
body = JSON.stringify(se_PutImageRequest(input, context));
|
|
264
264
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
265
|
};
|
|
266
|
-
export const
|
|
266
|
+
export const se_PutImageScanningConfigurationCommand = async (input, context) => {
|
|
267
267
|
const headers = {
|
|
268
268
|
"content-type": "application/x-amz-json-1.1",
|
|
269
269
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutImageScanningConfiguration",
|
|
270
270
|
};
|
|
271
271
|
let body;
|
|
272
|
-
body = JSON.stringify(
|
|
272
|
+
body = JSON.stringify(se_PutImageScanningConfigurationRequest(input, context));
|
|
273
273
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
274
|
};
|
|
275
|
-
export const
|
|
275
|
+
export const se_PutImageTagMutabilityCommand = async (input, context) => {
|
|
276
276
|
const headers = {
|
|
277
277
|
"content-type": "application/x-amz-json-1.1",
|
|
278
278
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability",
|
|
279
279
|
};
|
|
280
280
|
let body;
|
|
281
|
-
body = JSON.stringify(
|
|
281
|
+
body = JSON.stringify(se_PutImageTagMutabilityRequest(input, context));
|
|
282
282
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
283
|
};
|
|
284
|
-
export const
|
|
284
|
+
export const se_PutLifecyclePolicyCommand = async (input, context) => {
|
|
285
285
|
const headers = {
|
|
286
286
|
"content-type": "application/x-amz-json-1.1",
|
|
287
287
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy",
|
|
288
288
|
};
|
|
289
289
|
let body;
|
|
290
|
-
body = JSON.stringify(
|
|
290
|
+
body = JSON.stringify(se_PutLifecyclePolicyRequest(input, context));
|
|
291
291
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
292
|
};
|
|
293
|
-
export const
|
|
293
|
+
export const se_PutRegistryPolicyCommand = async (input, context) => {
|
|
294
294
|
const headers = {
|
|
295
295
|
"content-type": "application/x-amz-json-1.1",
|
|
296
296
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy",
|
|
297
297
|
};
|
|
298
298
|
let body;
|
|
299
|
-
body = JSON.stringify(
|
|
299
|
+
body = JSON.stringify(se_PutRegistryPolicyRequest(input, context));
|
|
300
300
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
301
|
};
|
|
302
|
-
export const
|
|
302
|
+
export const se_PutRegistryScanningConfigurationCommand = async (input, context) => {
|
|
303
303
|
const headers = {
|
|
304
304
|
"content-type": "application/x-amz-json-1.1",
|
|
305
305
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutRegistryScanningConfiguration",
|
|
306
306
|
};
|
|
307
307
|
let body;
|
|
308
|
-
body = JSON.stringify(
|
|
308
|
+
body = JSON.stringify(se_PutRegistryScanningConfigurationRequest(input, context));
|
|
309
309
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
310
|
};
|
|
311
|
-
export const
|
|
311
|
+
export const se_PutReplicationConfigurationCommand = async (input, context) => {
|
|
312
312
|
const headers = {
|
|
313
313
|
"content-type": "application/x-amz-json-1.1",
|
|
314
314
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutReplicationConfiguration",
|
|
315
315
|
};
|
|
316
316
|
let body;
|
|
317
|
-
body = JSON.stringify(
|
|
317
|
+
body = JSON.stringify(se_PutReplicationConfigurationRequest(input, context));
|
|
318
318
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
319
|
};
|
|
320
|
-
export const
|
|
320
|
+
export const se_SetRepositoryPolicyCommand = async (input, context) => {
|
|
321
321
|
const headers = {
|
|
322
322
|
"content-type": "application/x-amz-json-1.1",
|
|
323
323
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.SetRepositoryPolicy",
|
|
324
324
|
};
|
|
325
325
|
let body;
|
|
326
|
-
body = JSON.stringify(
|
|
326
|
+
body = JSON.stringify(se_SetRepositoryPolicyRequest(input, context));
|
|
327
327
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
328
|
};
|
|
329
|
-
export const
|
|
329
|
+
export const se_StartImageScanCommand = async (input, context) => {
|
|
330
330
|
const headers = {
|
|
331
331
|
"content-type": "application/x-amz-json-1.1",
|
|
332
332
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.StartImageScan",
|
|
333
333
|
};
|
|
334
334
|
let body;
|
|
335
|
-
body = JSON.stringify(
|
|
335
|
+
body = JSON.stringify(se_StartImageScanRequest(input, context));
|
|
336
336
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
337
|
};
|
|
338
|
-
export const
|
|
338
|
+
export const se_StartLifecyclePolicyPreviewCommand = async (input, context) => {
|
|
339
339
|
const headers = {
|
|
340
340
|
"content-type": "application/x-amz-json-1.1",
|
|
341
341
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.StartLifecyclePolicyPreview",
|
|
342
342
|
};
|
|
343
343
|
let body;
|
|
344
|
-
body = JSON.stringify(
|
|
344
|
+
body = JSON.stringify(se_StartLifecyclePolicyPreviewRequest(input, context));
|
|
345
345
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
346
|
};
|
|
347
|
-
export const
|
|
347
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
348
348
|
const headers = {
|
|
349
349
|
"content-type": "application/x-amz-json-1.1",
|
|
350
350
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.TagResource",
|
|
351
351
|
};
|
|
352
352
|
let body;
|
|
353
|
-
body = JSON.stringify(
|
|
353
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
354
354
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
355
355
|
};
|
|
356
|
-
export const
|
|
356
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
357
357
|
const headers = {
|
|
358
358
|
"content-type": "application/x-amz-json-1.1",
|
|
359
359
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.UntagResource",
|
|
360
360
|
};
|
|
361
361
|
let body;
|
|
362
|
-
body = JSON.stringify(
|
|
362
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
363
363
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
364
364
|
};
|
|
365
|
-
export const
|
|
365
|
+
export const se_UploadLayerPartCommand = async (input, context) => {
|
|
366
366
|
const headers = {
|
|
367
367
|
"content-type": "application/x-amz-json-1.1",
|
|
368
368
|
"x-amz-target": "AmazonEC2ContainerRegistry_V20150921.UploadLayerPart",
|
|
369
369
|
};
|
|
370
370
|
let body;
|
|
371
|
-
body = JSON.stringify(
|
|
371
|
+
body = JSON.stringify(se_UploadLayerPartRequest(input, context));
|
|
372
372
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
373
|
};
|
|
374
|
-
export const
|
|
374
|
+
export const de_BatchCheckLayerAvailabilityCommand = async (output, context) => {
|
|
375
375
|
if (output.statusCode >= 300) {
|
|
376
|
-
return
|
|
376
|
+
return de_BatchCheckLayerAvailabilityCommandError(output, context);
|
|
377
377
|
}
|
|
378
378
|
const data = await parseBody(output.body, context);
|
|
379
379
|
let contents = {};
|
|
380
|
-
contents =
|
|
380
|
+
contents = de_BatchCheckLayerAvailabilityResponse(data, context);
|
|
381
381
|
const response = {
|
|
382
382
|
$metadata: deserializeMetadata(output),
|
|
383
383
|
...contents,
|
|
384
384
|
};
|
|
385
385
|
return Promise.resolve(response);
|
|
386
386
|
};
|
|
387
|
-
const
|
|
387
|
+
const de_BatchCheckLayerAvailabilityCommandError = async (output, context) => {
|
|
388
388
|
const parsedOutput = {
|
|
389
389
|
...output,
|
|
390
390
|
body: await parseErrorBody(output.body, context),
|
|
@@ -393,13 +393,13 @@ const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (out
|
|
|
393
393
|
switch (errorCode) {
|
|
394
394
|
case "InvalidParameterException":
|
|
395
395
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
396
|
-
throw await
|
|
396
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
397
397
|
case "RepositoryNotFoundException":
|
|
398
398
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
399
|
-
throw await
|
|
399
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
400
400
|
case "ServerException":
|
|
401
401
|
case "com.amazonaws.ecr#ServerException":
|
|
402
|
-
throw await
|
|
402
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
403
403
|
default:
|
|
404
404
|
const parsedBody = parsedOutput.body;
|
|
405
405
|
throwDefaultError({
|
|
@@ -410,20 +410,20 @@ const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (out
|
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
};
|
|
413
|
-
export const
|
|
413
|
+
export const de_BatchDeleteImageCommand = async (output, context) => {
|
|
414
414
|
if (output.statusCode >= 300) {
|
|
415
|
-
return
|
|
415
|
+
return de_BatchDeleteImageCommandError(output, context);
|
|
416
416
|
}
|
|
417
417
|
const data = await parseBody(output.body, context);
|
|
418
418
|
let contents = {};
|
|
419
|
-
contents =
|
|
419
|
+
contents = de_BatchDeleteImageResponse(data, context);
|
|
420
420
|
const response = {
|
|
421
421
|
$metadata: deserializeMetadata(output),
|
|
422
422
|
...contents,
|
|
423
423
|
};
|
|
424
424
|
return Promise.resolve(response);
|
|
425
425
|
};
|
|
426
|
-
const
|
|
426
|
+
const de_BatchDeleteImageCommandError = async (output, context) => {
|
|
427
427
|
const parsedOutput = {
|
|
428
428
|
...output,
|
|
429
429
|
body: await parseErrorBody(output.body, context),
|
|
@@ -432,13 +432,13 @@ const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, contex
|
|
|
432
432
|
switch (errorCode) {
|
|
433
433
|
case "InvalidParameterException":
|
|
434
434
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
435
|
-
throw await
|
|
435
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
436
436
|
case "RepositoryNotFoundException":
|
|
437
437
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
438
|
-
throw await
|
|
438
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
439
439
|
case "ServerException":
|
|
440
440
|
case "com.amazonaws.ecr#ServerException":
|
|
441
|
-
throw await
|
|
441
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
442
442
|
default:
|
|
443
443
|
const parsedBody = parsedOutput.body;
|
|
444
444
|
throwDefaultError({
|
|
@@ -449,20 +449,20 @@ const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, contex
|
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
451
|
};
|
|
452
|
-
export const
|
|
452
|
+
export const de_BatchGetImageCommand = async (output, context) => {
|
|
453
453
|
if (output.statusCode >= 300) {
|
|
454
|
-
return
|
|
454
|
+
return de_BatchGetImageCommandError(output, context);
|
|
455
455
|
}
|
|
456
456
|
const data = await parseBody(output.body, context);
|
|
457
457
|
let contents = {};
|
|
458
|
-
contents =
|
|
458
|
+
contents = de_BatchGetImageResponse(data, context);
|
|
459
459
|
const response = {
|
|
460
460
|
$metadata: deserializeMetadata(output),
|
|
461
461
|
...contents,
|
|
462
462
|
};
|
|
463
463
|
return Promise.resolve(response);
|
|
464
464
|
};
|
|
465
|
-
const
|
|
465
|
+
const de_BatchGetImageCommandError = async (output, context) => {
|
|
466
466
|
const parsedOutput = {
|
|
467
467
|
...output,
|
|
468
468
|
body: await parseErrorBody(output.body, context),
|
|
@@ -471,13 +471,13 @@ const deserializeAws_json1_1BatchGetImageCommandError = async (output, context)
|
|
|
471
471
|
switch (errorCode) {
|
|
472
472
|
case "InvalidParameterException":
|
|
473
473
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
474
|
-
throw await
|
|
474
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
475
475
|
case "RepositoryNotFoundException":
|
|
476
476
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
477
|
-
throw await
|
|
477
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
478
478
|
case "ServerException":
|
|
479
479
|
case "com.amazonaws.ecr#ServerException":
|
|
480
|
-
throw await
|
|
480
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
481
481
|
default:
|
|
482
482
|
const parsedBody = parsedOutput.body;
|
|
483
483
|
throwDefaultError({
|
|
@@ -488,20 +488,20 @@ const deserializeAws_json1_1BatchGetImageCommandError = async (output, context)
|
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
|
-
export const
|
|
491
|
+
export const de_BatchGetRepositoryScanningConfigurationCommand = async (output, context) => {
|
|
492
492
|
if (output.statusCode >= 300) {
|
|
493
|
-
return
|
|
493
|
+
return de_BatchGetRepositoryScanningConfigurationCommandError(output, context);
|
|
494
494
|
}
|
|
495
495
|
const data = await parseBody(output.body, context);
|
|
496
496
|
let contents = {};
|
|
497
|
-
contents =
|
|
497
|
+
contents = de_BatchGetRepositoryScanningConfigurationResponse(data, context);
|
|
498
498
|
const response = {
|
|
499
499
|
$metadata: deserializeMetadata(output),
|
|
500
500
|
...contents,
|
|
501
501
|
};
|
|
502
502
|
return Promise.resolve(response);
|
|
503
503
|
};
|
|
504
|
-
const
|
|
504
|
+
const de_BatchGetRepositoryScanningConfigurationCommandError = async (output, context) => {
|
|
505
505
|
const parsedOutput = {
|
|
506
506
|
...output,
|
|
507
507
|
body: await parseErrorBody(output.body, context),
|
|
@@ -510,16 +510,16 @@ const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError
|
|
|
510
510
|
switch (errorCode) {
|
|
511
511
|
case "InvalidParameterException":
|
|
512
512
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
513
|
-
throw await
|
|
513
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
514
514
|
case "RepositoryNotFoundException":
|
|
515
515
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
516
|
-
throw await
|
|
516
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
517
517
|
case "ServerException":
|
|
518
518
|
case "com.amazonaws.ecr#ServerException":
|
|
519
|
-
throw await
|
|
519
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
520
520
|
case "ValidationException":
|
|
521
521
|
case "com.amazonaws.ecr#ValidationException":
|
|
522
|
-
throw await
|
|
522
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
523
523
|
default:
|
|
524
524
|
const parsedBody = parsedOutput.body;
|
|
525
525
|
throwDefaultError({
|
|
@@ -530,20 +530,20 @@ const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError
|
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
|
-
export const
|
|
533
|
+
export const de_CompleteLayerUploadCommand = async (output, context) => {
|
|
534
534
|
if (output.statusCode >= 300) {
|
|
535
|
-
return
|
|
535
|
+
return de_CompleteLayerUploadCommandError(output, context);
|
|
536
536
|
}
|
|
537
537
|
const data = await parseBody(output.body, context);
|
|
538
538
|
let contents = {};
|
|
539
|
-
contents =
|
|
539
|
+
contents = de_CompleteLayerUploadResponse(data, context);
|
|
540
540
|
const response = {
|
|
541
541
|
$metadata: deserializeMetadata(output),
|
|
542
542
|
...contents,
|
|
543
543
|
};
|
|
544
544
|
return Promise.resolve(response);
|
|
545
545
|
};
|
|
546
|
-
const
|
|
546
|
+
const de_CompleteLayerUploadCommandError = async (output, context) => {
|
|
547
547
|
const parsedOutput = {
|
|
548
548
|
...output,
|
|
549
549
|
body: await parseErrorBody(output.body, context),
|
|
@@ -552,31 +552,31 @@ const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, con
|
|
|
552
552
|
switch (errorCode) {
|
|
553
553
|
case "EmptyUploadException":
|
|
554
554
|
case "com.amazonaws.ecr#EmptyUploadException":
|
|
555
|
-
throw await
|
|
555
|
+
throw await de_EmptyUploadExceptionRes(parsedOutput, context);
|
|
556
556
|
case "InvalidLayerException":
|
|
557
557
|
case "com.amazonaws.ecr#InvalidLayerException":
|
|
558
|
-
throw await
|
|
558
|
+
throw await de_InvalidLayerExceptionRes(parsedOutput, context);
|
|
559
559
|
case "InvalidParameterException":
|
|
560
560
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
561
|
-
throw await
|
|
561
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
562
562
|
case "KmsException":
|
|
563
563
|
case "com.amazonaws.ecr#KmsException":
|
|
564
|
-
throw await
|
|
564
|
+
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
565
565
|
case "LayerAlreadyExistsException":
|
|
566
566
|
case "com.amazonaws.ecr#LayerAlreadyExistsException":
|
|
567
|
-
throw await
|
|
567
|
+
throw await de_LayerAlreadyExistsExceptionRes(parsedOutput, context);
|
|
568
568
|
case "LayerPartTooSmallException":
|
|
569
569
|
case "com.amazonaws.ecr#LayerPartTooSmallException":
|
|
570
|
-
throw await
|
|
570
|
+
throw await de_LayerPartTooSmallExceptionRes(parsedOutput, context);
|
|
571
571
|
case "RepositoryNotFoundException":
|
|
572
572
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
573
|
-
throw await
|
|
573
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
574
574
|
case "ServerException":
|
|
575
575
|
case "com.amazonaws.ecr#ServerException":
|
|
576
|
-
throw await
|
|
576
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
577
577
|
case "UploadNotFoundException":
|
|
578
578
|
case "com.amazonaws.ecr#UploadNotFoundException":
|
|
579
|
-
throw await
|
|
579
|
+
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
580
580
|
default:
|
|
581
581
|
const parsedBody = parsedOutput.body;
|
|
582
582
|
throwDefaultError({
|
|
@@ -587,20 +587,20 @@ const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, con
|
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
589
|
};
|
|
590
|
-
export const
|
|
590
|
+
export const de_CreatePullThroughCacheRuleCommand = async (output, context) => {
|
|
591
591
|
if (output.statusCode >= 300) {
|
|
592
|
-
return
|
|
592
|
+
return de_CreatePullThroughCacheRuleCommandError(output, context);
|
|
593
593
|
}
|
|
594
594
|
const data = await parseBody(output.body, context);
|
|
595
595
|
let contents = {};
|
|
596
|
-
contents =
|
|
596
|
+
contents = de_CreatePullThroughCacheRuleResponse(data, context);
|
|
597
597
|
const response = {
|
|
598
598
|
$metadata: deserializeMetadata(output),
|
|
599
599
|
...contents,
|
|
600
600
|
};
|
|
601
601
|
return Promise.resolve(response);
|
|
602
602
|
};
|
|
603
|
-
const
|
|
603
|
+
const de_CreatePullThroughCacheRuleCommandError = async (output, context) => {
|
|
604
604
|
const parsedOutput = {
|
|
605
605
|
...output,
|
|
606
606
|
body: await parseErrorBody(output.body, context),
|
|
@@ -609,22 +609,22 @@ const deserializeAws_json1_1CreatePullThroughCacheRuleCommandError = async (outp
|
|
|
609
609
|
switch (errorCode) {
|
|
610
610
|
case "InvalidParameterException":
|
|
611
611
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
612
|
-
throw await
|
|
612
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
613
613
|
case "LimitExceededException":
|
|
614
614
|
case "com.amazonaws.ecr#LimitExceededException":
|
|
615
|
-
throw await
|
|
615
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
616
616
|
case "PullThroughCacheRuleAlreadyExistsException":
|
|
617
617
|
case "com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":
|
|
618
|
-
throw await
|
|
618
|
+
throw await de_PullThroughCacheRuleAlreadyExistsExceptionRes(parsedOutput, context);
|
|
619
619
|
case "ServerException":
|
|
620
620
|
case "com.amazonaws.ecr#ServerException":
|
|
621
|
-
throw await
|
|
621
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
622
622
|
case "UnsupportedUpstreamRegistryException":
|
|
623
623
|
case "com.amazonaws.ecr#UnsupportedUpstreamRegistryException":
|
|
624
|
-
throw await
|
|
624
|
+
throw await de_UnsupportedUpstreamRegistryExceptionRes(parsedOutput, context);
|
|
625
625
|
case "ValidationException":
|
|
626
626
|
case "com.amazonaws.ecr#ValidationException":
|
|
627
|
-
throw await
|
|
627
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
628
628
|
default:
|
|
629
629
|
const parsedBody = parsedOutput.body;
|
|
630
630
|
throwDefaultError({
|
|
@@ -635,20 +635,20 @@ const deserializeAws_json1_1CreatePullThroughCacheRuleCommandError = async (outp
|
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
637
|
};
|
|
638
|
-
export const
|
|
638
|
+
export const de_CreateRepositoryCommand = async (output, context) => {
|
|
639
639
|
if (output.statusCode >= 300) {
|
|
640
|
-
return
|
|
640
|
+
return de_CreateRepositoryCommandError(output, context);
|
|
641
641
|
}
|
|
642
642
|
const data = await parseBody(output.body, context);
|
|
643
643
|
let contents = {};
|
|
644
|
-
contents =
|
|
644
|
+
contents = de_CreateRepositoryResponse(data, context);
|
|
645
645
|
const response = {
|
|
646
646
|
$metadata: deserializeMetadata(output),
|
|
647
647
|
...contents,
|
|
648
648
|
};
|
|
649
649
|
return Promise.resolve(response);
|
|
650
650
|
};
|
|
651
|
-
const
|
|
651
|
+
const de_CreateRepositoryCommandError = async (output, context) => {
|
|
652
652
|
const parsedOutput = {
|
|
653
653
|
...output,
|
|
654
654
|
body: await parseErrorBody(output.body, context),
|
|
@@ -657,25 +657,25 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
657
657
|
switch (errorCode) {
|
|
658
658
|
case "InvalidParameterException":
|
|
659
659
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
660
|
-
throw await
|
|
660
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
661
661
|
case "InvalidTagParameterException":
|
|
662
662
|
case "com.amazonaws.ecr#InvalidTagParameterException":
|
|
663
|
-
throw await
|
|
663
|
+
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
664
664
|
case "KmsException":
|
|
665
665
|
case "com.amazonaws.ecr#KmsException":
|
|
666
|
-
throw await
|
|
666
|
+
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
667
667
|
case "LimitExceededException":
|
|
668
668
|
case "com.amazonaws.ecr#LimitExceededException":
|
|
669
|
-
throw await
|
|
669
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
670
670
|
case "RepositoryAlreadyExistsException":
|
|
671
671
|
case "com.amazonaws.ecr#RepositoryAlreadyExistsException":
|
|
672
|
-
throw await
|
|
672
|
+
throw await de_RepositoryAlreadyExistsExceptionRes(parsedOutput, context);
|
|
673
673
|
case "ServerException":
|
|
674
674
|
case "com.amazonaws.ecr#ServerException":
|
|
675
|
-
throw await
|
|
675
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
676
676
|
case "TooManyTagsException":
|
|
677
677
|
case "com.amazonaws.ecr#TooManyTagsException":
|
|
678
|
-
throw await
|
|
678
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
679
679
|
default:
|
|
680
680
|
const parsedBody = parsedOutput.body;
|
|
681
681
|
throwDefaultError({
|
|
@@ -686,20 +686,20 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
688
|
};
|
|
689
|
-
export const
|
|
689
|
+
export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
690
690
|
if (output.statusCode >= 300) {
|
|
691
|
-
return
|
|
691
|
+
return de_DeleteLifecyclePolicyCommandError(output, context);
|
|
692
692
|
}
|
|
693
693
|
const data = await parseBody(output.body, context);
|
|
694
694
|
let contents = {};
|
|
695
|
-
contents =
|
|
695
|
+
contents = de_DeleteLifecyclePolicyResponse(data, context);
|
|
696
696
|
const response = {
|
|
697
697
|
$metadata: deserializeMetadata(output),
|
|
698
698
|
...contents,
|
|
699
699
|
};
|
|
700
700
|
return Promise.resolve(response);
|
|
701
701
|
};
|
|
702
|
-
const
|
|
702
|
+
const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
|
|
703
703
|
const parsedOutput = {
|
|
704
704
|
...output,
|
|
705
705
|
body: await parseErrorBody(output.body, context),
|
|
@@ -708,16 +708,16 @@ const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, c
|
|
|
708
708
|
switch (errorCode) {
|
|
709
709
|
case "InvalidParameterException":
|
|
710
710
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
711
|
-
throw await
|
|
711
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
712
712
|
case "LifecyclePolicyNotFoundException":
|
|
713
713
|
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
|
|
714
|
-
throw await
|
|
714
|
+
throw await de_LifecyclePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
715
715
|
case "RepositoryNotFoundException":
|
|
716
716
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
717
|
-
throw await
|
|
717
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
718
718
|
case "ServerException":
|
|
719
719
|
case "com.amazonaws.ecr#ServerException":
|
|
720
|
-
throw await
|
|
720
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
721
721
|
default:
|
|
722
722
|
const parsedBody = parsedOutput.body;
|
|
723
723
|
throwDefaultError({
|
|
@@ -728,20 +728,20 @@ const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, c
|
|
|
728
728
|
});
|
|
729
729
|
}
|
|
730
730
|
};
|
|
731
|
-
export const
|
|
731
|
+
export const de_DeletePullThroughCacheRuleCommand = async (output, context) => {
|
|
732
732
|
if (output.statusCode >= 300) {
|
|
733
|
-
return
|
|
733
|
+
return de_DeletePullThroughCacheRuleCommandError(output, context);
|
|
734
734
|
}
|
|
735
735
|
const data = await parseBody(output.body, context);
|
|
736
736
|
let contents = {};
|
|
737
|
-
contents =
|
|
737
|
+
contents = de_DeletePullThroughCacheRuleResponse(data, context);
|
|
738
738
|
const response = {
|
|
739
739
|
$metadata: deserializeMetadata(output),
|
|
740
740
|
...contents,
|
|
741
741
|
};
|
|
742
742
|
return Promise.resolve(response);
|
|
743
743
|
};
|
|
744
|
-
const
|
|
744
|
+
const de_DeletePullThroughCacheRuleCommandError = async (output, context) => {
|
|
745
745
|
const parsedOutput = {
|
|
746
746
|
...output,
|
|
747
747
|
body: await parseErrorBody(output.body, context),
|
|
@@ -750,16 +750,16 @@ const deserializeAws_json1_1DeletePullThroughCacheRuleCommandError = async (outp
|
|
|
750
750
|
switch (errorCode) {
|
|
751
751
|
case "InvalidParameterException":
|
|
752
752
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
753
|
-
throw await
|
|
753
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
754
754
|
case "PullThroughCacheRuleNotFoundException":
|
|
755
755
|
case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":
|
|
756
|
-
throw await
|
|
756
|
+
throw await de_PullThroughCacheRuleNotFoundExceptionRes(parsedOutput, context);
|
|
757
757
|
case "ServerException":
|
|
758
758
|
case "com.amazonaws.ecr#ServerException":
|
|
759
|
-
throw await
|
|
759
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
760
760
|
case "ValidationException":
|
|
761
761
|
case "com.amazonaws.ecr#ValidationException":
|
|
762
|
-
throw await
|
|
762
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
763
763
|
default:
|
|
764
764
|
const parsedBody = parsedOutput.body;
|
|
765
765
|
throwDefaultError({
|
|
@@ -770,20 +770,20 @@ const deserializeAws_json1_1DeletePullThroughCacheRuleCommandError = async (outp
|
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
772
|
};
|
|
773
|
-
export const
|
|
773
|
+
export const de_DeleteRegistryPolicyCommand = async (output, context) => {
|
|
774
774
|
if (output.statusCode >= 300) {
|
|
775
|
-
return
|
|
775
|
+
return de_DeleteRegistryPolicyCommandError(output, context);
|
|
776
776
|
}
|
|
777
777
|
const data = await parseBody(output.body, context);
|
|
778
778
|
let contents = {};
|
|
779
|
-
contents =
|
|
779
|
+
contents = de_DeleteRegistryPolicyResponse(data, context);
|
|
780
780
|
const response = {
|
|
781
781
|
$metadata: deserializeMetadata(output),
|
|
782
782
|
...contents,
|
|
783
783
|
};
|
|
784
784
|
return Promise.resolve(response);
|
|
785
785
|
};
|
|
786
|
-
const
|
|
786
|
+
const de_DeleteRegistryPolicyCommandError = async (output, context) => {
|
|
787
787
|
const parsedOutput = {
|
|
788
788
|
...output,
|
|
789
789
|
body: await parseErrorBody(output.body, context),
|
|
@@ -792,16 +792,16 @@ const deserializeAws_json1_1DeleteRegistryPolicyCommandError = async (output, co
|
|
|
792
792
|
switch (errorCode) {
|
|
793
793
|
case "InvalidParameterException":
|
|
794
794
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
795
|
-
throw await
|
|
795
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
796
796
|
case "RegistryPolicyNotFoundException":
|
|
797
797
|
case "com.amazonaws.ecr#RegistryPolicyNotFoundException":
|
|
798
|
-
throw await
|
|
798
|
+
throw await de_RegistryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
799
799
|
case "ServerException":
|
|
800
800
|
case "com.amazonaws.ecr#ServerException":
|
|
801
|
-
throw await
|
|
801
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
802
802
|
case "ValidationException":
|
|
803
803
|
case "com.amazonaws.ecr#ValidationException":
|
|
804
|
-
throw await
|
|
804
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
805
805
|
default:
|
|
806
806
|
const parsedBody = parsedOutput.body;
|
|
807
807
|
throwDefaultError({
|
|
@@ -812,20 +812,20 @@ const deserializeAws_json1_1DeleteRegistryPolicyCommandError = async (output, co
|
|
|
812
812
|
});
|
|
813
813
|
}
|
|
814
814
|
};
|
|
815
|
-
export const
|
|
815
|
+
export const de_DeleteRepositoryCommand = async (output, context) => {
|
|
816
816
|
if (output.statusCode >= 300) {
|
|
817
|
-
return
|
|
817
|
+
return de_DeleteRepositoryCommandError(output, context);
|
|
818
818
|
}
|
|
819
819
|
const data = await parseBody(output.body, context);
|
|
820
820
|
let contents = {};
|
|
821
|
-
contents =
|
|
821
|
+
contents = de_DeleteRepositoryResponse(data, context);
|
|
822
822
|
const response = {
|
|
823
823
|
$metadata: deserializeMetadata(output),
|
|
824
824
|
...contents,
|
|
825
825
|
};
|
|
826
826
|
return Promise.resolve(response);
|
|
827
827
|
};
|
|
828
|
-
const
|
|
828
|
+
const de_DeleteRepositoryCommandError = async (output, context) => {
|
|
829
829
|
const parsedOutput = {
|
|
830
830
|
...output,
|
|
831
831
|
body: await parseErrorBody(output.body, context),
|
|
@@ -834,19 +834,19 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
834
834
|
switch (errorCode) {
|
|
835
835
|
case "InvalidParameterException":
|
|
836
836
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
837
|
-
throw await
|
|
837
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
838
838
|
case "KmsException":
|
|
839
839
|
case "com.amazonaws.ecr#KmsException":
|
|
840
|
-
throw await
|
|
840
|
+
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
841
841
|
case "RepositoryNotEmptyException":
|
|
842
842
|
case "com.amazonaws.ecr#RepositoryNotEmptyException":
|
|
843
|
-
throw await
|
|
843
|
+
throw await de_RepositoryNotEmptyExceptionRes(parsedOutput, context);
|
|
844
844
|
case "RepositoryNotFoundException":
|
|
845
845
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
846
|
-
throw await
|
|
846
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
847
847
|
case "ServerException":
|
|
848
848
|
case "com.amazonaws.ecr#ServerException":
|
|
849
|
-
throw await
|
|
849
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
850
850
|
default:
|
|
851
851
|
const parsedBody = parsedOutput.body;
|
|
852
852
|
throwDefaultError({
|
|
@@ -857,20 +857,20 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
859
|
};
|
|
860
|
-
export const
|
|
860
|
+
export const de_DeleteRepositoryPolicyCommand = async (output, context) => {
|
|
861
861
|
if (output.statusCode >= 300) {
|
|
862
|
-
return
|
|
862
|
+
return de_DeleteRepositoryPolicyCommandError(output, context);
|
|
863
863
|
}
|
|
864
864
|
const data = await parseBody(output.body, context);
|
|
865
865
|
let contents = {};
|
|
866
|
-
contents =
|
|
866
|
+
contents = de_DeleteRepositoryPolicyResponse(data, context);
|
|
867
867
|
const response = {
|
|
868
868
|
$metadata: deserializeMetadata(output),
|
|
869
869
|
...contents,
|
|
870
870
|
};
|
|
871
871
|
return Promise.resolve(response);
|
|
872
872
|
};
|
|
873
|
-
const
|
|
873
|
+
const de_DeleteRepositoryPolicyCommandError = async (output, context) => {
|
|
874
874
|
const parsedOutput = {
|
|
875
875
|
...output,
|
|
876
876
|
body: await parseErrorBody(output.body, context),
|
|
@@ -879,16 +879,16 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output,
|
|
|
879
879
|
switch (errorCode) {
|
|
880
880
|
case "InvalidParameterException":
|
|
881
881
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
882
|
-
throw await
|
|
882
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
883
883
|
case "RepositoryNotFoundException":
|
|
884
884
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
885
|
-
throw await
|
|
885
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
886
886
|
case "RepositoryPolicyNotFoundException":
|
|
887
887
|
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException":
|
|
888
|
-
throw await
|
|
888
|
+
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
889
889
|
case "ServerException":
|
|
890
890
|
case "com.amazonaws.ecr#ServerException":
|
|
891
|
-
throw await
|
|
891
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
892
892
|
default:
|
|
893
893
|
const parsedBody = parsedOutput.body;
|
|
894
894
|
throwDefaultError({
|
|
@@ -899,20 +899,20 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output,
|
|
|
899
899
|
});
|
|
900
900
|
}
|
|
901
901
|
};
|
|
902
|
-
export const
|
|
902
|
+
export const de_DescribeImageReplicationStatusCommand = async (output, context) => {
|
|
903
903
|
if (output.statusCode >= 300) {
|
|
904
|
-
return
|
|
904
|
+
return de_DescribeImageReplicationStatusCommandError(output, context);
|
|
905
905
|
}
|
|
906
906
|
const data = await parseBody(output.body, context);
|
|
907
907
|
let contents = {};
|
|
908
|
-
contents =
|
|
908
|
+
contents = de_DescribeImageReplicationStatusResponse(data, context);
|
|
909
909
|
const response = {
|
|
910
910
|
$metadata: deserializeMetadata(output),
|
|
911
911
|
...contents,
|
|
912
912
|
};
|
|
913
913
|
return Promise.resolve(response);
|
|
914
914
|
};
|
|
915
|
-
const
|
|
915
|
+
const de_DescribeImageReplicationStatusCommandError = async (output, context) => {
|
|
916
916
|
const parsedOutput = {
|
|
917
917
|
...output,
|
|
918
918
|
body: await parseErrorBody(output.body, context),
|
|
@@ -921,19 +921,19 @@ const deserializeAws_json1_1DescribeImageReplicationStatusCommandError = async (
|
|
|
921
921
|
switch (errorCode) {
|
|
922
922
|
case "ImageNotFoundException":
|
|
923
923
|
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
924
|
-
throw await
|
|
924
|
+
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
925
925
|
case "InvalidParameterException":
|
|
926
926
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
927
|
-
throw await
|
|
927
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
928
928
|
case "RepositoryNotFoundException":
|
|
929
929
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
930
|
-
throw await
|
|
930
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
931
931
|
case "ServerException":
|
|
932
932
|
case "com.amazonaws.ecr#ServerException":
|
|
933
|
-
throw await
|
|
933
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
934
934
|
case "ValidationException":
|
|
935
935
|
case "com.amazonaws.ecr#ValidationException":
|
|
936
|
-
throw await
|
|
936
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
937
937
|
default:
|
|
938
938
|
const parsedBody = parsedOutput.body;
|
|
939
939
|
throwDefaultError({
|
|
@@ -944,20 +944,20 @@ const deserializeAws_json1_1DescribeImageReplicationStatusCommandError = async (
|
|
|
944
944
|
});
|
|
945
945
|
}
|
|
946
946
|
};
|
|
947
|
-
export const
|
|
947
|
+
export const de_DescribeImagesCommand = async (output, context) => {
|
|
948
948
|
if (output.statusCode >= 300) {
|
|
949
|
-
return
|
|
949
|
+
return de_DescribeImagesCommandError(output, context);
|
|
950
950
|
}
|
|
951
951
|
const data = await parseBody(output.body, context);
|
|
952
952
|
let contents = {};
|
|
953
|
-
contents =
|
|
953
|
+
contents = de_DescribeImagesResponse(data, context);
|
|
954
954
|
const response = {
|
|
955
955
|
$metadata: deserializeMetadata(output),
|
|
956
956
|
...contents,
|
|
957
957
|
};
|
|
958
958
|
return Promise.resolve(response);
|
|
959
959
|
};
|
|
960
|
-
const
|
|
960
|
+
const de_DescribeImagesCommandError = async (output, context) => {
|
|
961
961
|
const parsedOutput = {
|
|
962
962
|
...output,
|
|
963
963
|
body: await parseErrorBody(output.body, context),
|
|
@@ -966,16 +966,16 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
966
966
|
switch (errorCode) {
|
|
967
967
|
case "ImageNotFoundException":
|
|
968
968
|
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
969
|
-
throw await
|
|
969
|
+
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
970
970
|
case "InvalidParameterException":
|
|
971
971
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
972
|
-
throw await
|
|
972
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
973
973
|
case "RepositoryNotFoundException":
|
|
974
974
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
975
|
-
throw await
|
|
975
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
976
976
|
case "ServerException":
|
|
977
977
|
case "com.amazonaws.ecr#ServerException":
|
|
978
|
-
throw await
|
|
978
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
979
979
|
default:
|
|
980
980
|
const parsedBody = parsedOutput.body;
|
|
981
981
|
throwDefaultError({
|
|
@@ -986,20 +986,20 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
988
|
};
|
|
989
|
-
export const
|
|
989
|
+
export const de_DescribeImageScanFindingsCommand = async (output, context) => {
|
|
990
990
|
if (output.statusCode >= 300) {
|
|
991
|
-
return
|
|
991
|
+
return de_DescribeImageScanFindingsCommandError(output, context);
|
|
992
992
|
}
|
|
993
993
|
const data = await parseBody(output.body, context);
|
|
994
994
|
let contents = {};
|
|
995
|
-
contents =
|
|
995
|
+
contents = de_DescribeImageScanFindingsResponse(data, context);
|
|
996
996
|
const response = {
|
|
997
997
|
$metadata: deserializeMetadata(output),
|
|
998
998
|
...contents,
|
|
999
999
|
};
|
|
1000
1000
|
return Promise.resolve(response);
|
|
1001
1001
|
};
|
|
1002
|
-
const
|
|
1002
|
+
const de_DescribeImageScanFindingsCommandError = async (output, context) => {
|
|
1003
1003
|
const parsedOutput = {
|
|
1004
1004
|
...output,
|
|
1005
1005
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1008,22 +1008,22 @@ const deserializeAws_json1_1DescribeImageScanFindingsCommandError = async (outpu
|
|
|
1008
1008
|
switch (errorCode) {
|
|
1009
1009
|
case "ImageNotFoundException":
|
|
1010
1010
|
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
1011
|
-
throw await
|
|
1011
|
+
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
1012
1012
|
case "InvalidParameterException":
|
|
1013
1013
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1014
|
-
throw await
|
|
1014
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1015
1015
|
case "RepositoryNotFoundException":
|
|
1016
1016
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1017
|
-
throw await
|
|
1017
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1018
1018
|
case "ScanNotFoundException":
|
|
1019
1019
|
case "com.amazonaws.ecr#ScanNotFoundException":
|
|
1020
|
-
throw await
|
|
1020
|
+
throw await de_ScanNotFoundExceptionRes(parsedOutput, context);
|
|
1021
1021
|
case "ServerException":
|
|
1022
1022
|
case "com.amazonaws.ecr#ServerException":
|
|
1023
|
-
throw await
|
|
1023
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1024
1024
|
case "ValidationException":
|
|
1025
1025
|
case "com.amazonaws.ecr#ValidationException":
|
|
1026
|
-
throw await
|
|
1026
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1027
1027
|
default:
|
|
1028
1028
|
const parsedBody = parsedOutput.body;
|
|
1029
1029
|
throwDefaultError({
|
|
@@ -1034,20 +1034,20 @@ const deserializeAws_json1_1DescribeImageScanFindingsCommandError = async (outpu
|
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
1036
|
};
|
|
1037
|
-
export const
|
|
1037
|
+
export const de_DescribePullThroughCacheRulesCommand = async (output, context) => {
|
|
1038
1038
|
if (output.statusCode >= 300) {
|
|
1039
|
-
return
|
|
1039
|
+
return de_DescribePullThroughCacheRulesCommandError(output, context);
|
|
1040
1040
|
}
|
|
1041
1041
|
const data = await parseBody(output.body, context);
|
|
1042
1042
|
let contents = {};
|
|
1043
|
-
contents =
|
|
1043
|
+
contents = de_DescribePullThroughCacheRulesResponse(data, context);
|
|
1044
1044
|
const response = {
|
|
1045
1045
|
$metadata: deserializeMetadata(output),
|
|
1046
1046
|
...contents,
|
|
1047
1047
|
};
|
|
1048
1048
|
return Promise.resolve(response);
|
|
1049
1049
|
};
|
|
1050
|
-
const
|
|
1050
|
+
const de_DescribePullThroughCacheRulesCommandError = async (output, context) => {
|
|
1051
1051
|
const parsedOutput = {
|
|
1052
1052
|
...output,
|
|
1053
1053
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1056,16 +1056,16 @@ const deserializeAws_json1_1DescribePullThroughCacheRulesCommandError = async (o
|
|
|
1056
1056
|
switch (errorCode) {
|
|
1057
1057
|
case "InvalidParameterException":
|
|
1058
1058
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1059
|
-
throw await
|
|
1059
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1060
1060
|
case "PullThroughCacheRuleNotFoundException":
|
|
1061
1061
|
case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":
|
|
1062
|
-
throw await
|
|
1062
|
+
throw await de_PullThroughCacheRuleNotFoundExceptionRes(parsedOutput, context);
|
|
1063
1063
|
case "ServerException":
|
|
1064
1064
|
case "com.amazonaws.ecr#ServerException":
|
|
1065
|
-
throw await
|
|
1065
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1066
1066
|
case "ValidationException":
|
|
1067
1067
|
case "com.amazonaws.ecr#ValidationException":
|
|
1068
|
-
throw await
|
|
1068
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1069
1069
|
default:
|
|
1070
1070
|
const parsedBody = parsedOutput.body;
|
|
1071
1071
|
throwDefaultError({
|
|
@@ -1076,20 +1076,20 @@ const deserializeAws_json1_1DescribePullThroughCacheRulesCommandError = async (o
|
|
|
1076
1076
|
});
|
|
1077
1077
|
}
|
|
1078
1078
|
};
|
|
1079
|
-
export const
|
|
1079
|
+
export const de_DescribeRegistryCommand = async (output, context) => {
|
|
1080
1080
|
if (output.statusCode >= 300) {
|
|
1081
|
-
return
|
|
1081
|
+
return de_DescribeRegistryCommandError(output, context);
|
|
1082
1082
|
}
|
|
1083
1083
|
const data = await parseBody(output.body, context);
|
|
1084
1084
|
let contents = {};
|
|
1085
|
-
contents =
|
|
1085
|
+
contents = de_DescribeRegistryResponse(data, context);
|
|
1086
1086
|
const response = {
|
|
1087
1087
|
$metadata: deserializeMetadata(output),
|
|
1088
1088
|
...contents,
|
|
1089
1089
|
};
|
|
1090
1090
|
return Promise.resolve(response);
|
|
1091
1091
|
};
|
|
1092
|
-
const
|
|
1092
|
+
const de_DescribeRegistryCommandError = async (output, context) => {
|
|
1093
1093
|
const parsedOutput = {
|
|
1094
1094
|
...output,
|
|
1095
1095
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1098,13 +1098,13 @@ const deserializeAws_json1_1DescribeRegistryCommandError = async (output, contex
|
|
|
1098
1098
|
switch (errorCode) {
|
|
1099
1099
|
case "InvalidParameterException":
|
|
1100
1100
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1101
|
-
throw await
|
|
1101
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1102
1102
|
case "ServerException":
|
|
1103
1103
|
case "com.amazonaws.ecr#ServerException":
|
|
1104
|
-
throw await
|
|
1104
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1105
1105
|
case "ValidationException":
|
|
1106
1106
|
case "com.amazonaws.ecr#ValidationException":
|
|
1107
|
-
throw await
|
|
1107
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1108
1108
|
default:
|
|
1109
1109
|
const parsedBody = parsedOutput.body;
|
|
1110
1110
|
throwDefaultError({
|
|
@@ -1115,20 +1115,20 @@ const deserializeAws_json1_1DescribeRegistryCommandError = async (output, contex
|
|
|
1115
1115
|
});
|
|
1116
1116
|
}
|
|
1117
1117
|
};
|
|
1118
|
-
export const
|
|
1118
|
+
export const de_DescribeRepositoriesCommand = async (output, context) => {
|
|
1119
1119
|
if (output.statusCode >= 300) {
|
|
1120
|
-
return
|
|
1120
|
+
return de_DescribeRepositoriesCommandError(output, context);
|
|
1121
1121
|
}
|
|
1122
1122
|
const data = await parseBody(output.body, context);
|
|
1123
1123
|
let contents = {};
|
|
1124
|
-
contents =
|
|
1124
|
+
contents = de_DescribeRepositoriesResponse(data, context);
|
|
1125
1125
|
const response = {
|
|
1126
1126
|
$metadata: deserializeMetadata(output),
|
|
1127
1127
|
...contents,
|
|
1128
1128
|
};
|
|
1129
1129
|
return Promise.resolve(response);
|
|
1130
1130
|
};
|
|
1131
|
-
const
|
|
1131
|
+
const de_DescribeRepositoriesCommandError = async (output, context) => {
|
|
1132
1132
|
const parsedOutput = {
|
|
1133
1133
|
...output,
|
|
1134
1134
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1137,13 +1137,13 @@ const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, co
|
|
|
1137
1137
|
switch (errorCode) {
|
|
1138
1138
|
case "InvalidParameterException":
|
|
1139
1139
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1140
|
-
throw await
|
|
1140
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1141
1141
|
case "RepositoryNotFoundException":
|
|
1142
1142
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1143
|
-
throw await
|
|
1143
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1144
1144
|
case "ServerException":
|
|
1145
1145
|
case "com.amazonaws.ecr#ServerException":
|
|
1146
|
-
throw await
|
|
1146
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1147
1147
|
default:
|
|
1148
1148
|
const parsedBody = parsedOutput.body;
|
|
1149
1149
|
throwDefaultError({
|
|
@@ -1154,20 +1154,20 @@ const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, co
|
|
|
1154
1154
|
});
|
|
1155
1155
|
}
|
|
1156
1156
|
};
|
|
1157
|
-
export const
|
|
1157
|
+
export const de_GetAuthorizationTokenCommand = async (output, context) => {
|
|
1158
1158
|
if (output.statusCode >= 300) {
|
|
1159
|
-
return
|
|
1159
|
+
return de_GetAuthorizationTokenCommandError(output, context);
|
|
1160
1160
|
}
|
|
1161
1161
|
const data = await parseBody(output.body, context);
|
|
1162
1162
|
let contents = {};
|
|
1163
|
-
contents =
|
|
1163
|
+
contents = de_GetAuthorizationTokenResponse(data, context);
|
|
1164
1164
|
const response = {
|
|
1165
1165
|
$metadata: deserializeMetadata(output),
|
|
1166
1166
|
...contents,
|
|
1167
1167
|
};
|
|
1168
1168
|
return Promise.resolve(response);
|
|
1169
1169
|
};
|
|
1170
|
-
const
|
|
1170
|
+
const de_GetAuthorizationTokenCommandError = async (output, context) => {
|
|
1171
1171
|
const parsedOutput = {
|
|
1172
1172
|
...output,
|
|
1173
1173
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1176,10 +1176,10 @@ const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, c
|
|
|
1176
1176
|
switch (errorCode) {
|
|
1177
1177
|
case "InvalidParameterException":
|
|
1178
1178
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1179
|
-
throw await
|
|
1179
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1180
1180
|
case "ServerException":
|
|
1181
1181
|
case "com.amazonaws.ecr#ServerException":
|
|
1182
|
-
throw await
|
|
1182
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1183
1183
|
default:
|
|
1184
1184
|
const parsedBody = parsedOutput.body;
|
|
1185
1185
|
throwDefaultError({
|
|
@@ -1190,20 +1190,20 @@ const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, c
|
|
|
1190
1190
|
});
|
|
1191
1191
|
}
|
|
1192
1192
|
};
|
|
1193
|
-
export const
|
|
1193
|
+
export const de_GetDownloadUrlForLayerCommand = async (output, context) => {
|
|
1194
1194
|
if (output.statusCode >= 300) {
|
|
1195
|
-
return
|
|
1195
|
+
return de_GetDownloadUrlForLayerCommandError(output, context);
|
|
1196
1196
|
}
|
|
1197
1197
|
const data = await parseBody(output.body, context);
|
|
1198
1198
|
let contents = {};
|
|
1199
|
-
contents =
|
|
1199
|
+
contents = de_GetDownloadUrlForLayerResponse(data, context);
|
|
1200
1200
|
const response = {
|
|
1201
1201
|
$metadata: deserializeMetadata(output),
|
|
1202
1202
|
...contents,
|
|
1203
1203
|
};
|
|
1204
1204
|
return Promise.resolve(response);
|
|
1205
1205
|
};
|
|
1206
|
-
const
|
|
1206
|
+
const de_GetDownloadUrlForLayerCommandError = async (output, context) => {
|
|
1207
1207
|
const parsedOutput = {
|
|
1208
1208
|
...output,
|
|
1209
1209
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1212,19 +1212,19 @@ const deserializeAws_json1_1GetDownloadUrlForLayerCommandError = async (output,
|
|
|
1212
1212
|
switch (errorCode) {
|
|
1213
1213
|
case "InvalidParameterException":
|
|
1214
1214
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1215
|
-
throw await
|
|
1215
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1216
1216
|
case "LayerInaccessibleException":
|
|
1217
1217
|
case "com.amazonaws.ecr#LayerInaccessibleException":
|
|
1218
|
-
throw await
|
|
1218
|
+
throw await de_LayerInaccessibleExceptionRes(parsedOutput, context);
|
|
1219
1219
|
case "LayersNotFoundException":
|
|
1220
1220
|
case "com.amazonaws.ecr#LayersNotFoundException":
|
|
1221
|
-
throw await
|
|
1221
|
+
throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
|
|
1222
1222
|
case "RepositoryNotFoundException":
|
|
1223
1223
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1224
|
-
throw await
|
|
1224
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1225
1225
|
case "ServerException":
|
|
1226
1226
|
case "com.amazonaws.ecr#ServerException":
|
|
1227
|
-
throw await
|
|
1227
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1228
1228
|
default:
|
|
1229
1229
|
const parsedBody = parsedOutput.body;
|
|
1230
1230
|
throwDefaultError({
|
|
@@ -1235,20 +1235,20 @@ const deserializeAws_json1_1GetDownloadUrlForLayerCommandError = async (output,
|
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
1237
|
};
|
|
1238
|
-
export const
|
|
1238
|
+
export const de_GetLifecyclePolicyCommand = async (output, context) => {
|
|
1239
1239
|
if (output.statusCode >= 300) {
|
|
1240
|
-
return
|
|
1240
|
+
return de_GetLifecyclePolicyCommandError(output, context);
|
|
1241
1241
|
}
|
|
1242
1242
|
const data = await parseBody(output.body, context);
|
|
1243
1243
|
let contents = {};
|
|
1244
|
-
contents =
|
|
1244
|
+
contents = de_GetLifecyclePolicyResponse(data, context);
|
|
1245
1245
|
const response = {
|
|
1246
1246
|
$metadata: deserializeMetadata(output),
|
|
1247
1247
|
...contents,
|
|
1248
1248
|
};
|
|
1249
1249
|
return Promise.resolve(response);
|
|
1250
1250
|
};
|
|
1251
|
-
const
|
|
1251
|
+
const de_GetLifecyclePolicyCommandError = async (output, context) => {
|
|
1252
1252
|
const parsedOutput = {
|
|
1253
1253
|
...output,
|
|
1254
1254
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1257,16 +1257,16 @@ const deserializeAws_json1_1GetLifecyclePolicyCommandError = async (output, cont
|
|
|
1257
1257
|
switch (errorCode) {
|
|
1258
1258
|
case "InvalidParameterException":
|
|
1259
1259
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1260
|
-
throw await
|
|
1260
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1261
1261
|
case "LifecyclePolicyNotFoundException":
|
|
1262
1262
|
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
|
|
1263
|
-
throw await
|
|
1263
|
+
throw await de_LifecyclePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1264
1264
|
case "RepositoryNotFoundException":
|
|
1265
1265
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1266
|
-
throw await
|
|
1266
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1267
1267
|
case "ServerException":
|
|
1268
1268
|
case "com.amazonaws.ecr#ServerException":
|
|
1269
|
-
throw await
|
|
1269
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1270
1270
|
default:
|
|
1271
1271
|
const parsedBody = parsedOutput.body;
|
|
1272
1272
|
throwDefaultError({
|
|
@@ -1277,20 +1277,20 @@ const deserializeAws_json1_1GetLifecyclePolicyCommandError = async (output, cont
|
|
|
1277
1277
|
});
|
|
1278
1278
|
}
|
|
1279
1279
|
};
|
|
1280
|
-
export const
|
|
1280
|
+
export const de_GetLifecyclePolicyPreviewCommand = async (output, context) => {
|
|
1281
1281
|
if (output.statusCode >= 300) {
|
|
1282
|
-
return
|
|
1282
|
+
return de_GetLifecyclePolicyPreviewCommandError(output, context);
|
|
1283
1283
|
}
|
|
1284
1284
|
const data = await parseBody(output.body, context);
|
|
1285
1285
|
let contents = {};
|
|
1286
|
-
contents =
|
|
1286
|
+
contents = de_GetLifecyclePolicyPreviewResponse(data, context);
|
|
1287
1287
|
const response = {
|
|
1288
1288
|
$metadata: deserializeMetadata(output),
|
|
1289
1289
|
...contents,
|
|
1290
1290
|
};
|
|
1291
1291
|
return Promise.resolve(response);
|
|
1292
1292
|
};
|
|
1293
|
-
const
|
|
1293
|
+
const de_GetLifecyclePolicyPreviewCommandError = async (output, context) => {
|
|
1294
1294
|
const parsedOutput = {
|
|
1295
1295
|
...output,
|
|
1296
1296
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1299,16 +1299,16 @@ const deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError = async (outpu
|
|
|
1299
1299
|
switch (errorCode) {
|
|
1300
1300
|
case "InvalidParameterException":
|
|
1301
1301
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1302
|
-
throw await
|
|
1302
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1303
1303
|
case "LifecyclePolicyPreviewNotFoundException":
|
|
1304
1304
|
case "com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":
|
|
1305
|
-
throw await
|
|
1305
|
+
throw await de_LifecyclePolicyPreviewNotFoundExceptionRes(parsedOutput, context);
|
|
1306
1306
|
case "RepositoryNotFoundException":
|
|
1307
1307
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1308
|
-
throw await
|
|
1308
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1309
1309
|
case "ServerException":
|
|
1310
1310
|
case "com.amazonaws.ecr#ServerException":
|
|
1311
|
-
throw await
|
|
1311
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1312
1312
|
default:
|
|
1313
1313
|
const parsedBody = parsedOutput.body;
|
|
1314
1314
|
throwDefaultError({
|
|
@@ -1319,20 +1319,20 @@ const deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError = async (outpu
|
|
|
1319
1319
|
});
|
|
1320
1320
|
}
|
|
1321
1321
|
};
|
|
1322
|
-
export const
|
|
1322
|
+
export const de_GetRegistryPolicyCommand = async (output, context) => {
|
|
1323
1323
|
if (output.statusCode >= 300) {
|
|
1324
|
-
return
|
|
1324
|
+
return de_GetRegistryPolicyCommandError(output, context);
|
|
1325
1325
|
}
|
|
1326
1326
|
const data = await parseBody(output.body, context);
|
|
1327
1327
|
let contents = {};
|
|
1328
|
-
contents =
|
|
1328
|
+
contents = de_GetRegistryPolicyResponse(data, context);
|
|
1329
1329
|
const response = {
|
|
1330
1330
|
$metadata: deserializeMetadata(output),
|
|
1331
1331
|
...contents,
|
|
1332
1332
|
};
|
|
1333
1333
|
return Promise.resolve(response);
|
|
1334
1334
|
};
|
|
1335
|
-
const
|
|
1335
|
+
const de_GetRegistryPolicyCommandError = async (output, context) => {
|
|
1336
1336
|
const parsedOutput = {
|
|
1337
1337
|
...output,
|
|
1338
1338
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1341,16 +1341,16 @@ const deserializeAws_json1_1GetRegistryPolicyCommandError = async (output, conte
|
|
|
1341
1341
|
switch (errorCode) {
|
|
1342
1342
|
case "InvalidParameterException":
|
|
1343
1343
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1344
|
-
throw await
|
|
1344
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1345
1345
|
case "RegistryPolicyNotFoundException":
|
|
1346
1346
|
case "com.amazonaws.ecr#RegistryPolicyNotFoundException":
|
|
1347
|
-
throw await
|
|
1347
|
+
throw await de_RegistryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1348
1348
|
case "ServerException":
|
|
1349
1349
|
case "com.amazonaws.ecr#ServerException":
|
|
1350
|
-
throw await
|
|
1350
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1351
1351
|
case "ValidationException":
|
|
1352
1352
|
case "com.amazonaws.ecr#ValidationException":
|
|
1353
|
-
throw await
|
|
1353
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1354
1354
|
default:
|
|
1355
1355
|
const parsedBody = parsedOutput.body;
|
|
1356
1356
|
throwDefaultError({
|
|
@@ -1361,20 +1361,20 @@ const deserializeAws_json1_1GetRegistryPolicyCommandError = async (output, conte
|
|
|
1361
1361
|
});
|
|
1362
1362
|
}
|
|
1363
1363
|
};
|
|
1364
|
-
export const
|
|
1364
|
+
export const de_GetRegistryScanningConfigurationCommand = async (output, context) => {
|
|
1365
1365
|
if (output.statusCode >= 300) {
|
|
1366
|
-
return
|
|
1366
|
+
return de_GetRegistryScanningConfigurationCommandError(output, context);
|
|
1367
1367
|
}
|
|
1368
1368
|
const data = await parseBody(output.body, context);
|
|
1369
1369
|
let contents = {};
|
|
1370
|
-
contents =
|
|
1370
|
+
contents = de_GetRegistryScanningConfigurationResponse(data, context);
|
|
1371
1371
|
const response = {
|
|
1372
1372
|
$metadata: deserializeMetadata(output),
|
|
1373
1373
|
...contents,
|
|
1374
1374
|
};
|
|
1375
1375
|
return Promise.resolve(response);
|
|
1376
1376
|
};
|
|
1377
|
-
const
|
|
1377
|
+
const de_GetRegistryScanningConfigurationCommandError = async (output, context) => {
|
|
1378
1378
|
const parsedOutput = {
|
|
1379
1379
|
...output,
|
|
1380
1380
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1383,13 +1383,13 @@ const deserializeAws_json1_1GetRegistryScanningConfigurationCommandError = async
|
|
|
1383
1383
|
switch (errorCode) {
|
|
1384
1384
|
case "InvalidParameterException":
|
|
1385
1385
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1386
|
-
throw await
|
|
1386
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1387
1387
|
case "ServerException":
|
|
1388
1388
|
case "com.amazonaws.ecr#ServerException":
|
|
1389
|
-
throw await
|
|
1389
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1390
1390
|
case "ValidationException":
|
|
1391
1391
|
case "com.amazonaws.ecr#ValidationException":
|
|
1392
|
-
throw await
|
|
1392
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1393
1393
|
default:
|
|
1394
1394
|
const parsedBody = parsedOutput.body;
|
|
1395
1395
|
throwDefaultError({
|
|
@@ -1400,20 +1400,20 @@ const deserializeAws_json1_1GetRegistryScanningConfigurationCommandError = async
|
|
|
1400
1400
|
});
|
|
1401
1401
|
}
|
|
1402
1402
|
};
|
|
1403
|
-
export const
|
|
1403
|
+
export const de_GetRepositoryPolicyCommand = async (output, context) => {
|
|
1404
1404
|
if (output.statusCode >= 300) {
|
|
1405
|
-
return
|
|
1405
|
+
return de_GetRepositoryPolicyCommandError(output, context);
|
|
1406
1406
|
}
|
|
1407
1407
|
const data = await parseBody(output.body, context);
|
|
1408
1408
|
let contents = {};
|
|
1409
|
-
contents =
|
|
1409
|
+
contents = de_GetRepositoryPolicyResponse(data, context);
|
|
1410
1410
|
const response = {
|
|
1411
1411
|
$metadata: deserializeMetadata(output),
|
|
1412
1412
|
...contents,
|
|
1413
1413
|
};
|
|
1414
1414
|
return Promise.resolve(response);
|
|
1415
1415
|
};
|
|
1416
|
-
const
|
|
1416
|
+
const de_GetRepositoryPolicyCommandError = async (output, context) => {
|
|
1417
1417
|
const parsedOutput = {
|
|
1418
1418
|
...output,
|
|
1419
1419
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1422,16 +1422,16 @@ const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, con
|
|
|
1422
1422
|
switch (errorCode) {
|
|
1423
1423
|
case "InvalidParameterException":
|
|
1424
1424
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1425
|
-
throw await
|
|
1425
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1426
1426
|
case "RepositoryNotFoundException":
|
|
1427
1427
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1428
|
-
throw await
|
|
1428
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1429
1429
|
case "RepositoryPolicyNotFoundException":
|
|
1430
1430
|
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException":
|
|
1431
|
-
throw await
|
|
1431
|
+
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1432
1432
|
case "ServerException":
|
|
1433
1433
|
case "com.amazonaws.ecr#ServerException":
|
|
1434
|
-
throw await
|
|
1434
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1435
1435
|
default:
|
|
1436
1436
|
const parsedBody = parsedOutput.body;
|
|
1437
1437
|
throwDefaultError({
|
|
@@ -1442,20 +1442,20 @@ const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, con
|
|
|
1442
1442
|
});
|
|
1443
1443
|
}
|
|
1444
1444
|
};
|
|
1445
|
-
export const
|
|
1445
|
+
export const de_InitiateLayerUploadCommand = async (output, context) => {
|
|
1446
1446
|
if (output.statusCode >= 300) {
|
|
1447
|
-
return
|
|
1447
|
+
return de_InitiateLayerUploadCommandError(output, context);
|
|
1448
1448
|
}
|
|
1449
1449
|
const data = await parseBody(output.body, context);
|
|
1450
1450
|
let contents = {};
|
|
1451
|
-
contents =
|
|
1451
|
+
contents = de_InitiateLayerUploadResponse(data, context);
|
|
1452
1452
|
const response = {
|
|
1453
1453
|
$metadata: deserializeMetadata(output),
|
|
1454
1454
|
...contents,
|
|
1455
1455
|
};
|
|
1456
1456
|
return Promise.resolve(response);
|
|
1457
1457
|
};
|
|
1458
|
-
const
|
|
1458
|
+
const de_InitiateLayerUploadCommandError = async (output, context) => {
|
|
1459
1459
|
const parsedOutput = {
|
|
1460
1460
|
...output,
|
|
1461
1461
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1464,16 +1464,16 @@ const deserializeAws_json1_1InitiateLayerUploadCommandError = async (output, con
|
|
|
1464
1464
|
switch (errorCode) {
|
|
1465
1465
|
case "InvalidParameterException":
|
|
1466
1466
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1467
|
-
throw await
|
|
1467
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1468
1468
|
case "KmsException":
|
|
1469
1469
|
case "com.amazonaws.ecr#KmsException":
|
|
1470
|
-
throw await
|
|
1470
|
+
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
1471
1471
|
case "RepositoryNotFoundException":
|
|
1472
1472
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1473
|
-
throw await
|
|
1473
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1474
1474
|
case "ServerException":
|
|
1475
1475
|
case "com.amazonaws.ecr#ServerException":
|
|
1476
|
-
throw await
|
|
1476
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1477
1477
|
default:
|
|
1478
1478
|
const parsedBody = parsedOutput.body;
|
|
1479
1479
|
throwDefaultError({
|
|
@@ -1484,20 +1484,20 @@ const deserializeAws_json1_1InitiateLayerUploadCommandError = async (output, con
|
|
|
1484
1484
|
});
|
|
1485
1485
|
}
|
|
1486
1486
|
};
|
|
1487
|
-
export const
|
|
1487
|
+
export const de_ListImagesCommand = async (output, context) => {
|
|
1488
1488
|
if (output.statusCode >= 300) {
|
|
1489
|
-
return
|
|
1489
|
+
return de_ListImagesCommandError(output, context);
|
|
1490
1490
|
}
|
|
1491
1491
|
const data = await parseBody(output.body, context);
|
|
1492
1492
|
let contents = {};
|
|
1493
|
-
contents =
|
|
1493
|
+
contents = de_ListImagesResponse(data, context);
|
|
1494
1494
|
const response = {
|
|
1495
1495
|
$metadata: deserializeMetadata(output),
|
|
1496
1496
|
...contents,
|
|
1497
1497
|
};
|
|
1498
1498
|
return Promise.resolve(response);
|
|
1499
1499
|
};
|
|
1500
|
-
const
|
|
1500
|
+
const de_ListImagesCommandError = async (output, context) => {
|
|
1501
1501
|
const parsedOutput = {
|
|
1502
1502
|
...output,
|
|
1503
1503
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1506,13 +1506,13 @@ const deserializeAws_json1_1ListImagesCommandError = async (output, context) =>
|
|
|
1506
1506
|
switch (errorCode) {
|
|
1507
1507
|
case "InvalidParameterException":
|
|
1508
1508
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1509
|
-
throw await
|
|
1509
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1510
1510
|
case "RepositoryNotFoundException":
|
|
1511
1511
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1512
|
-
throw await
|
|
1512
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1513
1513
|
case "ServerException":
|
|
1514
1514
|
case "com.amazonaws.ecr#ServerException":
|
|
1515
|
-
throw await
|
|
1515
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1516
1516
|
default:
|
|
1517
1517
|
const parsedBody = parsedOutput.body;
|
|
1518
1518
|
throwDefaultError({
|
|
@@ -1523,20 +1523,20 @@ const deserializeAws_json1_1ListImagesCommandError = async (output, context) =>
|
|
|
1523
1523
|
});
|
|
1524
1524
|
}
|
|
1525
1525
|
};
|
|
1526
|
-
export const
|
|
1526
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1527
1527
|
if (output.statusCode >= 300) {
|
|
1528
|
-
return
|
|
1528
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1529
1529
|
}
|
|
1530
1530
|
const data = await parseBody(output.body, context);
|
|
1531
1531
|
let contents = {};
|
|
1532
|
-
contents =
|
|
1532
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
1533
1533
|
const response = {
|
|
1534
1534
|
$metadata: deserializeMetadata(output),
|
|
1535
1535
|
...contents,
|
|
1536
1536
|
};
|
|
1537
1537
|
return Promise.resolve(response);
|
|
1538
1538
|
};
|
|
1539
|
-
const
|
|
1539
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1540
1540
|
const parsedOutput = {
|
|
1541
1541
|
...output,
|
|
1542
1542
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1545,13 +1545,13 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1545
1545
|
switch (errorCode) {
|
|
1546
1546
|
case "InvalidParameterException":
|
|
1547
1547
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1548
|
-
throw await
|
|
1548
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1549
1549
|
case "RepositoryNotFoundException":
|
|
1550
1550
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1551
|
-
throw await
|
|
1551
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1552
1552
|
case "ServerException":
|
|
1553
1553
|
case "com.amazonaws.ecr#ServerException":
|
|
1554
|
-
throw await
|
|
1554
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1555
1555
|
default:
|
|
1556
1556
|
const parsedBody = parsedOutput.body;
|
|
1557
1557
|
throwDefaultError({
|
|
@@ -1562,20 +1562,20 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1562
1562
|
});
|
|
1563
1563
|
}
|
|
1564
1564
|
};
|
|
1565
|
-
export const
|
|
1565
|
+
export const de_PutImageCommand = async (output, context) => {
|
|
1566
1566
|
if (output.statusCode >= 300) {
|
|
1567
|
-
return
|
|
1567
|
+
return de_PutImageCommandError(output, context);
|
|
1568
1568
|
}
|
|
1569
1569
|
const data = await parseBody(output.body, context);
|
|
1570
1570
|
let contents = {};
|
|
1571
|
-
contents =
|
|
1571
|
+
contents = de_PutImageResponse(data, context);
|
|
1572
1572
|
const response = {
|
|
1573
1573
|
$metadata: deserializeMetadata(output),
|
|
1574
1574
|
...contents,
|
|
1575
1575
|
};
|
|
1576
1576
|
return Promise.resolve(response);
|
|
1577
1577
|
};
|
|
1578
|
-
const
|
|
1578
|
+
const de_PutImageCommandError = async (output, context) => {
|
|
1579
1579
|
const parsedOutput = {
|
|
1580
1580
|
...output,
|
|
1581
1581
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1584,34 +1584,34 @@ const deserializeAws_json1_1PutImageCommandError = async (output, context) => {
|
|
|
1584
1584
|
switch (errorCode) {
|
|
1585
1585
|
case "ImageAlreadyExistsException":
|
|
1586
1586
|
case "com.amazonaws.ecr#ImageAlreadyExistsException":
|
|
1587
|
-
throw await
|
|
1587
|
+
throw await de_ImageAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1588
1588
|
case "ImageDigestDoesNotMatchException":
|
|
1589
1589
|
case "com.amazonaws.ecr#ImageDigestDoesNotMatchException":
|
|
1590
|
-
throw await
|
|
1590
|
+
throw await de_ImageDigestDoesNotMatchExceptionRes(parsedOutput, context);
|
|
1591
1591
|
case "ImageTagAlreadyExistsException":
|
|
1592
1592
|
case "com.amazonaws.ecr#ImageTagAlreadyExistsException":
|
|
1593
|
-
throw await
|
|
1593
|
+
throw await de_ImageTagAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1594
1594
|
case "InvalidParameterException":
|
|
1595
1595
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1596
|
-
throw await
|
|
1596
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1597
1597
|
case "KmsException":
|
|
1598
1598
|
case "com.amazonaws.ecr#KmsException":
|
|
1599
|
-
throw await
|
|
1599
|
+
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
1600
1600
|
case "LayersNotFoundException":
|
|
1601
1601
|
case "com.amazonaws.ecr#LayersNotFoundException":
|
|
1602
|
-
throw await
|
|
1602
|
+
throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
|
|
1603
1603
|
case "LimitExceededException":
|
|
1604
1604
|
case "com.amazonaws.ecr#LimitExceededException":
|
|
1605
|
-
throw await
|
|
1605
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1606
1606
|
case "ReferencedImagesNotFoundException":
|
|
1607
1607
|
case "com.amazonaws.ecr#ReferencedImagesNotFoundException":
|
|
1608
|
-
throw await
|
|
1608
|
+
throw await de_ReferencedImagesNotFoundExceptionRes(parsedOutput, context);
|
|
1609
1609
|
case "RepositoryNotFoundException":
|
|
1610
1610
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1611
|
-
throw await
|
|
1611
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1612
1612
|
case "ServerException":
|
|
1613
1613
|
case "com.amazonaws.ecr#ServerException":
|
|
1614
|
-
throw await
|
|
1614
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1615
1615
|
default:
|
|
1616
1616
|
const parsedBody = parsedOutput.body;
|
|
1617
1617
|
throwDefaultError({
|
|
@@ -1622,20 +1622,20 @@ const deserializeAws_json1_1PutImageCommandError = async (output, context) => {
|
|
|
1622
1622
|
});
|
|
1623
1623
|
}
|
|
1624
1624
|
};
|
|
1625
|
-
export const
|
|
1625
|
+
export const de_PutImageScanningConfigurationCommand = async (output, context) => {
|
|
1626
1626
|
if (output.statusCode >= 300) {
|
|
1627
|
-
return
|
|
1627
|
+
return de_PutImageScanningConfigurationCommandError(output, context);
|
|
1628
1628
|
}
|
|
1629
1629
|
const data = await parseBody(output.body, context);
|
|
1630
1630
|
let contents = {};
|
|
1631
|
-
contents =
|
|
1631
|
+
contents = de_PutImageScanningConfigurationResponse(data, context);
|
|
1632
1632
|
const response = {
|
|
1633
1633
|
$metadata: deserializeMetadata(output),
|
|
1634
1634
|
...contents,
|
|
1635
1635
|
};
|
|
1636
1636
|
return Promise.resolve(response);
|
|
1637
1637
|
};
|
|
1638
|
-
const
|
|
1638
|
+
const de_PutImageScanningConfigurationCommandError = async (output, context) => {
|
|
1639
1639
|
const parsedOutput = {
|
|
1640
1640
|
...output,
|
|
1641
1641
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1644,16 +1644,16 @@ const deserializeAws_json1_1PutImageScanningConfigurationCommandError = async (o
|
|
|
1644
1644
|
switch (errorCode) {
|
|
1645
1645
|
case "InvalidParameterException":
|
|
1646
1646
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1647
|
-
throw await
|
|
1647
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1648
1648
|
case "RepositoryNotFoundException":
|
|
1649
1649
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1650
|
-
throw await
|
|
1650
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1651
1651
|
case "ServerException":
|
|
1652
1652
|
case "com.amazonaws.ecr#ServerException":
|
|
1653
|
-
throw await
|
|
1653
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1654
1654
|
case "ValidationException":
|
|
1655
1655
|
case "com.amazonaws.ecr#ValidationException":
|
|
1656
|
-
throw await
|
|
1656
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1657
1657
|
default:
|
|
1658
1658
|
const parsedBody = parsedOutput.body;
|
|
1659
1659
|
throwDefaultError({
|
|
@@ -1664,20 +1664,20 @@ const deserializeAws_json1_1PutImageScanningConfigurationCommandError = async (o
|
|
|
1664
1664
|
});
|
|
1665
1665
|
}
|
|
1666
1666
|
};
|
|
1667
|
-
export const
|
|
1667
|
+
export const de_PutImageTagMutabilityCommand = async (output, context) => {
|
|
1668
1668
|
if (output.statusCode >= 300) {
|
|
1669
|
-
return
|
|
1669
|
+
return de_PutImageTagMutabilityCommandError(output, context);
|
|
1670
1670
|
}
|
|
1671
1671
|
const data = await parseBody(output.body, context);
|
|
1672
1672
|
let contents = {};
|
|
1673
|
-
contents =
|
|
1673
|
+
contents = de_PutImageTagMutabilityResponse(data, context);
|
|
1674
1674
|
const response = {
|
|
1675
1675
|
$metadata: deserializeMetadata(output),
|
|
1676
1676
|
...contents,
|
|
1677
1677
|
};
|
|
1678
1678
|
return Promise.resolve(response);
|
|
1679
1679
|
};
|
|
1680
|
-
const
|
|
1680
|
+
const de_PutImageTagMutabilityCommandError = async (output, context) => {
|
|
1681
1681
|
const parsedOutput = {
|
|
1682
1682
|
...output,
|
|
1683
1683
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1686,13 +1686,13 @@ const deserializeAws_json1_1PutImageTagMutabilityCommandError = async (output, c
|
|
|
1686
1686
|
switch (errorCode) {
|
|
1687
1687
|
case "InvalidParameterException":
|
|
1688
1688
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1689
|
-
throw await
|
|
1689
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1690
1690
|
case "RepositoryNotFoundException":
|
|
1691
1691
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1692
|
-
throw await
|
|
1692
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1693
1693
|
case "ServerException":
|
|
1694
1694
|
case "com.amazonaws.ecr#ServerException":
|
|
1695
|
-
throw await
|
|
1695
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1696
1696
|
default:
|
|
1697
1697
|
const parsedBody = parsedOutput.body;
|
|
1698
1698
|
throwDefaultError({
|
|
@@ -1703,20 +1703,20 @@ const deserializeAws_json1_1PutImageTagMutabilityCommandError = async (output, c
|
|
|
1703
1703
|
});
|
|
1704
1704
|
}
|
|
1705
1705
|
};
|
|
1706
|
-
export const
|
|
1706
|
+
export const de_PutLifecyclePolicyCommand = async (output, context) => {
|
|
1707
1707
|
if (output.statusCode >= 300) {
|
|
1708
|
-
return
|
|
1708
|
+
return de_PutLifecyclePolicyCommandError(output, context);
|
|
1709
1709
|
}
|
|
1710
1710
|
const data = await parseBody(output.body, context);
|
|
1711
1711
|
let contents = {};
|
|
1712
|
-
contents =
|
|
1712
|
+
contents = de_PutLifecyclePolicyResponse(data, context);
|
|
1713
1713
|
const response = {
|
|
1714
1714
|
$metadata: deserializeMetadata(output),
|
|
1715
1715
|
...contents,
|
|
1716
1716
|
};
|
|
1717
1717
|
return Promise.resolve(response);
|
|
1718
1718
|
};
|
|
1719
|
-
const
|
|
1719
|
+
const de_PutLifecyclePolicyCommandError = async (output, context) => {
|
|
1720
1720
|
const parsedOutput = {
|
|
1721
1721
|
...output,
|
|
1722
1722
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1725,13 +1725,13 @@ const deserializeAws_json1_1PutLifecyclePolicyCommandError = async (output, cont
|
|
|
1725
1725
|
switch (errorCode) {
|
|
1726
1726
|
case "InvalidParameterException":
|
|
1727
1727
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1728
|
-
throw await
|
|
1728
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1729
1729
|
case "RepositoryNotFoundException":
|
|
1730
1730
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1731
|
-
throw await
|
|
1731
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1732
1732
|
case "ServerException":
|
|
1733
1733
|
case "com.amazonaws.ecr#ServerException":
|
|
1734
|
-
throw await
|
|
1734
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1735
1735
|
default:
|
|
1736
1736
|
const parsedBody = parsedOutput.body;
|
|
1737
1737
|
throwDefaultError({
|
|
@@ -1742,20 +1742,20 @@ const deserializeAws_json1_1PutLifecyclePolicyCommandError = async (output, cont
|
|
|
1742
1742
|
});
|
|
1743
1743
|
}
|
|
1744
1744
|
};
|
|
1745
|
-
export const
|
|
1745
|
+
export const de_PutRegistryPolicyCommand = async (output, context) => {
|
|
1746
1746
|
if (output.statusCode >= 300) {
|
|
1747
|
-
return
|
|
1747
|
+
return de_PutRegistryPolicyCommandError(output, context);
|
|
1748
1748
|
}
|
|
1749
1749
|
const data = await parseBody(output.body, context);
|
|
1750
1750
|
let contents = {};
|
|
1751
|
-
contents =
|
|
1751
|
+
contents = de_PutRegistryPolicyResponse(data, context);
|
|
1752
1752
|
const response = {
|
|
1753
1753
|
$metadata: deserializeMetadata(output),
|
|
1754
1754
|
...contents,
|
|
1755
1755
|
};
|
|
1756
1756
|
return Promise.resolve(response);
|
|
1757
1757
|
};
|
|
1758
|
-
const
|
|
1758
|
+
const de_PutRegistryPolicyCommandError = async (output, context) => {
|
|
1759
1759
|
const parsedOutput = {
|
|
1760
1760
|
...output,
|
|
1761
1761
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1764,13 +1764,13 @@ const deserializeAws_json1_1PutRegistryPolicyCommandError = async (output, conte
|
|
|
1764
1764
|
switch (errorCode) {
|
|
1765
1765
|
case "InvalidParameterException":
|
|
1766
1766
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1767
|
-
throw await
|
|
1767
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1768
1768
|
case "ServerException":
|
|
1769
1769
|
case "com.amazonaws.ecr#ServerException":
|
|
1770
|
-
throw await
|
|
1770
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1771
1771
|
case "ValidationException":
|
|
1772
1772
|
case "com.amazonaws.ecr#ValidationException":
|
|
1773
|
-
throw await
|
|
1773
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1774
1774
|
default:
|
|
1775
1775
|
const parsedBody = parsedOutput.body;
|
|
1776
1776
|
throwDefaultError({
|
|
@@ -1781,20 +1781,20 @@ const deserializeAws_json1_1PutRegistryPolicyCommandError = async (output, conte
|
|
|
1781
1781
|
});
|
|
1782
1782
|
}
|
|
1783
1783
|
};
|
|
1784
|
-
export const
|
|
1784
|
+
export const de_PutRegistryScanningConfigurationCommand = async (output, context) => {
|
|
1785
1785
|
if (output.statusCode >= 300) {
|
|
1786
|
-
return
|
|
1786
|
+
return de_PutRegistryScanningConfigurationCommandError(output, context);
|
|
1787
1787
|
}
|
|
1788
1788
|
const data = await parseBody(output.body, context);
|
|
1789
1789
|
let contents = {};
|
|
1790
|
-
contents =
|
|
1790
|
+
contents = de_PutRegistryScanningConfigurationResponse(data, context);
|
|
1791
1791
|
const response = {
|
|
1792
1792
|
$metadata: deserializeMetadata(output),
|
|
1793
1793
|
...contents,
|
|
1794
1794
|
};
|
|
1795
1795
|
return Promise.resolve(response);
|
|
1796
1796
|
};
|
|
1797
|
-
const
|
|
1797
|
+
const de_PutRegistryScanningConfigurationCommandError = async (output, context) => {
|
|
1798
1798
|
const parsedOutput = {
|
|
1799
1799
|
...output,
|
|
1800
1800
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1803,13 +1803,13 @@ const deserializeAws_json1_1PutRegistryScanningConfigurationCommandError = async
|
|
|
1803
1803
|
switch (errorCode) {
|
|
1804
1804
|
case "InvalidParameterException":
|
|
1805
1805
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1806
|
-
throw await
|
|
1806
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1807
1807
|
case "ServerException":
|
|
1808
1808
|
case "com.amazonaws.ecr#ServerException":
|
|
1809
|
-
throw await
|
|
1809
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1810
1810
|
case "ValidationException":
|
|
1811
1811
|
case "com.amazonaws.ecr#ValidationException":
|
|
1812
|
-
throw await
|
|
1812
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1813
1813
|
default:
|
|
1814
1814
|
const parsedBody = parsedOutput.body;
|
|
1815
1815
|
throwDefaultError({
|
|
@@ -1820,20 +1820,20 @@ const deserializeAws_json1_1PutRegistryScanningConfigurationCommandError = async
|
|
|
1820
1820
|
});
|
|
1821
1821
|
}
|
|
1822
1822
|
};
|
|
1823
|
-
export const
|
|
1823
|
+
export const de_PutReplicationConfigurationCommand = async (output, context) => {
|
|
1824
1824
|
if (output.statusCode >= 300) {
|
|
1825
|
-
return
|
|
1825
|
+
return de_PutReplicationConfigurationCommandError(output, context);
|
|
1826
1826
|
}
|
|
1827
1827
|
const data = await parseBody(output.body, context);
|
|
1828
1828
|
let contents = {};
|
|
1829
|
-
contents =
|
|
1829
|
+
contents = de_PutReplicationConfigurationResponse(data, context);
|
|
1830
1830
|
const response = {
|
|
1831
1831
|
$metadata: deserializeMetadata(output),
|
|
1832
1832
|
...contents,
|
|
1833
1833
|
};
|
|
1834
1834
|
return Promise.resolve(response);
|
|
1835
1835
|
};
|
|
1836
|
-
const
|
|
1836
|
+
const de_PutReplicationConfigurationCommandError = async (output, context) => {
|
|
1837
1837
|
const parsedOutput = {
|
|
1838
1838
|
...output,
|
|
1839
1839
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1842,13 +1842,13 @@ const deserializeAws_json1_1PutReplicationConfigurationCommandError = async (out
|
|
|
1842
1842
|
switch (errorCode) {
|
|
1843
1843
|
case "InvalidParameterException":
|
|
1844
1844
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1845
|
-
throw await
|
|
1845
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1846
1846
|
case "ServerException":
|
|
1847
1847
|
case "com.amazonaws.ecr#ServerException":
|
|
1848
|
-
throw await
|
|
1848
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1849
1849
|
case "ValidationException":
|
|
1850
1850
|
case "com.amazonaws.ecr#ValidationException":
|
|
1851
|
-
throw await
|
|
1851
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1852
1852
|
default:
|
|
1853
1853
|
const parsedBody = parsedOutput.body;
|
|
1854
1854
|
throwDefaultError({
|
|
@@ -1859,20 +1859,20 @@ const deserializeAws_json1_1PutReplicationConfigurationCommandError = async (out
|
|
|
1859
1859
|
});
|
|
1860
1860
|
}
|
|
1861
1861
|
};
|
|
1862
|
-
export const
|
|
1862
|
+
export const de_SetRepositoryPolicyCommand = async (output, context) => {
|
|
1863
1863
|
if (output.statusCode >= 300) {
|
|
1864
|
-
return
|
|
1864
|
+
return de_SetRepositoryPolicyCommandError(output, context);
|
|
1865
1865
|
}
|
|
1866
1866
|
const data = await parseBody(output.body, context);
|
|
1867
1867
|
let contents = {};
|
|
1868
|
-
contents =
|
|
1868
|
+
contents = de_SetRepositoryPolicyResponse(data, context);
|
|
1869
1869
|
const response = {
|
|
1870
1870
|
$metadata: deserializeMetadata(output),
|
|
1871
1871
|
...contents,
|
|
1872
1872
|
};
|
|
1873
1873
|
return Promise.resolve(response);
|
|
1874
1874
|
};
|
|
1875
|
-
const
|
|
1875
|
+
const de_SetRepositoryPolicyCommandError = async (output, context) => {
|
|
1876
1876
|
const parsedOutput = {
|
|
1877
1877
|
...output,
|
|
1878
1878
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1881,13 +1881,13 @@ const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, con
|
|
|
1881
1881
|
switch (errorCode) {
|
|
1882
1882
|
case "InvalidParameterException":
|
|
1883
1883
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1884
|
-
throw await
|
|
1884
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1885
1885
|
case "RepositoryNotFoundException":
|
|
1886
1886
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1887
|
-
throw await
|
|
1887
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1888
1888
|
case "ServerException":
|
|
1889
1889
|
case "com.amazonaws.ecr#ServerException":
|
|
1890
|
-
throw await
|
|
1890
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1891
1891
|
default:
|
|
1892
1892
|
const parsedBody = parsedOutput.body;
|
|
1893
1893
|
throwDefaultError({
|
|
@@ -1898,20 +1898,20 @@ const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, con
|
|
|
1898
1898
|
});
|
|
1899
1899
|
}
|
|
1900
1900
|
};
|
|
1901
|
-
export const
|
|
1901
|
+
export const de_StartImageScanCommand = async (output, context) => {
|
|
1902
1902
|
if (output.statusCode >= 300) {
|
|
1903
|
-
return
|
|
1903
|
+
return de_StartImageScanCommandError(output, context);
|
|
1904
1904
|
}
|
|
1905
1905
|
const data = await parseBody(output.body, context);
|
|
1906
1906
|
let contents = {};
|
|
1907
|
-
contents =
|
|
1907
|
+
contents = de_StartImageScanResponse(data, context);
|
|
1908
1908
|
const response = {
|
|
1909
1909
|
$metadata: deserializeMetadata(output),
|
|
1910
1910
|
...contents,
|
|
1911
1911
|
};
|
|
1912
1912
|
return Promise.resolve(response);
|
|
1913
1913
|
};
|
|
1914
|
-
const
|
|
1914
|
+
const de_StartImageScanCommandError = async (output, context) => {
|
|
1915
1915
|
const parsedOutput = {
|
|
1916
1916
|
...output,
|
|
1917
1917
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1920,25 +1920,25 @@ const deserializeAws_json1_1StartImageScanCommandError = async (output, context)
|
|
|
1920
1920
|
switch (errorCode) {
|
|
1921
1921
|
case "ImageNotFoundException":
|
|
1922
1922
|
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
1923
|
-
throw await
|
|
1923
|
+
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
1924
1924
|
case "InvalidParameterException":
|
|
1925
1925
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1926
|
-
throw await
|
|
1926
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1927
1927
|
case "LimitExceededException":
|
|
1928
1928
|
case "com.amazonaws.ecr#LimitExceededException":
|
|
1929
|
-
throw await
|
|
1929
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1930
1930
|
case "RepositoryNotFoundException":
|
|
1931
1931
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1932
|
-
throw await
|
|
1932
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1933
1933
|
case "ServerException":
|
|
1934
1934
|
case "com.amazonaws.ecr#ServerException":
|
|
1935
|
-
throw await
|
|
1935
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1936
1936
|
case "UnsupportedImageTypeException":
|
|
1937
1937
|
case "com.amazonaws.ecr#UnsupportedImageTypeException":
|
|
1938
|
-
throw await
|
|
1938
|
+
throw await de_UnsupportedImageTypeExceptionRes(parsedOutput, context);
|
|
1939
1939
|
case "ValidationException":
|
|
1940
1940
|
case "com.amazonaws.ecr#ValidationException":
|
|
1941
|
-
throw await
|
|
1941
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1942
1942
|
default:
|
|
1943
1943
|
const parsedBody = parsedOutput.body;
|
|
1944
1944
|
throwDefaultError({
|
|
@@ -1949,20 +1949,20 @@ const deserializeAws_json1_1StartImageScanCommandError = async (output, context)
|
|
|
1949
1949
|
});
|
|
1950
1950
|
}
|
|
1951
1951
|
};
|
|
1952
|
-
export const
|
|
1952
|
+
export const de_StartLifecyclePolicyPreviewCommand = async (output, context) => {
|
|
1953
1953
|
if (output.statusCode >= 300) {
|
|
1954
|
-
return
|
|
1954
|
+
return de_StartLifecyclePolicyPreviewCommandError(output, context);
|
|
1955
1955
|
}
|
|
1956
1956
|
const data = await parseBody(output.body, context);
|
|
1957
1957
|
let contents = {};
|
|
1958
|
-
contents =
|
|
1958
|
+
contents = de_StartLifecyclePolicyPreviewResponse(data, context);
|
|
1959
1959
|
const response = {
|
|
1960
1960
|
$metadata: deserializeMetadata(output),
|
|
1961
1961
|
...contents,
|
|
1962
1962
|
};
|
|
1963
1963
|
return Promise.resolve(response);
|
|
1964
1964
|
};
|
|
1965
|
-
const
|
|
1965
|
+
const de_StartLifecyclePolicyPreviewCommandError = async (output, context) => {
|
|
1966
1966
|
const parsedOutput = {
|
|
1967
1967
|
...output,
|
|
1968
1968
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1971,19 +1971,19 @@ const deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError = async (out
|
|
|
1971
1971
|
switch (errorCode) {
|
|
1972
1972
|
case "InvalidParameterException":
|
|
1973
1973
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1974
|
-
throw await
|
|
1974
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1975
1975
|
case "LifecyclePolicyNotFoundException":
|
|
1976
1976
|
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
|
|
1977
|
-
throw await
|
|
1977
|
+
throw await de_LifecyclePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1978
1978
|
case "LifecyclePolicyPreviewInProgressException":
|
|
1979
1979
|
case "com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":
|
|
1980
|
-
throw await
|
|
1980
|
+
throw await de_LifecyclePolicyPreviewInProgressExceptionRes(parsedOutput, context);
|
|
1981
1981
|
case "RepositoryNotFoundException":
|
|
1982
1982
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1983
|
-
throw await
|
|
1983
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1984
1984
|
case "ServerException":
|
|
1985
1985
|
case "com.amazonaws.ecr#ServerException":
|
|
1986
|
-
throw await
|
|
1986
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1987
1987
|
default:
|
|
1988
1988
|
const parsedBody = parsedOutput.body;
|
|
1989
1989
|
throwDefaultError({
|
|
@@ -1994,20 +1994,20 @@ const deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError = async (out
|
|
|
1994
1994
|
});
|
|
1995
1995
|
}
|
|
1996
1996
|
};
|
|
1997
|
-
export const
|
|
1997
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1998
1998
|
if (output.statusCode >= 300) {
|
|
1999
|
-
return
|
|
1999
|
+
return de_TagResourceCommandError(output, context);
|
|
2000
2000
|
}
|
|
2001
2001
|
const data = await parseBody(output.body, context);
|
|
2002
2002
|
let contents = {};
|
|
2003
|
-
contents =
|
|
2003
|
+
contents = de_TagResourceResponse(data, context);
|
|
2004
2004
|
const response = {
|
|
2005
2005
|
$metadata: deserializeMetadata(output),
|
|
2006
2006
|
...contents,
|
|
2007
2007
|
};
|
|
2008
2008
|
return Promise.resolve(response);
|
|
2009
2009
|
};
|
|
2010
|
-
const
|
|
2010
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2011
2011
|
const parsedOutput = {
|
|
2012
2012
|
...output,
|
|
2013
2013
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2016,19 +2016,19 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2016
2016
|
switch (errorCode) {
|
|
2017
2017
|
case "InvalidParameterException":
|
|
2018
2018
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2019
|
-
throw await
|
|
2019
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2020
2020
|
case "InvalidTagParameterException":
|
|
2021
2021
|
case "com.amazonaws.ecr#InvalidTagParameterException":
|
|
2022
|
-
throw await
|
|
2022
|
+
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
2023
2023
|
case "RepositoryNotFoundException":
|
|
2024
2024
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2025
|
-
throw await
|
|
2025
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2026
2026
|
case "ServerException":
|
|
2027
2027
|
case "com.amazonaws.ecr#ServerException":
|
|
2028
|
-
throw await
|
|
2028
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2029
2029
|
case "TooManyTagsException":
|
|
2030
2030
|
case "com.amazonaws.ecr#TooManyTagsException":
|
|
2031
|
-
throw await
|
|
2031
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2032
2032
|
default:
|
|
2033
2033
|
const parsedBody = parsedOutput.body;
|
|
2034
2034
|
throwDefaultError({
|
|
@@ -2039,20 +2039,20 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2039
2039
|
});
|
|
2040
2040
|
}
|
|
2041
2041
|
};
|
|
2042
|
-
export const
|
|
2042
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
2043
2043
|
if (output.statusCode >= 300) {
|
|
2044
|
-
return
|
|
2044
|
+
return de_UntagResourceCommandError(output, context);
|
|
2045
2045
|
}
|
|
2046
2046
|
const data = await parseBody(output.body, context);
|
|
2047
2047
|
let contents = {};
|
|
2048
|
-
contents =
|
|
2048
|
+
contents = de_UntagResourceResponse(data, context);
|
|
2049
2049
|
const response = {
|
|
2050
2050
|
$metadata: deserializeMetadata(output),
|
|
2051
2051
|
...contents,
|
|
2052
2052
|
};
|
|
2053
2053
|
return Promise.resolve(response);
|
|
2054
2054
|
};
|
|
2055
|
-
const
|
|
2055
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2056
2056
|
const parsedOutput = {
|
|
2057
2057
|
...output,
|
|
2058
2058
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2061,19 +2061,19 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2061
2061
|
switch (errorCode) {
|
|
2062
2062
|
case "InvalidParameterException":
|
|
2063
2063
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2064
|
-
throw await
|
|
2064
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2065
2065
|
case "InvalidTagParameterException":
|
|
2066
2066
|
case "com.amazonaws.ecr#InvalidTagParameterException":
|
|
2067
|
-
throw await
|
|
2067
|
+
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
2068
2068
|
case "RepositoryNotFoundException":
|
|
2069
2069
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2070
|
-
throw await
|
|
2070
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2071
2071
|
case "ServerException":
|
|
2072
2072
|
case "com.amazonaws.ecr#ServerException":
|
|
2073
|
-
throw await
|
|
2073
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2074
2074
|
case "TooManyTagsException":
|
|
2075
2075
|
case "com.amazonaws.ecr#TooManyTagsException":
|
|
2076
|
-
throw await
|
|
2076
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2077
2077
|
default:
|
|
2078
2078
|
const parsedBody = parsedOutput.body;
|
|
2079
2079
|
throwDefaultError({
|
|
@@ -2084,20 +2084,20 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2084
2084
|
});
|
|
2085
2085
|
}
|
|
2086
2086
|
};
|
|
2087
|
-
export const
|
|
2087
|
+
export const de_UploadLayerPartCommand = async (output, context) => {
|
|
2088
2088
|
if (output.statusCode >= 300) {
|
|
2089
|
-
return
|
|
2089
|
+
return de_UploadLayerPartCommandError(output, context);
|
|
2090
2090
|
}
|
|
2091
2091
|
const data = await parseBody(output.body, context);
|
|
2092
2092
|
let contents = {};
|
|
2093
|
-
contents =
|
|
2093
|
+
contents = de_UploadLayerPartResponse(data, context);
|
|
2094
2094
|
const response = {
|
|
2095
2095
|
$metadata: deserializeMetadata(output),
|
|
2096
2096
|
...contents,
|
|
2097
2097
|
};
|
|
2098
2098
|
return Promise.resolve(response);
|
|
2099
2099
|
};
|
|
2100
|
-
const
|
|
2100
|
+
const de_UploadLayerPartCommandError = async (output, context) => {
|
|
2101
2101
|
const parsedOutput = {
|
|
2102
2102
|
...output,
|
|
2103
2103
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2106,25 +2106,25 @@ const deserializeAws_json1_1UploadLayerPartCommandError = async (output, context
|
|
|
2106
2106
|
switch (errorCode) {
|
|
2107
2107
|
case "InvalidLayerPartException":
|
|
2108
2108
|
case "com.amazonaws.ecr#InvalidLayerPartException":
|
|
2109
|
-
throw await
|
|
2109
|
+
throw await de_InvalidLayerPartExceptionRes(parsedOutput, context);
|
|
2110
2110
|
case "InvalidParameterException":
|
|
2111
2111
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2112
|
-
throw await
|
|
2112
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2113
2113
|
case "KmsException":
|
|
2114
2114
|
case "com.amazonaws.ecr#KmsException":
|
|
2115
|
-
throw await
|
|
2115
|
+
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
2116
2116
|
case "LimitExceededException":
|
|
2117
2117
|
case "com.amazonaws.ecr#LimitExceededException":
|
|
2118
|
-
throw await
|
|
2118
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2119
2119
|
case "RepositoryNotFoundException":
|
|
2120
2120
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2121
|
-
throw await
|
|
2121
|
+
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
2122
2122
|
case "ServerException":
|
|
2123
2123
|
case "com.amazonaws.ecr#ServerException":
|
|
2124
|
-
throw await
|
|
2124
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2125
2125
|
case "UploadNotFoundException":
|
|
2126
2126
|
case "com.amazonaws.ecr#UploadNotFoundException":
|
|
2127
|
-
throw await
|
|
2127
|
+
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
2128
2128
|
default:
|
|
2129
2129
|
const parsedBody = parsedOutput.body;
|
|
2130
2130
|
throwDefaultError({
|
|
@@ -2135,581 +2135,577 @@ const deserializeAws_json1_1UploadLayerPartCommandError = async (output, context
|
|
|
2135
2135
|
});
|
|
2136
2136
|
}
|
|
2137
2137
|
};
|
|
2138
|
-
const
|
|
2138
|
+
const de_EmptyUploadExceptionRes = async (parsedOutput, context) => {
|
|
2139
2139
|
const body = parsedOutput.body;
|
|
2140
|
-
const deserialized =
|
|
2140
|
+
const deserialized = de_EmptyUploadException(body, context);
|
|
2141
2141
|
const exception = new EmptyUploadException({
|
|
2142
2142
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2143
2143
|
...deserialized,
|
|
2144
2144
|
});
|
|
2145
2145
|
return __decorateServiceException(exception, body);
|
|
2146
2146
|
};
|
|
2147
|
-
const
|
|
2147
|
+
const de_ImageAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2148
2148
|
const body = parsedOutput.body;
|
|
2149
|
-
const deserialized =
|
|
2149
|
+
const deserialized = de_ImageAlreadyExistsException(body, context);
|
|
2150
2150
|
const exception = new ImageAlreadyExistsException({
|
|
2151
2151
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2152
2152
|
...deserialized,
|
|
2153
2153
|
});
|
|
2154
2154
|
return __decorateServiceException(exception, body);
|
|
2155
2155
|
};
|
|
2156
|
-
const
|
|
2156
|
+
const de_ImageDigestDoesNotMatchExceptionRes = async (parsedOutput, context) => {
|
|
2157
2157
|
const body = parsedOutput.body;
|
|
2158
|
-
const deserialized =
|
|
2158
|
+
const deserialized = de_ImageDigestDoesNotMatchException(body, context);
|
|
2159
2159
|
const exception = new ImageDigestDoesNotMatchException({
|
|
2160
2160
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2161
2161
|
...deserialized,
|
|
2162
2162
|
});
|
|
2163
2163
|
return __decorateServiceException(exception, body);
|
|
2164
2164
|
};
|
|
2165
|
-
const
|
|
2165
|
+
const de_ImageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2166
2166
|
const body = parsedOutput.body;
|
|
2167
|
-
const deserialized =
|
|
2167
|
+
const deserialized = de_ImageNotFoundException(body, context);
|
|
2168
2168
|
const exception = new ImageNotFoundException({
|
|
2169
2169
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2170
2170
|
...deserialized,
|
|
2171
2171
|
});
|
|
2172
2172
|
return __decorateServiceException(exception, body);
|
|
2173
2173
|
};
|
|
2174
|
-
const
|
|
2174
|
+
const de_ImageTagAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2175
2175
|
const body = parsedOutput.body;
|
|
2176
|
-
const deserialized =
|
|
2176
|
+
const deserialized = de_ImageTagAlreadyExistsException(body, context);
|
|
2177
2177
|
const exception = new ImageTagAlreadyExistsException({
|
|
2178
2178
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2179
2179
|
...deserialized,
|
|
2180
2180
|
});
|
|
2181
2181
|
return __decorateServiceException(exception, body);
|
|
2182
2182
|
};
|
|
2183
|
-
const
|
|
2183
|
+
const de_InvalidLayerExceptionRes = async (parsedOutput, context) => {
|
|
2184
2184
|
const body = parsedOutput.body;
|
|
2185
|
-
const deserialized =
|
|
2185
|
+
const deserialized = de_InvalidLayerException(body, context);
|
|
2186
2186
|
const exception = new InvalidLayerException({
|
|
2187
2187
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2188
2188
|
...deserialized,
|
|
2189
2189
|
});
|
|
2190
2190
|
return __decorateServiceException(exception, body);
|
|
2191
2191
|
};
|
|
2192
|
-
const
|
|
2192
|
+
const de_InvalidLayerPartExceptionRes = async (parsedOutput, context) => {
|
|
2193
2193
|
const body = parsedOutput.body;
|
|
2194
|
-
const deserialized =
|
|
2194
|
+
const deserialized = de_InvalidLayerPartException(body, context);
|
|
2195
2195
|
const exception = new InvalidLayerPartException({
|
|
2196
2196
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2197
2197
|
...deserialized,
|
|
2198
2198
|
});
|
|
2199
2199
|
return __decorateServiceException(exception, body);
|
|
2200
2200
|
};
|
|
2201
|
-
const
|
|
2201
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
2202
2202
|
const body = parsedOutput.body;
|
|
2203
|
-
const deserialized =
|
|
2203
|
+
const deserialized = de_InvalidParameterException(body, context);
|
|
2204
2204
|
const exception = new InvalidParameterException({
|
|
2205
2205
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2206
2206
|
...deserialized,
|
|
2207
2207
|
});
|
|
2208
2208
|
return __decorateServiceException(exception, body);
|
|
2209
2209
|
};
|
|
2210
|
-
const
|
|
2210
|
+
const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
|
|
2211
2211
|
const body = parsedOutput.body;
|
|
2212
|
-
const deserialized =
|
|
2212
|
+
const deserialized = de_InvalidTagParameterException(body, context);
|
|
2213
2213
|
const exception = new InvalidTagParameterException({
|
|
2214
2214
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2215
2215
|
...deserialized,
|
|
2216
2216
|
});
|
|
2217
2217
|
return __decorateServiceException(exception, body);
|
|
2218
2218
|
};
|
|
2219
|
-
const
|
|
2219
|
+
const de_KmsExceptionRes = async (parsedOutput, context) => {
|
|
2220
2220
|
const body = parsedOutput.body;
|
|
2221
|
-
const deserialized =
|
|
2221
|
+
const deserialized = de_KmsException(body, context);
|
|
2222
2222
|
const exception = new KmsException({
|
|
2223
2223
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2224
2224
|
...deserialized,
|
|
2225
2225
|
});
|
|
2226
2226
|
return __decorateServiceException(exception, body);
|
|
2227
2227
|
};
|
|
2228
|
-
const
|
|
2228
|
+
const de_LayerAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2229
2229
|
const body = parsedOutput.body;
|
|
2230
|
-
const deserialized =
|
|
2230
|
+
const deserialized = de_LayerAlreadyExistsException(body, context);
|
|
2231
2231
|
const exception = new LayerAlreadyExistsException({
|
|
2232
2232
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2233
2233
|
...deserialized,
|
|
2234
2234
|
});
|
|
2235
2235
|
return __decorateServiceException(exception, body);
|
|
2236
2236
|
};
|
|
2237
|
-
const
|
|
2237
|
+
const de_LayerInaccessibleExceptionRes = async (parsedOutput, context) => {
|
|
2238
2238
|
const body = parsedOutput.body;
|
|
2239
|
-
const deserialized =
|
|
2239
|
+
const deserialized = de_LayerInaccessibleException(body, context);
|
|
2240
2240
|
const exception = new LayerInaccessibleException({
|
|
2241
2241
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2242
2242
|
...deserialized,
|
|
2243
2243
|
});
|
|
2244
2244
|
return __decorateServiceException(exception, body);
|
|
2245
2245
|
};
|
|
2246
|
-
const
|
|
2246
|
+
const de_LayerPartTooSmallExceptionRes = async (parsedOutput, context) => {
|
|
2247
2247
|
const body = parsedOutput.body;
|
|
2248
|
-
const deserialized =
|
|
2248
|
+
const deserialized = de_LayerPartTooSmallException(body, context);
|
|
2249
2249
|
const exception = new LayerPartTooSmallException({
|
|
2250
2250
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2251
2251
|
...deserialized,
|
|
2252
2252
|
});
|
|
2253
2253
|
return __decorateServiceException(exception, body);
|
|
2254
2254
|
};
|
|
2255
|
-
const
|
|
2255
|
+
const de_LayersNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2256
2256
|
const body = parsedOutput.body;
|
|
2257
|
-
const deserialized =
|
|
2257
|
+
const deserialized = de_LayersNotFoundException(body, context);
|
|
2258
2258
|
const exception = new LayersNotFoundException({
|
|
2259
2259
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2260
2260
|
...deserialized,
|
|
2261
2261
|
});
|
|
2262
2262
|
return __decorateServiceException(exception, body);
|
|
2263
2263
|
};
|
|
2264
|
-
const
|
|
2264
|
+
const de_LifecyclePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2265
2265
|
const body = parsedOutput.body;
|
|
2266
|
-
const deserialized =
|
|
2266
|
+
const deserialized = de_LifecyclePolicyNotFoundException(body, context);
|
|
2267
2267
|
const exception = new LifecyclePolicyNotFoundException({
|
|
2268
2268
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2269
2269
|
...deserialized,
|
|
2270
2270
|
});
|
|
2271
2271
|
return __decorateServiceException(exception, body);
|
|
2272
2272
|
};
|
|
2273
|
-
const
|
|
2273
|
+
const de_LifecyclePolicyPreviewInProgressExceptionRes = async (parsedOutput, context) => {
|
|
2274
2274
|
const body = parsedOutput.body;
|
|
2275
|
-
const deserialized =
|
|
2275
|
+
const deserialized = de_LifecyclePolicyPreviewInProgressException(body, context);
|
|
2276
2276
|
const exception = new LifecyclePolicyPreviewInProgressException({
|
|
2277
2277
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2278
2278
|
...deserialized,
|
|
2279
2279
|
});
|
|
2280
2280
|
return __decorateServiceException(exception, body);
|
|
2281
2281
|
};
|
|
2282
|
-
const
|
|
2282
|
+
const de_LifecyclePolicyPreviewNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2283
2283
|
const body = parsedOutput.body;
|
|
2284
|
-
const deserialized =
|
|
2284
|
+
const deserialized = de_LifecyclePolicyPreviewNotFoundException(body, context);
|
|
2285
2285
|
const exception = new LifecyclePolicyPreviewNotFoundException({
|
|
2286
2286
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2287
2287
|
...deserialized,
|
|
2288
2288
|
});
|
|
2289
2289
|
return __decorateServiceException(exception, body);
|
|
2290
2290
|
};
|
|
2291
|
-
const
|
|
2291
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2292
2292
|
const body = parsedOutput.body;
|
|
2293
|
-
const deserialized =
|
|
2293
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
2294
2294
|
const exception = new LimitExceededException({
|
|
2295
2295
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2296
2296
|
...deserialized,
|
|
2297
2297
|
});
|
|
2298
2298
|
return __decorateServiceException(exception, body);
|
|
2299
2299
|
};
|
|
2300
|
-
const
|
|
2300
|
+
const de_PullThroughCacheRuleAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2301
2301
|
const body = parsedOutput.body;
|
|
2302
|
-
const deserialized =
|
|
2302
|
+
const deserialized = de_PullThroughCacheRuleAlreadyExistsException(body, context);
|
|
2303
2303
|
const exception = new PullThroughCacheRuleAlreadyExistsException({
|
|
2304
2304
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2305
2305
|
...deserialized,
|
|
2306
2306
|
});
|
|
2307
2307
|
return __decorateServiceException(exception, body);
|
|
2308
2308
|
};
|
|
2309
|
-
const
|
|
2309
|
+
const de_PullThroughCacheRuleNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2310
2310
|
const body = parsedOutput.body;
|
|
2311
|
-
const deserialized =
|
|
2311
|
+
const deserialized = de_PullThroughCacheRuleNotFoundException(body, context);
|
|
2312
2312
|
const exception = new PullThroughCacheRuleNotFoundException({
|
|
2313
2313
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2314
2314
|
...deserialized,
|
|
2315
2315
|
});
|
|
2316
2316
|
return __decorateServiceException(exception, body);
|
|
2317
2317
|
};
|
|
2318
|
-
const
|
|
2318
|
+
const de_ReferencedImagesNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2319
2319
|
const body = parsedOutput.body;
|
|
2320
|
-
const deserialized =
|
|
2320
|
+
const deserialized = de_ReferencedImagesNotFoundException(body, context);
|
|
2321
2321
|
const exception = new ReferencedImagesNotFoundException({
|
|
2322
2322
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2323
2323
|
...deserialized,
|
|
2324
2324
|
});
|
|
2325
2325
|
return __decorateServiceException(exception, body);
|
|
2326
2326
|
};
|
|
2327
|
-
const
|
|
2327
|
+
const de_RegistryPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2328
2328
|
const body = parsedOutput.body;
|
|
2329
|
-
const deserialized =
|
|
2329
|
+
const deserialized = de_RegistryPolicyNotFoundException(body, context);
|
|
2330
2330
|
const exception = new RegistryPolicyNotFoundException({
|
|
2331
2331
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2332
2332
|
...deserialized,
|
|
2333
2333
|
});
|
|
2334
2334
|
return __decorateServiceException(exception, body);
|
|
2335
2335
|
};
|
|
2336
|
-
const
|
|
2336
|
+
const de_RepositoryAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2337
2337
|
const body = parsedOutput.body;
|
|
2338
|
-
const deserialized =
|
|
2338
|
+
const deserialized = de_RepositoryAlreadyExistsException(body, context);
|
|
2339
2339
|
const exception = new RepositoryAlreadyExistsException({
|
|
2340
2340
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2341
2341
|
...deserialized,
|
|
2342
2342
|
});
|
|
2343
2343
|
return __decorateServiceException(exception, body);
|
|
2344
2344
|
};
|
|
2345
|
-
const
|
|
2345
|
+
const de_RepositoryNotEmptyExceptionRes = async (parsedOutput, context) => {
|
|
2346
2346
|
const body = parsedOutput.body;
|
|
2347
|
-
const deserialized =
|
|
2347
|
+
const deserialized = de_RepositoryNotEmptyException(body, context);
|
|
2348
2348
|
const exception = new RepositoryNotEmptyException({
|
|
2349
2349
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2350
2350
|
...deserialized,
|
|
2351
2351
|
});
|
|
2352
2352
|
return __decorateServiceException(exception, body);
|
|
2353
2353
|
};
|
|
2354
|
-
const
|
|
2354
|
+
const de_RepositoryNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2355
2355
|
const body = parsedOutput.body;
|
|
2356
|
-
const deserialized =
|
|
2356
|
+
const deserialized = de_RepositoryNotFoundException(body, context);
|
|
2357
2357
|
const exception = new RepositoryNotFoundException({
|
|
2358
2358
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2359
2359
|
...deserialized,
|
|
2360
2360
|
});
|
|
2361
2361
|
return __decorateServiceException(exception, body);
|
|
2362
2362
|
};
|
|
2363
|
-
const
|
|
2363
|
+
const de_RepositoryPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2364
2364
|
const body = parsedOutput.body;
|
|
2365
|
-
const deserialized =
|
|
2365
|
+
const deserialized = de_RepositoryPolicyNotFoundException(body, context);
|
|
2366
2366
|
const exception = new RepositoryPolicyNotFoundException({
|
|
2367
2367
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2368
2368
|
...deserialized,
|
|
2369
2369
|
});
|
|
2370
2370
|
return __decorateServiceException(exception, body);
|
|
2371
2371
|
};
|
|
2372
|
-
const
|
|
2372
|
+
const de_ScanNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2373
2373
|
const body = parsedOutput.body;
|
|
2374
|
-
const deserialized =
|
|
2374
|
+
const deserialized = de_ScanNotFoundException(body, context);
|
|
2375
2375
|
const exception = new ScanNotFoundException({
|
|
2376
2376
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2377
2377
|
...deserialized,
|
|
2378
2378
|
});
|
|
2379
2379
|
return __decorateServiceException(exception, body);
|
|
2380
2380
|
};
|
|
2381
|
-
const
|
|
2381
|
+
const de_ServerExceptionRes = async (parsedOutput, context) => {
|
|
2382
2382
|
const body = parsedOutput.body;
|
|
2383
|
-
const deserialized =
|
|
2383
|
+
const deserialized = de_ServerException(body, context);
|
|
2384
2384
|
const exception = new ServerException({
|
|
2385
2385
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2386
2386
|
...deserialized,
|
|
2387
2387
|
});
|
|
2388
2388
|
return __decorateServiceException(exception, body);
|
|
2389
2389
|
};
|
|
2390
|
-
const
|
|
2390
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
2391
2391
|
const body = parsedOutput.body;
|
|
2392
|
-
const deserialized =
|
|
2392
|
+
const deserialized = de_TooManyTagsException(body, context);
|
|
2393
2393
|
const exception = new TooManyTagsException({
|
|
2394
2394
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2395
2395
|
...deserialized,
|
|
2396
2396
|
});
|
|
2397
2397
|
return __decorateServiceException(exception, body);
|
|
2398
2398
|
};
|
|
2399
|
-
const
|
|
2399
|
+
const de_UnsupportedImageTypeExceptionRes = async (parsedOutput, context) => {
|
|
2400
2400
|
const body = parsedOutput.body;
|
|
2401
|
-
const deserialized =
|
|
2401
|
+
const deserialized = de_UnsupportedImageTypeException(body, context);
|
|
2402
2402
|
const exception = new UnsupportedImageTypeException({
|
|
2403
2403
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2404
2404
|
...deserialized,
|
|
2405
2405
|
});
|
|
2406
2406
|
return __decorateServiceException(exception, body);
|
|
2407
2407
|
};
|
|
2408
|
-
const
|
|
2408
|
+
const de_UnsupportedUpstreamRegistryExceptionRes = async (parsedOutput, context) => {
|
|
2409
2409
|
const body = parsedOutput.body;
|
|
2410
|
-
const deserialized =
|
|
2410
|
+
const deserialized = de_UnsupportedUpstreamRegistryException(body, context);
|
|
2411
2411
|
const exception = new UnsupportedUpstreamRegistryException({
|
|
2412
2412
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2413
2413
|
...deserialized,
|
|
2414
2414
|
});
|
|
2415
2415
|
return __decorateServiceException(exception, body);
|
|
2416
2416
|
};
|
|
2417
|
-
const
|
|
2417
|
+
const de_UploadNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2418
2418
|
const body = parsedOutput.body;
|
|
2419
|
-
const deserialized =
|
|
2419
|
+
const deserialized = de_UploadNotFoundException(body, context);
|
|
2420
2420
|
const exception = new UploadNotFoundException({
|
|
2421
2421
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2422
2422
|
...deserialized,
|
|
2423
2423
|
});
|
|
2424
2424
|
return __decorateServiceException(exception, body);
|
|
2425
2425
|
};
|
|
2426
|
-
const
|
|
2426
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2427
2427
|
const body = parsedOutput.body;
|
|
2428
|
-
const deserialized =
|
|
2428
|
+
const deserialized = de_ValidationException(body, context);
|
|
2429
2429
|
const exception = new ValidationException({
|
|
2430
2430
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2431
2431
|
...deserialized,
|
|
2432
2432
|
});
|
|
2433
2433
|
return __decorateServiceException(exception, body);
|
|
2434
2434
|
};
|
|
2435
|
-
const
|
|
2435
|
+
const se_BatchCheckLayerAvailabilityRequest = (input, context) => {
|
|
2436
2436
|
return {
|
|
2437
2437
|
...(input.layerDigests != null && {
|
|
2438
|
-
layerDigests:
|
|
2438
|
+
layerDigests: se_BatchedOperationLayerDigestList(input.layerDigests, context),
|
|
2439
2439
|
}),
|
|
2440
2440
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2441
2441
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2442
2442
|
};
|
|
2443
2443
|
};
|
|
2444
|
-
const
|
|
2444
|
+
const se_BatchDeleteImageRequest = (input, context) => {
|
|
2445
2445
|
return {
|
|
2446
|
-
...(input.imageIds != null && { imageIds:
|
|
2446
|
+
...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
|
|
2447
2447
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2448
2448
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2449
2449
|
};
|
|
2450
2450
|
};
|
|
2451
|
-
const
|
|
2451
|
+
const se_BatchedOperationLayerDigestList = (input, context) => {
|
|
2452
2452
|
return input
|
|
2453
2453
|
.filter((e) => e != null)
|
|
2454
2454
|
.map((entry) => {
|
|
2455
2455
|
return entry;
|
|
2456
2456
|
});
|
|
2457
2457
|
};
|
|
2458
|
-
const
|
|
2458
|
+
const se_BatchGetImageRequest = (input, context) => {
|
|
2459
2459
|
return {
|
|
2460
2460
|
...(input.acceptedMediaTypes != null && {
|
|
2461
|
-
acceptedMediaTypes:
|
|
2461
|
+
acceptedMediaTypes: se_MediaTypeList(input.acceptedMediaTypes, context),
|
|
2462
2462
|
}),
|
|
2463
|
-
...(input.imageIds != null && { imageIds:
|
|
2463
|
+
...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
|
|
2464
2464
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2465
2465
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2466
2466
|
};
|
|
2467
2467
|
};
|
|
2468
|
-
const
|
|
2468
|
+
const se_BatchGetRepositoryScanningConfigurationRequest = (input, context) => {
|
|
2469
2469
|
return {
|
|
2470
2470
|
...(input.repositoryNames != null && {
|
|
2471
|
-
repositoryNames:
|
|
2471
|
+
repositoryNames: se_ScanningConfigurationRepositoryNameList(input.repositoryNames, context),
|
|
2472
2472
|
}),
|
|
2473
2473
|
};
|
|
2474
2474
|
};
|
|
2475
|
-
const
|
|
2475
|
+
const se_CompleteLayerUploadRequest = (input, context) => {
|
|
2476
2476
|
return {
|
|
2477
|
-
...(input.layerDigests != null && {
|
|
2478
|
-
layerDigests: serializeAws_json1_1LayerDigestList(input.layerDigests, context),
|
|
2479
|
-
}),
|
|
2477
|
+
...(input.layerDigests != null && { layerDigests: se_LayerDigestList(input.layerDigests, context) }),
|
|
2480
2478
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2481
2479
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2482
2480
|
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
2483
2481
|
};
|
|
2484
2482
|
};
|
|
2485
|
-
const
|
|
2483
|
+
const se_CreatePullThroughCacheRuleRequest = (input, context) => {
|
|
2486
2484
|
return {
|
|
2487
2485
|
...(input.ecrRepositoryPrefix != null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }),
|
|
2488
2486
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2489
2487
|
...(input.upstreamRegistryUrl != null && { upstreamRegistryUrl: input.upstreamRegistryUrl }),
|
|
2490
2488
|
};
|
|
2491
2489
|
};
|
|
2492
|
-
const
|
|
2490
|
+
const se_CreateRepositoryRequest = (input, context) => {
|
|
2493
2491
|
return {
|
|
2494
2492
|
...(input.encryptionConfiguration != null && {
|
|
2495
|
-
encryptionConfiguration:
|
|
2493
|
+
encryptionConfiguration: se_EncryptionConfiguration(input.encryptionConfiguration, context),
|
|
2496
2494
|
}),
|
|
2497
2495
|
...(input.imageScanningConfiguration != null && {
|
|
2498
|
-
imageScanningConfiguration:
|
|
2496
|
+
imageScanningConfiguration: se_ImageScanningConfiguration(input.imageScanningConfiguration, context),
|
|
2499
2497
|
}),
|
|
2500
2498
|
...(input.imageTagMutability != null && { imageTagMutability: input.imageTagMutability }),
|
|
2501
2499
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2502
2500
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2503
|
-
...(input.tags != null && { tags:
|
|
2501
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2504
2502
|
};
|
|
2505
2503
|
};
|
|
2506
|
-
const
|
|
2504
|
+
const se_DeleteLifecyclePolicyRequest = (input, context) => {
|
|
2507
2505
|
return {
|
|
2508
2506
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2509
2507
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2510
2508
|
};
|
|
2511
2509
|
};
|
|
2512
|
-
const
|
|
2510
|
+
const se_DeletePullThroughCacheRuleRequest = (input, context) => {
|
|
2513
2511
|
return {
|
|
2514
2512
|
...(input.ecrRepositoryPrefix != null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }),
|
|
2515
2513
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2516
2514
|
};
|
|
2517
2515
|
};
|
|
2518
|
-
const
|
|
2516
|
+
const se_DeleteRegistryPolicyRequest = (input, context) => {
|
|
2519
2517
|
return {};
|
|
2520
2518
|
};
|
|
2521
|
-
const
|
|
2519
|
+
const se_DeleteRepositoryPolicyRequest = (input, context) => {
|
|
2522
2520
|
return {
|
|
2523
2521
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2524
2522
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2525
2523
|
};
|
|
2526
2524
|
};
|
|
2527
|
-
const
|
|
2525
|
+
const se_DeleteRepositoryRequest = (input, context) => {
|
|
2528
2526
|
return {
|
|
2529
2527
|
...(input.force != null && { force: input.force }),
|
|
2530
2528
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2531
2529
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2532
2530
|
};
|
|
2533
2531
|
};
|
|
2534
|
-
const
|
|
2532
|
+
const se_DescribeImageReplicationStatusRequest = (input, context) => {
|
|
2535
2533
|
return {
|
|
2536
|
-
...(input.imageId != null && { imageId:
|
|
2534
|
+
...(input.imageId != null && { imageId: se_ImageIdentifier(input.imageId, context) }),
|
|
2537
2535
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2538
2536
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2539
2537
|
};
|
|
2540
2538
|
};
|
|
2541
|
-
const
|
|
2539
|
+
const se_DescribeImageScanFindingsRequest = (input, context) => {
|
|
2542
2540
|
return {
|
|
2543
|
-
...(input.imageId != null && { imageId:
|
|
2541
|
+
...(input.imageId != null && { imageId: se_ImageIdentifier(input.imageId, context) }),
|
|
2544
2542
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2545
2543
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2546
2544
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2547
2545
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2548
2546
|
};
|
|
2549
2547
|
};
|
|
2550
|
-
const
|
|
2548
|
+
const se_DescribeImagesFilter = (input, context) => {
|
|
2551
2549
|
return {
|
|
2552
2550
|
...(input.tagStatus != null && { tagStatus: input.tagStatus }),
|
|
2553
2551
|
};
|
|
2554
2552
|
};
|
|
2555
|
-
const
|
|
2553
|
+
const se_DescribeImagesRequest = (input, context) => {
|
|
2556
2554
|
return {
|
|
2557
|
-
...(input.filter != null && { filter:
|
|
2558
|
-
...(input.imageIds != null && { imageIds:
|
|
2555
|
+
...(input.filter != null && { filter: se_DescribeImagesFilter(input.filter, context) }),
|
|
2556
|
+
...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
|
|
2559
2557
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2560
2558
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2561
2559
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2562
2560
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2563
2561
|
};
|
|
2564
2562
|
};
|
|
2565
|
-
const
|
|
2563
|
+
const se_DescribePullThroughCacheRulesRequest = (input, context) => {
|
|
2566
2564
|
return {
|
|
2567
2565
|
...(input.ecrRepositoryPrefixes != null && {
|
|
2568
|
-
ecrRepositoryPrefixes:
|
|
2566
|
+
ecrRepositoryPrefixes: se_PullThroughCacheRuleRepositoryPrefixList(input.ecrRepositoryPrefixes, context),
|
|
2569
2567
|
}),
|
|
2570
2568
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2571
2569
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2572
2570
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2573
2571
|
};
|
|
2574
2572
|
};
|
|
2575
|
-
const
|
|
2573
|
+
const se_DescribeRegistryRequest = (input, context) => {
|
|
2576
2574
|
return {};
|
|
2577
2575
|
};
|
|
2578
|
-
const
|
|
2576
|
+
const se_DescribeRepositoriesRequest = (input, context) => {
|
|
2579
2577
|
return {
|
|
2580
2578
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2581
2579
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2582
2580
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2583
|
-
...(input.repositoryNames != null && {
|
|
2584
|
-
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
2585
|
-
}),
|
|
2581
|
+
...(input.repositoryNames != null && { repositoryNames: se_RepositoryNameList(input.repositoryNames, context) }),
|
|
2586
2582
|
};
|
|
2587
2583
|
};
|
|
2588
|
-
const
|
|
2584
|
+
const se_EncryptionConfiguration = (input, context) => {
|
|
2589
2585
|
return {
|
|
2590
2586
|
...(input.encryptionType != null && { encryptionType: input.encryptionType }),
|
|
2591
2587
|
...(input.kmsKey != null && { kmsKey: input.kmsKey }),
|
|
2592
2588
|
};
|
|
2593
2589
|
};
|
|
2594
|
-
const
|
|
2590
|
+
const se_GetAuthorizationTokenRegistryIdList = (input, context) => {
|
|
2595
2591
|
return input
|
|
2596
2592
|
.filter((e) => e != null)
|
|
2597
2593
|
.map((entry) => {
|
|
2598
2594
|
return entry;
|
|
2599
2595
|
});
|
|
2600
2596
|
};
|
|
2601
|
-
const
|
|
2597
|
+
const se_GetAuthorizationTokenRequest = (input, context) => {
|
|
2602
2598
|
return {
|
|
2603
2599
|
...(input.registryIds != null && {
|
|
2604
|
-
registryIds:
|
|
2600
|
+
registryIds: se_GetAuthorizationTokenRegistryIdList(input.registryIds, context),
|
|
2605
2601
|
}),
|
|
2606
2602
|
};
|
|
2607
2603
|
};
|
|
2608
|
-
const
|
|
2604
|
+
const se_GetDownloadUrlForLayerRequest = (input, context) => {
|
|
2609
2605
|
return {
|
|
2610
2606
|
...(input.layerDigest != null && { layerDigest: input.layerDigest }),
|
|
2611
2607
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2612
2608
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2613
2609
|
};
|
|
2614
2610
|
};
|
|
2615
|
-
const
|
|
2611
|
+
const se_GetLifecyclePolicyPreviewRequest = (input, context) => {
|
|
2616
2612
|
return {
|
|
2617
|
-
...(input.filter != null && { filter:
|
|
2618
|
-
...(input.imageIds != null && { imageIds:
|
|
2613
|
+
...(input.filter != null && { filter: se_LifecyclePolicyPreviewFilter(input.filter, context) }),
|
|
2614
|
+
...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
|
|
2619
2615
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2620
2616
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2621
2617
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2622
2618
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2623
2619
|
};
|
|
2624
2620
|
};
|
|
2625
|
-
const
|
|
2621
|
+
const se_GetLifecyclePolicyRequest = (input, context) => {
|
|
2626
2622
|
return {
|
|
2627
2623
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2628
2624
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2629
2625
|
};
|
|
2630
2626
|
};
|
|
2631
|
-
const
|
|
2627
|
+
const se_GetRegistryPolicyRequest = (input, context) => {
|
|
2632
2628
|
return {};
|
|
2633
2629
|
};
|
|
2634
|
-
const
|
|
2630
|
+
const se_GetRegistryScanningConfigurationRequest = (input, context) => {
|
|
2635
2631
|
return {};
|
|
2636
2632
|
};
|
|
2637
|
-
const
|
|
2633
|
+
const se_GetRepositoryPolicyRequest = (input, context) => {
|
|
2638
2634
|
return {
|
|
2639
2635
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2640
2636
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2641
2637
|
};
|
|
2642
2638
|
};
|
|
2643
|
-
const
|
|
2639
|
+
const se_ImageIdentifier = (input, context) => {
|
|
2644
2640
|
return {
|
|
2645
2641
|
...(input.imageDigest != null && { imageDigest: input.imageDigest }),
|
|
2646
2642
|
...(input.imageTag != null && { imageTag: input.imageTag }),
|
|
2647
2643
|
};
|
|
2648
2644
|
};
|
|
2649
|
-
const
|
|
2645
|
+
const se_ImageIdentifierList = (input, context) => {
|
|
2650
2646
|
return input
|
|
2651
2647
|
.filter((e) => e != null)
|
|
2652
2648
|
.map((entry) => {
|
|
2653
|
-
return
|
|
2649
|
+
return se_ImageIdentifier(entry, context);
|
|
2654
2650
|
});
|
|
2655
2651
|
};
|
|
2656
|
-
const
|
|
2652
|
+
const se_ImageScanningConfiguration = (input, context) => {
|
|
2657
2653
|
return {
|
|
2658
2654
|
...(input.scanOnPush != null && { scanOnPush: input.scanOnPush }),
|
|
2659
2655
|
};
|
|
2660
2656
|
};
|
|
2661
|
-
const
|
|
2657
|
+
const se_InitiateLayerUploadRequest = (input, context) => {
|
|
2662
2658
|
return {
|
|
2663
2659
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2664
2660
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2665
2661
|
};
|
|
2666
2662
|
};
|
|
2667
|
-
const
|
|
2663
|
+
const se_LayerDigestList = (input, context) => {
|
|
2668
2664
|
return input
|
|
2669
2665
|
.filter((e) => e != null)
|
|
2670
2666
|
.map((entry) => {
|
|
2671
2667
|
return entry;
|
|
2672
2668
|
});
|
|
2673
2669
|
};
|
|
2674
|
-
const
|
|
2670
|
+
const se_LifecyclePolicyPreviewFilter = (input, context) => {
|
|
2675
2671
|
return {
|
|
2676
2672
|
...(input.tagStatus != null && { tagStatus: input.tagStatus }),
|
|
2677
2673
|
};
|
|
2678
2674
|
};
|
|
2679
|
-
const
|
|
2675
|
+
const se_ListImagesFilter = (input, context) => {
|
|
2680
2676
|
return {
|
|
2681
2677
|
...(input.tagStatus != null && { tagStatus: input.tagStatus }),
|
|
2682
2678
|
};
|
|
2683
2679
|
};
|
|
2684
|
-
const
|
|
2680
|
+
const se_ListImagesRequest = (input, context) => {
|
|
2685
2681
|
return {
|
|
2686
|
-
...(input.filter != null && { filter:
|
|
2682
|
+
...(input.filter != null && { filter: se_ListImagesFilter(input.filter, context) }),
|
|
2687
2683
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2688
2684
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2689
2685
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2690
2686
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2691
2687
|
};
|
|
2692
2688
|
};
|
|
2693
|
-
const
|
|
2689
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2694
2690
|
return {
|
|
2695
2691
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2696
2692
|
};
|
|
2697
2693
|
};
|
|
2698
|
-
const
|
|
2694
|
+
const se_MediaTypeList = (input, context) => {
|
|
2699
2695
|
return input
|
|
2700
2696
|
.filter((e) => e != null)
|
|
2701
2697
|
.map((entry) => {
|
|
2702
2698
|
return entry;
|
|
2703
2699
|
});
|
|
2704
2700
|
};
|
|
2705
|
-
const
|
|
2701
|
+
const se_PullThroughCacheRuleRepositoryPrefixList = (input, context) => {
|
|
2706
2702
|
return input
|
|
2707
2703
|
.filter((e) => e != null)
|
|
2708
2704
|
.map((entry) => {
|
|
2709
2705
|
return entry;
|
|
2710
2706
|
});
|
|
2711
2707
|
};
|
|
2712
|
-
const
|
|
2708
|
+
const se_PutImageRequest = (input, context) => {
|
|
2713
2709
|
return {
|
|
2714
2710
|
...(input.imageDigest != null && { imageDigest: input.imageDigest }),
|
|
2715
2711
|
...(input.imageManifest != null && { imageManifest: input.imageManifest }),
|
|
@@ -2719,138 +2715,136 @@ const serializeAws_json1_1PutImageRequest = (input, context) => {
|
|
|
2719
2715
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2720
2716
|
};
|
|
2721
2717
|
};
|
|
2722
|
-
const
|
|
2718
|
+
const se_PutImageScanningConfigurationRequest = (input, context) => {
|
|
2723
2719
|
return {
|
|
2724
2720
|
...(input.imageScanningConfiguration != null && {
|
|
2725
|
-
imageScanningConfiguration:
|
|
2721
|
+
imageScanningConfiguration: se_ImageScanningConfiguration(input.imageScanningConfiguration, context),
|
|
2726
2722
|
}),
|
|
2727
2723
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2728
2724
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2729
2725
|
};
|
|
2730
2726
|
};
|
|
2731
|
-
const
|
|
2727
|
+
const se_PutImageTagMutabilityRequest = (input, context) => {
|
|
2732
2728
|
return {
|
|
2733
2729
|
...(input.imageTagMutability != null && { imageTagMutability: input.imageTagMutability }),
|
|
2734
2730
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2735
2731
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2736
2732
|
};
|
|
2737
2733
|
};
|
|
2738
|
-
const
|
|
2734
|
+
const se_PutLifecyclePolicyRequest = (input, context) => {
|
|
2739
2735
|
return {
|
|
2740
2736
|
...(input.lifecyclePolicyText != null && { lifecyclePolicyText: input.lifecyclePolicyText }),
|
|
2741
2737
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2742
2738
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2743
2739
|
};
|
|
2744
2740
|
};
|
|
2745
|
-
const
|
|
2741
|
+
const se_PutRegistryPolicyRequest = (input, context) => {
|
|
2746
2742
|
return {
|
|
2747
2743
|
...(input.policyText != null && { policyText: input.policyText }),
|
|
2748
2744
|
};
|
|
2749
2745
|
};
|
|
2750
|
-
const
|
|
2746
|
+
const se_PutRegistryScanningConfigurationRequest = (input, context) => {
|
|
2751
2747
|
return {
|
|
2752
|
-
...(input.rules != null && { rules:
|
|
2748
|
+
...(input.rules != null && { rules: se_RegistryScanningRuleList(input.rules, context) }),
|
|
2753
2749
|
...(input.scanType != null && { scanType: input.scanType }),
|
|
2754
2750
|
};
|
|
2755
2751
|
};
|
|
2756
|
-
const
|
|
2752
|
+
const se_PutReplicationConfigurationRequest = (input, context) => {
|
|
2757
2753
|
return {
|
|
2758
2754
|
...(input.replicationConfiguration != null && {
|
|
2759
|
-
replicationConfiguration:
|
|
2755
|
+
replicationConfiguration: se_ReplicationConfiguration(input.replicationConfiguration, context),
|
|
2760
2756
|
}),
|
|
2761
2757
|
};
|
|
2762
2758
|
};
|
|
2763
|
-
const
|
|
2759
|
+
const se_RegistryScanningRule = (input, context) => {
|
|
2764
2760
|
return {
|
|
2765
2761
|
...(input.repositoryFilters != null && {
|
|
2766
|
-
repositoryFilters:
|
|
2762
|
+
repositoryFilters: se_ScanningRepositoryFilterList(input.repositoryFilters, context),
|
|
2767
2763
|
}),
|
|
2768
2764
|
...(input.scanFrequency != null && { scanFrequency: input.scanFrequency }),
|
|
2769
2765
|
};
|
|
2770
2766
|
};
|
|
2771
|
-
const
|
|
2767
|
+
const se_RegistryScanningRuleList = (input, context) => {
|
|
2772
2768
|
return input
|
|
2773
2769
|
.filter((e) => e != null)
|
|
2774
2770
|
.map((entry) => {
|
|
2775
|
-
return
|
|
2771
|
+
return se_RegistryScanningRule(entry, context);
|
|
2776
2772
|
});
|
|
2777
2773
|
};
|
|
2778
|
-
const
|
|
2774
|
+
const se_ReplicationConfiguration = (input, context) => {
|
|
2779
2775
|
return {
|
|
2780
|
-
...(input.rules != null && { rules:
|
|
2776
|
+
...(input.rules != null && { rules: se_ReplicationRuleList(input.rules, context) }),
|
|
2781
2777
|
};
|
|
2782
2778
|
};
|
|
2783
|
-
const
|
|
2779
|
+
const se_ReplicationDestination = (input, context) => {
|
|
2784
2780
|
return {
|
|
2785
2781
|
...(input.region != null && { region: input.region }),
|
|
2786
2782
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2787
2783
|
};
|
|
2788
2784
|
};
|
|
2789
|
-
const
|
|
2785
|
+
const se_ReplicationDestinationList = (input, context) => {
|
|
2790
2786
|
return input
|
|
2791
2787
|
.filter((e) => e != null)
|
|
2792
2788
|
.map((entry) => {
|
|
2793
|
-
return
|
|
2789
|
+
return se_ReplicationDestination(entry, context);
|
|
2794
2790
|
});
|
|
2795
2791
|
};
|
|
2796
|
-
const
|
|
2792
|
+
const se_ReplicationRule = (input, context) => {
|
|
2797
2793
|
return {
|
|
2798
|
-
...(input.destinations != null && {
|
|
2799
|
-
destinations: serializeAws_json1_1ReplicationDestinationList(input.destinations, context),
|
|
2800
|
-
}),
|
|
2794
|
+
...(input.destinations != null && { destinations: se_ReplicationDestinationList(input.destinations, context) }),
|
|
2801
2795
|
...(input.repositoryFilters != null && {
|
|
2802
|
-
repositoryFilters:
|
|
2796
|
+
repositoryFilters: se_RepositoryFilterList(input.repositoryFilters, context),
|
|
2803
2797
|
}),
|
|
2804
2798
|
};
|
|
2805
2799
|
};
|
|
2806
|
-
const
|
|
2800
|
+
const se_ReplicationRuleList = (input, context) => {
|
|
2807
2801
|
return input
|
|
2808
2802
|
.filter((e) => e != null)
|
|
2809
2803
|
.map((entry) => {
|
|
2810
|
-
return
|
|
2804
|
+
return se_ReplicationRule(entry, context);
|
|
2811
2805
|
});
|
|
2812
2806
|
};
|
|
2813
|
-
const
|
|
2807
|
+
const se_RepositoryFilter = (input, context) => {
|
|
2814
2808
|
return {
|
|
2815
2809
|
...(input.filter != null && { filter: input.filter }),
|
|
2816
2810
|
...(input.filterType != null && { filterType: input.filterType }),
|
|
2817
2811
|
};
|
|
2818
2812
|
};
|
|
2819
|
-
const
|
|
2813
|
+
const se_RepositoryFilterList = (input, context) => {
|
|
2820
2814
|
return input
|
|
2821
2815
|
.filter((e) => e != null)
|
|
2822
2816
|
.map((entry) => {
|
|
2823
|
-
return
|
|
2817
|
+
return se_RepositoryFilter(entry, context);
|
|
2824
2818
|
});
|
|
2825
2819
|
};
|
|
2826
|
-
const
|
|
2820
|
+
const se_RepositoryNameList = (input, context) => {
|
|
2827
2821
|
return input
|
|
2828
2822
|
.filter((e) => e != null)
|
|
2829
2823
|
.map((entry) => {
|
|
2830
2824
|
return entry;
|
|
2831
2825
|
});
|
|
2832
2826
|
};
|
|
2833
|
-
const
|
|
2827
|
+
const se_ScanningConfigurationRepositoryNameList = (input, context) => {
|
|
2834
2828
|
return input
|
|
2835
2829
|
.filter((e) => e != null)
|
|
2836
2830
|
.map((entry) => {
|
|
2837
2831
|
return entry;
|
|
2838
2832
|
});
|
|
2839
2833
|
};
|
|
2840
|
-
const
|
|
2834
|
+
const se_ScanningRepositoryFilter = (input, context) => {
|
|
2841
2835
|
return {
|
|
2842
2836
|
...(input.filter != null && { filter: input.filter }),
|
|
2843
2837
|
...(input.filterType != null && { filterType: input.filterType }),
|
|
2844
2838
|
};
|
|
2845
2839
|
};
|
|
2846
|
-
const
|
|
2840
|
+
const se_ScanningRepositoryFilterList = (input, context) => {
|
|
2847
2841
|
return input
|
|
2848
2842
|
.filter((e) => e != null)
|
|
2849
2843
|
.map((entry) => {
|
|
2850
|
-
return
|
|
2844
|
+
return se_ScanningRepositoryFilter(entry, context);
|
|
2851
2845
|
});
|
|
2852
2846
|
};
|
|
2853
|
-
const
|
|
2847
|
+
const se_SetRepositoryPolicyRequest = (input, context) => {
|
|
2854
2848
|
return {
|
|
2855
2849
|
...(input.force != null && { force: input.force }),
|
|
2856
2850
|
...(input.policyText != null && { policyText: input.policyText }),
|
|
@@ -2858,53 +2852,53 @@ const serializeAws_json1_1SetRepositoryPolicyRequest = (input, context) => {
|
|
|
2858
2852
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2859
2853
|
};
|
|
2860
2854
|
};
|
|
2861
|
-
const
|
|
2855
|
+
const se_StartImageScanRequest = (input, context) => {
|
|
2862
2856
|
return {
|
|
2863
|
-
...(input.imageId != null && { imageId:
|
|
2857
|
+
...(input.imageId != null && { imageId: se_ImageIdentifier(input.imageId, context) }),
|
|
2864
2858
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2865
2859
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2866
2860
|
};
|
|
2867
2861
|
};
|
|
2868
|
-
const
|
|
2862
|
+
const se_StartLifecyclePolicyPreviewRequest = (input, context) => {
|
|
2869
2863
|
return {
|
|
2870
2864
|
...(input.lifecyclePolicyText != null && { lifecyclePolicyText: input.lifecyclePolicyText }),
|
|
2871
2865
|
...(input.registryId != null && { registryId: input.registryId }),
|
|
2872
2866
|
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2873
2867
|
};
|
|
2874
2868
|
};
|
|
2875
|
-
const
|
|
2869
|
+
const se_Tag = (input, context) => {
|
|
2876
2870
|
return {
|
|
2877
2871
|
...(input.Key != null && { Key: input.Key }),
|
|
2878
2872
|
...(input.Value != null && { Value: input.Value }),
|
|
2879
2873
|
};
|
|
2880
2874
|
};
|
|
2881
|
-
const
|
|
2875
|
+
const se_TagKeyList = (input, context) => {
|
|
2882
2876
|
return input
|
|
2883
2877
|
.filter((e) => e != null)
|
|
2884
2878
|
.map((entry) => {
|
|
2885
2879
|
return entry;
|
|
2886
2880
|
});
|
|
2887
2881
|
};
|
|
2888
|
-
const
|
|
2882
|
+
const se_TagList = (input, context) => {
|
|
2889
2883
|
return input
|
|
2890
2884
|
.filter((e) => e != null)
|
|
2891
2885
|
.map((entry) => {
|
|
2892
|
-
return
|
|
2886
|
+
return se_Tag(entry, context);
|
|
2893
2887
|
});
|
|
2894
2888
|
};
|
|
2895
|
-
const
|
|
2889
|
+
const se_TagResourceRequest = (input, context) => {
|
|
2896
2890
|
return {
|
|
2897
2891
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2898
|
-
...(input.tags != null && { tags:
|
|
2892
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2899
2893
|
};
|
|
2900
2894
|
};
|
|
2901
|
-
const
|
|
2895
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
2902
2896
|
return {
|
|
2903
2897
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2904
|
-
...(input.tagKeys != null && { tagKeys:
|
|
2898
|
+
...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
|
|
2905
2899
|
};
|
|
2906
2900
|
};
|
|
2907
|
-
const
|
|
2901
|
+
const se_UploadLayerPartRequest = (input, context) => {
|
|
2908
2902
|
return {
|
|
2909
2903
|
...(input.layerPartBlob != null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) }),
|
|
2910
2904
|
...(input.partFirstByte != null && { partFirstByte: input.partFirstByte }),
|
|
@@ -2914,82 +2908,80 @@ const serializeAws_json1_1UploadLayerPartRequest = (input, context) => {
|
|
|
2914
2908
|
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
2915
2909
|
};
|
|
2916
2910
|
};
|
|
2917
|
-
const
|
|
2911
|
+
const de_Attribute = (output, context) => {
|
|
2918
2912
|
return {
|
|
2919
2913
|
key: __expectString(output.key),
|
|
2920
2914
|
value: __expectString(output.value),
|
|
2921
2915
|
};
|
|
2922
2916
|
};
|
|
2923
|
-
const
|
|
2917
|
+
const de_AttributeList = (output, context) => {
|
|
2924
2918
|
const retVal = (output || [])
|
|
2925
2919
|
.filter((e) => e != null)
|
|
2926
2920
|
.map((entry) => {
|
|
2927
2921
|
if (entry === null) {
|
|
2928
2922
|
return null;
|
|
2929
2923
|
}
|
|
2930
|
-
return
|
|
2924
|
+
return de_Attribute(entry, context);
|
|
2931
2925
|
});
|
|
2932
2926
|
return retVal;
|
|
2933
2927
|
};
|
|
2934
|
-
const
|
|
2928
|
+
const de_AuthorizationData = (output, context) => {
|
|
2935
2929
|
return {
|
|
2936
2930
|
authorizationToken: __expectString(output.authorizationToken),
|
|
2937
2931
|
expiresAt: output.expiresAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expiresAt))) : undefined,
|
|
2938
2932
|
proxyEndpoint: __expectString(output.proxyEndpoint),
|
|
2939
2933
|
};
|
|
2940
2934
|
};
|
|
2941
|
-
const
|
|
2935
|
+
const de_AuthorizationDataList = (output, context) => {
|
|
2942
2936
|
const retVal = (output || [])
|
|
2943
2937
|
.filter((e) => e != null)
|
|
2944
2938
|
.map((entry) => {
|
|
2945
2939
|
if (entry === null) {
|
|
2946
2940
|
return null;
|
|
2947
2941
|
}
|
|
2948
|
-
return
|
|
2942
|
+
return de_AuthorizationData(entry, context);
|
|
2949
2943
|
});
|
|
2950
2944
|
return retVal;
|
|
2951
2945
|
};
|
|
2952
|
-
const
|
|
2946
|
+
const de_AwsEcrContainerImageDetails = (output, context) => {
|
|
2953
2947
|
return {
|
|
2954
2948
|
architecture: __expectString(output.architecture),
|
|
2955
2949
|
author: __expectString(output.author),
|
|
2956
2950
|
imageHash: __expectString(output.imageHash),
|
|
2957
|
-
imageTags: output.imageTags != null ?
|
|
2951
|
+
imageTags: output.imageTags != null ? de_ImageTagsList(output.imageTags, context) : undefined,
|
|
2958
2952
|
platform: __expectString(output.platform),
|
|
2959
2953
|
pushedAt: output.pushedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pushedAt))) : undefined,
|
|
2960
2954
|
registry: __expectString(output.registry),
|
|
2961
2955
|
repositoryName: __expectString(output.repositoryName),
|
|
2962
2956
|
};
|
|
2963
2957
|
};
|
|
2964
|
-
const
|
|
2958
|
+
const de_BatchCheckLayerAvailabilityResponse = (output, context) => {
|
|
2965
2959
|
return {
|
|
2966
|
-
failures: output.failures != null ?
|
|
2967
|
-
layers: output.layers != null ?
|
|
2960
|
+
failures: output.failures != null ? de_LayerFailureList(output.failures, context) : undefined,
|
|
2961
|
+
layers: output.layers != null ? de_LayerList(output.layers, context) : undefined,
|
|
2968
2962
|
};
|
|
2969
2963
|
};
|
|
2970
|
-
const
|
|
2964
|
+
const de_BatchDeleteImageResponse = (output, context) => {
|
|
2971
2965
|
return {
|
|
2972
|
-
failures: output.failures != null ?
|
|
2973
|
-
imageIds: output.imageIds != null ?
|
|
2966
|
+
failures: output.failures != null ? de_ImageFailureList(output.failures, context) : undefined,
|
|
2967
|
+
imageIds: output.imageIds != null ? de_ImageIdentifierList(output.imageIds, context) : undefined,
|
|
2974
2968
|
};
|
|
2975
2969
|
};
|
|
2976
|
-
const
|
|
2970
|
+
const de_BatchGetImageResponse = (output, context) => {
|
|
2977
2971
|
return {
|
|
2978
|
-
failures: output.failures != null ?
|
|
2979
|
-
images: output.images != null ?
|
|
2972
|
+
failures: output.failures != null ? de_ImageFailureList(output.failures, context) : undefined,
|
|
2973
|
+
images: output.images != null ? de_ImageList(output.images, context) : undefined,
|
|
2980
2974
|
};
|
|
2981
2975
|
};
|
|
2982
|
-
const
|
|
2976
|
+
const de_BatchGetRepositoryScanningConfigurationResponse = (output, context) => {
|
|
2983
2977
|
return {
|
|
2984
|
-
failures: output.failures != null
|
|
2985
|
-
? deserializeAws_json1_1RepositoryScanningConfigurationFailureList(output.failures, context)
|
|
2986
|
-
: undefined,
|
|
2978
|
+
failures: output.failures != null ? de_RepositoryScanningConfigurationFailureList(output.failures, context) : undefined,
|
|
2987
2979
|
scanningConfigurations: output.scanningConfigurations != null
|
|
2988
|
-
?
|
|
2980
|
+
? de_RepositoryScanningConfigurationList(output.scanningConfigurations, context)
|
|
2989
2981
|
: undefined,
|
|
2990
2982
|
};
|
|
2991
2983
|
};
|
|
2992
|
-
const
|
|
2984
|
+
const de_CompleteLayerUploadResponse = (output, context) => {
|
|
2993
2985
|
return {
|
|
2994
2986
|
layerDigest: __expectString(output.layerDigest),
|
|
2995
2987
|
registryId: __expectString(output.registryId),
|
|
@@ -2997,7 +2989,7 @@ const deserializeAws_json1_1CompleteLayerUploadResponse = (output, context) => {
|
|
|
2997
2989
|
uploadId: __expectString(output.uploadId),
|
|
2998
2990
|
};
|
|
2999
2991
|
};
|
|
3000
|
-
const
|
|
2992
|
+
const de_CreatePullThroughCacheRuleResponse = (output, context) => {
|
|
3001
2993
|
return {
|
|
3002
2994
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
3003
2995
|
ecrRepositoryPrefix: __expectString(output.ecrRepositoryPrefix),
|
|
@@ -3005,12 +2997,12 @@ const deserializeAws_json1_1CreatePullThroughCacheRuleResponse = (output, contex
|
|
|
3005
2997
|
upstreamRegistryUrl: __expectString(output.upstreamRegistryUrl),
|
|
3006
2998
|
};
|
|
3007
2999
|
};
|
|
3008
|
-
const
|
|
3000
|
+
const de_CreateRepositoryResponse = (output, context) => {
|
|
3009
3001
|
return {
|
|
3010
|
-
repository: output.repository != null ?
|
|
3002
|
+
repository: output.repository != null ? de_Repository(output.repository, context) : undefined,
|
|
3011
3003
|
};
|
|
3012
3004
|
};
|
|
3013
|
-
const
|
|
3005
|
+
const de_CvssScore = (output, context) => {
|
|
3014
3006
|
return {
|
|
3015
3007
|
baseScore: __limitedParseDouble(output.baseScore),
|
|
3016
3008
|
scoringVector: __expectString(output.scoringVector),
|
|
@@ -3018,46 +3010,44 @@ const deserializeAws_json1_1CvssScore = (output, context) => {
|
|
|
3018
3010
|
version: __expectString(output.version),
|
|
3019
3011
|
};
|
|
3020
3012
|
};
|
|
3021
|
-
const
|
|
3013
|
+
const de_CvssScoreAdjustment = (output, context) => {
|
|
3022
3014
|
return {
|
|
3023
3015
|
metric: __expectString(output.metric),
|
|
3024
3016
|
reason: __expectString(output.reason),
|
|
3025
3017
|
};
|
|
3026
3018
|
};
|
|
3027
|
-
const
|
|
3019
|
+
const de_CvssScoreAdjustmentList = (output, context) => {
|
|
3028
3020
|
const retVal = (output || [])
|
|
3029
3021
|
.filter((e) => e != null)
|
|
3030
3022
|
.map((entry) => {
|
|
3031
3023
|
if (entry === null) {
|
|
3032
3024
|
return null;
|
|
3033
3025
|
}
|
|
3034
|
-
return
|
|
3026
|
+
return de_CvssScoreAdjustment(entry, context);
|
|
3035
3027
|
});
|
|
3036
3028
|
return retVal;
|
|
3037
3029
|
};
|
|
3038
|
-
const
|
|
3030
|
+
const de_CvssScoreDetails = (output, context) => {
|
|
3039
3031
|
return {
|
|
3040
|
-
adjustments: output.adjustments != null
|
|
3041
|
-
? deserializeAws_json1_1CvssScoreAdjustmentList(output.adjustments, context)
|
|
3042
|
-
: undefined,
|
|
3032
|
+
adjustments: output.adjustments != null ? de_CvssScoreAdjustmentList(output.adjustments, context) : undefined,
|
|
3043
3033
|
score: __limitedParseDouble(output.score),
|
|
3044
3034
|
scoreSource: __expectString(output.scoreSource),
|
|
3045
3035
|
scoringVector: __expectString(output.scoringVector),
|
|
3046
3036
|
version: __expectString(output.version),
|
|
3047
3037
|
};
|
|
3048
3038
|
};
|
|
3049
|
-
const
|
|
3039
|
+
const de_CvssScoreList = (output, context) => {
|
|
3050
3040
|
const retVal = (output || [])
|
|
3051
3041
|
.filter((e) => e != null)
|
|
3052
3042
|
.map((entry) => {
|
|
3053
3043
|
if (entry === null) {
|
|
3054
3044
|
return null;
|
|
3055
3045
|
}
|
|
3056
|
-
return
|
|
3046
|
+
return de_CvssScore(entry, context);
|
|
3057
3047
|
});
|
|
3058
3048
|
return retVal;
|
|
3059
3049
|
};
|
|
3060
|
-
const
|
|
3050
|
+
const de_DeleteLifecyclePolicyResponse = (output, context) => {
|
|
3061
3051
|
return {
|
|
3062
3052
|
lastEvaluatedAt: output.lastEvaluatedAt != null
|
|
3063
3053
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastEvaluatedAt)))
|
|
@@ -3067,7 +3057,7 @@ const deserializeAws_json1_1DeleteLifecyclePolicyResponse = (output, context) =>
|
|
|
3067
3057
|
repositoryName: __expectString(output.repositoryName),
|
|
3068
3058
|
};
|
|
3069
3059
|
};
|
|
3070
|
-
const
|
|
3060
|
+
const de_DeletePullThroughCacheRuleResponse = (output, context) => {
|
|
3071
3061
|
return {
|
|
3072
3062
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
3073
3063
|
ecrRepositoryPrefix: __expectString(output.ecrRepositoryPrefix),
|
|
@@ -3075,87 +3065,83 @@ const deserializeAws_json1_1DeletePullThroughCacheRuleResponse = (output, contex
|
|
|
3075
3065
|
upstreamRegistryUrl: __expectString(output.upstreamRegistryUrl),
|
|
3076
3066
|
};
|
|
3077
3067
|
};
|
|
3078
|
-
const
|
|
3068
|
+
const de_DeleteRegistryPolicyResponse = (output, context) => {
|
|
3079
3069
|
return {
|
|
3080
3070
|
policyText: __expectString(output.policyText),
|
|
3081
3071
|
registryId: __expectString(output.registryId),
|
|
3082
3072
|
};
|
|
3083
3073
|
};
|
|
3084
|
-
const
|
|
3074
|
+
const de_DeleteRepositoryPolicyResponse = (output, context) => {
|
|
3085
3075
|
return {
|
|
3086
3076
|
policyText: __expectString(output.policyText),
|
|
3087
3077
|
registryId: __expectString(output.registryId),
|
|
3088
3078
|
repositoryName: __expectString(output.repositoryName),
|
|
3089
3079
|
};
|
|
3090
3080
|
};
|
|
3091
|
-
const
|
|
3081
|
+
const de_DeleteRepositoryResponse = (output, context) => {
|
|
3092
3082
|
return {
|
|
3093
|
-
repository: output.repository != null ?
|
|
3083
|
+
repository: output.repository != null ? de_Repository(output.repository, context) : undefined,
|
|
3094
3084
|
};
|
|
3095
3085
|
};
|
|
3096
|
-
const
|
|
3086
|
+
const de_DescribeImageReplicationStatusResponse = (output, context) => {
|
|
3097
3087
|
return {
|
|
3098
|
-
imageId: output.imageId != null ?
|
|
3088
|
+
imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
|
|
3099
3089
|
replicationStatuses: output.replicationStatuses != null
|
|
3100
|
-
?
|
|
3090
|
+
? de_ImageReplicationStatusList(output.replicationStatuses, context)
|
|
3101
3091
|
: undefined,
|
|
3102
3092
|
repositoryName: __expectString(output.repositoryName),
|
|
3103
3093
|
};
|
|
3104
3094
|
};
|
|
3105
|
-
const
|
|
3095
|
+
const de_DescribeImageScanFindingsResponse = (output, context) => {
|
|
3106
3096
|
return {
|
|
3107
|
-
imageId: output.imageId != null ?
|
|
3108
|
-
imageScanFindings: output.imageScanFindings != null
|
|
3109
|
-
|
|
3110
|
-
: undefined,
|
|
3111
|
-
imageScanStatus: output.imageScanStatus != null
|
|
3112
|
-
? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
|
|
3113
|
-
: undefined,
|
|
3097
|
+
imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
|
|
3098
|
+
imageScanFindings: output.imageScanFindings != null ? de_ImageScanFindings(output.imageScanFindings, context) : undefined,
|
|
3099
|
+
imageScanStatus: output.imageScanStatus != null ? de_ImageScanStatus(output.imageScanStatus, context) : undefined,
|
|
3114
3100
|
nextToken: __expectString(output.nextToken),
|
|
3115
3101
|
registryId: __expectString(output.registryId),
|
|
3116
3102
|
repositoryName: __expectString(output.repositoryName),
|
|
3117
3103
|
};
|
|
3118
3104
|
};
|
|
3119
|
-
const
|
|
3105
|
+
const de_DescribeImagesResponse = (output, context) => {
|
|
3120
3106
|
return {
|
|
3121
|
-
imageDetails: output.imageDetails != null ?
|
|
3107
|
+
imageDetails: output.imageDetails != null ? de_ImageDetailList(output.imageDetails, context) : undefined,
|
|
3122
3108
|
nextToken: __expectString(output.nextToken),
|
|
3123
3109
|
};
|
|
3124
3110
|
};
|
|
3125
|
-
const
|
|
3111
|
+
const de_DescribePullThroughCacheRulesResponse = (output, context) => {
|
|
3126
3112
|
return {
|
|
3127
3113
|
nextToken: __expectString(output.nextToken),
|
|
3128
3114
|
pullThroughCacheRules: output.pullThroughCacheRules != null
|
|
3129
|
-
?
|
|
3115
|
+
? de_PullThroughCacheRuleList(output.pullThroughCacheRules, context)
|
|
3130
3116
|
: undefined,
|
|
3131
3117
|
};
|
|
3132
3118
|
};
|
|
3133
|
-
const
|
|
3119
|
+
const de_DescribeRegistryResponse = (output, context) => {
|
|
3134
3120
|
return {
|
|
3135
3121
|
registryId: __expectString(output.registryId),
|
|
3136
3122
|
replicationConfiguration: output.replicationConfiguration != null
|
|
3137
|
-
?
|
|
3123
|
+
? de_ReplicationConfiguration(output.replicationConfiguration, context)
|
|
3138
3124
|
: undefined,
|
|
3139
3125
|
};
|
|
3140
3126
|
};
|
|
3141
|
-
const
|
|
3127
|
+
const de_DescribeRepositoriesResponse = (output, context) => {
|
|
3142
3128
|
return {
|
|
3143
3129
|
nextToken: __expectString(output.nextToken),
|
|
3144
|
-
repositories: output.repositories != null ?
|
|
3130
|
+
repositories: output.repositories != null ? de_RepositoryList(output.repositories, context) : undefined,
|
|
3145
3131
|
};
|
|
3146
3132
|
};
|
|
3147
|
-
const
|
|
3133
|
+
const de_EmptyUploadException = (output, context) => {
|
|
3148
3134
|
return {
|
|
3149
3135
|
message: __expectString(output.message),
|
|
3150
3136
|
};
|
|
3151
3137
|
};
|
|
3152
|
-
const
|
|
3138
|
+
const de_EncryptionConfiguration = (output, context) => {
|
|
3153
3139
|
return {
|
|
3154
3140
|
encryptionType: __expectString(output.encryptionType),
|
|
3155
3141
|
kmsKey: __expectString(output.kmsKey),
|
|
3156
3142
|
};
|
|
3157
3143
|
};
|
|
3158
|
-
const
|
|
3144
|
+
const de_EnhancedImageScanFinding = (output, context) => {
|
|
3159
3145
|
return {
|
|
3160
3146
|
awsAccountId: __expectString(output.awsAccountId),
|
|
3161
3147
|
description: __expectString(output.description),
|
|
@@ -3167,12 +3153,12 @@ const deserializeAws_json1_1EnhancedImageScanFinding = (output, context) => {
|
|
|
3167
3153
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastObservedAt)))
|
|
3168
3154
|
: undefined,
|
|
3169
3155
|
packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
|
|
3170
|
-
?
|
|
3156
|
+
? de_PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
|
|
3171
3157
|
: undefined,
|
|
3172
|
-
remediation: output.remediation != null ?
|
|
3173
|
-
resources: output.resources != null ?
|
|
3158
|
+
remediation: output.remediation != null ? de_Remediation(output.remediation, context) : undefined,
|
|
3159
|
+
resources: output.resources != null ? de_ResourceList(output.resources, context) : undefined,
|
|
3174
3160
|
score: __limitedParseDouble(output.score),
|
|
3175
|
-
scoreDetails: output.scoreDetails != null ?
|
|
3161
|
+
scoreDetails: output.scoreDetails != null ? de_ScoreDetails(output.scoreDetails, context) : undefined,
|
|
3176
3162
|
severity: __expectString(output.severity),
|
|
3177
3163
|
status: __expectString(output.status),
|
|
3178
3164
|
title: __expectString(output.title),
|
|
@@ -3180,18 +3166,18 @@ const deserializeAws_json1_1EnhancedImageScanFinding = (output, context) => {
|
|
|
3180
3166
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
3181
3167
|
};
|
|
3182
3168
|
};
|
|
3183
|
-
const
|
|
3169
|
+
const de_EnhancedImageScanFindingList = (output, context) => {
|
|
3184
3170
|
const retVal = (output || [])
|
|
3185
3171
|
.filter((e) => e != null)
|
|
3186
3172
|
.map((entry) => {
|
|
3187
3173
|
if (entry === null) {
|
|
3188
3174
|
return null;
|
|
3189
3175
|
}
|
|
3190
|
-
return
|
|
3176
|
+
return de_EnhancedImageScanFinding(entry, context);
|
|
3191
3177
|
});
|
|
3192
3178
|
return retVal;
|
|
3193
3179
|
};
|
|
3194
|
-
const
|
|
3180
|
+
const de_FindingSeverityCounts = (output, context) => {
|
|
3195
3181
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3196
3182
|
if (value === null) {
|
|
3197
3183
|
return acc;
|
|
@@ -3200,33 +3186,29 @@ const deserializeAws_json1_1FindingSeverityCounts = (output, context) => {
|
|
|
3200
3186
|
return acc;
|
|
3201
3187
|
}, {});
|
|
3202
3188
|
};
|
|
3203
|
-
const
|
|
3189
|
+
const de_GetAuthorizationTokenResponse = (output, context) => {
|
|
3204
3190
|
return {
|
|
3205
|
-
authorizationData: output.authorizationData != null
|
|
3206
|
-
? deserializeAws_json1_1AuthorizationDataList(output.authorizationData, context)
|
|
3207
|
-
: undefined,
|
|
3191
|
+
authorizationData: output.authorizationData != null ? de_AuthorizationDataList(output.authorizationData, context) : undefined,
|
|
3208
3192
|
};
|
|
3209
3193
|
};
|
|
3210
|
-
const
|
|
3194
|
+
const de_GetDownloadUrlForLayerResponse = (output, context) => {
|
|
3211
3195
|
return {
|
|
3212
3196
|
downloadUrl: __expectString(output.downloadUrl),
|
|
3213
3197
|
layerDigest: __expectString(output.layerDigest),
|
|
3214
3198
|
};
|
|
3215
3199
|
};
|
|
3216
|
-
const
|
|
3200
|
+
const de_GetLifecyclePolicyPreviewResponse = (output, context) => {
|
|
3217
3201
|
return {
|
|
3218
3202
|
lifecyclePolicyText: __expectString(output.lifecyclePolicyText),
|
|
3219
3203
|
nextToken: __expectString(output.nextToken),
|
|
3220
|
-
previewResults: output.previewResults != null
|
|
3221
|
-
? deserializeAws_json1_1LifecyclePolicyPreviewResultList(output.previewResults, context)
|
|
3222
|
-
: undefined,
|
|
3204
|
+
previewResults: output.previewResults != null ? de_LifecyclePolicyPreviewResultList(output.previewResults, context) : undefined,
|
|
3223
3205
|
registryId: __expectString(output.registryId),
|
|
3224
3206
|
repositoryName: __expectString(output.repositoryName),
|
|
3225
3207
|
status: __expectString(output.status),
|
|
3226
|
-
summary: output.summary != null ?
|
|
3208
|
+
summary: output.summary != null ? de_LifecyclePolicyPreviewSummary(output.summary, context) : undefined,
|
|
3227
3209
|
};
|
|
3228
3210
|
};
|
|
3229
|
-
const
|
|
3211
|
+
const de_GetLifecyclePolicyResponse = (output, context) => {
|
|
3230
3212
|
return {
|
|
3231
3213
|
lastEvaluatedAt: output.lastEvaluatedAt != null
|
|
3232
3214
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastEvaluatedAt)))
|
|
@@ -3236,42 +3218,42 @@ const deserializeAws_json1_1GetLifecyclePolicyResponse = (output, context) => {
|
|
|
3236
3218
|
repositoryName: __expectString(output.repositoryName),
|
|
3237
3219
|
};
|
|
3238
3220
|
};
|
|
3239
|
-
const
|
|
3221
|
+
const de_GetRegistryPolicyResponse = (output, context) => {
|
|
3240
3222
|
return {
|
|
3241
3223
|
policyText: __expectString(output.policyText),
|
|
3242
3224
|
registryId: __expectString(output.registryId),
|
|
3243
3225
|
};
|
|
3244
3226
|
};
|
|
3245
|
-
const
|
|
3227
|
+
const de_GetRegistryScanningConfigurationResponse = (output, context) => {
|
|
3246
3228
|
return {
|
|
3247
3229
|
registryId: __expectString(output.registryId),
|
|
3248
3230
|
scanningConfiguration: output.scanningConfiguration != null
|
|
3249
|
-
?
|
|
3231
|
+
? de_RegistryScanningConfiguration(output.scanningConfiguration, context)
|
|
3250
3232
|
: undefined,
|
|
3251
3233
|
};
|
|
3252
3234
|
};
|
|
3253
|
-
const
|
|
3235
|
+
const de_GetRepositoryPolicyResponse = (output, context) => {
|
|
3254
3236
|
return {
|
|
3255
3237
|
policyText: __expectString(output.policyText),
|
|
3256
3238
|
registryId: __expectString(output.registryId),
|
|
3257
3239
|
repositoryName: __expectString(output.repositoryName),
|
|
3258
3240
|
};
|
|
3259
3241
|
};
|
|
3260
|
-
const
|
|
3242
|
+
const de_Image = (output, context) => {
|
|
3261
3243
|
return {
|
|
3262
|
-
imageId: output.imageId != null ?
|
|
3244
|
+
imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
|
|
3263
3245
|
imageManifest: __expectString(output.imageManifest),
|
|
3264
3246
|
imageManifestMediaType: __expectString(output.imageManifestMediaType),
|
|
3265
3247
|
registryId: __expectString(output.registryId),
|
|
3266
3248
|
repositoryName: __expectString(output.repositoryName),
|
|
3267
3249
|
};
|
|
3268
3250
|
};
|
|
3269
|
-
const
|
|
3251
|
+
const de_ImageAlreadyExistsException = (output, context) => {
|
|
3270
3252
|
return {
|
|
3271
3253
|
message: __expectString(output.message),
|
|
3272
3254
|
};
|
|
3273
3255
|
};
|
|
3274
|
-
const
|
|
3256
|
+
const de_ImageDetail = (output, context) => {
|
|
3275
3257
|
return {
|
|
3276
3258
|
artifactMediaType: __expectString(output.artifactMediaType),
|
|
3277
3259
|
imageDigest: __expectString(output.imageDigest),
|
|
@@ -3280,13 +3262,11 @@ const deserializeAws_json1_1ImageDetail = (output, context) => {
|
|
|
3280
3262
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
|
|
3281
3263
|
: undefined,
|
|
3282
3264
|
imageScanFindingsSummary: output.imageScanFindingsSummary != null
|
|
3283
|
-
?
|
|
3284
|
-
: undefined,
|
|
3285
|
-
imageScanStatus: output.imageScanStatus != null
|
|
3286
|
-
? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
|
|
3265
|
+
? de_ImageScanFindingsSummary(output.imageScanFindingsSummary, context)
|
|
3287
3266
|
: undefined,
|
|
3267
|
+
imageScanStatus: output.imageScanStatus != null ? de_ImageScanStatus(output.imageScanStatus, context) : undefined,
|
|
3288
3268
|
imageSizeInBytes: __expectLong(output.imageSizeInBytes),
|
|
3289
|
-
imageTags: output.imageTags != null ?
|
|
3269
|
+
imageTags: output.imageTags != null ? de_ImageTagList(output.imageTags, context) : undefined,
|
|
3290
3270
|
lastRecordedPullTime: output.lastRecordedPullTime != null
|
|
3291
3271
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRecordedPullTime)))
|
|
3292
3272
|
: undefined,
|
|
@@ -3294,74 +3274,74 @@ const deserializeAws_json1_1ImageDetail = (output, context) => {
|
|
|
3294
3274
|
repositoryName: __expectString(output.repositoryName),
|
|
3295
3275
|
};
|
|
3296
3276
|
};
|
|
3297
|
-
const
|
|
3277
|
+
const de_ImageDetailList = (output, context) => {
|
|
3298
3278
|
const retVal = (output || [])
|
|
3299
3279
|
.filter((e) => e != null)
|
|
3300
3280
|
.map((entry) => {
|
|
3301
3281
|
if (entry === null) {
|
|
3302
3282
|
return null;
|
|
3303
3283
|
}
|
|
3304
|
-
return
|
|
3284
|
+
return de_ImageDetail(entry, context);
|
|
3305
3285
|
});
|
|
3306
3286
|
return retVal;
|
|
3307
3287
|
};
|
|
3308
|
-
const
|
|
3288
|
+
const de_ImageDigestDoesNotMatchException = (output, context) => {
|
|
3309
3289
|
return {
|
|
3310
3290
|
message: __expectString(output.message),
|
|
3311
3291
|
};
|
|
3312
3292
|
};
|
|
3313
|
-
const
|
|
3293
|
+
const de_ImageFailure = (output, context) => {
|
|
3314
3294
|
return {
|
|
3315
3295
|
failureCode: __expectString(output.failureCode),
|
|
3316
3296
|
failureReason: __expectString(output.failureReason),
|
|
3317
|
-
imageId: output.imageId != null ?
|
|
3297
|
+
imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
|
|
3318
3298
|
};
|
|
3319
3299
|
};
|
|
3320
|
-
const
|
|
3300
|
+
const de_ImageFailureList = (output, context) => {
|
|
3321
3301
|
const retVal = (output || [])
|
|
3322
3302
|
.filter((e) => e != null)
|
|
3323
3303
|
.map((entry) => {
|
|
3324
3304
|
if (entry === null) {
|
|
3325
3305
|
return null;
|
|
3326
3306
|
}
|
|
3327
|
-
return
|
|
3307
|
+
return de_ImageFailure(entry, context);
|
|
3328
3308
|
});
|
|
3329
3309
|
return retVal;
|
|
3330
3310
|
};
|
|
3331
|
-
const
|
|
3311
|
+
const de_ImageIdentifier = (output, context) => {
|
|
3332
3312
|
return {
|
|
3333
3313
|
imageDigest: __expectString(output.imageDigest),
|
|
3334
3314
|
imageTag: __expectString(output.imageTag),
|
|
3335
3315
|
};
|
|
3336
3316
|
};
|
|
3337
|
-
const
|
|
3317
|
+
const de_ImageIdentifierList = (output, context) => {
|
|
3338
3318
|
const retVal = (output || [])
|
|
3339
3319
|
.filter((e) => e != null)
|
|
3340
3320
|
.map((entry) => {
|
|
3341
3321
|
if (entry === null) {
|
|
3342
3322
|
return null;
|
|
3343
3323
|
}
|
|
3344
|
-
return
|
|
3324
|
+
return de_ImageIdentifier(entry, context);
|
|
3345
3325
|
});
|
|
3346
3326
|
return retVal;
|
|
3347
3327
|
};
|
|
3348
|
-
const
|
|
3328
|
+
const de_ImageList = (output, context) => {
|
|
3349
3329
|
const retVal = (output || [])
|
|
3350
3330
|
.filter((e) => e != null)
|
|
3351
3331
|
.map((entry) => {
|
|
3352
3332
|
if (entry === null) {
|
|
3353
3333
|
return null;
|
|
3354
3334
|
}
|
|
3355
|
-
return
|
|
3335
|
+
return de_Image(entry, context);
|
|
3356
3336
|
});
|
|
3357
3337
|
return retVal;
|
|
3358
3338
|
};
|
|
3359
|
-
const
|
|
3339
|
+
const de_ImageNotFoundException = (output, context) => {
|
|
3360
3340
|
return {
|
|
3361
3341
|
message: __expectString(output.message),
|
|
3362
3342
|
};
|
|
3363
3343
|
};
|
|
3364
|
-
const
|
|
3344
|
+
const de_ImageReplicationStatus = (output, context) => {
|
|
3365
3345
|
return {
|
|
3366
3346
|
failureCode: __expectString(output.failureCode),
|
|
3367
3347
|
region: __expectString(output.region),
|
|
@@ -3369,46 +3349,44 @@ const deserializeAws_json1_1ImageReplicationStatus = (output, context) => {
|
|
|
3369
3349
|
status: __expectString(output.status),
|
|
3370
3350
|
};
|
|
3371
3351
|
};
|
|
3372
|
-
const
|
|
3352
|
+
const de_ImageReplicationStatusList = (output, context) => {
|
|
3373
3353
|
const retVal = (output || [])
|
|
3374
3354
|
.filter((e) => e != null)
|
|
3375
3355
|
.map((entry) => {
|
|
3376
3356
|
if (entry === null) {
|
|
3377
3357
|
return null;
|
|
3378
3358
|
}
|
|
3379
|
-
return
|
|
3359
|
+
return de_ImageReplicationStatus(entry, context);
|
|
3380
3360
|
});
|
|
3381
3361
|
return retVal;
|
|
3382
3362
|
};
|
|
3383
|
-
const
|
|
3363
|
+
const de_ImageScanFinding = (output, context) => {
|
|
3384
3364
|
return {
|
|
3385
|
-
attributes: output.attributes != null ?
|
|
3365
|
+
attributes: output.attributes != null ? de_AttributeList(output.attributes, context) : undefined,
|
|
3386
3366
|
description: __expectString(output.description),
|
|
3387
3367
|
name: __expectString(output.name),
|
|
3388
3368
|
severity: __expectString(output.severity),
|
|
3389
3369
|
uri: __expectString(output.uri),
|
|
3390
3370
|
};
|
|
3391
3371
|
};
|
|
3392
|
-
const
|
|
3372
|
+
const de_ImageScanFindingList = (output, context) => {
|
|
3393
3373
|
const retVal = (output || [])
|
|
3394
3374
|
.filter((e) => e != null)
|
|
3395
3375
|
.map((entry) => {
|
|
3396
3376
|
if (entry === null) {
|
|
3397
3377
|
return null;
|
|
3398
3378
|
}
|
|
3399
|
-
return
|
|
3379
|
+
return de_ImageScanFinding(entry, context);
|
|
3400
3380
|
});
|
|
3401
3381
|
return retVal;
|
|
3402
3382
|
};
|
|
3403
|
-
const
|
|
3383
|
+
const de_ImageScanFindings = (output, context) => {
|
|
3404
3384
|
return {
|
|
3405
|
-
enhancedFindings: output.enhancedFindings != null
|
|
3406
|
-
? deserializeAws_json1_1EnhancedImageScanFindingList(output.enhancedFindings, context)
|
|
3407
|
-
: undefined,
|
|
3385
|
+
enhancedFindings: output.enhancedFindings != null ? de_EnhancedImageScanFindingList(output.enhancedFindings, context) : undefined,
|
|
3408
3386
|
findingSeverityCounts: output.findingSeverityCounts != null
|
|
3409
|
-
?
|
|
3387
|
+
? de_FindingSeverityCounts(output.findingSeverityCounts, context)
|
|
3410
3388
|
: undefined,
|
|
3411
|
-
findings: output.findings != null ?
|
|
3389
|
+
findings: output.findings != null ? de_ImageScanFindingList(output.findings, context) : undefined,
|
|
3412
3390
|
imageScanCompletedAt: output.imageScanCompletedAt != null
|
|
3413
3391
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imageScanCompletedAt)))
|
|
3414
3392
|
: undefined,
|
|
@@ -3417,10 +3395,10 @@ const deserializeAws_json1_1ImageScanFindings = (output, context) => {
|
|
|
3417
3395
|
: undefined,
|
|
3418
3396
|
};
|
|
3419
3397
|
};
|
|
3420
|
-
const
|
|
3398
|
+
const de_ImageScanFindingsSummary = (output, context) => {
|
|
3421
3399
|
return {
|
|
3422
3400
|
findingSeverityCounts: output.findingSeverityCounts != null
|
|
3423
|
-
?
|
|
3401
|
+
? de_FindingSeverityCounts(output.findingSeverityCounts, context)
|
|
3424
3402
|
: undefined,
|
|
3425
3403
|
imageScanCompletedAt: output.imageScanCompletedAt != null
|
|
3426
3404
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imageScanCompletedAt)))
|
|
@@ -3430,23 +3408,23 @@ const deserializeAws_json1_1ImageScanFindingsSummary = (output, context) => {
|
|
|
3430
3408
|
: undefined,
|
|
3431
3409
|
};
|
|
3432
3410
|
};
|
|
3433
|
-
const
|
|
3411
|
+
const de_ImageScanningConfiguration = (output, context) => {
|
|
3434
3412
|
return {
|
|
3435
3413
|
scanOnPush: __expectBoolean(output.scanOnPush),
|
|
3436
3414
|
};
|
|
3437
3415
|
};
|
|
3438
|
-
const
|
|
3416
|
+
const de_ImageScanStatus = (output, context) => {
|
|
3439
3417
|
return {
|
|
3440
3418
|
description: __expectString(output.description),
|
|
3441
3419
|
status: __expectString(output.status),
|
|
3442
3420
|
};
|
|
3443
3421
|
};
|
|
3444
|
-
const
|
|
3422
|
+
const de_ImageTagAlreadyExistsException = (output, context) => {
|
|
3445
3423
|
return {
|
|
3446
3424
|
message: __expectString(output.message),
|
|
3447
3425
|
};
|
|
3448
3426
|
};
|
|
3449
|
-
const
|
|
3427
|
+
const de_ImageTagList = (output, context) => {
|
|
3450
3428
|
const retVal = (output || [])
|
|
3451
3429
|
.filter((e) => e != null)
|
|
3452
3430
|
.map((entry) => {
|
|
@@ -3457,7 +3435,7 @@ const deserializeAws_json1_1ImageTagList = (output, context) => {
|
|
|
3457
3435
|
});
|
|
3458
3436
|
return retVal;
|
|
3459
3437
|
};
|
|
3460
|
-
const
|
|
3438
|
+
const de_ImageTagsList = (output, context) => {
|
|
3461
3439
|
const retVal = (output || [])
|
|
3462
3440
|
.filter((e) => e != null)
|
|
3463
3441
|
.map((entry) => {
|
|
@@ -3468,18 +3446,18 @@ const deserializeAws_json1_1ImageTagsList = (output, context) => {
|
|
|
3468
3446
|
});
|
|
3469
3447
|
return retVal;
|
|
3470
3448
|
};
|
|
3471
|
-
const
|
|
3449
|
+
const de_InitiateLayerUploadResponse = (output, context) => {
|
|
3472
3450
|
return {
|
|
3473
3451
|
partSize: __expectLong(output.partSize),
|
|
3474
3452
|
uploadId: __expectString(output.uploadId),
|
|
3475
3453
|
};
|
|
3476
3454
|
};
|
|
3477
|
-
const
|
|
3455
|
+
const de_InvalidLayerException = (output, context) => {
|
|
3478
3456
|
return {
|
|
3479
3457
|
message: __expectString(output.message),
|
|
3480
3458
|
};
|
|
3481
3459
|
};
|
|
3482
|
-
const
|
|
3460
|
+
const de_InvalidLayerPartException = (output, context) => {
|
|
3483
3461
|
return {
|
|
3484
3462
|
lastValidByteReceived: __expectLong(output.lastValidByteReceived),
|
|
3485
3463
|
message: __expectString(output.message),
|
|
@@ -3488,23 +3466,23 @@ const deserializeAws_json1_1InvalidLayerPartException = (output, context) => {
|
|
|
3488
3466
|
uploadId: __expectString(output.uploadId),
|
|
3489
3467
|
};
|
|
3490
3468
|
};
|
|
3491
|
-
const
|
|
3469
|
+
const de_InvalidParameterException = (output, context) => {
|
|
3492
3470
|
return {
|
|
3493
3471
|
message: __expectString(output.message),
|
|
3494
3472
|
};
|
|
3495
3473
|
};
|
|
3496
|
-
const
|
|
3474
|
+
const de_InvalidTagParameterException = (output, context) => {
|
|
3497
3475
|
return {
|
|
3498
3476
|
message: __expectString(output.message),
|
|
3499
3477
|
};
|
|
3500
3478
|
};
|
|
3501
|
-
const
|
|
3479
|
+
const de_KmsException = (output, context) => {
|
|
3502
3480
|
return {
|
|
3503
3481
|
kmsError: __expectString(output.kmsError),
|
|
3504
3482
|
message: __expectString(output.message),
|
|
3505
3483
|
};
|
|
3506
3484
|
};
|
|
3507
|
-
const
|
|
3485
|
+
const de_Layer = (output, context) => {
|
|
3508
3486
|
return {
|
|
3509
3487
|
layerAvailability: __expectString(output.layerAvailability),
|
|
3510
3488
|
layerDigest: __expectString(output.layerDigest),
|
|
@@ -3512,124 +3490,124 @@ const deserializeAws_json1_1Layer = (output, context) => {
|
|
|
3512
3490
|
mediaType: __expectString(output.mediaType),
|
|
3513
3491
|
};
|
|
3514
3492
|
};
|
|
3515
|
-
const
|
|
3493
|
+
const de_LayerAlreadyExistsException = (output, context) => {
|
|
3516
3494
|
return {
|
|
3517
3495
|
message: __expectString(output.message),
|
|
3518
3496
|
};
|
|
3519
3497
|
};
|
|
3520
|
-
const
|
|
3498
|
+
const de_LayerFailure = (output, context) => {
|
|
3521
3499
|
return {
|
|
3522
3500
|
failureCode: __expectString(output.failureCode),
|
|
3523
3501
|
failureReason: __expectString(output.failureReason),
|
|
3524
3502
|
layerDigest: __expectString(output.layerDigest),
|
|
3525
3503
|
};
|
|
3526
3504
|
};
|
|
3527
|
-
const
|
|
3505
|
+
const de_LayerFailureList = (output, context) => {
|
|
3528
3506
|
const retVal = (output || [])
|
|
3529
3507
|
.filter((e) => e != null)
|
|
3530
3508
|
.map((entry) => {
|
|
3531
3509
|
if (entry === null) {
|
|
3532
3510
|
return null;
|
|
3533
3511
|
}
|
|
3534
|
-
return
|
|
3512
|
+
return de_LayerFailure(entry, context);
|
|
3535
3513
|
});
|
|
3536
3514
|
return retVal;
|
|
3537
3515
|
};
|
|
3538
|
-
const
|
|
3516
|
+
const de_LayerInaccessibleException = (output, context) => {
|
|
3539
3517
|
return {
|
|
3540
3518
|
message: __expectString(output.message),
|
|
3541
3519
|
};
|
|
3542
3520
|
};
|
|
3543
|
-
const
|
|
3521
|
+
const de_LayerList = (output, context) => {
|
|
3544
3522
|
const retVal = (output || [])
|
|
3545
3523
|
.filter((e) => e != null)
|
|
3546
3524
|
.map((entry) => {
|
|
3547
3525
|
if (entry === null) {
|
|
3548
3526
|
return null;
|
|
3549
3527
|
}
|
|
3550
|
-
return
|
|
3528
|
+
return de_Layer(entry, context);
|
|
3551
3529
|
});
|
|
3552
3530
|
return retVal;
|
|
3553
3531
|
};
|
|
3554
|
-
const
|
|
3532
|
+
const de_LayerPartTooSmallException = (output, context) => {
|
|
3555
3533
|
return {
|
|
3556
3534
|
message: __expectString(output.message),
|
|
3557
3535
|
};
|
|
3558
3536
|
};
|
|
3559
|
-
const
|
|
3537
|
+
const de_LayersNotFoundException = (output, context) => {
|
|
3560
3538
|
return {
|
|
3561
3539
|
message: __expectString(output.message),
|
|
3562
3540
|
};
|
|
3563
3541
|
};
|
|
3564
|
-
const
|
|
3542
|
+
const de_LifecyclePolicyNotFoundException = (output, context) => {
|
|
3565
3543
|
return {
|
|
3566
3544
|
message: __expectString(output.message),
|
|
3567
3545
|
};
|
|
3568
3546
|
};
|
|
3569
|
-
const
|
|
3547
|
+
const de_LifecyclePolicyPreviewInProgressException = (output, context) => {
|
|
3570
3548
|
return {
|
|
3571
3549
|
message: __expectString(output.message),
|
|
3572
3550
|
};
|
|
3573
3551
|
};
|
|
3574
|
-
const
|
|
3552
|
+
const de_LifecyclePolicyPreviewNotFoundException = (output, context) => {
|
|
3575
3553
|
return {
|
|
3576
3554
|
message: __expectString(output.message),
|
|
3577
3555
|
};
|
|
3578
3556
|
};
|
|
3579
|
-
const
|
|
3557
|
+
const de_LifecyclePolicyPreviewResult = (output, context) => {
|
|
3580
3558
|
return {
|
|
3581
|
-
action: output.action != null ?
|
|
3559
|
+
action: output.action != null ? de_LifecyclePolicyRuleAction(output.action, context) : undefined,
|
|
3582
3560
|
appliedRulePriority: __expectInt32(output.appliedRulePriority),
|
|
3583
3561
|
imageDigest: __expectString(output.imageDigest),
|
|
3584
3562
|
imagePushedAt: output.imagePushedAt != null
|
|
3585
3563
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
|
|
3586
3564
|
: undefined,
|
|
3587
|
-
imageTags: output.imageTags != null ?
|
|
3565
|
+
imageTags: output.imageTags != null ? de_ImageTagList(output.imageTags, context) : undefined,
|
|
3588
3566
|
};
|
|
3589
3567
|
};
|
|
3590
|
-
const
|
|
3568
|
+
const de_LifecyclePolicyPreviewResultList = (output, context) => {
|
|
3591
3569
|
const retVal = (output || [])
|
|
3592
3570
|
.filter((e) => e != null)
|
|
3593
3571
|
.map((entry) => {
|
|
3594
3572
|
if (entry === null) {
|
|
3595
3573
|
return null;
|
|
3596
3574
|
}
|
|
3597
|
-
return
|
|
3575
|
+
return de_LifecyclePolicyPreviewResult(entry, context);
|
|
3598
3576
|
});
|
|
3599
3577
|
return retVal;
|
|
3600
3578
|
};
|
|
3601
|
-
const
|
|
3579
|
+
const de_LifecyclePolicyPreviewSummary = (output, context) => {
|
|
3602
3580
|
return {
|
|
3603
3581
|
expiringImageTotalCount: __expectInt32(output.expiringImageTotalCount),
|
|
3604
3582
|
};
|
|
3605
3583
|
};
|
|
3606
|
-
const
|
|
3584
|
+
const de_LifecyclePolicyRuleAction = (output, context) => {
|
|
3607
3585
|
return {
|
|
3608
3586
|
type: __expectString(output.type),
|
|
3609
3587
|
};
|
|
3610
3588
|
};
|
|
3611
|
-
const
|
|
3589
|
+
const de_LimitExceededException = (output, context) => {
|
|
3612
3590
|
return {
|
|
3613
3591
|
message: __expectString(output.message),
|
|
3614
3592
|
};
|
|
3615
3593
|
};
|
|
3616
|
-
const
|
|
3594
|
+
const de_ListImagesResponse = (output, context) => {
|
|
3617
3595
|
return {
|
|
3618
|
-
imageIds: output.imageIds != null ?
|
|
3596
|
+
imageIds: output.imageIds != null ? de_ImageIdentifierList(output.imageIds, context) : undefined,
|
|
3619
3597
|
nextToken: __expectString(output.nextToken),
|
|
3620
3598
|
};
|
|
3621
3599
|
};
|
|
3622
|
-
const
|
|
3600
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
3623
3601
|
return {
|
|
3624
|
-
tags: output.tags != null ?
|
|
3602
|
+
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
3625
3603
|
};
|
|
3626
3604
|
};
|
|
3627
|
-
const
|
|
3605
|
+
const de_PackageVulnerabilityDetails = (output, context) => {
|
|
3628
3606
|
return {
|
|
3629
|
-
cvss: output.cvss != null ?
|
|
3630
|
-
referenceUrls: output.referenceUrls != null ?
|
|
3607
|
+
cvss: output.cvss != null ? de_CvssScoreList(output.cvss, context) : undefined,
|
|
3608
|
+
referenceUrls: output.referenceUrls != null ? de_ReferenceUrlsList(output.referenceUrls, context) : undefined,
|
|
3631
3609
|
relatedVulnerabilities: output.relatedVulnerabilities != null
|
|
3632
|
-
?
|
|
3610
|
+
? de_RelatedVulnerabilitiesList(output.relatedVulnerabilities, context)
|
|
3633
3611
|
: undefined,
|
|
3634
3612
|
source: __expectString(output.source),
|
|
3635
3613
|
sourceUrl: __expectString(output.sourceUrl),
|
|
@@ -3641,12 +3619,10 @@ const deserializeAws_json1_1PackageVulnerabilityDetails = (output, context) => {
|
|
|
3641
3619
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorUpdatedAt)))
|
|
3642
3620
|
: undefined,
|
|
3643
3621
|
vulnerabilityId: __expectString(output.vulnerabilityId),
|
|
3644
|
-
vulnerablePackages: output.vulnerablePackages != null
|
|
3645
|
-
? deserializeAws_json1_1VulnerablePackagesList(output.vulnerablePackages, context)
|
|
3646
|
-
: undefined,
|
|
3622
|
+
vulnerablePackages: output.vulnerablePackages != null ? de_VulnerablePackagesList(output.vulnerablePackages, context) : undefined,
|
|
3647
3623
|
};
|
|
3648
3624
|
};
|
|
3649
|
-
const
|
|
3625
|
+
const de_PullThroughCacheRule = (output, context) => {
|
|
3650
3626
|
return {
|
|
3651
3627
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
3652
3628
|
ecrRepositoryPrefix: __expectString(output.ecrRepositoryPrefix),
|
|
@@ -3654,87 +3630,87 @@ const deserializeAws_json1_1PullThroughCacheRule = (output, context) => {
|
|
|
3654
3630
|
upstreamRegistryUrl: __expectString(output.upstreamRegistryUrl),
|
|
3655
3631
|
};
|
|
3656
3632
|
};
|
|
3657
|
-
const
|
|
3633
|
+
const de_PullThroughCacheRuleAlreadyExistsException = (output, context) => {
|
|
3658
3634
|
return {
|
|
3659
3635
|
message: __expectString(output.message),
|
|
3660
3636
|
};
|
|
3661
3637
|
};
|
|
3662
|
-
const
|
|
3638
|
+
const de_PullThroughCacheRuleList = (output, context) => {
|
|
3663
3639
|
const retVal = (output || [])
|
|
3664
3640
|
.filter((e) => e != null)
|
|
3665
3641
|
.map((entry) => {
|
|
3666
3642
|
if (entry === null) {
|
|
3667
3643
|
return null;
|
|
3668
3644
|
}
|
|
3669
|
-
return
|
|
3645
|
+
return de_PullThroughCacheRule(entry, context);
|
|
3670
3646
|
});
|
|
3671
3647
|
return retVal;
|
|
3672
3648
|
};
|
|
3673
|
-
const
|
|
3649
|
+
const de_PullThroughCacheRuleNotFoundException = (output, context) => {
|
|
3674
3650
|
return {
|
|
3675
3651
|
message: __expectString(output.message),
|
|
3676
3652
|
};
|
|
3677
3653
|
};
|
|
3678
|
-
const
|
|
3654
|
+
const de_PutImageResponse = (output, context) => {
|
|
3679
3655
|
return {
|
|
3680
|
-
image: output.image != null ?
|
|
3656
|
+
image: output.image != null ? de_Image(output.image, context) : undefined,
|
|
3681
3657
|
};
|
|
3682
3658
|
};
|
|
3683
|
-
const
|
|
3659
|
+
const de_PutImageScanningConfigurationResponse = (output, context) => {
|
|
3684
3660
|
return {
|
|
3685
3661
|
imageScanningConfiguration: output.imageScanningConfiguration != null
|
|
3686
|
-
?
|
|
3662
|
+
? de_ImageScanningConfiguration(output.imageScanningConfiguration, context)
|
|
3687
3663
|
: undefined,
|
|
3688
3664
|
registryId: __expectString(output.registryId),
|
|
3689
3665
|
repositoryName: __expectString(output.repositoryName),
|
|
3690
3666
|
};
|
|
3691
3667
|
};
|
|
3692
|
-
const
|
|
3668
|
+
const de_PutImageTagMutabilityResponse = (output, context) => {
|
|
3693
3669
|
return {
|
|
3694
3670
|
imageTagMutability: __expectString(output.imageTagMutability),
|
|
3695
3671
|
registryId: __expectString(output.registryId),
|
|
3696
3672
|
repositoryName: __expectString(output.repositoryName),
|
|
3697
3673
|
};
|
|
3698
3674
|
};
|
|
3699
|
-
const
|
|
3675
|
+
const de_PutLifecyclePolicyResponse = (output, context) => {
|
|
3700
3676
|
return {
|
|
3701
3677
|
lifecyclePolicyText: __expectString(output.lifecyclePolicyText),
|
|
3702
3678
|
registryId: __expectString(output.registryId),
|
|
3703
3679
|
repositoryName: __expectString(output.repositoryName),
|
|
3704
3680
|
};
|
|
3705
3681
|
};
|
|
3706
|
-
const
|
|
3682
|
+
const de_PutRegistryPolicyResponse = (output, context) => {
|
|
3707
3683
|
return {
|
|
3708
3684
|
policyText: __expectString(output.policyText),
|
|
3709
3685
|
registryId: __expectString(output.registryId),
|
|
3710
3686
|
};
|
|
3711
3687
|
};
|
|
3712
|
-
const
|
|
3688
|
+
const de_PutRegistryScanningConfigurationResponse = (output, context) => {
|
|
3713
3689
|
return {
|
|
3714
3690
|
registryScanningConfiguration: output.registryScanningConfiguration != null
|
|
3715
|
-
?
|
|
3691
|
+
? de_RegistryScanningConfiguration(output.registryScanningConfiguration, context)
|
|
3716
3692
|
: undefined,
|
|
3717
3693
|
};
|
|
3718
3694
|
};
|
|
3719
|
-
const
|
|
3695
|
+
const de_PutReplicationConfigurationResponse = (output, context) => {
|
|
3720
3696
|
return {
|
|
3721
3697
|
replicationConfiguration: output.replicationConfiguration != null
|
|
3722
|
-
?
|
|
3698
|
+
? de_ReplicationConfiguration(output.replicationConfiguration, context)
|
|
3723
3699
|
: undefined,
|
|
3724
3700
|
};
|
|
3725
3701
|
};
|
|
3726
|
-
const
|
|
3702
|
+
const de_Recommendation = (output, context) => {
|
|
3727
3703
|
return {
|
|
3728
3704
|
text: __expectString(output.text),
|
|
3729
3705
|
url: __expectString(output.url),
|
|
3730
3706
|
};
|
|
3731
3707
|
};
|
|
3732
|
-
const
|
|
3708
|
+
const de_ReferencedImagesNotFoundException = (output, context) => {
|
|
3733
3709
|
return {
|
|
3734
3710
|
message: __expectString(output.message),
|
|
3735
3711
|
};
|
|
3736
3712
|
};
|
|
3737
|
-
const
|
|
3713
|
+
const de_ReferenceUrlsList = (output, context) => {
|
|
3738
3714
|
const retVal = (output || [])
|
|
3739
3715
|
.filter((e) => e != null)
|
|
3740
3716
|
.map((entry) => {
|
|
@@ -3745,37 +3721,35 @@ const deserializeAws_json1_1ReferenceUrlsList = (output, context) => {
|
|
|
3745
3721
|
});
|
|
3746
3722
|
return retVal;
|
|
3747
3723
|
};
|
|
3748
|
-
const
|
|
3724
|
+
const de_RegistryPolicyNotFoundException = (output, context) => {
|
|
3749
3725
|
return {
|
|
3750
3726
|
message: __expectString(output.message),
|
|
3751
3727
|
};
|
|
3752
3728
|
};
|
|
3753
|
-
const
|
|
3729
|
+
const de_RegistryScanningConfiguration = (output, context) => {
|
|
3754
3730
|
return {
|
|
3755
|
-
rules: output.rules != null ?
|
|
3731
|
+
rules: output.rules != null ? de_RegistryScanningRuleList(output.rules, context) : undefined,
|
|
3756
3732
|
scanType: __expectString(output.scanType),
|
|
3757
3733
|
};
|
|
3758
3734
|
};
|
|
3759
|
-
const
|
|
3735
|
+
const de_RegistryScanningRule = (output, context) => {
|
|
3760
3736
|
return {
|
|
3761
|
-
repositoryFilters: output.repositoryFilters != null
|
|
3762
|
-
? deserializeAws_json1_1ScanningRepositoryFilterList(output.repositoryFilters, context)
|
|
3763
|
-
: undefined,
|
|
3737
|
+
repositoryFilters: output.repositoryFilters != null ? de_ScanningRepositoryFilterList(output.repositoryFilters, context) : undefined,
|
|
3764
3738
|
scanFrequency: __expectString(output.scanFrequency),
|
|
3765
3739
|
};
|
|
3766
3740
|
};
|
|
3767
|
-
const
|
|
3741
|
+
const de_RegistryScanningRuleList = (output, context) => {
|
|
3768
3742
|
const retVal = (output || [])
|
|
3769
3743
|
.filter((e) => e != null)
|
|
3770
3744
|
.map((entry) => {
|
|
3771
3745
|
if (entry === null) {
|
|
3772
3746
|
return null;
|
|
3773
3747
|
}
|
|
3774
|
-
return
|
|
3748
|
+
return de_RegistryScanningRule(entry, context);
|
|
3775
3749
|
});
|
|
3776
3750
|
return retVal;
|
|
3777
3751
|
};
|
|
3778
|
-
const
|
|
3752
|
+
const de_RelatedVulnerabilitiesList = (output, context) => {
|
|
3779
3753
|
const retVal = (output || [])
|
|
3780
3754
|
.filter((e) => e != null)
|
|
3781
3755
|
.map((entry) => {
|
|
@@ -3786,62 +3760,58 @@ const deserializeAws_json1_1RelatedVulnerabilitiesList = (output, context) => {
|
|
|
3786
3760
|
});
|
|
3787
3761
|
return retVal;
|
|
3788
3762
|
};
|
|
3789
|
-
const
|
|
3763
|
+
const de_Remediation = (output, context) => {
|
|
3790
3764
|
return {
|
|
3791
|
-
recommendation: output.recommendation != null ?
|
|
3765
|
+
recommendation: output.recommendation != null ? de_Recommendation(output.recommendation, context) : undefined,
|
|
3792
3766
|
};
|
|
3793
3767
|
};
|
|
3794
|
-
const
|
|
3768
|
+
const de_ReplicationConfiguration = (output, context) => {
|
|
3795
3769
|
return {
|
|
3796
|
-
rules: output.rules != null ?
|
|
3770
|
+
rules: output.rules != null ? de_ReplicationRuleList(output.rules, context) : undefined,
|
|
3797
3771
|
};
|
|
3798
3772
|
};
|
|
3799
|
-
const
|
|
3773
|
+
const de_ReplicationDestination = (output, context) => {
|
|
3800
3774
|
return {
|
|
3801
3775
|
region: __expectString(output.region),
|
|
3802
3776
|
registryId: __expectString(output.registryId),
|
|
3803
3777
|
};
|
|
3804
3778
|
};
|
|
3805
|
-
const
|
|
3779
|
+
const de_ReplicationDestinationList = (output, context) => {
|
|
3806
3780
|
const retVal = (output || [])
|
|
3807
3781
|
.filter((e) => e != null)
|
|
3808
3782
|
.map((entry) => {
|
|
3809
3783
|
if (entry === null) {
|
|
3810
3784
|
return null;
|
|
3811
3785
|
}
|
|
3812
|
-
return
|
|
3786
|
+
return de_ReplicationDestination(entry, context);
|
|
3813
3787
|
});
|
|
3814
3788
|
return retVal;
|
|
3815
3789
|
};
|
|
3816
|
-
const
|
|
3790
|
+
const de_ReplicationRule = (output, context) => {
|
|
3817
3791
|
return {
|
|
3818
|
-
destinations: output.destinations != null
|
|
3819
|
-
|
|
3820
|
-
: undefined,
|
|
3821
|
-
repositoryFilters: output.repositoryFilters != null
|
|
3822
|
-
? deserializeAws_json1_1RepositoryFilterList(output.repositoryFilters, context)
|
|
3823
|
-
: undefined,
|
|
3792
|
+
destinations: output.destinations != null ? de_ReplicationDestinationList(output.destinations, context) : undefined,
|
|
3793
|
+
repositoryFilters: output.repositoryFilters != null ? de_RepositoryFilterList(output.repositoryFilters, context) : undefined,
|
|
3824
3794
|
};
|
|
3825
3795
|
};
|
|
3826
|
-
const
|
|
3796
|
+
const de_ReplicationRuleList = (output, context) => {
|
|
3827
3797
|
const retVal = (output || [])
|
|
3828
3798
|
.filter((e) => e != null)
|
|
3829
3799
|
.map((entry) => {
|
|
3830
3800
|
if (entry === null) {
|
|
3831
3801
|
return null;
|
|
3832
3802
|
}
|
|
3833
|
-
return
|
|
3803
|
+
return de_ReplicationRule(entry, context);
|
|
3834
3804
|
});
|
|
3835
3805
|
return retVal;
|
|
3836
3806
|
};
|
|
3837
|
-
const
|
|
3807
|
+
const de_Repository = (output, context) => {
|
|
3838
3808
|
return {
|
|
3839
3809
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
3840
3810
|
encryptionConfiguration: output.encryptionConfiguration != null
|
|
3841
|
-
?
|
|
3811
|
+
? de_EncryptionConfiguration(output.encryptionConfiguration, context)
|
|
3842
3812
|
: undefined,
|
|
3843
3813
|
imageScanningConfiguration: output.imageScanningConfiguration != null
|
|
3844
|
-
?
|
|
3814
|
+
? de_ImageScanningConfiguration(output.imageScanningConfiguration, context)
|
|
3845
3815
|
: undefined,
|
|
3846
3816
|
imageTagMutability: __expectString(output.imageTagMutability),
|
|
3847
3817
|
registryId: __expectString(output.registryId),
|
|
@@ -3850,58 +3820,58 @@ const deserializeAws_json1_1Repository = (output, context) => {
|
|
|
3850
3820
|
repositoryUri: __expectString(output.repositoryUri),
|
|
3851
3821
|
};
|
|
3852
3822
|
};
|
|
3853
|
-
const
|
|
3823
|
+
const de_RepositoryAlreadyExistsException = (output, context) => {
|
|
3854
3824
|
return {
|
|
3855
3825
|
message: __expectString(output.message),
|
|
3856
3826
|
};
|
|
3857
3827
|
};
|
|
3858
|
-
const
|
|
3828
|
+
const de_RepositoryFilter = (output, context) => {
|
|
3859
3829
|
return {
|
|
3860
3830
|
filter: __expectString(output.filter),
|
|
3861
3831
|
filterType: __expectString(output.filterType),
|
|
3862
3832
|
};
|
|
3863
3833
|
};
|
|
3864
|
-
const
|
|
3834
|
+
const de_RepositoryFilterList = (output, context) => {
|
|
3865
3835
|
const retVal = (output || [])
|
|
3866
3836
|
.filter((e) => e != null)
|
|
3867
3837
|
.map((entry) => {
|
|
3868
3838
|
if (entry === null) {
|
|
3869
3839
|
return null;
|
|
3870
3840
|
}
|
|
3871
|
-
return
|
|
3841
|
+
return de_RepositoryFilter(entry, context);
|
|
3872
3842
|
});
|
|
3873
3843
|
return retVal;
|
|
3874
3844
|
};
|
|
3875
|
-
const
|
|
3845
|
+
const de_RepositoryList = (output, context) => {
|
|
3876
3846
|
const retVal = (output || [])
|
|
3877
3847
|
.filter((e) => e != null)
|
|
3878
3848
|
.map((entry) => {
|
|
3879
3849
|
if (entry === null) {
|
|
3880
3850
|
return null;
|
|
3881
3851
|
}
|
|
3882
|
-
return
|
|
3852
|
+
return de_Repository(entry, context);
|
|
3883
3853
|
});
|
|
3884
3854
|
return retVal;
|
|
3885
3855
|
};
|
|
3886
|
-
const
|
|
3856
|
+
const de_RepositoryNotEmptyException = (output, context) => {
|
|
3887
3857
|
return {
|
|
3888
3858
|
message: __expectString(output.message),
|
|
3889
3859
|
};
|
|
3890
3860
|
};
|
|
3891
|
-
const
|
|
3861
|
+
const de_RepositoryNotFoundException = (output, context) => {
|
|
3892
3862
|
return {
|
|
3893
3863
|
message: __expectString(output.message),
|
|
3894
3864
|
};
|
|
3895
3865
|
};
|
|
3896
|
-
const
|
|
3866
|
+
const de_RepositoryPolicyNotFoundException = (output, context) => {
|
|
3897
3867
|
return {
|
|
3898
3868
|
message: __expectString(output.message),
|
|
3899
3869
|
};
|
|
3900
3870
|
};
|
|
3901
|
-
const
|
|
3871
|
+
const de_RepositoryScanningConfiguration = (output, context) => {
|
|
3902
3872
|
return {
|
|
3903
3873
|
appliedScanFilters: output.appliedScanFilters != null
|
|
3904
|
-
?
|
|
3874
|
+
? de_ScanningRepositoryFilterList(output.appliedScanFilters, context)
|
|
3905
3875
|
: undefined,
|
|
3906
3876
|
repositoryArn: __expectString(output.repositoryArn),
|
|
3907
3877
|
repositoryName: __expectString(output.repositoryName),
|
|
@@ -3909,111 +3879,109 @@ const deserializeAws_json1_1RepositoryScanningConfiguration = (output, context)
|
|
|
3909
3879
|
scanOnPush: __expectBoolean(output.scanOnPush),
|
|
3910
3880
|
};
|
|
3911
3881
|
};
|
|
3912
|
-
const
|
|
3882
|
+
const de_RepositoryScanningConfigurationFailure = (output, context) => {
|
|
3913
3883
|
return {
|
|
3914
3884
|
failureCode: __expectString(output.failureCode),
|
|
3915
3885
|
failureReason: __expectString(output.failureReason),
|
|
3916
3886
|
repositoryName: __expectString(output.repositoryName),
|
|
3917
3887
|
};
|
|
3918
3888
|
};
|
|
3919
|
-
const
|
|
3889
|
+
const de_RepositoryScanningConfigurationFailureList = (output, context) => {
|
|
3920
3890
|
const retVal = (output || [])
|
|
3921
3891
|
.filter((e) => e != null)
|
|
3922
3892
|
.map((entry) => {
|
|
3923
3893
|
if (entry === null) {
|
|
3924
3894
|
return null;
|
|
3925
3895
|
}
|
|
3926
|
-
return
|
|
3896
|
+
return de_RepositoryScanningConfigurationFailure(entry, context);
|
|
3927
3897
|
});
|
|
3928
3898
|
return retVal;
|
|
3929
3899
|
};
|
|
3930
|
-
const
|
|
3900
|
+
const de_RepositoryScanningConfigurationList = (output, context) => {
|
|
3931
3901
|
const retVal = (output || [])
|
|
3932
3902
|
.filter((e) => e != null)
|
|
3933
3903
|
.map((entry) => {
|
|
3934
3904
|
if (entry === null) {
|
|
3935
3905
|
return null;
|
|
3936
3906
|
}
|
|
3937
|
-
return
|
|
3907
|
+
return de_RepositoryScanningConfiguration(entry, context);
|
|
3938
3908
|
});
|
|
3939
3909
|
return retVal;
|
|
3940
3910
|
};
|
|
3941
|
-
const
|
|
3911
|
+
const de_Resource = (output, context) => {
|
|
3942
3912
|
return {
|
|
3943
|
-
details: output.details != null ?
|
|
3913
|
+
details: output.details != null ? de_ResourceDetails(output.details, context) : undefined,
|
|
3944
3914
|
id: __expectString(output.id),
|
|
3945
|
-
tags: output.tags != null ?
|
|
3915
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
3946
3916
|
type: __expectString(output.type),
|
|
3947
3917
|
};
|
|
3948
3918
|
};
|
|
3949
|
-
const
|
|
3919
|
+
const de_ResourceDetails = (output, context) => {
|
|
3950
3920
|
return {
|
|
3951
3921
|
awsEcrContainerImage: output.awsEcrContainerImage != null
|
|
3952
|
-
?
|
|
3922
|
+
? de_AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
|
|
3953
3923
|
: undefined,
|
|
3954
3924
|
};
|
|
3955
3925
|
};
|
|
3956
|
-
const
|
|
3926
|
+
const de_ResourceList = (output, context) => {
|
|
3957
3927
|
const retVal = (output || [])
|
|
3958
3928
|
.filter((e) => e != null)
|
|
3959
3929
|
.map((entry) => {
|
|
3960
3930
|
if (entry === null) {
|
|
3961
3931
|
return null;
|
|
3962
3932
|
}
|
|
3963
|
-
return
|
|
3933
|
+
return de_Resource(entry, context);
|
|
3964
3934
|
});
|
|
3965
3935
|
return retVal;
|
|
3966
3936
|
};
|
|
3967
|
-
const
|
|
3937
|
+
const de_ScanningRepositoryFilter = (output, context) => {
|
|
3968
3938
|
return {
|
|
3969
3939
|
filter: __expectString(output.filter),
|
|
3970
3940
|
filterType: __expectString(output.filterType),
|
|
3971
3941
|
};
|
|
3972
3942
|
};
|
|
3973
|
-
const
|
|
3943
|
+
const de_ScanningRepositoryFilterList = (output, context) => {
|
|
3974
3944
|
const retVal = (output || [])
|
|
3975
3945
|
.filter((e) => e != null)
|
|
3976
3946
|
.map((entry) => {
|
|
3977
3947
|
if (entry === null) {
|
|
3978
3948
|
return null;
|
|
3979
3949
|
}
|
|
3980
|
-
return
|
|
3950
|
+
return de_ScanningRepositoryFilter(entry, context);
|
|
3981
3951
|
});
|
|
3982
3952
|
return retVal;
|
|
3983
3953
|
};
|
|
3984
|
-
const
|
|
3954
|
+
const de_ScanNotFoundException = (output, context) => {
|
|
3985
3955
|
return {
|
|
3986
3956
|
message: __expectString(output.message),
|
|
3987
3957
|
};
|
|
3988
3958
|
};
|
|
3989
|
-
const
|
|
3959
|
+
const de_ScoreDetails = (output, context) => {
|
|
3990
3960
|
return {
|
|
3991
|
-
cvss: output.cvss != null ?
|
|
3961
|
+
cvss: output.cvss != null ? de_CvssScoreDetails(output.cvss, context) : undefined,
|
|
3992
3962
|
};
|
|
3993
3963
|
};
|
|
3994
|
-
const
|
|
3964
|
+
const de_ServerException = (output, context) => {
|
|
3995
3965
|
return {
|
|
3996
3966
|
message: __expectString(output.message),
|
|
3997
3967
|
};
|
|
3998
3968
|
};
|
|
3999
|
-
const
|
|
3969
|
+
const de_SetRepositoryPolicyResponse = (output, context) => {
|
|
4000
3970
|
return {
|
|
4001
3971
|
policyText: __expectString(output.policyText),
|
|
4002
3972
|
registryId: __expectString(output.registryId),
|
|
4003
3973
|
repositoryName: __expectString(output.repositoryName),
|
|
4004
3974
|
};
|
|
4005
3975
|
};
|
|
4006
|
-
const
|
|
3976
|
+
const de_StartImageScanResponse = (output, context) => {
|
|
4007
3977
|
return {
|
|
4008
|
-
imageId: output.imageId != null ?
|
|
4009
|
-
imageScanStatus: output.imageScanStatus != null
|
|
4010
|
-
? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
|
|
4011
|
-
: undefined,
|
|
3978
|
+
imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
|
|
3979
|
+
imageScanStatus: output.imageScanStatus != null ? de_ImageScanStatus(output.imageScanStatus, context) : undefined,
|
|
4012
3980
|
registryId: __expectString(output.registryId),
|
|
4013
3981
|
repositoryName: __expectString(output.repositoryName),
|
|
4014
3982
|
};
|
|
4015
3983
|
};
|
|
4016
|
-
const
|
|
3984
|
+
const de_StartLifecyclePolicyPreviewResponse = (output, context) => {
|
|
4017
3985
|
return {
|
|
4018
3986
|
lifecyclePolicyText: __expectString(output.lifecyclePolicyText),
|
|
4019
3987
|
registryId: __expectString(output.registryId),
|
|
@@ -4021,27 +3989,27 @@ const deserializeAws_json1_1StartLifecyclePolicyPreviewResponse = (output, conte
|
|
|
4021
3989
|
status: __expectString(output.status),
|
|
4022
3990
|
};
|
|
4023
3991
|
};
|
|
4024
|
-
const
|
|
3992
|
+
const de_Tag = (output, context) => {
|
|
4025
3993
|
return {
|
|
4026
3994
|
Key: __expectString(output.Key),
|
|
4027
3995
|
Value: __expectString(output.Value),
|
|
4028
3996
|
};
|
|
4029
3997
|
};
|
|
4030
|
-
const
|
|
3998
|
+
const de_TagList = (output, context) => {
|
|
4031
3999
|
const retVal = (output || [])
|
|
4032
4000
|
.filter((e) => e != null)
|
|
4033
4001
|
.map((entry) => {
|
|
4034
4002
|
if (entry === null) {
|
|
4035
4003
|
return null;
|
|
4036
4004
|
}
|
|
4037
|
-
return
|
|
4005
|
+
return de_Tag(entry, context);
|
|
4038
4006
|
});
|
|
4039
4007
|
return retVal;
|
|
4040
4008
|
};
|
|
4041
|
-
const
|
|
4009
|
+
const de_TagResourceResponse = (output, context) => {
|
|
4042
4010
|
return {};
|
|
4043
4011
|
};
|
|
4044
|
-
const
|
|
4012
|
+
const de_Tags = (output, context) => {
|
|
4045
4013
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4046
4014
|
if (value === null) {
|
|
4047
4015
|
return acc;
|
|
@@ -4050,25 +4018,25 @@ const deserializeAws_json1_1Tags = (output, context) => {
|
|
|
4050
4018
|
return acc;
|
|
4051
4019
|
}, {});
|
|
4052
4020
|
};
|
|
4053
|
-
const
|
|
4021
|
+
const de_TooManyTagsException = (output, context) => {
|
|
4054
4022
|
return {
|
|
4055
4023
|
message: __expectString(output.message),
|
|
4056
4024
|
};
|
|
4057
4025
|
};
|
|
4058
|
-
const
|
|
4026
|
+
const de_UnsupportedImageTypeException = (output, context) => {
|
|
4059
4027
|
return {
|
|
4060
4028
|
message: __expectString(output.message),
|
|
4061
4029
|
};
|
|
4062
4030
|
};
|
|
4063
|
-
const
|
|
4031
|
+
const de_UnsupportedUpstreamRegistryException = (output, context) => {
|
|
4064
4032
|
return {
|
|
4065
4033
|
message: __expectString(output.message),
|
|
4066
4034
|
};
|
|
4067
4035
|
};
|
|
4068
|
-
const
|
|
4036
|
+
const de_UntagResourceResponse = (output, context) => {
|
|
4069
4037
|
return {};
|
|
4070
4038
|
};
|
|
4071
|
-
const
|
|
4039
|
+
const de_UploadLayerPartResponse = (output, context) => {
|
|
4072
4040
|
return {
|
|
4073
4041
|
lastByteReceived: __expectLong(output.lastByteReceived),
|
|
4074
4042
|
registryId: __expectString(output.registryId),
|
|
@@ -4076,17 +4044,17 @@ const deserializeAws_json1_1UploadLayerPartResponse = (output, context) => {
|
|
|
4076
4044
|
uploadId: __expectString(output.uploadId),
|
|
4077
4045
|
};
|
|
4078
4046
|
};
|
|
4079
|
-
const
|
|
4047
|
+
const de_UploadNotFoundException = (output, context) => {
|
|
4080
4048
|
return {
|
|
4081
4049
|
message: __expectString(output.message),
|
|
4082
4050
|
};
|
|
4083
4051
|
};
|
|
4084
|
-
const
|
|
4052
|
+
const de_ValidationException = (output, context) => {
|
|
4085
4053
|
return {
|
|
4086
4054
|
message: __expectString(output.message),
|
|
4087
4055
|
};
|
|
4088
4056
|
};
|
|
4089
|
-
const
|
|
4057
|
+
const de_VulnerablePackage = (output, context) => {
|
|
4090
4058
|
return {
|
|
4091
4059
|
arch: __expectString(output.arch),
|
|
4092
4060
|
epoch: __expectInt32(output.epoch),
|
|
@@ -4098,14 +4066,14 @@ const deserializeAws_json1_1VulnerablePackage = (output, context) => {
|
|
|
4098
4066
|
version: __expectString(output.version),
|
|
4099
4067
|
};
|
|
4100
4068
|
};
|
|
4101
|
-
const
|
|
4069
|
+
const de_VulnerablePackagesList = (output, context) => {
|
|
4102
4070
|
const retVal = (output || [])
|
|
4103
4071
|
.filter((e) => e != null)
|
|
4104
4072
|
.map((entry) => {
|
|
4105
4073
|
if (entry === null) {
|
|
4106
4074
|
return null;
|
|
4107
4075
|
}
|
|
4108
|
-
return
|
|
4076
|
+
return de_VulnerablePackage(entry, context);
|
|
4109
4077
|
});
|
|
4110
4078
|
return retVal;
|
|
4111
4079
|
};
|