@aws-sdk/client-ecr-public 3.50.0 → 3.53.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/ECRPUBLICServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +306 -2
  5. package/dist-cjs/protocols/Aws_json1_1.js +290 -964
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/ECRPUBLICServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +282 -1
  9. package/dist-es/protocols/Aws_json1_1.js +576 -1011
  10. package/dist-types/index.d.ts +1 -0
  11. package/dist-types/models/ECRPUBLICServiceException.d.ts +10 -0
  12. package/dist-types/models/models_0.d.ts +163 -93
  13. package/dist-types/ts3.4/ECRPUBLIC.d.ts +120 -0
  14. package/dist-types/ts3.4/ECRPUBLICClient.d.ts +96 -0
  15. package/dist-types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +17 -0
  16. package/dist-types/ts3.4/commands/BatchDeleteImageCommand.d.ts +17 -0
  17. package/dist-types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +17 -0
  18. package/dist-types/ts3.4/commands/CreateRepositoryCommand.d.ts +17 -0
  19. package/dist-types/ts3.4/commands/DeleteRepositoryCommand.d.ts +17 -0
  20. package/dist-types/ts3.4/commands/DeleteRepositoryPolicyCommand.d.ts +17 -0
  21. package/dist-types/ts3.4/commands/DescribeImageTagsCommand.d.ts +17 -0
  22. package/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +17 -0
  23. package/dist-types/ts3.4/commands/DescribeRegistriesCommand.d.ts +17 -0
  24. package/dist-types/ts3.4/commands/DescribeRepositoriesCommand.d.ts +17 -0
  25. package/dist-types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +17 -0
  26. package/dist-types/ts3.4/commands/GetRegistryCatalogDataCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/GetRepositoryCatalogDataCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/GetRepositoryPolicyCommand.d.ts +17 -0
  29. package/dist-types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/PutImageCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/PutRegistryCatalogDataCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/PutRepositoryCatalogDataCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  36. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  37. package/dist-types/ts3.4/commands/UploadLayerPartCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +23 -0
  39. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  40. package/dist-types/ts3.4/index.d.ts +6 -0
  41. package/dist-types/ts3.4/models/ECRPUBLICServiceException.d.ts +6 -0
  42. package/dist-types/ts3.4/models/index.d.ts +1 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +921 -0
  44. package/dist-types/ts3.4/pagination/DescribeImageTagsPaginator.d.ts +4 -0
  45. package/dist-types/ts3.4/pagination/DescribeImagesPaginator.d.ts +4 -0
  46. package/dist-types/ts3.4/pagination/DescribeRegistriesPaginator.d.ts +4 -0
  47. package/dist-types/ts3.4/pagination/DescribeRepositoriesPaginator.d.ts +4 -0
  48. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  49. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  50. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +71 -0
  51. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  52. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  53. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  54. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  55. package/package.json +33 -33
@@ -3,3 +3,4 @@ export * from "./ECRPUBLICClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { ECRPUBLICServiceException } from "./models/ECRPUBLICServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from ECRPUBLIC service.
4
+ */
5
+ export declare class ECRPUBLICServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ECRPUBLICServiceException as __BaseException } from "./ECRPUBLICServiceException";
2
3
  /**
3
4
  * <p>An authorization token data object that corresponds to a public registry.</p>
4
5
  */
@@ -123,35 +124,47 @@ export declare namespace BatchCheckLayerAvailabilityResponse {
123
124
  * <p>The specified parameter is invalid. Review the available parameters for the API
124
125
  * request.</p>
125
126
  */
126
- export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
127
- name: "InvalidParameterException";
128
- $fault: "client";
129
- message?: string;
127
+ export declare class InvalidParameterException extends __BaseException {
128
+ readonly name: "InvalidParameterException";
129
+ readonly $fault: "client";
130
+ /**
131
+ * @internal
132
+ */
133
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
130
134
  }
131
135
  /**
132
136
  * <p>The registry does not exist.</p>
133
137
  */
134
- export interface RegistryNotFoundException extends __SmithyException, $MetadataBearer {
135
- name: "RegistryNotFoundException";
136
- $fault: "client";
137
- message?: string;
138
+ export declare class RegistryNotFoundException extends __BaseException {
139
+ readonly name: "RegistryNotFoundException";
140
+ readonly $fault: "client";
141
+ /**
142
+ * @internal
143
+ */
144
+ constructor(opts: __ExceptionOptionType<RegistryNotFoundException, __BaseException>);
138
145
  }
139
146
  /**
140
147
  * <p>The specified repository could not be found. Check the spelling of the specified
141
148
  * repository and ensure that you are performing operations on the correct registry.</p>
142
149
  */
143
- export interface RepositoryNotFoundException extends __SmithyException, $MetadataBearer {
144
- name: "RepositoryNotFoundException";
145
- $fault: "client";
146
- message?: string;
150
+ export declare class RepositoryNotFoundException extends __BaseException {
151
+ readonly name: "RepositoryNotFoundException";
152
+ readonly $fault: "client";
153
+ /**
154
+ * @internal
155
+ */
156
+ constructor(opts: __ExceptionOptionType<RepositoryNotFoundException, __BaseException>);
147
157
  }
148
158
  /**
149
159
  * <p>These errors are usually caused by a server-side issue.</p>
150
160
  */
151
- export interface ServerException extends __SmithyException, $MetadataBearer {
152
- name: "ServerException";
153
- $fault: "server";
154
- message?: string;
161
+ export declare class ServerException extends __BaseException {
162
+ readonly name: "ServerException";
163
+ readonly $fault: "server";
164
+ /**
165
+ * @internal
166
+ */
167
+ constructor(opts: __ExceptionOptionType<ServerException, __BaseException>);
155
168
  }
156
169
  /**
157
170
  * <p>An object with identifying information for an Amazon ECR image.</p>
@@ -297,52 +310,70 @@ export declare namespace CompleteLayerUploadResponse {
297
310
  /**
298
311
  * <p>The specified layer upload does not contain any layer parts.</p>
299
312
  */
300
- export interface EmptyUploadException extends __SmithyException, $MetadataBearer {
301
- name: "EmptyUploadException";
302
- $fault: "client";
303
- message?: string;
313
+ export declare class EmptyUploadException extends __BaseException {
314
+ readonly name: "EmptyUploadException";
315
+ readonly $fault: "client";
316
+ /**
317
+ * @internal
318
+ */
319
+ constructor(opts: __ExceptionOptionType<EmptyUploadException, __BaseException>);
304
320
  }
305
321
  /**
306
322
  * <p>The layer digest calculation performed by Amazon ECR upon receipt of the image layer does not
307
323
  * match the digest specified.</p>
308
324
  */
309
- export interface InvalidLayerException extends __SmithyException, $MetadataBearer {
310
- name: "InvalidLayerException";
311
- $fault: "client";
312
- message?: string;
325
+ export declare class InvalidLayerException extends __BaseException {
326
+ readonly name: "InvalidLayerException";
327
+ readonly $fault: "client";
328
+ /**
329
+ * @internal
330
+ */
331
+ constructor(opts: __ExceptionOptionType<InvalidLayerException, __BaseException>);
313
332
  }
314
333
  /**
315
334
  * <p>The image layer already exists in the associated repository.</p>
316
335
  */
317
- export interface LayerAlreadyExistsException extends __SmithyException, $MetadataBearer {
318
- name: "LayerAlreadyExistsException";
319
- $fault: "client";
320
- message?: string;
336
+ export declare class LayerAlreadyExistsException extends __BaseException {
337
+ readonly name: "LayerAlreadyExistsException";
338
+ readonly $fault: "client";
339
+ /**
340
+ * @internal
341
+ */
342
+ constructor(opts: __ExceptionOptionType<LayerAlreadyExistsException, __BaseException>);
321
343
  }
322
344
  /**
323
345
  * <p>Layer parts must be at least 5 MiB in size.</p>
324
346
  */
325
- export interface LayerPartTooSmallException extends __SmithyException, $MetadataBearer {
326
- name: "LayerPartTooSmallException";
327
- $fault: "client";
328
- message?: string;
347
+ export declare class LayerPartTooSmallException extends __BaseException {
348
+ readonly name: "LayerPartTooSmallException";
349
+ readonly $fault: "client";
350
+ /**
351
+ * @internal
352
+ */
353
+ constructor(opts: __ExceptionOptionType<LayerPartTooSmallException, __BaseException>);
329
354
  }
330
355
  /**
331
356
  * <p>The action is not supported in this Region.</p>
332
357
  */
333
- export interface UnsupportedCommandException extends __SmithyException, $MetadataBearer {
334
- name: "UnsupportedCommandException";
335
- $fault: "client";
336
- message?: string;
358
+ export declare class UnsupportedCommandException extends __BaseException {
359
+ readonly name: "UnsupportedCommandException";
360
+ readonly $fault: "client";
361
+ /**
362
+ * @internal
363
+ */
364
+ constructor(opts: __ExceptionOptionType<UnsupportedCommandException, __BaseException>);
337
365
  }
338
366
  /**
339
367
  * <p>The upload could not be found, or the specified upload ID is not valid for this
340
368
  * repository.</p>
341
369
  */
342
- export interface UploadNotFoundException extends __SmithyException, $MetadataBearer {
343
- name: "UploadNotFoundException";
344
- $fault: "client";
345
- message?: string;
370
+ export declare class UploadNotFoundException extends __BaseException {
371
+ readonly name: "UploadNotFoundException";
372
+ readonly $fault: "client";
373
+ /**
374
+ * @internal
375
+ */
376
+ constructor(opts: __ExceptionOptionType<UploadNotFoundException, __BaseException>);
346
377
  }
347
378
  /**
348
379
  * <p>An object containing the catalog data for a repository. This data is publicly visible in
@@ -588,37 +619,49 @@ export declare namespace CreateRepositoryResponse {
588
619
  /**
589
620
  * <p>An invalid parameter has been specified. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.</p>
590
621
  */
591
- export interface InvalidTagParameterException extends __SmithyException, $MetadataBearer {
592
- name: "InvalidTagParameterException";
593
- $fault: "client";
594
- message?: string;
622
+ export declare class InvalidTagParameterException extends __BaseException {
623
+ readonly name: "InvalidTagParameterException";
624
+ readonly $fault: "client";
625
+ /**
626
+ * @internal
627
+ */
628
+ constructor(opts: __ExceptionOptionType<InvalidTagParameterException, __BaseException>);
595
629
  }
596
630
  /**
597
631
  * <p>The operation did not succeed because it would have exceeded a service limit for your
598
632
  * account. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/service-quotas.html">Amazon ECR Service Quotas</a> in the
599
633
  * Amazon Elastic Container Registry User Guide.</p>
600
634
  */
601
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
602
- name: "LimitExceededException";
603
- $fault: "client";
604
- message?: string;
635
+ export declare class LimitExceededException extends __BaseException {
636
+ readonly name: "LimitExceededException";
637
+ readonly $fault: "client";
638
+ /**
639
+ * @internal
640
+ */
641
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
605
642
  }
606
643
  /**
607
644
  * <p>The specified repository already exists in the specified registry.</p>
608
645
  */
609
- export interface RepositoryAlreadyExistsException extends __SmithyException, $MetadataBearer {
610
- name: "RepositoryAlreadyExistsException";
611
- $fault: "client";
612
- message?: string;
646
+ export declare class RepositoryAlreadyExistsException extends __BaseException {
647
+ readonly name: "RepositoryAlreadyExistsException";
648
+ readonly $fault: "client";
649
+ /**
650
+ * @internal
651
+ */
652
+ constructor(opts: __ExceptionOptionType<RepositoryAlreadyExistsException, __BaseException>);
613
653
  }
614
654
  /**
615
655
  * <p>The list of tags on the repository is over the limit. The maximum number of tags that
616
656
  * can be applied to a repository is 50.</p>
617
657
  */
618
- export interface TooManyTagsException extends __SmithyException, $MetadataBearer {
619
- name: "TooManyTagsException";
620
- $fault: "client";
621
- message?: string;
658
+ export declare class TooManyTagsException extends __BaseException {
659
+ readonly name: "TooManyTagsException";
660
+ readonly $fault: "client";
661
+ /**
662
+ * @internal
663
+ */
664
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
622
665
  }
623
666
  export interface DeleteRepositoryRequest {
624
667
  /**
@@ -657,10 +700,13 @@ export declare namespace DeleteRepositoryResponse {
657
700
  * <p>The specified repository contains images. To delete a repository that contains images,
658
701
  * you must force the deletion with the <code>force</code> parameter.</p>
659
702
  */
660
- export interface RepositoryNotEmptyException extends __SmithyException, $MetadataBearer {
661
- name: "RepositoryNotEmptyException";
662
- $fault: "client";
663
- message?: string;
703
+ export declare class RepositoryNotEmptyException extends __BaseException {
704
+ readonly name: "RepositoryNotEmptyException";
705
+ readonly $fault: "client";
706
+ /**
707
+ * @internal
708
+ */
709
+ constructor(opts: __ExceptionOptionType<RepositoryNotEmptyException, __BaseException>);
664
710
  }
665
711
  export interface DeleteRepositoryPolicyRequest {
666
712
  /**
@@ -704,10 +750,13 @@ export declare namespace DeleteRepositoryPolicyResponse {
704
750
  * <p>The specified repository and registry combination does not have an associated repository
705
751
  * policy.</p>
706
752
  */
707
- export interface RepositoryPolicyNotFoundException extends __SmithyException, $MetadataBearer {
708
- name: "RepositoryPolicyNotFoundException";
709
- $fault: "client";
710
- message?: string;
753
+ export declare class RepositoryPolicyNotFoundException extends __BaseException {
754
+ readonly name: "RepositoryPolicyNotFoundException";
755
+ readonly $fault: "client";
756
+ /**
757
+ * @internal
758
+ */
759
+ constructor(opts: __ExceptionOptionType<RepositoryPolicyNotFoundException, __BaseException>);
711
760
  }
712
761
  export interface DescribeImagesRequest {
713
762
  /**
@@ -828,10 +877,13 @@ export declare namespace DescribeImagesResponse {
828
877
  /**
829
878
  * <p>The image requested does not exist in the specified repository.</p>
830
879
  */
831
- export interface ImageNotFoundException extends __SmithyException, $MetadataBearer {
832
- name: "ImageNotFoundException";
833
- $fault: "client";
834
- message?: string;
880
+ export declare class ImageNotFoundException extends __BaseException {
881
+ readonly name: "ImageNotFoundException";
882
+ readonly $fault: "client";
883
+ /**
884
+ * @internal
885
+ */
886
+ constructor(opts: __ExceptionOptionType<ImageNotFoundException, __BaseException>);
835
887
  }
836
888
  export interface DescribeImageTagsRequest {
837
889
  /**
@@ -1304,28 +1356,37 @@ export declare namespace Image {
1304
1356
  * <p>The specified image has already been pushed, and there were no changes to the manifest
1305
1357
  * or image tag after the last push.</p>
1306
1358
  */
1307
- export interface ImageAlreadyExistsException extends __SmithyException, $MetadataBearer {
1308
- name: "ImageAlreadyExistsException";
1309
- $fault: "client";
1310
- message?: string;
1359
+ export declare class ImageAlreadyExistsException extends __BaseException {
1360
+ readonly name: "ImageAlreadyExistsException";
1361
+ readonly $fault: "client";
1362
+ /**
1363
+ * @internal
1364
+ */
1365
+ constructor(opts: __ExceptionOptionType<ImageAlreadyExistsException, __BaseException>);
1311
1366
  }
1312
1367
  /**
1313
1368
  * <p>The specified image digest does not match the digest that Amazon ECR calculated for the
1314
1369
  * image.</p>
1315
1370
  */
1316
- export interface ImageDigestDoesNotMatchException extends __SmithyException, $MetadataBearer {
1317
- name: "ImageDigestDoesNotMatchException";
1318
- $fault: "client";
1319
- message?: string;
1371
+ export declare class ImageDigestDoesNotMatchException extends __BaseException {
1372
+ readonly name: "ImageDigestDoesNotMatchException";
1373
+ readonly $fault: "client";
1374
+ /**
1375
+ * @internal
1376
+ */
1377
+ constructor(opts: __ExceptionOptionType<ImageDigestDoesNotMatchException, __BaseException>);
1320
1378
  }
1321
1379
  /**
1322
1380
  * <p>The specified image is tagged with a tag that already exists. The repository is
1323
1381
  * configured for tag immutability.</p>
1324
1382
  */
1325
- export interface ImageTagAlreadyExistsException extends __SmithyException, $MetadataBearer {
1326
- name: "ImageTagAlreadyExistsException";
1327
- $fault: "client";
1328
- message?: string;
1383
+ export declare class ImageTagAlreadyExistsException extends __BaseException {
1384
+ readonly name: "ImageTagAlreadyExistsException";
1385
+ readonly $fault: "client";
1386
+ /**
1387
+ * @internal
1388
+ */
1389
+ constructor(opts: __ExceptionOptionType<ImageTagAlreadyExistsException, __BaseException>);
1329
1390
  }
1330
1391
  export interface InitiateLayerUploadRequest {
1331
1392
  /**
@@ -1364,9 +1425,9 @@ export declare namespace InitiateLayerUploadResponse {
1364
1425
  * <p>The layer part size is not valid, or the first byte specified is not consecutive to the
1365
1426
  * last byte of a previous layer part upload.</p>
1366
1427
  */
1367
- export interface InvalidLayerPartException extends __SmithyException, $MetadataBearer {
1368
- name: "InvalidLayerPartException";
1369
- $fault: "client";
1428
+ export declare class InvalidLayerPartException extends __BaseException {
1429
+ readonly name: "InvalidLayerPartException";
1430
+ readonly $fault: "client";
1370
1431
  /**
1371
1432
  * <p>The AWS account ID associated with the layer part.</p>
1372
1433
  */
@@ -1383,16 +1444,22 @@ export interface InvalidLayerPartException extends __SmithyException, $MetadataB
1383
1444
  * <p>The position of the last byte of the layer part.</p>
1384
1445
  */
1385
1446
  lastValidByteReceived?: number;
1386
- message?: string;
1447
+ /**
1448
+ * @internal
1449
+ */
1450
+ constructor(opts: __ExceptionOptionType<InvalidLayerPartException, __BaseException>);
1387
1451
  }
1388
1452
  /**
1389
1453
  * <p>The specified layers could not be found, or the specified layer is not valid for this
1390
1454
  * repository.</p>
1391
1455
  */
1392
- export interface LayersNotFoundException extends __SmithyException, $MetadataBearer {
1393
- name: "LayersNotFoundException";
1394
- $fault: "client";
1395
- message?: string;
1456
+ export declare class LayersNotFoundException extends __BaseException {
1457
+ readonly name: "LayersNotFoundException";
1458
+ readonly $fault: "client";
1459
+ /**
1460
+ * @internal
1461
+ */
1462
+ constructor(opts: __ExceptionOptionType<LayersNotFoundException, __BaseException>);
1396
1463
  }
1397
1464
  export interface ListTagsForResourceRequest {
1398
1465
  /**
@@ -1470,10 +1537,13 @@ export declare namespace PutImageResponse {
1470
1537
  /**
1471
1538
  * <p>The manifest list is referencing an image that does not exist.</p>
1472
1539
  */
1473
- export interface ReferencedImagesNotFoundException extends __SmithyException, $MetadataBearer {
1474
- name: "ReferencedImagesNotFoundException";
1475
- $fault: "client";
1476
- message?: string;
1540
+ export declare class ReferencedImagesNotFoundException extends __BaseException {
1541
+ readonly name: "ReferencedImagesNotFoundException";
1542
+ readonly $fault: "client";
1543
+ /**
1544
+ * @internal
1545
+ */
1546
+ constructor(opts: __ExceptionOptionType<ReferencedImagesNotFoundException, __BaseException>);
1477
1547
  }
1478
1548
  export interface PutRegistryCatalogDataRequest {
1479
1549
  /**
@@ -0,0 +1,120 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { BatchCheckLayerAvailabilityCommandInput, BatchCheckLayerAvailabilityCommandOutput } from "./commands/BatchCheckLayerAvailabilityCommand";
3
+ import { BatchDeleteImageCommandInput, BatchDeleteImageCommandOutput } from "./commands/BatchDeleteImageCommand";
4
+ import { CompleteLayerUploadCommandInput, CompleteLayerUploadCommandOutput } from "./commands/CompleteLayerUploadCommand";
5
+ import { CreateRepositoryCommandInput, CreateRepositoryCommandOutput } from "./commands/CreateRepositoryCommand";
6
+ import { DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput } from "./commands/DeleteRepositoryCommand";
7
+ import { DeleteRepositoryPolicyCommandInput, DeleteRepositoryPolicyCommandOutput } from "./commands/DeleteRepositoryPolicyCommand";
8
+ import { DescribeImagesCommandInput, DescribeImagesCommandOutput } from "./commands/DescribeImagesCommand";
9
+ import { DescribeImageTagsCommandInput, DescribeImageTagsCommandOutput } from "./commands/DescribeImageTagsCommand";
10
+ import { DescribeRegistriesCommandInput, DescribeRegistriesCommandOutput } from "./commands/DescribeRegistriesCommand";
11
+ import { DescribeRepositoriesCommandInput, DescribeRepositoriesCommandOutput } from "./commands/DescribeRepositoriesCommand";
12
+ import { GetAuthorizationTokenCommandInput, GetAuthorizationTokenCommandOutput } from "./commands/GetAuthorizationTokenCommand";
13
+ import { GetRegistryCatalogDataCommandInput, GetRegistryCatalogDataCommandOutput } from "./commands/GetRegistryCatalogDataCommand";
14
+ import { GetRepositoryCatalogDataCommandInput, GetRepositoryCatalogDataCommandOutput } from "./commands/GetRepositoryCatalogDataCommand";
15
+ import { GetRepositoryPolicyCommandInput, GetRepositoryPolicyCommandOutput } from "./commands/GetRepositoryPolicyCommand";
16
+ import { InitiateLayerUploadCommandInput, InitiateLayerUploadCommandOutput } from "./commands/InitiateLayerUploadCommand";
17
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
18
+ import { PutImageCommandInput, PutImageCommandOutput } from "./commands/PutImageCommand";
19
+ import { PutRegistryCatalogDataCommandInput, PutRegistryCatalogDataCommandOutput } from "./commands/PutRegistryCatalogDataCommand";
20
+ import { PutRepositoryCatalogDataCommandInput, PutRepositoryCatalogDataCommandOutput } from "./commands/PutRepositoryCatalogDataCommand";
21
+ import { SetRepositoryPolicyCommandInput, SetRepositoryPolicyCommandOutput } from "./commands/SetRepositoryPolicyCommand";
22
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
23
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
24
+ import { UploadLayerPartCommandInput, UploadLayerPartCommandOutput } from "./commands/UploadLayerPartCommand";
25
+ import { ECRPUBLICClient } from "./ECRPUBLICClient";
26
+
27
+ export declare class ECRPUBLIC extends ECRPUBLICClient {
28
+
29
+ batchCheckLayerAvailability(args: BatchCheckLayerAvailabilityCommandInput, options?: __HttpHandlerOptions): Promise<BatchCheckLayerAvailabilityCommandOutput>;
30
+ batchCheckLayerAvailability(args: BatchCheckLayerAvailabilityCommandInput, cb: (err: any, data?: BatchCheckLayerAvailabilityCommandOutput) => void): void;
31
+ batchCheckLayerAvailability(args: BatchCheckLayerAvailabilityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchCheckLayerAvailabilityCommandOutput) => void): void;
32
+
33
+ batchDeleteImage(args: BatchDeleteImageCommandInput, options?: __HttpHandlerOptions): Promise<BatchDeleteImageCommandOutput>;
34
+ batchDeleteImage(args: BatchDeleteImageCommandInput, cb: (err: any, data?: BatchDeleteImageCommandOutput) => void): void;
35
+ batchDeleteImage(args: BatchDeleteImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDeleteImageCommandOutput) => void): void;
36
+
37
+ completeLayerUpload(args: CompleteLayerUploadCommandInput, options?: __HttpHandlerOptions): Promise<CompleteLayerUploadCommandOutput>;
38
+ completeLayerUpload(args: CompleteLayerUploadCommandInput, cb: (err: any, data?: CompleteLayerUploadCommandOutput) => void): void;
39
+ completeLayerUpload(args: CompleteLayerUploadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CompleteLayerUploadCommandOutput) => void): void;
40
+
41
+ createRepository(args: CreateRepositoryCommandInput, options?: __HttpHandlerOptions): Promise<CreateRepositoryCommandOutput>;
42
+ createRepository(args: CreateRepositoryCommandInput, cb: (err: any, data?: CreateRepositoryCommandOutput) => void): void;
43
+ createRepository(args: CreateRepositoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRepositoryCommandOutput) => void): void;
44
+
45
+ deleteRepository(args: DeleteRepositoryCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRepositoryCommandOutput>;
46
+ deleteRepository(args: DeleteRepositoryCommandInput, cb: (err: any, data?: DeleteRepositoryCommandOutput) => void): void;
47
+ deleteRepository(args: DeleteRepositoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRepositoryCommandOutput) => void): void;
48
+
49
+ deleteRepositoryPolicy(args: DeleteRepositoryPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRepositoryPolicyCommandOutput>;
50
+ deleteRepositoryPolicy(args: DeleteRepositoryPolicyCommandInput, cb: (err: any, data?: DeleteRepositoryPolicyCommandOutput) => void): void;
51
+ deleteRepositoryPolicy(args: DeleteRepositoryPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRepositoryPolicyCommandOutput) => void): void;
52
+
53
+ describeImages(args: DescribeImagesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeImagesCommandOutput>;
54
+ describeImages(args: DescribeImagesCommandInput, cb: (err: any, data?: DescribeImagesCommandOutput) => void): void;
55
+ describeImages(args: DescribeImagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeImagesCommandOutput) => void): void;
56
+
57
+ describeImageTags(args: DescribeImageTagsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeImageTagsCommandOutput>;
58
+ describeImageTags(args: DescribeImageTagsCommandInput, cb: (err: any, data?: DescribeImageTagsCommandOutput) => void): void;
59
+ describeImageTags(args: DescribeImageTagsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeImageTagsCommandOutput) => void): void;
60
+
61
+ describeRegistries(args: DescribeRegistriesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRegistriesCommandOutput>;
62
+ describeRegistries(args: DescribeRegistriesCommandInput, cb: (err: any, data?: DescribeRegistriesCommandOutput) => void): void;
63
+ describeRegistries(args: DescribeRegistriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRegistriesCommandOutput) => void): void;
64
+
65
+ describeRepositories(args: DescribeRepositoriesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRepositoriesCommandOutput>;
66
+ describeRepositories(args: DescribeRepositoriesCommandInput, cb: (err: any, data?: DescribeRepositoriesCommandOutput) => void): void;
67
+ describeRepositories(args: DescribeRepositoriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRepositoriesCommandOutput) => void): void;
68
+
69
+ getAuthorizationToken(args: GetAuthorizationTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetAuthorizationTokenCommandOutput>;
70
+ getAuthorizationToken(args: GetAuthorizationTokenCommandInput, cb: (err: any, data?: GetAuthorizationTokenCommandOutput) => void): void;
71
+ getAuthorizationToken(args: GetAuthorizationTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAuthorizationTokenCommandOutput) => void): void;
72
+
73
+ getRegistryCatalogData(args: GetRegistryCatalogDataCommandInput, options?: __HttpHandlerOptions): Promise<GetRegistryCatalogDataCommandOutput>;
74
+ getRegistryCatalogData(args: GetRegistryCatalogDataCommandInput, cb: (err: any, data?: GetRegistryCatalogDataCommandOutput) => void): void;
75
+ getRegistryCatalogData(args: GetRegistryCatalogDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRegistryCatalogDataCommandOutput) => void): void;
76
+
77
+ getRepositoryCatalogData(args: GetRepositoryCatalogDataCommandInput, options?: __HttpHandlerOptions): Promise<GetRepositoryCatalogDataCommandOutput>;
78
+ getRepositoryCatalogData(args: GetRepositoryCatalogDataCommandInput, cb: (err: any, data?: GetRepositoryCatalogDataCommandOutput) => void): void;
79
+ getRepositoryCatalogData(args: GetRepositoryCatalogDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRepositoryCatalogDataCommandOutput) => void): void;
80
+
81
+ getRepositoryPolicy(args: GetRepositoryPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetRepositoryPolicyCommandOutput>;
82
+ getRepositoryPolicy(args: GetRepositoryPolicyCommandInput, cb: (err: any, data?: GetRepositoryPolicyCommandOutput) => void): void;
83
+ getRepositoryPolicy(args: GetRepositoryPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRepositoryPolicyCommandOutput) => void): void;
84
+
85
+ initiateLayerUpload(args: InitiateLayerUploadCommandInput, options?: __HttpHandlerOptions): Promise<InitiateLayerUploadCommandOutput>;
86
+ initiateLayerUpload(args: InitiateLayerUploadCommandInput, cb: (err: any, data?: InitiateLayerUploadCommandOutput) => void): void;
87
+ initiateLayerUpload(args: InitiateLayerUploadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InitiateLayerUploadCommandOutput) => void): void;
88
+
89
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
90
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
91
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
92
+
93
+ putImage(args: PutImageCommandInput, options?: __HttpHandlerOptions): Promise<PutImageCommandOutput>;
94
+ putImage(args: PutImageCommandInput, cb: (err: any, data?: PutImageCommandOutput) => void): void;
95
+ putImage(args: PutImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutImageCommandOutput) => void): void;
96
+
97
+ putRegistryCatalogData(args: PutRegistryCatalogDataCommandInput, options?: __HttpHandlerOptions): Promise<PutRegistryCatalogDataCommandOutput>;
98
+ putRegistryCatalogData(args: PutRegistryCatalogDataCommandInput, cb: (err: any, data?: PutRegistryCatalogDataCommandOutput) => void): void;
99
+ putRegistryCatalogData(args: PutRegistryCatalogDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRegistryCatalogDataCommandOutput) => void): void;
100
+
101
+ putRepositoryCatalogData(args: PutRepositoryCatalogDataCommandInput, options?: __HttpHandlerOptions): Promise<PutRepositoryCatalogDataCommandOutput>;
102
+ putRepositoryCatalogData(args: PutRepositoryCatalogDataCommandInput, cb: (err: any, data?: PutRepositoryCatalogDataCommandOutput) => void): void;
103
+ putRepositoryCatalogData(args: PutRepositoryCatalogDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRepositoryCatalogDataCommandOutput) => void): void;
104
+
105
+ setRepositoryPolicy(args: SetRepositoryPolicyCommandInput, options?: __HttpHandlerOptions): Promise<SetRepositoryPolicyCommandOutput>;
106
+ setRepositoryPolicy(args: SetRepositoryPolicyCommandInput, cb: (err: any, data?: SetRepositoryPolicyCommandOutput) => void): void;
107
+ setRepositoryPolicy(args: SetRepositoryPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetRepositoryPolicyCommandOutput) => void): void;
108
+
109
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
110
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
111
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
112
+
113
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
114
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
115
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
116
+
117
+ uploadLayerPart(args: UploadLayerPartCommandInput, options?: __HttpHandlerOptions): Promise<UploadLayerPartCommandOutput>;
118
+ uploadLayerPart(args: UploadLayerPartCommandInput, cb: (err: any, data?: UploadLayerPartCommandOutput) => void): void;
119
+ uploadLayerPart(args: UploadLayerPartCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UploadLayerPartCommandOutput) => void): void;
120
+ }
@@ -0,0 +1,96 @@
1
+ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { BatchCheckLayerAvailabilityCommandInput, BatchCheckLayerAvailabilityCommandOutput } from "./commands/BatchCheckLayerAvailabilityCommand";
10
+ import { BatchDeleteImageCommandInput, BatchDeleteImageCommandOutput } from "./commands/BatchDeleteImageCommand";
11
+ import { CompleteLayerUploadCommandInput, CompleteLayerUploadCommandOutput } from "./commands/CompleteLayerUploadCommand";
12
+ import { CreateRepositoryCommandInput, CreateRepositoryCommandOutput } from "./commands/CreateRepositoryCommand";
13
+ import { DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput } from "./commands/DeleteRepositoryCommand";
14
+ import { DeleteRepositoryPolicyCommandInput, DeleteRepositoryPolicyCommandOutput } from "./commands/DeleteRepositoryPolicyCommand";
15
+ import { DescribeImagesCommandInput, DescribeImagesCommandOutput } from "./commands/DescribeImagesCommand";
16
+ import { DescribeImageTagsCommandInput, DescribeImageTagsCommandOutput } from "./commands/DescribeImageTagsCommand";
17
+ import { DescribeRegistriesCommandInput, DescribeRegistriesCommandOutput } from "./commands/DescribeRegistriesCommand";
18
+ import { DescribeRepositoriesCommandInput, DescribeRepositoriesCommandOutput } from "./commands/DescribeRepositoriesCommand";
19
+ import { GetAuthorizationTokenCommandInput, GetAuthorizationTokenCommandOutput } from "./commands/GetAuthorizationTokenCommand";
20
+ import { GetRegistryCatalogDataCommandInput, GetRegistryCatalogDataCommandOutput } from "./commands/GetRegistryCatalogDataCommand";
21
+ import { GetRepositoryCatalogDataCommandInput, GetRepositoryCatalogDataCommandOutput } from "./commands/GetRepositoryCatalogDataCommand";
22
+ import { GetRepositoryPolicyCommandInput, GetRepositoryPolicyCommandOutput } from "./commands/GetRepositoryPolicyCommand";
23
+ import { InitiateLayerUploadCommandInput, InitiateLayerUploadCommandOutput } from "./commands/InitiateLayerUploadCommand";
24
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
25
+ import { PutImageCommandInput, PutImageCommandOutput } from "./commands/PutImageCommand";
26
+ import { PutRegistryCatalogDataCommandInput, PutRegistryCatalogDataCommandOutput } from "./commands/PutRegistryCatalogDataCommand";
27
+ import { PutRepositoryCatalogDataCommandInput, PutRepositoryCatalogDataCommandOutput } from "./commands/PutRepositoryCatalogDataCommand";
28
+ import { SetRepositoryPolicyCommandInput, SetRepositoryPolicyCommandOutput } from "./commands/SetRepositoryPolicyCommand";
29
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
30
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
31
+ import { UploadLayerPartCommandInput, UploadLayerPartCommandOutput } from "./commands/UploadLayerPartCommand";
32
+ export declare type ServiceInputTypes = BatchCheckLayerAvailabilityCommandInput | BatchDeleteImageCommandInput | CompleteLayerUploadCommandInput | CreateRepositoryCommandInput | DeleteRepositoryCommandInput | DeleteRepositoryPolicyCommandInput | DescribeImageTagsCommandInput | DescribeImagesCommandInput | DescribeRegistriesCommandInput | DescribeRepositoriesCommandInput | GetAuthorizationTokenCommandInput | GetRegistryCatalogDataCommandInput | GetRepositoryCatalogDataCommandInput | GetRepositoryPolicyCommandInput | InitiateLayerUploadCommandInput | ListTagsForResourceCommandInput | PutImageCommandInput | PutRegistryCatalogDataCommandInput | PutRepositoryCatalogDataCommandInput | SetRepositoryPolicyCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UploadLayerPartCommandInput;
33
+ export declare type ServiceOutputTypes = BatchCheckLayerAvailabilityCommandOutput | BatchDeleteImageCommandOutput | CompleteLayerUploadCommandOutput | CreateRepositoryCommandOutput | DeleteRepositoryCommandOutput | DeleteRepositoryPolicyCommandOutput | DescribeImageTagsCommandOutput | DescribeImagesCommandOutput | DescribeRegistriesCommandOutput | DescribeRepositoriesCommandOutput | GetAuthorizationTokenCommandOutput | GetRegistryCatalogDataCommandOutput | GetRepositoryCatalogDataCommandOutput | GetRepositoryPolicyCommandOutput | InitiateLayerUploadCommandOutput | ListTagsForResourceCommandOutput | PutImageCommandOutput | PutRegistryCatalogDataCommandOutput | PutRepositoryCatalogDataCommandOutput | SetRepositoryPolicyCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UploadLayerPartCommandOutput;
34
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
35
+
36
+ requestHandler?: __HttpHandler;
37
+
38
+ sha256?: __HashConstructor;
39
+
40
+ urlParser?: __UrlParser;
41
+
42
+ bodyLengthChecker?: (body: any) => number | undefined;
43
+
44
+ streamCollector?: __StreamCollector;
45
+
46
+ base64Decoder?: __Decoder;
47
+
48
+ base64Encoder?: __Encoder;
49
+
50
+ utf8Decoder?: __Decoder;
51
+
52
+ utf8Encoder?: __Encoder;
53
+
54
+ runtime?: string;
55
+
56
+ disableHostPrefix?: boolean;
57
+
58
+ maxAttempts?: number | __Provider<number>;
59
+
60
+ retryMode?: string | __Provider<string>;
61
+
62
+ logger?: __Logger;
63
+
64
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
65
+
66
+ useFipsEndpoint?: boolean | __Provider<boolean>;
67
+
68
+ serviceId?: string;
69
+
70
+ region?: string | __Provider<string>;
71
+
72
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
73
+
74
+ regionInfoProvider?: RegionInfoProvider;
75
+
76
+ defaultUserAgentProvider?: Provider<__UserAgent>;
77
+
78
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
79
+ }
80
+ declare type ECRPUBLICClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
81
+
82
+ export interface ECRPUBLICClientConfig extends ECRPUBLICClientConfigType {
83
+ }
84
+ declare type ECRPUBLICClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
85
+
86
+ export interface ECRPUBLICClientResolvedConfig extends ECRPUBLICClientResolvedConfigType {
87
+ }
88
+
89
+ export declare class ECRPUBLICClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ECRPUBLICClientResolvedConfig> {
90
+
91
+ readonly config: ECRPUBLICClientResolvedConfig;
92
+ constructor(configuration: ECRPUBLICClientConfig);
93
+
94
+ destroy(): void;
95
+ }
96
+ export {};