@aws-sdk/client-ecr 3.933.0 → 3.935.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 (53) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +538 -154
  3. package/dist-es/ECR.js +10 -0
  4. package/dist-es/commands/DeregisterPullTimeUpdateExclusionCommand.js +16 -0
  5. package/dist-es/commands/ListImageReferrersCommand.js +16 -0
  6. package/dist-es/commands/ListPullTimeUpdateExclusionsCommand.js +16 -0
  7. package/dist-es/commands/RegisterPullTimeUpdateExclusionCommand.js +16 -0
  8. package/dist-es/commands/UpdateImageStorageClassCommand.js +16 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/index.js +2 -1
  11. package/dist-es/models/enums.js +141 -0
  12. package/dist-es/models/errors.js +551 -0
  13. package/dist-es/models/models_0.js +1 -595
  14. package/dist-es/schemas/schemas_0.js +259 -52
  15. package/dist-types/ECR.d.ts +36 -0
  16. package/dist-types/ECRClient.d.ts +7 -2
  17. package/dist-types/commands/BatchCheckLayerAvailabilityCommand.d.ts +1 -1
  18. package/dist-types/commands/BatchDeleteImageCommand.d.ts +1 -1
  19. package/dist-types/commands/BatchGetImageCommand.d.ts +1 -1
  20. package/dist-types/commands/DeregisterPullTimeUpdateExclusionCommand.d.ts +107 -0
  21. package/dist-types/commands/DescribeImageScanFindingsCommand.d.ts +1 -1
  22. package/dist-types/commands/DescribeImagesCommand.d.ts +11 -8
  23. package/dist-types/commands/GetLifecyclePolicyPreviewCommand.d.ts +9 -1
  24. package/dist-types/commands/ListImageReferrersCommand.d.ts +224 -0
  25. package/dist-types/commands/ListImagesCommand.d.ts +1 -0
  26. package/dist-types/commands/ListPullTimeUpdateExclusionsCommand.d.ts +127 -0
  27. package/dist-types/commands/PutRegistryScanningConfigurationCommand.d.ts +3 -0
  28. package/dist-types/commands/RegisterPullTimeUpdateExclusionCommand.d.ts +93 -0
  29. package/dist-types/commands/StartImageScanCommand.d.ts +8 -6
  30. package/dist-types/commands/UpdateImageStorageClassCommand.d.ts +156 -0
  31. package/dist-types/commands/index.d.ts +5 -0
  32. package/dist-types/index.d.ts +3 -1
  33. package/dist-types/models/enums.d.ts +349 -0
  34. package/dist-types/models/errors.d.ts +597 -0
  35. package/dist-types/models/models_0.d.ts +372 -812
  36. package/dist-types/schemas/schemas_0.d.ts +29 -0
  37. package/dist-types/ts3.4/ECR.d.ts +92 -0
  38. package/dist-types/ts3.4/ECRClient.d.ts +30 -0
  39. package/dist-types/ts3.4/commands/DeregisterPullTimeUpdateExclusionCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/ListImageReferrersCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/ListPullTimeUpdateExclusionsCommand.d.ts +51 -0
  42. package/dist-types/ts3.4/commands/RegisterPullTimeUpdateExclusionCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/UpdateImageStorageClassCommand.d.ts +51 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  45. package/dist-types/ts3.4/index.d.ts +3 -1
  46. package/dist-types/ts3.4/models/enums.d.ts +187 -0
  47. package/dist-types/ts3.4/models/errors.d.ts +369 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +100 -461
  49. package/dist-types/ts3.4/schemas/schemas_0.d.ts +29 -0
  50. package/package.json +12 -12
  51. package/dist-es/models/index.js +0 -1
  52. package/dist-types/models/index.d.ts +0 -1
  53. package/dist-types/ts3.4/models/index.d.ts +0 -1
package/dist-es/ECR.js CHANGED
@@ -13,6 +13,7 @@ import { DeleteRegistryPolicyCommand, } from "./commands/DeleteRegistryPolicyCom
13
13
  import { DeleteRepositoryCommand, } from "./commands/DeleteRepositoryCommand";
14
14
  import { DeleteRepositoryCreationTemplateCommand, } from "./commands/DeleteRepositoryCreationTemplateCommand";
15
15
  import { DeleteRepositoryPolicyCommand, } from "./commands/DeleteRepositoryPolicyCommand";
16
+ import { DeregisterPullTimeUpdateExclusionCommand, } from "./commands/DeregisterPullTimeUpdateExclusionCommand";
16
17
  import { DescribeImageReplicationStatusCommand, } from "./commands/DescribeImageReplicationStatusCommand";
17
18
  import { DescribeImageScanFindingsCommand, } from "./commands/DescribeImageScanFindingsCommand";
18
19
  import { DescribeImagesCommand, } from "./commands/DescribeImagesCommand";
@@ -29,7 +30,9 @@ import { GetRegistryPolicyCommand, } from "./commands/GetRegistryPolicyCommand";
29
30
  import { GetRegistryScanningConfigurationCommand, } from "./commands/GetRegistryScanningConfigurationCommand";
30
31
  import { GetRepositoryPolicyCommand, } from "./commands/GetRepositoryPolicyCommand";
31
32
  import { InitiateLayerUploadCommand, } from "./commands/InitiateLayerUploadCommand";
33
+ import { ListImageReferrersCommand, } from "./commands/ListImageReferrersCommand";
32
34
  import { ListImagesCommand } from "./commands/ListImagesCommand";
35
+ import { ListPullTimeUpdateExclusionsCommand, } from "./commands/ListPullTimeUpdateExclusionsCommand";
33
36
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
34
37
  import { PutAccountSettingCommand, } from "./commands/PutAccountSettingCommand";
35
38
  import { PutImageCommand } from "./commands/PutImageCommand";
@@ -39,11 +42,13 @@ import { PutLifecyclePolicyCommand, } from "./commands/PutLifecyclePolicyCommand
39
42
  import { PutRegistryPolicyCommand, } from "./commands/PutRegistryPolicyCommand";
40
43
  import { PutRegistryScanningConfigurationCommand, } from "./commands/PutRegistryScanningConfigurationCommand";
41
44
  import { PutReplicationConfigurationCommand, } from "./commands/PutReplicationConfigurationCommand";
45
+ import { RegisterPullTimeUpdateExclusionCommand, } from "./commands/RegisterPullTimeUpdateExclusionCommand";
42
46
  import { SetRepositoryPolicyCommand, } from "./commands/SetRepositoryPolicyCommand";
43
47
  import { StartImageScanCommand, } from "./commands/StartImageScanCommand";
44
48
  import { StartLifecyclePolicyPreviewCommand, } from "./commands/StartLifecyclePolicyPreviewCommand";
45
49
  import { TagResourceCommand } from "./commands/TagResourceCommand";
46
50
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
51
+ import { UpdateImageStorageClassCommand, } from "./commands/UpdateImageStorageClassCommand";
47
52
  import { UpdatePullThroughCacheRuleCommand, } from "./commands/UpdatePullThroughCacheRuleCommand";
48
53
  import { UpdateRepositoryCreationTemplateCommand, } from "./commands/UpdateRepositoryCreationTemplateCommand";
49
54
  import { UploadLayerPartCommand, } from "./commands/UploadLayerPartCommand";
@@ -64,6 +69,7 @@ const commands = {
64
69
  DeleteRepositoryCommand,
65
70
  DeleteRepositoryCreationTemplateCommand,
66
71
  DeleteRepositoryPolicyCommand,
72
+ DeregisterPullTimeUpdateExclusionCommand,
67
73
  DescribeImageReplicationStatusCommand,
68
74
  DescribeImagesCommand,
69
75
  DescribeImageScanFindingsCommand,
@@ -80,7 +86,9 @@ const commands = {
80
86
  GetRegistryScanningConfigurationCommand,
81
87
  GetRepositoryPolicyCommand,
82
88
  InitiateLayerUploadCommand,
89
+ ListImageReferrersCommand,
83
90
  ListImagesCommand,
91
+ ListPullTimeUpdateExclusionsCommand,
84
92
  ListTagsForResourceCommand,
85
93
  PutAccountSettingCommand,
86
94
  PutImageCommand,
@@ -90,11 +98,13 @@ const commands = {
90
98
  PutRegistryPolicyCommand,
91
99
  PutRegistryScanningConfigurationCommand,
92
100
  PutReplicationConfigurationCommand,
101
+ RegisterPullTimeUpdateExclusionCommand,
93
102
  SetRepositoryPolicyCommand,
94
103
  StartImageScanCommand,
95
104
  StartLifecyclePolicyPreviewCommand,
96
105
  TagResourceCommand,
97
106
  UntagResourceCommand,
107
+ UpdateImageStorageClassCommand,
98
108
  UpdatePullThroughCacheRuleCommand,
99
109
  UpdateRepositoryCreationTemplateCommand,
100
110
  UploadLayerPartCommand,
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeregisterPullTimeUpdateExclusion } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeregisterPullTimeUpdateExclusionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonEC2ContainerRegistry_V20150921", "DeregisterPullTimeUpdateExclusion", {})
13
+ .n("ECRClient", "DeregisterPullTimeUpdateExclusionCommand")
14
+ .sc(DeregisterPullTimeUpdateExclusion)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListImageReferrers } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListImageReferrersCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonEC2ContainerRegistry_V20150921", "ListImageReferrers", {})
13
+ .n("ECRClient", "ListImageReferrersCommand")
14
+ .sc(ListImageReferrers)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListPullTimeUpdateExclusions } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListPullTimeUpdateExclusionsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonEC2ContainerRegistry_V20150921", "ListPullTimeUpdateExclusions", {})
13
+ .n("ECRClient", "ListPullTimeUpdateExclusionsCommand")
14
+ .sc(ListPullTimeUpdateExclusions)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { RegisterPullTimeUpdateExclusion } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class RegisterPullTimeUpdateExclusionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonEC2ContainerRegistry_V20150921", "RegisterPullTimeUpdateExclusion", {})
13
+ .n("ECRClient", "RegisterPullTimeUpdateExclusionCommand")
14
+ .sc(RegisterPullTimeUpdateExclusion)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateImageStorageClass } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateImageStorageClassCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonEC2ContainerRegistry_V20150921", "UpdateImageStorageClass", {})
13
+ .n("ECRClient", "UpdateImageStorageClassCommand")
14
+ .sc(UpdateImageStorageClass)
15
+ .build() {
16
+ }
@@ -12,6 +12,7 @@ export * from "./DeleteRegistryPolicyCommand";
12
12
  export * from "./DeleteRepositoryCommand";
13
13
  export * from "./DeleteRepositoryCreationTemplateCommand";
14
14
  export * from "./DeleteRepositoryPolicyCommand";
15
+ export * from "./DeregisterPullTimeUpdateExclusionCommand";
15
16
  export * from "./DescribeImageReplicationStatusCommand";
16
17
  export * from "./DescribeImageScanFindingsCommand";
17
18
  export * from "./DescribeImagesCommand";
@@ -28,7 +29,9 @@ export * from "./GetRegistryPolicyCommand";
28
29
  export * from "./GetRegistryScanningConfigurationCommand";
29
30
  export * from "./GetRepositoryPolicyCommand";
30
31
  export * from "./InitiateLayerUploadCommand";
32
+ export * from "./ListImageReferrersCommand";
31
33
  export * from "./ListImagesCommand";
34
+ export * from "./ListPullTimeUpdateExclusionsCommand";
32
35
  export * from "./ListTagsForResourceCommand";
33
36
  export * from "./PutAccountSettingCommand";
34
37
  export * from "./PutImageCommand";
@@ -38,11 +41,13 @@ export * from "./PutLifecyclePolicyCommand";
38
41
  export * from "./PutRegistryPolicyCommand";
39
42
  export * from "./PutRegistryScanningConfigurationCommand";
40
43
  export * from "./PutReplicationConfigurationCommand";
44
+ export * from "./RegisterPullTimeUpdateExclusionCommand";
41
45
  export * from "./SetRepositoryPolicyCommand";
42
46
  export * from "./StartImageScanCommand";
43
47
  export * from "./StartLifecyclePolicyPreviewCommand";
44
48
  export * from "./TagResourceCommand";
45
49
  export * from "./UntagResourceCommand";
50
+ export * from "./UpdateImageStorageClassCommand";
46
51
  export * from "./UpdatePullThroughCacheRuleCommand";
47
52
  export * from "./UpdateRepositoryCreationTemplateCommand";
48
53
  export * from "./UploadLayerPartCommand";
package/dist-es/index.js CHANGED
@@ -3,5 +3,6 @@ export * from "./ECR";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./waiters";
6
- export * from "./models";
6
+ export * from "./models/enums";
7
+ export * from "./models/errors";
7
8
  export { ECRServiceException } from "./models/ECRServiceException";
@@ -0,0 +1,141 @@
1
+ export const LayerFailureCode = {
2
+ InvalidLayerDigest: "InvalidLayerDigest",
3
+ MissingLayerDigest: "MissingLayerDigest",
4
+ };
5
+ export const LayerAvailability = {
6
+ ARCHIVED: "ARCHIVED",
7
+ AVAILABLE: "AVAILABLE",
8
+ UNAVAILABLE: "UNAVAILABLE",
9
+ };
10
+ export const ImageFailureCode = {
11
+ ImageInaccessible: "ImageInaccessible",
12
+ ImageNotFound: "ImageNotFound",
13
+ ImageReferencedByManifestList: "ImageReferencedByManifestList",
14
+ ImageTagDoesNotMatchDigest: "ImageTagDoesNotMatchDigest",
15
+ InvalidImageDigest: "InvalidImageDigest",
16
+ InvalidImageTag: "InvalidImageTag",
17
+ KmsError: "KmsError",
18
+ MissingDigestAndTag: "MissingDigestAndTag",
19
+ UpstreamAccessDenied: "UpstreamAccessDenied",
20
+ UpstreamTooManyRequests: "UpstreamTooManyRequests",
21
+ UpstreamUnavailable: "UpstreamUnavailable",
22
+ };
23
+ export const ScanningConfigurationFailureCode = {
24
+ REPOSITORY_NOT_FOUND: "REPOSITORY_NOT_FOUND",
25
+ };
26
+ export const ScanningRepositoryFilterType = {
27
+ WILDCARD: "WILDCARD",
28
+ };
29
+ export const ScanFrequency = {
30
+ CONTINUOUS_SCAN: "CONTINUOUS_SCAN",
31
+ MANUAL: "MANUAL",
32
+ SCAN_ON_PUSH: "SCAN_ON_PUSH",
33
+ };
34
+ export const UpstreamRegistry = {
35
+ AzureContainerRegistry: "azure-container-registry",
36
+ DockerHub: "docker-hub",
37
+ Ecr: "ecr",
38
+ EcrPublic: "ecr-public",
39
+ GitHubContainerRegistry: "github-container-registry",
40
+ GitLabContainerRegistry: "gitlab-container-registry",
41
+ K8s: "k8s",
42
+ Quay: "quay",
43
+ };
44
+ export const EncryptionType = {
45
+ AES256: "AES256",
46
+ KMS: "KMS",
47
+ KMS_DSSE: "KMS_DSSE",
48
+ };
49
+ export const ImageTagMutability = {
50
+ IMMUTABLE: "IMMUTABLE",
51
+ IMMUTABLE_WITH_EXCLUSION: "IMMUTABLE_WITH_EXCLUSION",
52
+ MUTABLE: "MUTABLE",
53
+ MUTABLE_WITH_EXCLUSION: "MUTABLE_WITH_EXCLUSION",
54
+ };
55
+ export const ImageTagMutabilityExclusionFilterType = {
56
+ WILDCARD: "WILDCARD",
57
+ };
58
+ export const RCTAppliedFor = {
59
+ PULL_THROUGH_CACHE: "PULL_THROUGH_CACHE",
60
+ REPLICATION: "REPLICATION",
61
+ };
62
+ export const ReplicationStatus = {
63
+ COMPLETE: "COMPLETE",
64
+ FAILED: "FAILED",
65
+ IN_PROGRESS: "IN_PROGRESS",
66
+ };
67
+ export const ImageStatusFilter = {
68
+ ACTIVATING: "ACTIVATING",
69
+ ACTIVE: "ACTIVE",
70
+ ANY: "ANY",
71
+ ARCHIVED: "ARCHIVED",
72
+ };
73
+ export const TagStatus = {
74
+ ANY: "ANY",
75
+ TAGGED: "TAGGED",
76
+ UNTAGGED: "UNTAGGED",
77
+ };
78
+ export const FindingSeverity = {
79
+ CRITICAL: "CRITICAL",
80
+ HIGH: "HIGH",
81
+ INFORMATIONAL: "INFORMATIONAL",
82
+ LOW: "LOW",
83
+ MEDIUM: "MEDIUM",
84
+ UNDEFINED: "UNDEFINED",
85
+ };
86
+ export const ScanStatus = {
87
+ ACTIVE: "ACTIVE",
88
+ COMPLETE: "COMPLETE",
89
+ FAILED: "FAILED",
90
+ FINDINGS_UNAVAILABLE: "FINDINGS_UNAVAILABLE",
91
+ IMAGE_ARCHIVED: "IMAGE_ARCHIVED",
92
+ IN_PROGRESS: "IN_PROGRESS",
93
+ LIMIT_EXCEEDED: "LIMIT_EXCEEDED",
94
+ PENDING: "PENDING",
95
+ SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED",
96
+ UNSUPPORTED_IMAGE: "UNSUPPORTED_IMAGE",
97
+ };
98
+ export const ImageStatus = {
99
+ ACTIVATING: "ACTIVATING",
100
+ ACTIVE: "ACTIVE",
101
+ ARCHIVED: "ARCHIVED",
102
+ };
103
+ export const RepositoryFilterType = {
104
+ PREFIX_MATCH: "PREFIX_MATCH",
105
+ };
106
+ export const LifecyclePolicyTargetStorageClass = {
107
+ ARCHIVE: "ARCHIVE",
108
+ };
109
+ export const ImageActionType = {
110
+ EXPIRE: "EXPIRE",
111
+ TRANSITION: "TRANSITION",
112
+ };
113
+ export const LifecyclePolicyStorageClass = {
114
+ ARCHIVE: "ARCHIVE",
115
+ STANDARD: "STANDARD",
116
+ };
117
+ export const LifecyclePolicyPreviewStatus = {
118
+ COMPLETE: "COMPLETE",
119
+ EXPIRED: "EXPIRED",
120
+ FAILED: "FAILED",
121
+ IN_PROGRESS: "IN_PROGRESS",
122
+ };
123
+ export const ScanType = {
124
+ BASIC: "BASIC",
125
+ ENHANCED: "ENHANCED",
126
+ };
127
+ export const ArtifactStatusFilter = {
128
+ ACTIVATING: "ACTIVATING",
129
+ ACTIVE: "ACTIVE",
130
+ ANY: "ANY",
131
+ ARCHIVED: "ARCHIVED",
132
+ };
133
+ export const ArtifactStatus = {
134
+ ACTIVATING: "ACTIVATING",
135
+ ACTIVE: "ACTIVE",
136
+ ARCHIVED: "ARCHIVED",
137
+ };
138
+ export const TargetStorageClass = {
139
+ ARCHIVE: "ARCHIVE",
140
+ STANDARD: "STANDARD",
141
+ };