@aws-sdk/client-ecr-public 3.300.0 → 3.303.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 (26) hide show
  1. package/dist-cjs/models/models_0.js +22 -26
  2. package/dist-es/models/models_0.js +22 -26
  3. package/dist-types/commands/BatchCheckLayerAvailabilityCommand.d.ts +2 -2
  4. package/dist-types/commands/BatchDeleteImageCommand.d.ts +3 -3
  5. package/dist-types/commands/CompleteLayerUploadCommand.d.ts +2 -2
  6. package/dist-types/commands/CreateRepositoryCommand.d.ts +6 -6
  7. package/dist-types/commands/DeleteRepositoryCommand.d.ts +1 -1
  8. package/dist-types/commands/DeleteRepositoryPolicyCommand.d.ts +1 -1
  9. package/dist-types/commands/DescribeImageTagsCommand.d.ts +1 -1
  10. package/dist-types/commands/DescribeImagesCommand.d.ts +3 -3
  11. package/dist-types/commands/DescribeRegistriesCommand.d.ts +1 -1
  12. package/dist-types/commands/DescribeRepositoriesCommand.d.ts +2 -2
  13. package/dist-types/commands/GetRepositoryCatalogDataCommand.d.ts +1 -1
  14. package/dist-types/commands/GetRepositoryPolicyCommand.d.ts +1 -1
  15. package/dist-types/commands/InitiateLayerUploadCommand.d.ts +1 -1
  16. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  17. package/dist-types/commands/PutImageCommand.d.ts +1 -1
  18. package/dist-types/commands/PutRegistryCatalogDataCommand.d.ts +1 -1
  19. package/dist-types/commands/PutRepositoryCatalogDataCommand.d.ts +4 -4
  20. package/dist-types/commands/SetRepositoryPolicyCommand.d.ts +1 -1
  21. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  22. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  23. package/dist-types/commands/UploadLayerPartCommand.d.ts +1 -1
  24. package/dist-types/models/models_0.d.ts +42 -22
  25. package/dist-types/ts3.4/models/models_0.d.ts +30 -22
  26. package/package.json +34 -34
@@ -2,16 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ReferencedImagesNotFoundException = exports.LayersNotFoundException = exports.InvalidLayerPartException = exports.ImageTagAlreadyExistsException = exports.ImageDigestDoesNotMatchException = exports.ImageAlreadyExistsException = exports.RepositoryCatalogDataNotFoundException = exports.RegistryAliasStatus = exports.ImageNotFoundException = exports.RepositoryPolicyNotFoundException = exports.RepositoryNotEmptyException = exports.TooManyTagsException = exports.RepositoryAlreadyExistsException = exports.LimitExceededException = exports.InvalidTagParameterException = exports.UploadNotFoundException = exports.LayerPartTooSmallException = exports.LayerAlreadyExistsException = exports.InvalidLayerException = exports.EmptyUploadException = exports.ImageFailureCode = exports.UnsupportedCommandException = exports.ServerException = exports.RepositoryNotFoundException = exports.RegistryNotFoundException = exports.InvalidParameterException = exports.LayerAvailability = exports.LayerFailureCode = void 0;
4
4
  const ECRPUBLICServiceException_1 = require("./ECRPUBLICServiceException");
5
- var LayerFailureCode;
6
- (function (LayerFailureCode) {
7
- LayerFailureCode["InvalidLayerDigest"] = "InvalidLayerDigest";
8
- LayerFailureCode["MissingLayerDigest"] = "MissingLayerDigest";
9
- })(LayerFailureCode = exports.LayerFailureCode || (exports.LayerFailureCode = {}));
10
- var LayerAvailability;
11
- (function (LayerAvailability) {
12
- LayerAvailability["AVAILABLE"] = "AVAILABLE";
13
- LayerAvailability["UNAVAILABLE"] = "UNAVAILABLE";
14
- })(LayerAvailability = exports.LayerAvailability || (exports.LayerAvailability = {}));
5
+ exports.LayerFailureCode = {
6
+ InvalidLayerDigest: "InvalidLayerDigest",
7
+ MissingLayerDigest: "MissingLayerDigest",
8
+ };
9
+ exports.LayerAvailability = {
10
+ AVAILABLE: "AVAILABLE",
11
+ UNAVAILABLE: "UNAVAILABLE",
12
+ };
15
13
  class InvalidParameterException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
16
14
  constructor(opts) {
17
15
  super({
@@ -77,16 +75,15 @@ class UnsupportedCommandException extends ECRPUBLICServiceException_1.ECRPUBLICS
77
75
  }
78
76
  }
79
77
  exports.UnsupportedCommandException = UnsupportedCommandException;
80
- var ImageFailureCode;
81
- (function (ImageFailureCode) {
82
- ImageFailureCode["ImageNotFound"] = "ImageNotFound";
83
- ImageFailureCode["ImageReferencedByManifestList"] = "ImageReferencedByManifestList";
84
- ImageFailureCode["ImageTagDoesNotMatchDigest"] = "ImageTagDoesNotMatchDigest";
85
- ImageFailureCode["InvalidImageDigest"] = "InvalidImageDigest";
86
- ImageFailureCode["InvalidImageTag"] = "InvalidImageTag";
87
- ImageFailureCode["KmsError"] = "KmsError";
88
- ImageFailureCode["MissingDigestAndTag"] = "MissingDigestAndTag";
89
- })(ImageFailureCode = exports.ImageFailureCode || (exports.ImageFailureCode = {}));
78
+ exports.ImageFailureCode = {
79
+ ImageNotFound: "ImageNotFound",
80
+ ImageReferencedByManifestList: "ImageReferencedByManifestList",
81
+ ImageTagDoesNotMatchDigest: "ImageTagDoesNotMatchDigest",
82
+ InvalidImageDigest: "InvalidImageDigest",
83
+ InvalidImageTag: "InvalidImageTag",
84
+ KmsError: "KmsError",
85
+ MissingDigestAndTag: "MissingDigestAndTag",
86
+ };
90
87
  class EmptyUploadException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
91
88
  constructor(opts) {
92
89
  super({
@@ -243,12 +240,11 @@ class ImageNotFoundException extends ECRPUBLICServiceException_1.ECRPUBLICServic
243
240
  }
244
241
  }
245
242
  exports.ImageNotFoundException = ImageNotFoundException;
246
- var RegistryAliasStatus;
247
- (function (RegistryAliasStatus) {
248
- RegistryAliasStatus["ACTIVE"] = "ACTIVE";
249
- RegistryAliasStatus["PENDING"] = "PENDING";
250
- RegistryAliasStatus["REJECTED"] = "REJECTED";
251
- })(RegistryAliasStatus = exports.RegistryAliasStatus || (exports.RegistryAliasStatus = {}));
243
+ exports.RegistryAliasStatus = {
244
+ ACTIVE: "ACTIVE",
245
+ PENDING: "PENDING",
246
+ REJECTED: "REJECTED",
247
+ };
252
248
  class RepositoryCatalogDataNotFoundException extends ECRPUBLICServiceException_1.ECRPUBLICServiceException {
253
249
  constructor(opts) {
254
250
  super({
@@ -1,14 +1,12 @@
1
1
  import { ECRPUBLICServiceException as __BaseException } from "./ECRPUBLICServiceException";
2
- export var LayerFailureCode;
3
- (function (LayerFailureCode) {
4
- LayerFailureCode["InvalidLayerDigest"] = "InvalidLayerDigest";
5
- LayerFailureCode["MissingLayerDigest"] = "MissingLayerDigest";
6
- })(LayerFailureCode || (LayerFailureCode = {}));
7
- export var LayerAvailability;
8
- (function (LayerAvailability) {
9
- LayerAvailability["AVAILABLE"] = "AVAILABLE";
10
- LayerAvailability["UNAVAILABLE"] = "UNAVAILABLE";
11
- })(LayerAvailability || (LayerAvailability = {}));
2
+ export const LayerFailureCode = {
3
+ InvalidLayerDigest: "InvalidLayerDigest",
4
+ MissingLayerDigest: "MissingLayerDigest",
5
+ };
6
+ export const LayerAvailability = {
7
+ AVAILABLE: "AVAILABLE",
8
+ UNAVAILABLE: "UNAVAILABLE",
9
+ };
12
10
  export class InvalidParameterException extends __BaseException {
13
11
  constructor(opts) {
14
12
  super({
@@ -69,16 +67,15 @@ export class UnsupportedCommandException extends __BaseException {
69
67
  Object.setPrototypeOf(this, UnsupportedCommandException.prototype);
70
68
  }
71
69
  }
72
- export var ImageFailureCode;
73
- (function (ImageFailureCode) {
74
- ImageFailureCode["ImageNotFound"] = "ImageNotFound";
75
- ImageFailureCode["ImageReferencedByManifestList"] = "ImageReferencedByManifestList";
76
- ImageFailureCode["ImageTagDoesNotMatchDigest"] = "ImageTagDoesNotMatchDigest";
77
- ImageFailureCode["InvalidImageDigest"] = "InvalidImageDigest";
78
- ImageFailureCode["InvalidImageTag"] = "InvalidImageTag";
79
- ImageFailureCode["KmsError"] = "KmsError";
80
- ImageFailureCode["MissingDigestAndTag"] = "MissingDigestAndTag";
81
- })(ImageFailureCode || (ImageFailureCode = {}));
70
+ export const ImageFailureCode = {
71
+ ImageNotFound: "ImageNotFound",
72
+ ImageReferencedByManifestList: "ImageReferencedByManifestList",
73
+ ImageTagDoesNotMatchDigest: "ImageTagDoesNotMatchDigest",
74
+ InvalidImageDigest: "InvalidImageDigest",
75
+ InvalidImageTag: "InvalidImageTag",
76
+ KmsError: "KmsError",
77
+ MissingDigestAndTag: "MissingDigestAndTag",
78
+ };
82
79
  export class EmptyUploadException extends __BaseException {
83
80
  constructor(opts) {
84
81
  super({
@@ -223,12 +220,11 @@ export class ImageNotFoundException extends __BaseException {
223
220
  Object.setPrototypeOf(this, ImageNotFoundException.prototype);
224
221
  }
225
222
  }
226
- export var RegistryAliasStatus;
227
- (function (RegistryAliasStatus) {
228
- RegistryAliasStatus["ACTIVE"] = "ACTIVE";
229
- RegistryAliasStatus["PENDING"] = "PENDING";
230
- RegistryAliasStatus["REJECTED"] = "REJECTED";
231
- })(RegistryAliasStatus || (RegistryAliasStatus = {}));
223
+ export const RegistryAliasStatus = {
224
+ ACTIVE: "ACTIVE",
225
+ PENDING: "PENDING",
226
+ REJECTED: "REJECTED",
227
+ };
232
228
  export class RepositoryCatalogDataNotFoundException extends __BaseException {
233
229
  constructor(opts) {
234
230
  super({
@@ -32,10 +32,10 @@ export interface BatchCheckLayerAvailabilityCommandOutput extends BatchCheckLaye
32
32
  * import { ECRPUBLICClient, BatchCheckLayerAvailabilityCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
33
33
  * // const { ECRPUBLICClient, BatchCheckLayerAvailabilityCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
34
34
  * const client = new ECRPUBLICClient(config);
35
- * const input = {
35
+ * const input = { // BatchCheckLayerAvailabilityRequest
36
36
  * registryId: "STRING_VALUE",
37
37
  * repositoryName: "STRING_VALUE", // required
38
- * layerDigests: [ // required
38
+ * layerDigests: [ // BatchedOperationLayerDigestList // required
39
39
  * "STRING_VALUE",
40
40
  * ],
41
41
  * };
@@ -32,11 +32,11 @@ export interface BatchDeleteImageCommandOutput extends BatchDeleteImageResponse,
32
32
  * import { ECRPUBLICClient, BatchDeleteImageCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
33
33
  * // const { ECRPUBLICClient, BatchDeleteImageCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
34
34
  * const client = new ECRPUBLICClient(config);
35
- * const input = {
35
+ * const input = { // BatchDeleteImageRequest
36
36
  * registryId: "STRING_VALUE",
37
37
  * repositoryName: "STRING_VALUE", // required
38
- * imageIds: [ // required
39
- * {
38
+ * imageIds: [ // ImageIdentifierList // required
39
+ * { // ImageIdentifier
40
40
  * imageDigest: "STRING_VALUE",
41
41
  * imageTag: "STRING_VALUE",
42
42
  * },
@@ -33,11 +33,11 @@ export interface CompleteLayerUploadCommandOutput extends CompleteLayerUploadRes
33
33
  * import { ECRPUBLICClient, CompleteLayerUploadCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
34
34
  * // const { ECRPUBLICClient, CompleteLayerUploadCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
35
35
  * const client = new ECRPUBLICClient(config);
36
- * const input = {
36
+ * const input = { // CompleteLayerUploadRequest
37
37
  * registryId: "STRING_VALUE",
38
38
  * repositoryName: "STRING_VALUE", // required
39
39
  * uploadId: "STRING_VALUE", // required
40
- * layerDigests: [ // required
40
+ * layerDigests: [ // LayerDigestList // required
41
41
  * "STRING_VALUE",
42
42
  * ],
43
43
  * };
@@ -27,22 +27,22 @@ export interface CreateRepositoryCommandOutput extends CreateRepositoryResponse,
27
27
  * import { ECRPUBLICClient, CreateRepositoryCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
28
28
  * // const { ECRPUBLICClient, CreateRepositoryCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
29
29
  * const client = new ECRPUBLICClient(config);
30
- * const input = {
30
+ * const input = { // CreateRepositoryRequest
31
31
  * repositoryName: "STRING_VALUE", // required
32
- * catalogData: {
32
+ * catalogData: { // RepositoryCatalogDataInput
33
33
  * description: "STRING_VALUE",
34
- * architectures: [
34
+ * architectures: [ // ArchitectureList
35
35
  * "STRING_VALUE",
36
36
  * ],
37
- * operatingSystems: [
37
+ * operatingSystems: [ // OperatingSystemList
38
38
  * "STRING_VALUE",
39
39
  * ],
40
40
  * logoImageBlob: "BLOB_VALUE",
41
41
  * aboutText: "STRING_VALUE",
42
42
  * usageText: "STRING_VALUE",
43
43
  * },
44
- * tags: [
45
- * {
44
+ * tags: [ // TagList
45
+ * { // Tag
46
46
  * Key: "STRING_VALUE",
47
47
  * Value: "STRING_VALUE",
48
48
  * },
@@ -28,7 +28,7 @@ export interface DeleteRepositoryCommandOutput extends DeleteRepositoryResponse,
28
28
  * import { ECRPUBLICClient, DeleteRepositoryCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
29
29
  * // const { ECRPUBLICClient, DeleteRepositoryCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
30
30
  * const client = new ECRPUBLICClient(config);
31
- * const input = {
31
+ * const input = { // DeleteRepositoryRequest
32
32
  * registryId: "STRING_VALUE",
33
33
  * repositoryName: "STRING_VALUE", // required
34
34
  * force: true || false,
@@ -26,7 +26,7 @@ export interface DeleteRepositoryPolicyCommandOutput extends DeleteRepositoryPol
26
26
  * import { ECRPUBLICClient, DeleteRepositoryPolicyCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
27
27
  * // const { ECRPUBLICClient, DeleteRepositoryPolicyCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
28
28
  * const client = new ECRPUBLICClient(config);
29
- * const input = {
29
+ * const input = { // DeleteRepositoryPolicyRequest
30
30
  * registryId: "STRING_VALUE",
31
31
  * repositoryName: "STRING_VALUE", // required
32
32
  * };
@@ -26,7 +26,7 @@ export interface DescribeImageTagsCommandOutput extends DescribeImageTagsRespons
26
26
  * import { ECRPUBLICClient, DescribeImageTagsCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
27
27
  * // const { ECRPUBLICClient, DescribeImageTagsCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
28
28
  * const client = new ECRPUBLICClient(config);
29
- * const input = {
29
+ * const input = { // DescribeImageTagsRequest
30
30
  * registryId: "STRING_VALUE",
31
31
  * repositoryName: "STRING_VALUE", // required
32
32
  * nextToken: "STRING_VALUE",
@@ -33,11 +33,11 @@ export interface DescribeImagesCommandOutput extends DescribeImagesResponse, __M
33
33
  * import { ECRPUBLICClient, DescribeImagesCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
34
34
  * // const { ECRPUBLICClient, DescribeImagesCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
35
35
  * const client = new ECRPUBLICClient(config);
36
- * const input = {
36
+ * const input = { // DescribeImagesRequest
37
37
  * registryId: "STRING_VALUE",
38
38
  * repositoryName: "STRING_VALUE", // required
39
- * imageIds: [
40
- * {
39
+ * imageIds: [ // ImageIdentifierList
40
+ * { // ImageIdentifier
41
41
  * imageDigest: "STRING_VALUE",
42
42
  * imageTag: "STRING_VALUE",
43
43
  * },
@@ -26,7 +26,7 @@ export interface DescribeRegistriesCommandOutput extends DescribeRegistriesRespo
26
26
  * import { ECRPUBLICClient, DescribeRegistriesCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
27
27
  * // const { ECRPUBLICClient, DescribeRegistriesCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
28
28
  * const client = new ECRPUBLICClient(config);
29
- * const input = {
29
+ * const input = { // DescribeRegistriesRequest
30
30
  * nextToken: "STRING_VALUE",
31
31
  * maxResults: Number("int"),
32
32
  * };
@@ -26,9 +26,9 @@ export interface DescribeRepositoriesCommandOutput extends DescribeRepositoriesR
26
26
  * import { ECRPUBLICClient, DescribeRepositoriesCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
27
27
  * // const { ECRPUBLICClient, DescribeRepositoriesCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
28
28
  * const client = new ECRPUBLICClient(config);
29
- * const input = {
29
+ * const input = { // DescribeRepositoriesRequest
30
30
  * registryId: "STRING_VALUE",
31
- * repositoryNames: [
31
+ * repositoryNames: [ // RepositoryNameList
32
32
  * "STRING_VALUE",
33
33
  * ],
34
34
  * nextToken: "STRING_VALUE",
@@ -27,7 +27,7 @@ export interface GetRepositoryCatalogDataCommandOutput extends GetRepositoryCata
27
27
  * import { ECRPUBLICClient, GetRepositoryCatalogDataCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
28
28
  * // const { ECRPUBLICClient, GetRepositoryCatalogDataCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
29
29
  * const client = new ECRPUBLICClient(config);
30
- * const input = {
30
+ * const input = { // GetRepositoryCatalogDataRequest
31
31
  * registryId: "STRING_VALUE",
32
32
  * repositoryName: "STRING_VALUE", // required
33
33
  * };
@@ -26,7 +26,7 @@ export interface GetRepositoryPolicyCommandOutput extends GetRepositoryPolicyRes
26
26
  * import { ECRPUBLICClient, GetRepositoryPolicyCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
27
27
  * // const { ECRPUBLICClient, GetRepositoryPolicyCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
28
28
  * const client = new ECRPUBLICClient(config);
29
- * const input = {
29
+ * const input = { // GetRepositoryPolicyRequest
30
30
  * registryId: "STRING_VALUE",
31
31
  * repositoryName: "STRING_VALUE", // required
32
32
  * };
@@ -32,7 +32,7 @@ export interface InitiateLayerUploadCommandOutput extends InitiateLayerUploadRes
32
32
  * import { ECRPUBLICClient, InitiateLayerUploadCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
33
33
  * // const { ECRPUBLICClient, InitiateLayerUploadCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
34
34
  * const client = new ECRPUBLICClient(config);
35
- * const input = {
35
+ * const input = { // InitiateLayerUploadRequest
36
36
  * registryId: "STRING_VALUE",
37
37
  * repositoryName: "STRING_VALUE", // required
38
38
  * };
@@ -26,7 +26,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
26
26
  * import { ECRPUBLICClient, ListTagsForResourceCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
27
27
  * // const { ECRPUBLICClient, ListTagsForResourceCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
28
28
  * const client = new ECRPUBLICClient(config);
29
- * const input = {
29
+ * const input = { // ListTagsForResourceRequest
30
30
  * resourceArn: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new ListTagsForResourceCommand(input);
@@ -33,7 +33,7 @@ export interface PutImageCommandOutput extends PutImageResponse, __MetadataBeare
33
33
  * import { ECRPUBLICClient, PutImageCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
34
34
  * // const { ECRPUBLICClient, PutImageCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
35
35
  * const client = new ECRPUBLICClient(config);
36
- * const input = {
36
+ * const input = { // PutImageRequest
37
37
  * registryId: "STRING_VALUE",
38
38
  * repositoryName: "STRING_VALUE", // required
39
39
  * imageManifest: "STRING_VALUE", // required
@@ -26,7 +26,7 @@ export interface PutRegistryCatalogDataCommandOutput extends PutRegistryCatalogD
26
26
  * import { ECRPUBLICClient, PutRegistryCatalogDataCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
27
27
  * // const { ECRPUBLICClient, PutRegistryCatalogDataCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
28
28
  * const client = new ECRPUBLICClient(config);
29
- * const input = {
29
+ * const input = { // PutRegistryCatalogDataRequest
30
30
  * displayName: "STRING_VALUE",
31
31
  * };
32
32
  * const command = new PutRegistryCatalogDataCommand(input);
@@ -26,15 +26,15 @@ export interface PutRepositoryCatalogDataCommandOutput extends PutRepositoryCata
26
26
  * import { ECRPUBLICClient, PutRepositoryCatalogDataCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
27
27
  * // const { ECRPUBLICClient, PutRepositoryCatalogDataCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
28
28
  * const client = new ECRPUBLICClient(config);
29
- * const input = {
29
+ * const input = { // PutRepositoryCatalogDataRequest
30
30
  * registryId: "STRING_VALUE",
31
31
  * repositoryName: "STRING_VALUE", // required
32
- * catalogData: {
32
+ * catalogData: { // RepositoryCatalogDataInput
33
33
  * description: "STRING_VALUE",
34
- * architectures: [
34
+ * architectures: [ // ArchitectureList
35
35
  * "STRING_VALUE",
36
36
  * ],
37
- * operatingSystems: [
37
+ * operatingSystems: [ // OperatingSystemList
38
38
  * "STRING_VALUE",
39
39
  * ],
40
40
  * logoImageBlob: "BLOB_VALUE",
@@ -28,7 +28,7 @@ export interface SetRepositoryPolicyCommandOutput extends SetRepositoryPolicyRes
28
28
  * import { ECRPUBLICClient, SetRepositoryPolicyCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
29
29
  * // const { ECRPUBLICClient, SetRepositoryPolicyCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
30
30
  * const client = new ECRPUBLICClient(config);
31
- * const input = {
31
+ * const input = { // SetRepositoryPolicyRequest
32
32
  * registryId: "STRING_VALUE",
33
33
  * repositoryName: "STRING_VALUE", // required
34
34
  * policyText: "STRING_VALUE", // required
@@ -29,10 +29,10 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
29
29
  * import { ECRPUBLICClient, TagResourceCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
30
30
  * // const { ECRPUBLICClient, TagResourceCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
31
31
  * const client = new ECRPUBLICClient(config);
32
- * const input = {
32
+ * const input = { // TagResourceRequest
33
33
  * resourceArn: "STRING_VALUE", // required
34
- * tags: [ // required
35
- * {
34
+ * tags: [ // TagList // required
35
+ * { // Tag
36
36
  * Key: "STRING_VALUE",
37
37
  * Value: "STRING_VALUE",
38
38
  * },
@@ -26,9 +26,9 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
26
26
  * import { ECRPUBLICClient, UntagResourceCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
27
27
  * // const { ECRPUBLICClient, UntagResourceCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
28
28
  * const client = new ECRPUBLICClient(config);
29
- * const input = {
29
+ * const input = { // UntagResourceRequest
30
30
  * resourceArn: "STRING_VALUE", // required
31
- * tagKeys: [ // required
31
+ * tagKeys: [ // TagKeyList // required
32
32
  * "STRING_VALUE",
33
33
  * ],
34
34
  * };
@@ -32,7 +32,7 @@ export interface UploadLayerPartCommandOutput extends UploadLayerPartResponse, _
32
32
  * import { ECRPUBLICClient, UploadLayerPartCommand } from "@aws-sdk/client-ecr-public"; // ES Modules import
33
33
  * // const { ECRPUBLICClient, UploadLayerPartCommand } = require("@aws-sdk/client-ecr-public"); // CommonJS import
34
34
  * const client = new ECRPUBLICClient(config);
35
- * const input = {
35
+ * const input = { // UploadLayerPartRequest
36
36
  * registryId: "STRING_VALUE",
37
37
  * repositoryName: "STRING_VALUE", // required
38
38
  * uploadId: "STRING_VALUE", // required
@@ -37,11 +37,16 @@ export interface BatchCheckLayerAvailabilityRequest {
37
37
  }
38
38
  /**
39
39
  * @public
40
+ * @enum
40
41
  */
41
- export declare enum LayerFailureCode {
42
- InvalidLayerDigest = "InvalidLayerDigest",
43
- MissingLayerDigest = "MissingLayerDigest"
44
- }
42
+ export declare const LayerFailureCode: {
43
+ readonly InvalidLayerDigest: "InvalidLayerDigest";
44
+ readonly MissingLayerDigest: "MissingLayerDigest";
45
+ };
46
+ /**
47
+ * @public
48
+ */
49
+ export type LayerFailureCode = (typeof LayerFailureCode)[keyof typeof LayerFailureCode];
45
50
  /**
46
51
  * @public
47
52
  * <p>An object that represents an Amazon ECR image layer failure.</p>
@@ -62,11 +67,16 @@ export interface LayerFailure {
62
67
  }
63
68
  /**
64
69
  * @public
70
+ * @enum
65
71
  */
66
- export declare enum LayerAvailability {
67
- AVAILABLE = "AVAILABLE",
68
- UNAVAILABLE = "UNAVAILABLE"
69
- }
72
+ export declare const LayerAvailability: {
73
+ readonly AVAILABLE: "AVAILABLE";
74
+ readonly UNAVAILABLE: "UNAVAILABLE";
75
+ };
76
+ /**
77
+ * @public
78
+ */
79
+ export type LayerAvailability = (typeof LayerAvailability)[keyof typeof LayerAvailability];
70
80
  /**
71
81
  * @public
72
82
  * <p>An object that represents an Amazon ECR image layer.</p>
@@ -203,16 +213,21 @@ export interface BatchDeleteImageRequest {
203
213
  }
204
214
  /**
205
215
  * @public
216
+ * @enum
206
217
  */
207
- export declare enum ImageFailureCode {
208
- ImageNotFound = "ImageNotFound",
209
- ImageReferencedByManifestList = "ImageReferencedByManifestList",
210
- ImageTagDoesNotMatchDigest = "ImageTagDoesNotMatchDigest",
211
- InvalidImageDigest = "InvalidImageDigest",
212
- InvalidImageTag = "InvalidImageTag",
213
- KmsError = "KmsError",
214
- MissingDigestAndTag = "MissingDigestAndTag"
215
- }
218
+ export declare const ImageFailureCode: {
219
+ readonly ImageNotFound: "ImageNotFound";
220
+ readonly ImageReferencedByManifestList: "ImageReferencedByManifestList";
221
+ readonly ImageTagDoesNotMatchDigest: "ImageTagDoesNotMatchDigest";
222
+ readonly InvalidImageDigest: "InvalidImageDigest";
223
+ readonly InvalidImageTag: "InvalidImageTag";
224
+ readonly KmsError: "KmsError";
225
+ readonly MissingDigestAndTag: "MissingDigestAndTag";
226
+ };
227
+ /**
228
+ * @public
229
+ */
230
+ export type ImageFailureCode = (typeof ImageFailureCode)[keyof typeof ImageFailureCode];
216
231
  /**
217
232
  * @public
218
233
  * <p>An object that represents an Amazon ECR image failure.</p>
@@ -955,12 +970,17 @@ export interface DescribeRegistriesRequest {
955
970
  }
956
971
  /**
957
972
  * @public
973
+ * @enum
958
974
  */
959
- export declare enum RegistryAliasStatus {
960
- ACTIVE = "ACTIVE",
961
- PENDING = "PENDING",
962
- REJECTED = "REJECTED"
963
- }
975
+ export declare const RegistryAliasStatus: {
976
+ readonly ACTIVE: "ACTIVE";
977
+ readonly PENDING: "PENDING";
978
+ readonly REJECTED: "REJECTED";
979
+ };
980
+ /**
981
+ * @public
982
+ */
983
+ export type RegistryAliasStatus = (typeof RegistryAliasStatus)[keyof typeof RegistryAliasStatus];
964
984
  /**
965
985
  * @public
966
986
  * <p>An object representing the aliases for a public registry. A public registry is given an
@@ -9,19 +9,23 @@ export interface BatchCheckLayerAvailabilityRequest {
9
9
  repositoryName: string | undefined;
10
10
  layerDigests: string[] | undefined;
11
11
  }
12
- export declare enum LayerFailureCode {
13
- InvalidLayerDigest = "InvalidLayerDigest",
14
- MissingLayerDigest = "MissingLayerDigest",
15
- }
12
+ export declare const LayerFailureCode: {
13
+ readonly InvalidLayerDigest: "InvalidLayerDigest";
14
+ readonly MissingLayerDigest: "MissingLayerDigest";
15
+ };
16
+ export type LayerFailureCode =
17
+ (typeof LayerFailureCode)[keyof typeof LayerFailureCode];
16
18
  export interface LayerFailure {
17
19
  layerDigest?: string;
18
20
  failureCode?: LayerFailureCode | string;
19
21
  failureReason?: string;
20
22
  }
21
- export declare enum LayerAvailability {
22
- AVAILABLE = "AVAILABLE",
23
- UNAVAILABLE = "UNAVAILABLE",
24
- }
23
+ export declare const LayerAvailability: {
24
+ readonly AVAILABLE: "AVAILABLE";
25
+ readonly UNAVAILABLE: "UNAVAILABLE";
26
+ };
27
+ export type LayerAvailability =
28
+ (typeof LayerAvailability)[keyof typeof LayerAvailability];
25
29
  export interface Layer {
26
30
  layerDigest?: string;
27
31
  layerAvailability?: LayerAvailability | string;
@@ -74,15 +78,17 @@ export interface BatchDeleteImageRequest {
74
78
  repositoryName: string | undefined;
75
79
  imageIds: ImageIdentifier[] | undefined;
76
80
  }
77
- export declare enum ImageFailureCode {
78
- ImageNotFound = "ImageNotFound",
79
- ImageReferencedByManifestList = "ImageReferencedByManifestList",
80
- ImageTagDoesNotMatchDigest = "ImageTagDoesNotMatchDigest",
81
- InvalidImageDigest = "InvalidImageDigest",
82
- InvalidImageTag = "InvalidImageTag",
83
- KmsError = "KmsError",
84
- MissingDigestAndTag = "MissingDigestAndTag",
85
- }
81
+ export declare const ImageFailureCode: {
82
+ readonly ImageNotFound: "ImageNotFound";
83
+ readonly ImageReferencedByManifestList: "ImageReferencedByManifestList";
84
+ readonly ImageTagDoesNotMatchDigest: "ImageTagDoesNotMatchDigest";
85
+ readonly InvalidImageDigest: "InvalidImageDigest";
86
+ readonly InvalidImageTag: "InvalidImageTag";
87
+ readonly KmsError: "KmsError";
88
+ readonly MissingDigestAndTag: "MissingDigestAndTag";
89
+ };
90
+ export type ImageFailureCode =
91
+ (typeof ImageFailureCode)[keyof typeof ImageFailureCode];
86
92
  export interface ImageFailure {
87
93
  imageId?: ImageIdentifier;
88
94
  failureCode?: ImageFailureCode | string;
@@ -295,11 +301,13 @@ export interface DescribeRegistriesRequest {
295
301
  nextToken?: string;
296
302
  maxResults?: number;
297
303
  }
298
- export declare enum RegistryAliasStatus {
299
- ACTIVE = "ACTIVE",
300
- PENDING = "PENDING",
301
- REJECTED = "REJECTED",
302
- }
304
+ export declare const RegistryAliasStatus: {
305
+ readonly ACTIVE: "ACTIVE";
306
+ readonly PENDING: "PENDING";
307
+ readonly REJECTED: "REJECTED";
308
+ };
309
+ export type RegistryAliasStatus =
310
+ (typeof RegistryAliasStatus)[keyof typeof RegistryAliasStatus];
303
311
  export interface RegistryAlias {
304
312
  name: string | undefined;
305
313
  status: RegistryAliasStatus | string | undefined;
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.300.0",
4
+ "version": "3.303.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,42 +21,42 @@
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.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",