@aws-sdk/client-ecr-public 3.310.0 → 3.312.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/endpoint/ruleset.js +3 -3
- package/dist-cjs/protocols/Aws_json1_1.js +29 -92
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +29 -92
- package/dist-types/ECRPUBLIC.d.ts +0 -1
- package/dist-types/commands/PutImageCommand.d.ts +0 -1
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +2 -2
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const r = "fn", s = "argv", t = "ref";
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -6,230 +6,161 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const ECRPUBLICServiceException_1 = require("../models/ECRPUBLICServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_BatchCheckLayerAvailabilityCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.1",
|
|
11
|
-
"x-amz-target": "SpencerFrontendService.BatchCheckLayerAvailability",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("BatchCheckLayerAvailability");
|
|
13
10
|
let body;
|
|
14
11
|
body = JSON.stringify(se_BatchCheckLayerAvailabilityRequest(input, context));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_BatchCheckLayerAvailabilityCommand = se_BatchCheckLayerAvailabilityCommand;
|
|
18
15
|
const se_BatchDeleteImageCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.1",
|
|
21
|
-
"x-amz-target": "SpencerFrontendService.BatchDeleteImage",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("BatchDeleteImage");
|
|
23
17
|
let body;
|
|
24
18
|
body = JSON.stringify(se_BatchDeleteImageRequest(input, context));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_BatchDeleteImageCommand = se_BatchDeleteImageCommand;
|
|
28
22
|
const se_CompleteLayerUploadCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.1",
|
|
31
|
-
"x-amz-target": "SpencerFrontendService.CompleteLayerUpload",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("CompleteLayerUpload");
|
|
33
24
|
let body;
|
|
34
25
|
body = JSON.stringify(se_CompleteLayerUploadRequest(input, context));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_CompleteLayerUploadCommand = se_CompleteLayerUploadCommand;
|
|
38
29
|
const se_CreateRepositoryCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.1",
|
|
41
|
-
"x-amz-target": "SpencerFrontendService.CreateRepository",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("CreateRepository");
|
|
43
31
|
let body;
|
|
44
32
|
body = JSON.stringify(se_CreateRepositoryRequest(input, context));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
34
|
};
|
|
47
35
|
exports.se_CreateRepositoryCommand = se_CreateRepositoryCommand;
|
|
48
36
|
const se_DeleteRepositoryCommand = async (input, context) => {
|
|
49
|
-
const headers =
|
|
50
|
-
"content-type": "application/x-amz-json-1.1",
|
|
51
|
-
"x-amz-target": "SpencerFrontendService.DeleteRepository",
|
|
52
|
-
};
|
|
37
|
+
const headers = sharedHeaders("DeleteRepository");
|
|
53
38
|
let body;
|
|
54
39
|
body = JSON.stringify(se_DeleteRepositoryRequest(input, context));
|
|
55
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
41
|
};
|
|
57
42
|
exports.se_DeleteRepositoryCommand = se_DeleteRepositoryCommand;
|
|
58
43
|
const se_DeleteRepositoryPolicyCommand = async (input, context) => {
|
|
59
|
-
const headers =
|
|
60
|
-
"content-type": "application/x-amz-json-1.1",
|
|
61
|
-
"x-amz-target": "SpencerFrontendService.DeleteRepositoryPolicy",
|
|
62
|
-
};
|
|
44
|
+
const headers = sharedHeaders("DeleteRepositoryPolicy");
|
|
63
45
|
let body;
|
|
64
46
|
body = JSON.stringify(se_DeleteRepositoryPolicyRequest(input, context));
|
|
65
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
48
|
};
|
|
67
49
|
exports.se_DeleteRepositoryPolicyCommand = se_DeleteRepositoryPolicyCommand;
|
|
68
50
|
const se_DescribeImagesCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "SpencerFrontendService.DescribeImages",
|
|
72
|
-
};
|
|
51
|
+
const headers = sharedHeaders("DescribeImages");
|
|
73
52
|
let body;
|
|
74
53
|
body = JSON.stringify(se_DescribeImagesRequest(input, context));
|
|
75
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
55
|
};
|
|
77
56
|
exports.se_DescribeImagesCommand = se_DescribeImagesCommand;
|
|
78
57
|
const se_DescribeImageTagsCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.1",
|
|
81
|
-
"x-amz-target": "SpencerFrontendService.DescribeImageTags",
|
|
82
|
-
};
|
|
58
|
+
const headers = sharedHeaders("DescribeImageTags");
|
|
83
59
|
let body;
|
|
84
60
|
body = JSON.stringify(se_DescribeImageTagsRequest(input, context));
|
|
85
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
62
|
};
|
|
87
63
|
exports.se_DescribeImageTagsCommand = se_DescribeImageTagsCommand;
|
|
88
64
|
const se_DescribeRegistriesCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-amz-json-1.1",
|
|
91
|
-
"x-amz-target": "SpencerFrontendService.DescribeRegistries",
|
|
92
|
-
};
|
|
65
|
+
const headers = sharedHeaders("DescribeRegistries");
|
|
93
66
|
let body;
|
|
94
67
|
body = JSON.stringify(se_DescribeRegistriesRequest(input, context));
|
|
95
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
69
|
};
|
|
97
70
|
exports.se_DescribeRegistriesCommand = se_DescribeRegistriesCommand;
|
|
98
71
|
const se_DescribeRepositoriesCommand = async (input, context) => {
|
|
99
|
-
const headers =
|
|
100
|
-
"content-type": "application/x-amz-json-1.1",
|
|
101
|
-
"x-amz-target": "SpencerFrontendService.DescribeRepositories",
|
|
102
|
-
};
|
|
72
|
+
const headers = sharedHeaders("DescribeRepositories");
|
|
103
73
|
let body;
|
|
104
74
|
body = JSON.stringify(se_DescribeRepositoriesRequest(input, context));
|
|
105
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
76
|
};
|
|
107
77
|
exports.se_DescribeRepositoriesCommand = se_DescribeRepositoriesCommand;
|
|
108
78
|
const se_GetAuthorizationTokenCommand = async (input, context) => {
|
|
109
|
-
const headers =
|
|
110
|
-
"content-type": "application/x-amz-json-1.1",
|
|
111
|
-
"x-amz-target": "SpencerFrontendService.GetAuthorizationToken",
|
|
112
|
-
};
|
|
79
|
+
const headers = sharedHeaders("GetAuthorizationToken");
|
|
113
80
|
let body;
|
|
114
81
|
body = JSON.stringify(se_GetAuthorizationTokenRequest(input, context));
|
|
115
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
83
|
};
|
|
117
84
|
exports.se_GetAuthorizationTokenCommand = se_GetAuthorizationTokenCommand;
|
|
118
85
|
const se_GetRegistryCatalogDataCommand = async (input, context) => {
|
|
119
|
-
const headers =
|
|
120
|
-
"content-type": "application/x-amz-json-1.1",
|
|
121
|
-
"x-amz-target": "SpencerFrontendService.GetRegistryCatalogData",
|
|
122
|
-
};
|
|
86
|
+
const headers = sharedHeaders("GetRegistryCatalogData");
|
|
123
87
|
let body;
|
|
124
88
|
body = JSON.stringify(se_GetRegistryCatalogDataRequest(input, context));
|
|
125
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
90
|
};
|
|
127
91
|
exports.se_GetRegistryCatalogDataCommand = se_GetRegistryCatalogDataCommand;
|
|
128
92
|
const se_GetRepositoryCatalogDataCommand = async (input, context) => {
|
|
129
|
-
const headers =
|
|
130
|
-
"content-type": "application/x-amz-json-1.1",
|
|
131
|
-
"x-amz-target": "SpencerFrontendService.GetRepositoryCatalogData",
|
|
132
|
-
};
|
|
93
|
+
const headers = sharedHeaders("GetRepositoryCatalogData");
|
|
133
94
|
let body;
|
|
134
95
|
body = JSON.stringify(se_GetRepositoryCatalogDataRequest(input, context));
|
|
135
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
97
|
};
|
|
137
98
|
exports.se_GetRepositoryCatalogDataCommand = se_GetRepositoryCatalogDataCommand;
|
|
138
99
|
const se_GetRepositoryPolicyCommand = async (input, context) => {
|
|
139
|
-
const headers =
|
|
140
|
-
"content-type": "application/x-amz-json-1.1",
|
|
141
|
-
"x-amz-target": "SpencerFrontendService.GetRepositoryPolicy",
|
|
142
|
-
};
|
|
100
|
+
const headers = sharedHeaders("GetRepositoryPolicy");
|
|
143
101
|
let body;
|
|
144
102
|
body = JSON.stringify(se_GetRepositoryPolicyRequest(input, context));
|
|
145
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
104
|
};
|
|
147
105
|
exports.se_GetRepositoryPolicyCommand = se_GetRepositoryPolicyCommand;
|
|
148
106
|
const se_InitiateLayerUploadCommand = async (input, context) => {
|
|
149
|
-
const headers =
|
|
150
|
-
"content-type": "application/x-amz-json-1.1",
|
|
151
|
-
"x-amz-target": "SpencerFrontendService.InitiateLayerUpload",
|
|
152
|
-
};
|
|
107
|
+
const headers = sharedHeaders("InitiateLayerUpload");
|
|
153
108
|
let body;
|
|
154
109
|
body = JSON.stringify(se_InitiateLayerUploadRequest(input, context));
|
|
155
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
111
|
};
|
|
157
112
|
exports.se_InitiateLayerUploadCommand = se_InitiateLayerUploadCommand;
|
|
158
113
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "SpencerFrontendService.ListTagsForResource",
|
|
162
|
-
};
|
|
114
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
163
115
|
let body;
|
|
164
116
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
165
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
118
|
};
|
|
167
119
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
168
120
|
const se_PutImageCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.1",
|
|
171
|
-
"x-amz-target": "SpencerFrontendService.PutImage",
|
|
172
|
-
};
|
|
121
|
+
const headers = sharedHeaders("PutImage");
|
|
173
122
|
let body;
|
|
174
123
|
body = JSON.stringify(se_PutImageRequest(input, context));
|
|
175
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
125
|
};
|
|
177
126
|
exports.se_PutImageCommand = se_PutImageCommand;
|
|
178
127
|
const se_PutRegistryCatalogDataCommand = async (input, context) => {
|
|
179
|
-
const headers =
|
|
180
|
-
"content-type": "application/x-amz-json-1.1",
|
|
181
|
-
"x-amz-target": "SpencerFrontendService.PutRegistryCatalogData",
|
|
182
|
-
};
|
|
128
|
+
const headers = sharedHeaders("PutRegistryCatalogData");
|
|
183
129
|
let body;
|
|
184
130
|
body = JSON.stringify(se_PutRegistryCatalogDataRequest(input, context));
|
|
185
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
132
|
};
|
|
187
133
|
exports.se_PutRegistryCatalogDataCommand = se_PutRegistryCatalogDataCommand;
|
|
188
134
|
const se_PutRepositoryCatalogDataCommand = async (input, context) => {
|
|
189
|
-
const headers =
|
|
190
|
-
"content-type": "application/x-amz-json-1.1",
|
|
191
|
-
"x-amz-target": "SpencerFrontendService.PutRepositoryCatalogData",
|
|
192
|
-
};
|
|
135
|
+
const headers = sharedHeaders("PutRepositoryCatalogData");
|
|
193
136
|
let body;
|
|
194
137
|
body = JSON.stringify(se_PutRepositoryCatalogDataRequest(input, context));
|
|
195
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
139
|
};
|
|
197
140
|
exports.se_PutRepositoryCatalogDataCommand = se_PutRepositoryCatalogDataCommand;
|
|
198
141
|
const se_SetRepositoryPolicyCommand = async (input, context) => {
|
|
199
|
-
const headers =
|
|
200
|
-
"content-type": "application/x-amz-json-1.1",
|
|
201
|
-
"x-amz-target": "SpencerFrontendService.SetRepositoryPolicy",
|
|
202
|
-
};
|
|
142
|
+
const headers = sharedHeaders("SetRepositoryPolicy");
|
|
203
143
|
let body;
|
|
204
144
|
body = JSON.stringify(se_SetRepositoryPolicyRequest(input, context));
|
|
205
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
146
|
};
|
|
207
147
|
exports.se_SetRepositoryPolicyCommand = se_SetRepositoryPolicyCommand;
|
|
208
148
|
const se_TagResourceCommand = async (input, context) => {
|
|
209
|
-
const headers =
|
|
210
|
-
"content-type": "application/x-amz-json-1.1",
|
|
211
|
-
"x-amz-target": "SpencerFrontendService.TagResource",
|
|
212
|
-
};
|
|
149
|
+
const headers = sharedHeaders("TagResource");
|
|
213
150
|
let body;
|
|
214
151
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
215
152
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
153
|
};
|
|
217
154
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
218
155
|
const se_UntagResourceCommand = async (input, context) => {
|
|
219
|
-
const headers =
|
|
220
|
-
"content-type": "application/x-amz-json-1.1",
|
|
221
|
-
"x-amz-target": "SpencerFrontendService.UntagResource",
|
|
222
|
-
};
|
|
156
|
+
const headers = sharedHeaders("UntagResource");
|
|
223
157
|
let body;
|
|
224
158
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
225
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
160
|
};
|
|
227
161
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
228
162
|
const se_UploadLayerPartCommand = async (input, context) => {
|
|
229
|
-
const headers =
|
|
230
|
-
"content-type": "application/x-amz-json-1.1",
|
|
231
|
-
"x-amz-target": "SpencerFrontendService.UploadLayerPart",
|
|
232
|
-
};
|
|
163
|
+
const headers = sharedHeaders("UploadLayerPart");
|
|
233
164
|
let body;
|
|
234
165
|
body = JSON.stringify(se_UploadLayerPartRequest(input, context));
|
|
235
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -2306,6 +2237,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2306
2237
|
}
|
|
2307
2238
|
return new protocol_http_1.HttpRequest(contents);
|
|
2308
2239
|
};
|
|
2240
|
+
function sharedHeaders(operation) {
|
|
2241
|
+
return {
|
|
2242
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2243
|
+
"x-amz-target": `SpencerFrontendService.${operation}`,
|
|
2244
|
+
};
|
|
2245
|
+
}
|
|
2309
2246
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2310
2247
|
if (encoded.length) {
|
|
2311
2248
|
return JSON.parse(encoded);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const r = "fn", s = "argv", t = "ref";
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -3,208 +3,139 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { ECRPUBLICServiceException as __BaseException } from "../models/ECRPUBLICServiceException";
|
|
4
4
|
import { EmptyUploadException, ImageAlreadyExistsException, ImageDigestDoesNotMatchException, ImageNotFoundException, ImageTagAlreadyExistsException, InvalidLayerException, InvalidLayerPartException, InvalidParameterException, InvalidTagParameterException, LayerAlreadyExistsException, LayerPartTooSmallException, LayersNotFoundException, LimitExceededException, ReferencedImagesNotFoundException, RegistryNotFoundException, RepositoryAlreadyExistsException, RepositoryCatalogDataNotFoundException, RepositoryNotEmptyException, RepositoryNotFoundException, RepositoryPolicyNotFoundException, ServerException, TooManyTagsException, UnsupportedCommandException, UploadNotFoundException, } from "../models/models_0";
|
|
5
5
|
export const se_BatchCheckLayerAvailabilityCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "SpencerFrontendService.BatchCheckLayerAvailability",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("BatchCheckLayerAvailability");
|
|
10
7
|
let body;
|
|
11
8
|
body = JSON.stringify(se_BatchCheckLayerAvailabilityRequest(input, context));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_BatchDeleteImageCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "SpencerFrontendService.BatchDeleteImage",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("BatchDeleteImage");
|
|
19
13
|
let body;
|
|
20
14
|
body = JSON.stringify(se_BatchDeleteImageRequest(input, context));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_CompleteLayerUploadCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "SpencerFrontendService.CompleteLayerUpload",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CompleteLayerUpload");
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify(se_CompleteLayerUploadRequest(input, context));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_CreateRepositoryCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "SpencerFrontendService.CreateRepository",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateRepository");
|
|
37
25
|
let body;
|
|
38
26
|
body = JSON.stringify(se_CreateRepositoryRequest(input, context));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_DeleteRepositoryCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "SpencerFrontendService.DeleteRepository",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DeleteRepository");
|
|
46
31
|
let body;
|
|
47
32
|
body = JSON.stringify(se_DeleteRepositoryRequest(input, context));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_DeleteRepositoryPolicyCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "SpencerFrontendService.DeleteRepositoryPolicy",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("DeleteRepositoryPolicy");
|
|
55
37
|
let body;
|
|
56
38
|
body = JSON.stringify(se_DeleteRepositoryPolicyRequest(input, context));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_DescribeImagesCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "SpencerFrontendService.DescribeImages",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("DescribeImages");
|
|
64
43
|
let body;
|
|
65
44
|
body = JSON.stringify(se_DescribeImagesRequest(input, context));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_DescribeImageTagsCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "SpencerFrontendService.DescribeImageTags",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("DescribeImageTags");
|
|
73
49
|
let body;
|
|
74
50
|
body = JSON.stringify(se_DescribeImageTagsRequest(input, context));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_DescribeRegistriesCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "SpencerFrontendService.DescribeRegistries",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("DescribeRegistries");
|
|
82
55
|
let body;
|
|
83
56
|
body = JSON.stringify(se_DescribeRegistriesRequest(input, context));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_DescribeRepositoriesCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "SpencerFrontendService.DescribeRepositories",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DescribeRepositories");
|
|
91
61
|
let body;
|
|
92
62
|
body = JSON.stringify(se_DescribeRepositoriesRequest(input, context));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_GetAuthorizationTokenCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "SpencerFrontendService.GetAuthorizationToken",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("GetAuthorizationToken");
|
|
100
67
|
let body;
|
|
101
68
|
body = JSON.stringify(se_GetAuthorizationTokenRequest(input, context));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_GetRegistryCatalogDataCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "SpencerFrontendService.GetRegistryCatalogData",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("GetRegistryCatalogData");
|
|
109
73
|
let body;
|
|
110
74
|
body = JSON.stringify(se_GetRegistryCatalogDataRequest(input, context));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_GetRepositoryCatalogDataCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "SpencerFrontendService.GetRepositoryCatalogData",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("GetRepositoryCatalogData");
|
|
118
79
|
let body;
|
|
119
80
|
body = JSON.stringify(se_GetRepositoryCatalogDataRequest(input, context));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_GetRepositoryPolicyCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "SpencerFrontendService.GetRepositoryPolicy",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("GetRepositoryPolicy");
|
|
127
85
|
let body;
|
|
128
86
|
body = JSON.stringify(se_GetRepositoryPolicyRequest(input, context));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_InitiateLayerUploadCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "SpencerFrontendService.InitiateLayerUpload",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("InitiateLayerUpload");
|
|
136
91
|
let body;
|
|
137
92
|
body = JSON.stringify(se_InitiateLayerUploadRequest(input, context));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "SpencerFrontendService.ListTagsForResource",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
145
97
|
let body;
|
|
146
98
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_PutImageCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "SpencerFrontendService.PutImage",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("PutImage");
|
|
154
103
|
let body;
|
|
155
104
|
body = JSON.stringify(se_PutImageRequest(input, context));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_PutRegistryCatalogDataCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "SpencerFrontendService.PutRegistryCatalogData",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("PutRegistryCatalogData");
|
|
163
109
|
let body;
|
|
164
110
|
body = JSON.stringify(se_PutRegistryCatalogDataRequest(input, context));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_PutRepositoryCatalogDataCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.1",
|
|
170
|
-
"x-amz-target": "SpencerFrontendService.PutRepositoryCatalogData",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("PutRepositoryCatalogData");
|
|
172
115
|
let body;
|
|
173
116
|
body = JSON.stringify(se_PutRepositoryCatalogDataRequest(input, context));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_SetRepositoryPolicyCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "SpencerFrontendService.SetRepositoryPolicy",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("SetRepositoryPolicy");
|
|
181
121
|
let body;
|
|
182
122
|
body = JSON.stringify(se_SetRepositoryPolicyRequest(input, context));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_TagResourceCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "SpencerFrontendService.TagResource",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("TagResource");
|
|
190
127
|
let body;
|
|
191
128
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
195
|
-
const headers =
|
|
196
|
-
"content-type": "application/x-amz-json-1.1",
|
|
197
|
-
"x-amz-target": "SpencerFrontendService.UntagResource",
|
|
198
|
-
};
|
|
132
|
+
const headers = sharedHeaders("UntagResource");
|
|
199
133
|
let body;
|
|
200
134
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
201
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
136
|
};
|
|
203
137
|
export const se_UploadLayerPartCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.1",
|
|
206
|
-
"x-amz-target": "SpencerFrontendService.UploadLayerPart",
|
|
207
|
-
};
|
|
138
|
+
const headers = sharedHeaders("UploadLayerPart");
|
|
208
139
|
let body;
|
|
209
140
|
body = JSON.stringify(se_UploadLayerPartRequest(input, context));
|
|
210
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -2257,6 +2188,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2257
2188
|
}
|
|
2258
2189
|
return new __HttpRequest(contents);
|
|
2259
2190
|
};
|
|
2191
|
+
function sharedHeaders(operation) {
|
|
2192
|
+
return {
|
|
2193
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2194
|
+
"x-amz-target": `SpencerFrontendService.${operation}`,
|
|
2195
|
+
};
|
|
2196
|
+
}
|
|
2260
2197
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2261
2198
|
if (encoded.length) {
|
|
2262
2199
|
return JSON.parse(encoded);
|
|
@@ -192,7 +192,6 @@ export declare class ECRPUBLIC extends ECRPUBLICClient {
|
|
|
192
192
|
* <p>When an image is pushed and all new image layers have been uploaded, the PutImage API is
|
|
193
193
|
* called once to create or update the image manifest and the tags that are associated with
|
|
194
194
|
* the image.</p>
|
|
195
|
-
*
|
|
196
195
|
* <note>
|
|
197
196
|
* <p>This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
|
|
198
197
|
* </note>
|
|
@@ -23,7 +23,6 @@ export interface PutImageCommandOutput extends PutImageResponse, __MetadataBeare
|
|
|
23
23
|
* <p>When an image is pushed and all new image layers have been uploaded, the PutImage API is
|
|
24
24
|
* called once to create or update the image manifest and the tags that are associated with
|
|
25
25
|
* the image.</p>
|
|
26
|
-
*
|
|
27
26
|
* <note>
|
|
28
27
|
* <p>This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p>
|
|
29
28
|
* </note>
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region?: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -196,8 +196,8 @@ export interface ImageIdentifier {
|
|
|
196
196
|
*/
|
|
197
197
|
export interface BatchDeleteImageRequest {
|
|
198
198
|
/**
|
|
199
|
-
* <p>The Amazon Web Services account ID that's associated with the registry that
|
|
200
|
-
* delete. If you do not specify a registry, the default public registry is assumed.</p>
|
|
199
|
+
* <p>The Amazon Web Services account ID, or registry alias, that's associated with the registry that
|
|
200
|
+
* contains the image to delete. If you do not specify a registry, the default public registry is assumed.</p>
|
|
201
201
|
*/
|
|
202
202
|
registryId?: string;
|
|
203
203
|
/**
|
|
@@ -26,7 +26,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
26
26
|
defaultSigningName: string;
|
|
27
27
|
};
|
|
28
28
|
export interface EndpointParameters extends __EndpointParameters {
|
|
29
|
-
Region
|
|
29
|
+
Region?: string;
|
|
30
30
|
UseDualStack?: boolean;
|
|
31
31
|
UseFIPS?: boolean;
|
|
32
32
|
Endpoint?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecr-public",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ecr Public Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.312.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.312.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
26
|
"@aws-sdk/credential-provider-node": "3.310.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|