@aws-sdk/client-ecr-public 3.315.0 → 3.319.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ECRPUBLIC = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const BatchCheckLayerAvailabilityCommand_1 = require("./commands/BatchCheckLayerAvailabilityCommand");
5
6
  const BatchDeleteImageCommand_1 = require("./commands/BatchDeleteImageCommand");
6
7
  const CompleteLayerUploadCommand_1 = require("./commands/CompleteLayerUploadCommand");
@@ -25,328 +26,32 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
25
26
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
26
27
  const UploadLayerPartCommand_1 = require("./commands/UploadLayerPartCommand");
27
28
  const ECRPUBLICClient_1 = require("./ECRPUBLICClient");
29
+ const commands = {
30
+ BatchCheckLayerAvailabilityCommand: BatchCheckLayerAvailabilityCommand_1.BatchCheckLayerAvailabilityCommand,
31
+ BatchDeleteImageCommand: BatchDeleteImageCommand_1.BatchDeleteImageCommand,
32
+ CompleteLayerUploadCommand: CompleteLayerUploadCommand_1.CompleteLayerUploadCommand,
33
+ CreateRepositoryCommand: CreateRepositoryCommand_1.CreateRepositoryCommand,
34
+ DeleteRepositoryCommand: DeleteRepositoryCommand_1.DeleteRepositoryCommand,
35
+ DeleteRepositoryPolicyCommand: DeleteRepositoryPolicyCommand_1.DeleteRepositoryPolicyCommand,
36
+ DescribeImagesCommand: DescribeImagesCommand_1.DescribeImagesCommand,
37
+ DescribeImageTagsCommand: DescribeImageTagsCommand_1.DescribeImageTagsCommand,
38
+ DescribeRegistriesCommand: DescribeRegistriesCommand_1.DescribeRegistriesCommand,
39
+ DescribeRepositoriesCommand: DescribeRepositoriesCommand_1.DescribeRepositoriesCommand,
40
+ GetAuthorizationTokenCommand: GetAuthorizationTokenCommand_1.GetAuthorizationTokenCommand,
41
+ GetRegistryCatalogDataCommand: GetRegistryCatalogDataCommand_1.GetRegistryCatalogDataCommand,
42
+ GetRepositoryCatalogDataCommand: GetRepositoryCatalogDataCommand_1.GetRepositoryCatalogDataCommand,
43
+ GetRepositoryPolicyCommand: GetRepositoryPolicyCommand_1.GetRepositoryPolicyCommand,
44
+ InitiateLayerUploadCommand: InitiateLayerUploadCommand_1.InitiateLayerUploadCommand,
45
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
46
+ PutImageCommand: PutImageCommand_1.PutImageCommand,
47
+ PutRegistryCatalogDataCommand: PutRegistryCatalogDataCommand_1.PutRegistryCatalogDataCommand,
48
+ PutRepositoryCatalogDataCommand: PutRepositoryCatalogDataCommand_1.PutRepositoryCatalogDataCommand,
49
+ SetRepositoryPolicyCommand: SetRepositoryPolicyCommand_1.SetRepositoryPolicyCommand,
50
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
51
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
52
+ UploadLayerPartCommand: UploadLayerPartCommand_1.UploadLayerPartCommand,
53
+ };
28
54
  class ECRPUBLIC extends ECRPUBLICClient_1.ECRPUBLICClient {
29
- batchCheckLayerAvailability(args, optionsOrCb, cb) {
30
- const command = new BatchCheckLayerAvailabilityCommand_1.BatchCheckLayerAvailabilityCommand(args);
31
- if (typeof optionsOrCb === "function") {
32
- this.send(command, optionsOrCb);
33
- }
34
- else if (typeof cb === "function") {
35
- if (typeof optionsOrCb !== "object")
36
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
37
- this.send(command, optionsOrCb || {}, cb);
38
- }
39
- else {
40
- return this.send(command, optionsOrCb);
41
- }
42
- }
43
- batchDeleteImage(args, optionsOrCb, cb) {
44
- const command = new BatchDeleteImageCommand_1.BatchDeleteImageCommand(args);
45
- if (typeof optionsOrCb === "function") {
46
- this.send(command, optionsOrCb);
47
- }
48
- else if (typeof cb === "function") {
49
- if (typeof optionsOrCb !== "object")
50
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
51
- this.send(command, optionsOrCb || {}, cb);
52
- }
53
- else {
54
- return this.send(command, optionsOrCb);
55
- }
56
- }
57
- completeLayerUpload(args, optionsOrCb, cb) {
58
- const command = new CompleteLayerUploadCommand_1.CompleteLayerUploadCommand(args);
59
- if (typeof optionsOrCb === "function") {
60
- this.send(command, optionsOrCb);
61
- }
62
- else if (typeof cb === "function") {
63
- if (typeof optionsOrCb !== "object")
64
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
65
- this.send(command, optionsOrCb || {}, cb);
66
- }
67
- else {
68
- return this.send(command, optionsOrCb);
69
- }
70
- }
71
- createRepository(args, optionsOrCb, cb) {
72
- const command = new CreateRepositoryCommand_1.CreateRepositoryCommand(args);
73
- if (typeof optionsOrCb === "function") {
74
- this.send(command, optionsOrCb);
75
- }
76
- else if (typeof cb === "function") {
77
- if (typeof optionsOrCb !== "object")
78
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
- this.send(command, optionsOrCb || {}, cb);
80
- }
81
- else {
82
- return this.send(command, optionsOrCb);
83
- }
84
- }
85
- deleteRepository(args, optionsOrCb, cb) {
86
- const command = new DeleteRepositoryCommand_1.DeleteRepositoryCommand(args);
87
- if (typeof optionsOrCb === "function") {
88
- this.send(command, optionsOrCb);
89
- }
90
- else if (typeof cb === "function") {
91
- if (typeof optionsOrCb !== "object")
92
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
- this.send(command, optionsOrCb || {}, cb);
94
- }
95
- else {
96
- return this.send(command, optionsOrCb);
97
- }
98
- }
99
- deleteRepositoryPolicy(args, optionsOrCb, cb) {
100
- const command = new DeleteRepositoryPolicyCommand_1.DeleteRepositoryPolicyCommand(args);
101
- if (typeof optionsOrCb === "function") {
102
- this.send(command, optionsOrCb);
103
- }
104
- else if (typeof cb === "function") {
105
- if (typeof optionsOrCb !== "object")
106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
- this.send(command, optionsOrCb || {}, cb);
108
- }
109
- else {
110
- return this.send(command, optionsOrCb);
111
- }
112
- }
113
- describeImages(args, optionsOrCb, cb) {
114
- const command = new DescribeImagesCommand_1.DescribeImagesCommand(args);
115
- if (typeof optionsOrCb === "function") {
116
- this.send(command, optionsOrCb);
117
- }
118
- else if (typeof cb === "function") {
119
- if (typeof optionsOrCb !== "object")
120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
- this.send(command, optionsOrCb || {}, cb);
122
- }
123
- else {
124
- return this.send(command, optionsOrCb);
125
- }
126
- }
127
- describeImageTags(args, optionsOrCb, cb) {
128
- const command = new DescribeImageTagsCommand_1.DescribeImageTagsCommand(args);
129
- if (typeof optionsOrCb === "function") {
130
- this.send(command, optionsOrCb);
131
- }
132
- else if (typeof cb === "function") {
133
- if (typeof optionsOrCb !== "object")
134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
- this.send(command, optionsOrCb || {}, cb);
136
- }
137
- else {
138
- return this.send(command, optionsOrCb);
139
- }
140
- }
141
- describeRegistries(args, optionsOrCb, cb) {
142
- const command = new DescribeRegistriesCommand_1.DescribeRegistriesCommand(args);
143
- if (typeof optionsOrCb === "function") {
144
- this.send(command, optionsOrCb);
145
- }
146
- else if (typeof cb === "function") {
147
- if (typeof optionsOrCb !== "object")
148
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
149
- this.send(command, optionsOrCb || {}, cb);
150
- }
151
- else {
152
- return this.send(command, optionsOrCb);
153
- }
154
- }
155
- describeRepositories(args, optionsOrCb, cb) {
156
- const command = new DescribeRepositoriesCommand_1.DescribeRepositoriesCommand(args);
157
- if (typeof optionsOrCb === "function") {
158
- this.send(command, optionsOrCb);
159
- }
160
- else if (typeof cb === "function") {
161
- if (typeof optionsOrCb !== "object")
162
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
163
- this.send(command, optionsOrCb || {}, cb);
164
- }
165
- else {
166
- return this.send(command, optionsOrCb);
167
- }
168
- }
169
- getAuthorizationToken(args, optionsOrCb, cb) {
170
- const command = new GetAuthorizationTokenCommand_1.GetAuthorizationTokenCommand(args);
171
- if (typeof optionsOrCb === "function") {
172
- this.send(command, optionsOrCb);
173
- }
174
- else if (typeof cb === "function") {
175
- if (typeof optionsOrCb !== "object")
176
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
177
- this.send(command, optionsOrCb || {}, cb);
178
- }
179
- else {
180
- return this.send(command, optionsOrCb);
181
- }
182
- }
183
- getRegistryCatalogData(args, optionsOrCb, cb) {
184
- const command = new GetRegistryCatalogDataCommand_1.GetRegistryCatalogDataCommand(args);
185
- if (typeof optionsOrCb === "function") {
186
- this.send(command, optionsOrCb);
187
- }
188
- else if (typeof cb === "function") {
189
- if (typeof optionsOrCb !== "object")
190
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
191
- this.send(command, optionsOrCb || {}, cb);
192
- }
193
- else {
194
- return this.send(command, optionsOrCb);
195
- }
196
- }
197
- getRepositoryCatalogData(args, optionsOrCb, cb) {
198
- const command = new GetRepositoryCatalogDataCommand_1.GetRepositoryCatalogDataCommand(args);
199
- if (typeof optionsOrCb === "function") {
200
- this.send(command, optionsOrCb);
201
- }
202
- else if (typeof cb === "function") {
203
- if (typeof optionsOrCb !== "object")
204
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
- this.send(command, optionsOrCb || {}, cb);
206
- }
207
- else {
208
- return this.send(command, optionsOrCb);
209
- }
210
- }
211
- getRepositoryPolicy(args, optionsOrCb, cb) {
212
- const command = new GetRepositoryPolicyCommand_1.GetRepositoryPolicyCommand(args);
213
- if (typeof optionsOrCb === "function") {
214
- this.send(command, optionsOrCb);
215
- }
216
- else if (typeof cb === "function") {
217
- if (typeof optionsOrCb !== "object")
218
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
- this.send(command, optionsOrCb || {}, cb);
220
- }
221
- else {
222
- return this.send(command, optionsOrCb);
223
- }
224
- }
225
- initiateLayerUpload(args, optionsOrCb, cb) {
226
- const command = new InitiateLayerUploadCommand_1.InitiateLayerUploadCommand(args);
227
- if (typeof optionsOrCb === "function") {
228
- this.send(command, optionsOrCb);
229
- }
230
- else if (typeof cb === "function") {
231
- if (typeof optionsOrCb !== "object")
232
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
- this.send(command, optionsOrCb || {}, cb);
234
- }
235
- else {
236
- return this.send(command, optionsOrCb);
237
- }
238
- }
239
- listTagsForResource(args, optionsOrCb, cb) {
240
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
241
- if (typeof optionsOrCb === "function") {
242
- this.send(command, optionsOrCb);
243
- }
244
- else if (typeof cb === "function") {
245
- if (typeof optionsOrCb !== "object")
246
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
247
- this.send(command, optionsOrCb || {}, cb);
248
- }
249
- else {
250
- return this.send(command, optionsOrCb);
251
- }
252
- }
253
- putImage(args, optionsOrCb, cb) {
254
- const command = new PutImageCommand_1.PutImageCommand(args);
255
- if (typeof optionsOrCb === "function") {
256
- this.send(command, optionsOrCb);
257
- }
258
- else if (typeof cb === "function") {
259
- if (typeof optionsOrCb !== "object")
260
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
261
- this.send(command, optionsOrCb || {}, cb);
262
- }
263
- else {
264
- return this.send(command, optionsOrCb);
265
- }
266
- }
267
- putRegistryCatalogData(args, optionsOrCb, cb) {
268
- const command = new PutRegistryCatalogDataCommand_1.PutRegistryCatalogDataCommand(args);
269
- if (typeof optionsOrCb === "function") {
270
- this.send(command, optionsOrCb);
271
- }
272
- else if (typeof cb === "function") {
273
- if (typeof optionsOrCb !== "object")
274
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
275
- this.send(command, optionsOrCb || {}, cb);
276
- }
277
- else {
278
- return this.send(command, optionsOrCb);
279
- }
280
- }
281
- putRepositoryCatalogData(args, optionsOrCb, cb) {
282
- const command = new PutRepositoryCatalogDataCommand_1.PutRepositoryCatalogDataCommand(args);
283
- if (typeof optionsOrCb === "function") {
284
- this.send(command, optionsOrCb);
285
- }
286
- else if (typeof cb === "function") {
287
- if (typeof optionsOrCb !== "object")
288
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
289
- this.send(command, optionsOrCb || {}, cb);
290
- }
291
- else {
292
- return this.send(command, optionsOrCb);
293
- }
294
- }
295
- setRepositoryPolicy(args, optionsOrCb, cb) {
296
- const command = new SetRepositoryPolicyCommand_1.SetRepositoryPolicyCommand(args);
297
- if (typeof optionsOrCb === "function") {
298
- this.send(command, optionsOrCb);
299
- }
300
- else if (typeof cb === "function") {
301
- if (typeof optionsOrCb !== "object")
302
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
303
- this.send(command, optionsOrCb || {}, cb);
304
- }
305
- else {
306
- return this.send(command, optionsOrCb);
307
- }
308
- }
309
- tagResource(args, optionsOrCb, cb) {
310
- const command = new TagResourceCommand_1.TagResourceCommand(args);
311
- if (typeof optionsOrCb === "function") {
312
- this.send(command, optionsOrCb);
313
- }
314
- else if (typeof cb === "function") {
315
- if (typeof optionsOrCb !== "object")
316
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
317
- this.send(command, optionsOrCb || {}, cb);
318
- }
319
- else {
320
- return this.send(command, optionsOrCb);
321
- }
322
- }
323
- untagResource(args, optionsOrCb, cb) {
324
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
325
- if (typeof optionsOrCb === "function") {
326
- this.send(command, optionsOrCb);
327
- }
328
- else if (typeof cb === "function") {
329
- if (typeof optionsOrCb !== "object")
330
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
331
- this.send(command, optionsOrCb || {}, cb);
332
- }
333
- else {
334
- return this.send(command, optionsOrCb);
335
- }
336
- }
337
- uploadLayerPart(args, optionsOrCb, cb) {
338
- const command = new UploadLayerPartCommand_1.UploadLayerPartCommand(args);
339
- if (typeof optionsOrCb === "function") {
340
- this.send(command, optionsOrCb);
341
- }
342
- else if (typeof cb === "function") {
343
- if (typeof optionsOrCb !== "object")
344
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
345
- this.send(command, optionsOrCb || {}, cb);
346
- }
347
- else {
348
- return this.send(command, optionsOrCb);
349
- }
350
- }
351
55
  }
352
56
  exports.ECRPUBLIC = ECRPUBLIC;
57
+ (0, smithy_client_1.createAggregatedClient)(commands, ECRPUBLIC);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { BatchCheckLayerAvailabilityCommand, } from "./commands/BatchCheckLayerAvailabilityCommand";
2
3
  import { BatchDeleteImageCommand, } from "./commands/BatchDeleteImageCommand";
3
4
  import { CompleteLayerUploadCommand, } from "./commands/CompleteLayerUploadCommand";
@@ -22,327 +23,31 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
22
23
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
23
24
  import { UploadLayerPartCommand, } from "./commands/UploadLayerPartCommand";
24
25
  import { ECRPUBLICClient } from "./ECRPUBLICClient";
26
+ const commands = {
27
+ BatchCheckLayerAvailabilityCommand,
28
+ BatchDeleteImageCommand,
29
+ CompleteLayerUploadCommand,
30
+ CreateRepositoryCommand,
31
+ DeleteRepositoryCommand,
32
+ DeleteRepositoryPolicyCommand,
33
+ DescribeImagesCommand,
34
+ DescribeImageTagsCommand,
35
+ DescribeRegistriesCommand,
36
+ DescribeRepositoriesCommand,
37
+ GetAuthorizationTokenCommand,
38
+ GetRegistryCatalogDataCommand,
39
+ GetRepositoryCatalogDataCommand,
40
+ GetRepositoryPolicyCommand,
41
+ InitiateLayerUploadCommand,
42
+ ListTagsForResourceCommand,
43
+ PutImageCommand,
44
+ PutRegistryCatalogDataCommand,
45
+ PutRepositoryCatalogDataCommand,
46
+ SetRepositoryPolicyCommand,
47
+ TagResourceCommand,
48
+ UntagResourceCommand,
49
+ UploadLayerPartCommand,
50
+ };
25
51
  export class ECRPUBLIC extends ECRPUBLICClient {
26
- batchCheckLayerAvailability(args, optionsOrCb, cb) {
27
- const command = new BatchCheckLayerAvailabilityCommand(args);
28
- if (typeof optionsOrCb === "function") {
29
- this.send(command, optionsOrCb);
30
- }
31
- else if (typeof cb === "function") {
32
- if (typeof optionsOrCb !== "object")
33
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
- this.send(command, optionsOrCb || {}, cb);
35
- }
36
- else {
37
- return this.send(command, optionsOrCb);
38
- }
39
- }
40
- batchDeleteImage(args, optionsOrCb, cb) {
41
- const command = new BatchDeleteImageCommand(args);
42
- if (typeof optionsOrCb === "function") {
43
- this.send(command, optionsOrCb);
44
- }
45
- else if (typeof cb === "function") {
46
- if (typeof optionsOrCb !== "object")
47
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
- this.send(command, optionsOrCb || {}, cb);
49
- }
50
- else {
51
- return this.send(command, optionsOrCb);
52
- }
53
- }
54
- completeLayerUpload(args, optionsOrCb, cb) {
55
- const command = new CompleteLayerUploadCommand(args);
56
- if (typeof optionsOrCb === "function") {
57
- this.send(command, optionsOrCb);
58
- }
59
- else if (typeof cb === "function") {
60
- if (typeof optionsOrCb !== "object")
61
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
- this.send(command, optionsOrCb || {}, cb);
63
- }
64
- else {
65
- return this.send(command, optionsOrCb);
66
- }
67
- }
68
- createRepository(args, optionsOrCb, cb) {
69
- const command = new CreateRepositoryCommand(args);
70
- if (typeof optionsOrCb === "function") {
71
- this.send(command, optionsOrCb);
72
- }
73
- else if (typeof cb === "function") {
74
- if (typeof optionsOrCb !== "object")
75
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
76
- this.send(command, optionsOrCb || {}, cb);
77
- }
78
- else {
79
- return this.send(command, optionsOrCb);
80
- }
81
- }
82
- deleteRepository(args, optionsOrCb, cb) {
83
- const command = new DeleteRepositoryCommand(args);
84
- if (typeof optionsOrCb === "function") {
85
- this.send(command, optionsOrCb);
86
- }
87
- else if (typeof cb === "function") {
88
- if (typeof optionsOrCb !== "object")
89
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
90
- this.send(command, optionsOrCb || {}, cb);
91
- }
92
- else {
93
- return this.send(command, optionsOrCb);
94
- }
95
- }
96
- deleteRepositoryPolicy(args, optionsOrCb, cb) {
97
- const command = new DeleteRepositoryPolicyCommand(args);
98
- if (typeof optionsOrCb === "function") {
99
- this.send(command, optionsOrCb);
100
- }
101
- else if (typeof cb === "function") {
102
- if (typeof optionsOrCb !== "object")
103
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
104
- this.send(command, optionsOrCb || {}, cb);
105
- }
106
- else {
107
- return this.send(command, optionsOrCb);
108
- }
109
- }
110
- describeImages(args, optionsOrCb, cb) {
111
- const command = new DescribeImagesCommand(args);
112
- if (typeof optionsOrCb === "function") {
113
- this.send(command, optionsOrCb);
114
- }
115
- else if (typeof cb === "function") {
116
- if (typeof optionsOrCb !== "object")
117
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
118
- this.send(command, optionsOrCb || {}, cb);
119
- }
120
- else {
121
- return this.send(command, optionsOrCb);
122
- }
123
- }
124
- describeImageTags(args, optionsOrCb, cb) {
125
- const command = new DescribeImageTagsCommand(args);
126
- if (typeof optionsOrCb === "function") {
127
- this.send(command, optionsOrCb);
128
- }
129
- else if (typeof cb === "function") {
130
- if (typeof optionsOrCb !== "object")
131
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
132
- this.send(command, optionsOrCb || {}, cb);
133
- }
134
- else {
135
- return this.send(command, optionsOrCb);
136
- }
137
- }
138
- describeRegistries(args, optionsOrCb, cb) {
139
- const command = new DescribeRegistriesCommand(args);
140
- if (typeof optionsOrCb === "function") {
141
- this.send(command, optionsOrCb);
142
- }
143
- else if (typeof cb === "function") {
144
- if (typeof optionsOrCb !== "object")
145
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
146
- this.send(command, optionsOrCb || {}, cb);
147
- }
148
- else {
149
- return this.send(command, optionsOrCb);
150
- }
151
- }
152
- describeRepositories(args, optionsOrCb, cb) {
153
- const command = new DescribeRepositoriesCommand(args);
154
- if (typeof optionsOrCb === "function") {
155
- this.send(command, optionsOrCb);
156
- }
157
- else if (typeof cb === "function") {
158
- if (typeof optionsOrCb !== "object")
159
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
160
- this.send(command, optionsOrCb || {}, cb);
161
- }
162
- else {
163
- return this.send(command, optionsOrCb);
164
- }
165
- }
166
- getAuthorizationToken(args, optionsOrCb, cb) {
167
- const command = new GetAuthorizationTokenCommand(args);
168
- if (typeof optionsOrCb === "function") {
169
- this.send(command, optionsOrCb);
170
- }
171
- else if (typeof cb === "function") {
172
- if (typeof optionsOrCb !== "object")
173
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
174
- this.send(command, optionsOrCb || {}, cb);
175
- }
176
- else {
177
- return this.send(command, optionsOrCb);
178
- }
179
- }
180
- getRegistryCatalogData(args, optionsOrCb, cb) {
181
- const command = new GetRegistryCatalogDataCommand(args);
182
- if (typeof optionsOrCb === "function") {
183
- this.send(command, optionsOrCb);
184
- }
185
- else if (typeof cb === "function") {
186
- if (typeof optionsOrCb !== "object")
187
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
188
- this.send(command, optionsOrCb || {}, cb);
189
- }
190
- else {
191
- return this.send(command, optionsOrCb);
192
- }
193
- }
194
- getRepositoryCatalogData(args, optionsOrCb, cb) {
195
- const command = new GetRepositoryCatalogDataCommand(args);
196
- if (typeof optionsOrCb === "function") {
197
- this.send(command, optionsOrCb);
198
- }
199
- else if (typeof cb === "function") {
200
- if (typeof optionsOrCb !== "object")
201
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
202
- this.send(command, optionsOrCb || {}, cb);
203
- }
204
- else {
205
- return this.send(command, optionsOrCb);
206
- }
207
- }
208
- getRepositoryPolicy(args, optionsOrCb, cb) {
209
- const command = new GetRepositoryPolicyCommand(args);
210
- if (typeof optionsOrCb === "function") {
211
- this.send(command, optionsOrCb);
212
- }
213
- else if (typeof cb === "function") {
214
- if (typeof optionsOrCb !== "object")
215
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
216
- this.send(command, optionsOrCb || {}, cb);
217
- }
218
- else {
219
- return this.send(command, optionsOrCb);
220
- }
221
- }
222
- initiateLayerUpload(args, optionsOrCb, cb) {
223
- const command = new InitiateLayerUploadCommand(args);
224
- if (typeof optionsOrCb === "function") {
225
- this.send(command, optionsOrCb);
226
- }
227
- else if (typeof cb === "function") {
228
- if (typeof optionsOrCb !== "object")
229
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
230
- this.send(command, optionsOrCb || {}, cb);
231
- }
232
- else {
233
- return this.send(command, optionsOrCb);
234
- }
235
- }
236
- listTagsForResource(args, optionsOrCb, cb) {
237
- const command = new ListTagsForResourceCommand(args);
238
- if (typeof optionsOrCb === "function") {
239
- this.send(command, optionsOrCb);
240
- }
241
- else if (typeof cb === "function") {
242
- if (typeof optionsOrCb !== "object")
243
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
244
- this.send(command, optionsOrCb || {}, cb);
245
- }
246
- else {
247
- return this.send(command, optionsOrCb);
248
- }
249
- }
250
- putImage(args, optionsOrCb, cb) {
251
- const command = new PutImageCommand(args);
252
- if (typeof optionsOrCb === "function") {
253
- this.send(command, optionsOrCb);
254
- }
255
- else if (typeof cb === "function") {
256
- if (typeof optionsOrCb !== "object")
257
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
258
- this.send(command, optionsOrCb || {}, cb);
259
- }
260
- else {
261
- return this.send(command, optionsOrCb);
262
- }
263
- }
264
- putRegistryCatalogData(args, optionsOrCb, cb) {
265
- const command = new PutRegistryCatalogDataCommand(args);
266
- if (typeof optionsOrCb === "function") {
267
- this.send(command, optionsOrCb);
268
- }
269
- else if (typeof cb === "function") {
270
- if (typeof optionsOrCb !== "object")
271
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
272
- this.send(command, optionsOrCb || {}, cb);
273
- }
274
- else {
275
- return this.send(command, optionsOrCb);
276
- }
277
- }
278
- putRepositoryCatalogData(args, optionsOrCb, cb) {
279
- const command = new PutRepositoryCatalogDataCommand(args);
280
- if (typeof optionsOrCb === "function") {
281
- this.send(command, optionsOrCb);
282
- }
283
- else if (typeof cb === "function") {
284
- if (typeof optionsOrCb !== "object")
285
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
286
- this.send(command, optionsOrCb || {}, cb);
287
- }
288
- else {
289
- return this.send(command, optionsOrCb);
290
- }
291
- }
292
- setRepositoryPolicy(args, optionsOrCb, cb) {
293
- const command = new SetRepositoryPolicyCommand(args);
294
- if (typeof optionsOrCb === "function") {
295
- this.send(command, optionsOrCb);
296
- }
297
- else if (typeof cb === "function") {
298
- if (typeof optionsOrCb !== "object")
299
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
300
- this.send(command, optionsOrCb || {}, cb);
301
- }
302
- else {
303
- return this.send(command, optionsOrCb);
304
- }
305
- }
306
- tagResource(args, optionsOrCb, cb) {
307
- const command = new TagResourceCommand(args);
308
- if (typeof optionsOrCb === "function") {
309
- this.send(command, optionsOrCb);
310
- }
311
- else if (typeof cb === "function") {
312
- if (typeof optionsOrCb !== "object")
313
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
314
- this.send(command, optionsOrCb || {}, cb);
315
- }
316
- else {
317
- return this.send(command, optionsOrCb);
318
- }
319
- }
320
- untagResource(args, optionsOrCb, cb) {
321
- const command = new UntagResourceCommand(args);
322
- if (typeof optionsOrCb === "function") {
323
- this.send(command, optionsOrCb);
324
- }
325
- else if (typeof cb === "function") {
326
- if (typeof optionsOrCb !== "object")
327
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
328
- this.send(command, optionsOrCb || {}, cb);
329
- }
330
- else {
331
- return this.send(command, optionsOrCb);
332
- }
333
- }
334
- uploadLayerPart(args, optionsOrCb, cb) {
335
- const command = new UploadLayerPartCommand(args);
336
- if (typeof optionsOrCb === "function") {
337
- this.send(command, optionsOrCb);
338
- }
339
- else if (typeof cb === "function") {
340
- if (typeof optionsOrCb !== "object")
341
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
342
- this.send(command, optionsOrCb || {}, cb);
343
- }
344
- else {
345
- return this.send(command, optionsOrCb);
346
- }
347
- }
348
52
  }
53
+ createAggregatedClient(commands, ECRPUBLIC);
@@ -23,233 +23,155 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
23
23
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
24
24
  import { UploadLayerPartCommandInput, UploadLayerPartCommandOutput } from "./commands/UploadLayerPartCommand";
25
25
  import { ECRPUBLICClient } from "./ECRPUBLICClient";
26
- /**
27
- * @public
28
- * <fullname>Amazon Elastic Container Registry Public</fullname>
29
- * <p>Amazon Elastic Container Registry Public (Amazon ECR Public) is a managed container image registry service. Amazon ECR provides both
30
- * public and private registries to host your container images. You can use the Docker CLI or
31
- * your preferred client to push, pull, and manage images. Amazon ECR provides a secure, scalable,
32
- * and reliable registry for your Docker or Open Container Initiative (OCI) images. Amazon ECR
33
- * supports public repositories with this API. For information about the Amazon ECR API for private
34
- * repositories, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/APIReference/Welcome.html">Amazon Elastic Container Registry API Reference</a>.</p>
35
- */
36
- export declare class ECRPUBLIC extends ECRPUBLICClient {
26
+ export interface ECRPUBLIC {
37
27
  /**
38
- * @public
39
- * <p>Checks the availability of one or more image layers that are within a repository in a
40
- * public registry. When an image is pushed to a repository, each image layer is checked to
41
- * verify if it has been uploaded before. If it has been uploaded, then the image layer is
42
- * skipped.</p>
43
- * <note>
44
- * <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>
45
- * </note>
28
+ * @see {@link BatchCheckLayerAvailabilityCommand}
46
29
  */
47
30
  batchCheckLayerAvailability(args: BatchCheckLayerAvailabilityCommandInput, options?: __HttpHandlerOptions): Promise<BatchCheckLayerAvailabilityCommandOutput>;
48
31
  batchCheckLayerAvailability(args: BatchCheckLayerAvailabilityCommandInput, cb: (err: any, data?: BatchCheckLayerAvailabilityCommandOutput) => void): void;
49
32
  batchCheckLayerAvailability(args: BatchCheckLayerAvailabilityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchCheckLayerAvailabilityCommandOutput) => void): void;
50
33
  /**
51
- * @public
52
- * <p>Deletes a list of specified images that are within a repository in a public registry.
53
- * Images are specified with either an <code>imageTag</code> or
54
- * <code>imageDigest</code>.</p>
55
- * <p>You can remove a tag from an image by specifying the image's tag in your request. When
56
- * you remove the last tag from an image, the image is deleted from your repository.</p>
57
- * <p>You can completely delete an image (and all of its tags) by specifying the digest of the
58
- * image in your request.</p>
34
+ * @see {@link BatchDeleteImageCommand}
59
35
  */
60
36
  batchDeleteImage(args: BatchDeleteImageCommandInput, options?: __HttpHandlerOptions): Promise<BatchDeleteImageCommandOutput>;
61
37
  batchDeleteImage(args: BatchDeleteImageCommandInput, cb: (err: any, data?: BatchDeleteImageCommandOutput) => void): void;
62
38
  batchDeleteImage(args: BatchDeleteImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDeleteImageCommandOutput) => void): void;
63
39
  /**
64
- * @public
65
- * <p>Informs Amazon ECR that the image layer upload is complete for a specified public registry,
66
- * repository name, and upload ID. You can optionally provide a <code>sha256</code> digest of
67
- * the image layer for data validation purposes.</p>
68
- * <p>When an image is pushed, the CompleteLayerUpload API is called once for each new image
69
- * layer to verify that the upload is complete.</p>
70
- * <note>
71
- * <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>
72
- * </note>
40
+ * @see {@link CompleteLayerUploadCommand}
73
41
  */
74
42
  completeLayerUpload(args: CompleteLayerUploadCommandInput, options?: __HttpHandlerOptions): Promise<CompleteLayerUploadCommandOutput>;
75
43
  completeLayerUpload(args: CompleteLayerUploadCommandInput, cb: (err: any, data?: CompleteLayerUploadCommandOutput) => void): void;
76
44
  completeLayerUpload(args: CompleteLayerUploadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CompleteLayerUploadCommandOutput) => void): void;
77
45
  /**
78
- * @public
79
- * <p>Creates a repository in a public registry. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/Repositories.html">Amazon ECR
80
- * repositories</a> in the <i>Amazon Elastic Container Registry User Guide</i>.</p>
46
+ * @see {@link CreateRepositoryCommand}
81
47
  */
82
48
  createRepository(args: CreateRepositoryCommandInput, options?: __HttpHandlerOptions): Promise<CreateRepositoryCommandOutput>;
83
49
  createRepository(args: CreateRepositoryCommandInput, cb: (err: any, data?: CreateRepositoryCommandOutput) => void): void;
84
50
  createRepository(args: CreateRepositoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRepositoryCommandOutput) => void): void;
85
51
  /**
86
- * @public
87
- * <p>Deletes a repository in a public registry. If the repository contains images, you must
88
- * either manually delete all images in the repository or use the <code>force</code> option.
89
- * This option deletes all images on your behalf before deleting the repository.</p>
52
+ * @see {@link DeleteRepositoryCommand}
90
53
  */
91
54
  deleteRepository(args: DeleteRepositoryCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRepositoryCommandOutput>;
92
55
  deleteRepository(args: DeleteRepositoryCommandInput, cb: (err: any, data?: DeleteRepositoryCommandOutput) => void): void;
93
56
  deleteRepository(args: DeleteRepositoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRepositoryCommandOutput) => void): void;
94
57
  /**
95
- * @public
96
- * <p>Deletes the repository policy that's associated with the specified repository.</p>
58
+ * @see {@link DeleteRepositoryPolicyCommand}
97
59
  */
98
60
  deleteRepositoryPolicy(args: DeleteRepositoryPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRepositoryPolicyCommandOutput>;
99
61
  deleteRepositoryPolicy(args: DeleteRepositoryPolicyCommandInput, cb: (err: any, data?: DeleteRepositoryPolicyCommandOutput) => void): void;
100
62
  deleteRepositoryPolicy(args: DeleteRepositoryPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRepositoryPolicyCommandOutput) => void): void;
101
63
  /**
102
- * @public
103
- * <p>Returns metadata that's related to the images in a repository in a public
104
- * registry.</p>
105
- * <note>
106
- * <p>Beginning with Docker version 1.9, the Docker client compresses image layers before
107
- * pushing them to a V2 Docker registry. The output of the <code>docker images</code>
108
- * command shows the uncompressed image size. Therefore, it might return a larger image
109
- * size than the image sizes that are returned by <a>DescribeImages</a>.</p>
110
- * </note>
64
+ * @see {@link DescribeImagesCommand}
111
65
  */
112
66
  describeImages(args: DescribeImagesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeImagesCommandOutput>;
113
67
  describeImages(args: DescribeImagesCommandInput, cb: (err: any, data?: DescribeImagesCommandOutput) => void): void;
114
68
  describeImages(args: DescribeImagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeImagesCommandOutput) => void): void;
115
69
  /**
116
- * @public
117
- * <p>Returns the image tag details for a repository in a public registry.</p>
70
+ * @see {@link DescribeImageTagsCommand}
118
71
  */
119
72
  describeImageTags(args: DescribeImageTagsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeImageTagsCommandOutput>;
120
73
  describeImageTags(args: DescribeImageTagsCommandInput, cb: (err: any, data?: DescribeImageTagsCommandOutput) => void): void;
121
74
  describeImageTags(args: DescribeImageTagsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeImageTagsCommandOutput) => void): void;
122
75
  /**
123
- * @public
124
- * <p>Returns details for a public registry.</p>
76
+ * @see {@link DescribeRegistriesCommand}
125
77
  */
126
78
  describeRegistries(args: DescribeRegistriesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRegistriesCommandOutput>;
127
79
  describeRegistries(args: DescribeRegistriesCommandInput, cb: (err: any, data?: DescribeRegistriesCommandOutput) => void): void;
128
80
  describeRegistries(args: DescribeRegistriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRegistriesCommandOutput) => void): void;
129
81
  /**
130
- * @public
131
- * <p>Describes repositories that are in a public registry.</p>
82
+ * @see {@link DescribeRepositoriesCommand}
132
83
  */
133
84
  describeRepositories(args: DescribeRepositoriesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRepositoriesCommandOutput>;
134
85
  describeRepositories(args: DescribeRepositoriesCommandInput, cb: (err: any, data?: DescribeRepositoriesCommandOutput) => void): void;
135
86
  describeRepositories(args: DescribeRepositoriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRepositoriesCommandOutput) => void): void;
136
87
  /**
137
- * @public
138
- * <p>Retrieves an authorization token. An authorization token represents your IAM
139
- * authentication credentials. You can use it to access any Amazon ECR registry that your IAM
140
- * principal has access to. The authorization token is valid for 12 hours. This API requires
141
- * the <code>ecr-public:GetAuthorizationToken</code> and
142
- * <code>sts:GetServiceBearerToken</code> permissions.</p>
88
+ * @see {@link GetAuthorizationTokenCommand}
143
89
  */
144
90
  getAuthorizationToken(args: GetAuthorizationTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetAuthorizationTokenCommandOutput>;
145
91
  getAuthorizationToken(args: GetAuthorizationTokenCommandInput, cb: (err: any, data?: GetAuthorizationTokenCommandOutput) => void): void;
146
92
  getAuthorizationToken(args: GetAuthorizationTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAuthorizationTokenCommandOutput) => void): void;
147
93
  /**
148
- * @public
149
- * <p>Retrieves catalog metadata for a public registry.</p>
94
+ * @see {@link GetRegistryCatalogDataCommand}
150
95
  */
151
96
  getRegistryCatalogData(args: GetRegistryCatalogDataCommandInput, options?: __HttpHandlerOptions): Promise<GetRegistryCatalogDataCommandOutput>;
152
97
  getRegistryCatalogData(args: GetRegistryCatalogDataCommandInput, cb: (err: any, data?: GetRegistryCatalogDataCommandOutput) => void): void;
153
98
  getRegistryCatalogData(args: GetRegistryCatalogDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRegistryCatalogDataCommandOutput) => void): void;
154
99
  /**
155
- * @public
156
- * <p>Retrieve catalog metadata for a repository in a public registry. This metadata is
157
- * displayed publicly in the Amazon ECR Public Gallery.</p>
100
+ * @see {@link GetRepositoryCatalogDataCommand}
158
101
  */
159
102
  getRepositoryCatalogData(args: GetRepositoryCatalogDataCommandInput, options?: __HttpHandlerOptions): Promise<GetRepositoryCatalogDataCommandOutput>;
160
103
  getRepositoryCatalogData(args: GetRepositoryCatalogDataCommandInput, cb: (err: any, data?: GetRepositoryCatalogDataCommandOutput) => void): void;
161
104
  getRepositoryCatalogData(args: GetRepositoryCatalogDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRepositoryCatalogDataCommandOutput) => void): void;
162
105
  /**
163
- * @public
164
- * <p>Retrieves the repository policy for the specified repository.</p>
106
+ * @see {@link GetRepositoryPolicyCommand}
165
107
  */
166
108
  getRepositoryPolicy(args: GetRepositoryPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetRepositoryPolicyCommandOutput>;
167
109
  getRepositoryPolicy(args: GetRepositoryPolicyCommandInput, cb: (err: any, data?: GetRepositoryPolicyCommandOutput) => void): void;
168
110
  getRepositoryPolicy(args: GetRepositoryPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRepositoryPolicyCommandOutput) => void): void;
169
111
  /**
170
- * @public
171
- * <p>Notifies Amazon ECR that you intend to upload an image layer.</p>
172
- * <p>When an image is pushed, the InitiateLayerUpload API is called once for each image layer
173
- * that hasn't already been uploaded. Whether an image layer uploads is determined by the
174
- * BatchCheckLayerAvailability API action.</p>
175
- * <note>
176
- * <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>
177
- * </note>
112
+ * @see {@link InitiateLayerUploadCommand}
178
113
  */
179
114
  initiateLayerUpload(args: InitiateLayerUploadCommandInput, options?: __HttpHandlerOptions): Promise<InitiateLayerUploadCommandOutput>;
180
115
  initiateLayerUpload(args: InitiateLayerUploadCommandInput, cb: (err: any, data?: InitiateLayerUploadCommandOutput) => void): void;
181
116
  initiateLayerUpload(args: InitiateLayerUploadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InitiateLayerUploadCommandOutput) => void): void;
182
117
  /**
183
- * @public
184
- * <p>List the tags for an Amazon ECR Public resource.</p>
118
+ * @see {@link ListTagsForResourceCommand}
185
119
  */
186
120
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
187
121
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
188
122
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
189
123
  /**
190
- * @public
191
- * <p>Creates or updates the image manifest and tags that are associated with an image.</p>
192
- * <p>When an image is pushed and all new image layers have been uploaded, the PutImage API is
193
- * called once to create or update the image manifest and the tags that are associated with
194
- * the image.</p>
195
- * <note>
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>
197
- * </note>
124
+ * @see {@link PutImageCommand}
198
125
  */
199
126
  putImage(args: PutImageCommandInput, options?: __HttpHandlerOptions): Promise<PutImageCommandOutput>;
200
127
  putImage(args: PutImageCommandInput, cb: (err: any, data?: PutImageCommandOutput) => void): void;
201
128
  putImage(args: PutImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutImageCommandOutput) => void): void;
202
129
  /**
203
- * @public
204
- * <p>Create or update the catalog data for a public registry.</p>
130
+ * @see {@link PutRegistryCatalogDataCommand}
205
131
  */
206
132
  putRegistryCatalogData(args: PutRegistryCatalogDataCommandInput, options?: __HttpHandlerOptions): Promise<PutRegistryCatalogDataCommandOutput>;
207
133
  putRegistryCatalogData(args: PutRegistryCatalogDataCommandInput, cb: (err: any, data?: PutRegistryCatalogDataCommandOutput) => void): void;
208
134
  putRegistryCatalogData(args: PutRegistryCatalogDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRegistryCatalogDataCommandOutput) => void): void;
209
135
  /**
210
- * @public
211
- * <p>Creates or updates the catalog data for a repository in a public registry.</p>
136
+ * @see {@link PutRepositoryCatalogDataCommand}
212
137
  */
213
138
  putRepositoryCatalogData(args: PutRepositoryCatalogDataCommandInput, options?: __HttpHandlerOptions): Promise<PutRepositoryCatalogDataCommandOutput>;
214
139
  putRepositoryCatalogData(args: PutRepositoryCatalogDataCommandInput, cb: (err: any, data?: PutRepositoryCatalogDataCommandOutput) => void): void;
215
140
  putRepositoryCatalogData(args: PutRepositoryCatalogDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRepositoryCatalogDataCommandOutput) => void): void;
216
141
  /**
217
- * @public
218
- * <p>Applies a repository policy to the specified public repository to control access
219
- * permissions. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policies.html">Amazon ECR Repository
220
- * Policies</a> in the <i>Amazon Elastic Container Registry User Guide</i>.</p>
142
+ * @see {@link SetRepositoryPolicyCommand}
221
143
  */
222
144
  setRepositoryPolicy(args: SetRepositoryPolicyCommandInput, options?: __HttpHandlerOptions): Promise<SetRepositoryPolicyCommandOutput>;
223
145
  setRepositoryPolicy(args: SetRepositoryPolicyCommandInput, cb: (err: any, data?: SetRepositoryPolicyCommandOutput) => void): void;
224
146
  setRepositoryPolicy(args: SetRepositoryPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetRepositoryPolicyCommandOutput) => void): void;
225
147
  /**
226
- * @public
227
- * <p>Associates the specified tags to a resource with the specified <code>resourceArn</code>.
228
- * If existing tags on a resource aren't specified in the request parameters, they aren't
229
- * changed. When a resource is deleted, the tags associated with that resource are also
230
- * deleted.</p>
148
+ * @see {@link TagResourceCommand}
231
149
  */
232
150
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
233
151
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
234
152
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
235
153
  /**
236
- * @public
237
- * <p>Deletes specified tags from a resource.</p>
154
+ * @see {@link UntagResourceCommand}
238
155
  */
239
156
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
240
157
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
241
158
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
242
159
  /**
243
- * @public
244
- * <p>Uploads an image layer part to Amazon ECR.</p>
245
- * <p>When an image is pushed, each new image layer is uploaded in parts. The maximum size of
246
- * each image layer part can be 20971520 bytes (about 20MB). The UploadLayerPart API is called
247
- * once for each new image layer part.</p>
248
- * <note>
249
- * <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>
250
- * </note>
160
+ * @see {@link UploadLayerPartCommand}
251
161
  */
252
162
  uploadLayerPart(args: UploadLayerPartCommandInput, options?: __HttpHandlerOptions): Promise<UploadLayerPartCommandOutput>;
253
163
  uploadLayerPart(args: UploadLayerPartCommandInput, cb: (err: any, data?: UploadLayerPartCommandOutput) => void): void;
254
164
  uploadLayerPart(args: UploadLayerPartCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UploadLayerPartCommandOutput) => void): void;
255
165
  }
166
+ /**
167
+ * @public
168
+ * <fullname>Amazon Elastic Container Registry Public</fullname>
169
+ * <p>Amazon Elastic Container Registry Public (Amazon ECR Public) is a managed container image registry service. Amazon ECR provides both
170
+ * public and private registries to host your container images. You can use the Docker CLI or
171
+ * your preferred client to push, pull, and manage images. Amazon ECR provides a secure, scalable,
172
+ * and reliable registry for your Docker or Open Container Initiative (OCI) images. Amazon ECR
173
+ * supports public repositories with this API. For information about the Amazon ECR API for private
174
+ * repositories, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/APIReference/Welcome.html">Amazon Elastic Container Registry API Reference</a>.</p>
175
+ */
176
+ export declare class ECRPUBLIC extends ECRPUBLICClient implements ECRPUBLIC {
177
+ }
@@ -92,7 +92,7 @@ import {
92
92
  UploadLayerPartCommandOutput,
93
93
  } from "./commands/UploadLayerPartCommand";
94
94
  import { ECRPUBLICClient } from "./ECRPUBLICClient";
95
- export declare class ECRPUBLIC extends ECRPUBLICClient {
95
+ export interface ECRPUBLIC {
96
96
  batchCheckLayerAvailability(
97
97
  args: BatchCheckLayerAvailabilityCommandInput,
98
98
  options?: __HttpHandlerOptions
@@ -393,3 +393,4 @@ export declare class ECRPUBLIC extends ECRPUBLICClient {
393
393
  cb: (err: any, data?: UploadLayerPartCommandOutput) => void
394
394
  ): void;
395
395
  }
396
+ export declare class ECRPUBLIC extends ECRPUBLICClient implements ECRPUBLIC {}
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.315.0",
4
+ "version": "3.319.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,9 +21,9 @@
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.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",