@aws-sdk/client-ecr 3.451.0 → 3.454.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist-cjs/ECR.js +4 -0
- package/dist-cjs/commands/UpdatePullThroughCacheRuleCommand.js +51 -0
- package/dist-cjs/commands/ValidatePullThroughCacheRuleCommand.js +51 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +88 -11
- package/dist-cjs/protocols/Aws_json1_1.js +186 -2
- package/dist-es/ECR.js +4 -0
- package/dist-es/commands/UpdatePullThroughCacheRuleCommand.js +47 -0
- package/dist-es/commands/ValidatePullThroughCacheRuleCommand.js +47 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +79 -8
- package/dist-es/protocols/Aws_json1_1.js +181 -1
- package/dist-types/ECR.d.ts +14 -0
- package/dist-types/ECRClient.d.ts +4 -2
- package/dist-types/commands/BatchDeleteImageCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetImageCommand.d.ts +11 -1
- package/dist-types/commands/CreatePullThroughCacheRuleCommand.d.ts +19 -1
- package/dist-types/commands/DeletePullThroughCacheRuleCommand.d.ts +1 -0
- package/dist-types/commands/DeleteRepositoryCommand.d.ts +3 -3
- package/dist-types/commands/DescribePullThroughCacheRulesCommand.d.ts +3 -0
- package/dist-types/commands/GetDownloadUrlForLayerCommand.d.ts +4 -0
- package/dist-types/commands/UpdatePullThroughCacheRuleCommand.d.ts +104 -0
- package/dist-types/commands/ValidatePullThroughCacheRuleCommand.d.ts +96 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +280 -13
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/ECR.d.ts +34 -0
- package/dist-types/ts3.4/ECRClient.d.ts +14 -2
- package/dist-types/ts3.4/commands/UpdatePullThroughCacheRuleCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ValidatePullThroughCacheRuleCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +94 -6
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/package.json +2 -2
|
@@ -68,6 +68,9 @@ export declare const ImageFailureCode: {
|
|
|
68
68
|
readonly InvalidImageTag: "InvalidImageTag";
|
|
69
69
|
readonly KmsError: "KmsError";
|
|
70
70
|
readonly MissingDigestAndTag: "MissingDigestAndTag";
|
|
71
|
+
readonly UpstreamAccessDenied: "UpstreamAccessDenied";
|
|
72
|
+
readonly UpstreamTooManyRequests: "UpstreamTooManyRequests";
|
|
73
|
+
readonly UpstreamUnavailable: "UpstreamUnavailable";
|
|
71
74
|
};
|
|
72
75
|
export type ImageFailureCode =
|
|
73
76
|
(typeof ImageFailureCode)[keyof typeof ImageFailureCode];
|
|
@@ -97,6 +100,23 @@ export interface BatchGetImageResponse {
|
|
|
97
100
|
images?: Image[];
|
|
98
101
|
failures?: ImageFailure[];
|
|
99
102
|
}
|
|
103
|
+
export declare class LimitExceededException extends __BaseException {
|
|
104
|
+
readonly name: "LimitExceededException";
|
|
105
|
+
readonly $fault: "client";
|
|
106
|
+
constructor(
|
|
107
|
+
opts: __ExceptionOptionType<LimitExceededException, __BaseException>
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
export declare class UnableToGetUpstreamImageException extends __BaseException {
|
|
111
|
+
readonly name: "UnableToGetUpstreamImageException";
|
|
112
|
+
readonly $fault: "client";
|
|
113
|
+
constructor(
|
|
114
|
+
opts: __ExceptionOptionType<
|
|
115
|
+
UnableToGetUpstreamImageException,
|
|
116
|
+
__BaseException
|
|
117
|
+
>
|
|
118
|
+
);
|
|
119
|
+
}
|
|
100
120
|
export interface BatchGetRepositoryScanningConfigurationRequest {
|
|
101
121
|
repositoryNames: string[] | undefined;
|
|
102
122
|
}
|
|
@@ -196,30 +216,61 @@ export declare class UploadNotFoundException extends __BaseException {
|
|
|
196
216
|
opts: __ExceptionOptionType<UploadNotFoundException, __BaseException>
|
|
197
217
|
);
|
|
198
218
|
}
|
|
219
|
+
export declare const UpstreamRegistry: {
|
|
220
|
+
readonly AzureContainerRegistry: "azure-container-registry";
|
|
221
|
+
readonly DockerHub: "docker-hub";
|
|
222
|
+
readonly EcrPublic: "ecr-public";
|
|
223
|
+
readonly GitHubContainerRegistry: "github-container-registry";
|
|
224
|
+
readonly K8s: "k8s";
|
|
225
|
+
readonly Quay: "quay";
|
|
226
|
+
};
|
|
227
|
+
export type UpstreamRegistry =
|
|
228
|
+
(typeof UpstreamRegistry)[keyof typeof UpstreamRegistry];
|
|
199
229
|
export interface CreatePullThroughCacheRuleRequest {
|
|
200
230
|
ecrRepositoryPrefix: string | undefined;
|
|
201
231
|
upstreamRegistryUrl: string | undefined;
|
|
202
232
|
registryId?: string;
|
|
233
|
+
upstreamRegistry?: UpstreamRegistry;
|
|
234
|
+
credentialArn?: string;
|
|
203
235
|
}
|
|
204
236
|
export interface CreatePullThroughCacheRuleResponse {
|
|
205
237
|
ecrRepositoryPrefix?: string;
|
|
206
238
|
upstreamRegistryUrl?: string;
|
|
207
239
|
createdAt?: Date;
|
|
208
240
|
registryId?: string;
|
|
241
|
+
upstreamRegistry?: UpstreamRegistry;
|
|
242
|
+
credentialArn?: string;
|
|
209
243
|
}
|
|
210
|
-
export declare class
|
|
211
|
-
readonly name: "
|
|
244
|
+
export declare class PullThroughCacheRuleAlreadyExistsException extends __BaseException {
|
|
245
|
+
readonly name: "PullThroughCacheRuleAlreadyExistsException";
|
|
212
246
|
readonly $fault: "client";
|
|
213
247
|
constructor(
|
|
214
|
-
opts: __ExceptionOptionType<
|
|
248
|
+
opts: __ExceptionOptionType<
|
|
249
|
+
PullThroughCacheRuleAlreadyExistsException,
|
|
250
|
+
__BaseException
|
|
251
|
+
>
|
|
215
252
|
);
|
|
216
253
|
}
|
|
217
|
-
export declare class
|
|
218
|
-
readonly name: "
|
|
254
|
+
export declare class SecretNotFoundException extends __BaseException {
|
|
255
|
+
readonly name: "SecretNotFoundException";
|
|
256
|
+
readonly $fault: "client";
|
|
257
|
+
constructor(
|
|
258
|
+
opts: __ExceptionOptionType<SecretNotFoundException, __BaseException>
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
export declare class UnableToAccessSecretException extends __BaseException {
|
|
262
|
+
readonly name: "UnableToAccessSecretException";
|
|
263
|
+
readonly $fault: "client";
|
|
264
|
+
constructor(
|
|
265
|
+
opts: __ExceptionOptionType<UnableToAccessSecretException, __BaseException>
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
export declare class UnableToDecryptSecretValueException extends __BaseException {
|
|
269
|
+
readonly name: "UnableToDecryptSecretValueException";
|
|
219
270
|
readonly $fault: "client";
|
|
220
271
|
constructor(
|
|
221
272
|
opts: __ExceptionOptionType<
|
|
222
|
-
|
|
273
|
+
UnableToDecryptSecretValueException,
|
|
223
274
|
__BaseException
|
|
224
275
|
>
|
|
225
276
|
);
|
|
@@ -331,6 +382,7 @@ export interface DeletePullThroughCacheRuleResponse {
|
|
|
331
382
|
upstreamRegistryUrl?: string;
|
|
332
383
|
createdAt?: Date;
|
|
333
384
|
registryId?: string;
|
|
385
|
+
credentialArn?: string;
|
|
334
386
|
}
|
|
335
387
|
export declare class PullThroughCacheRuleNotFoundException extends __BaseException {
|
|
336
388
|
readonly name: "PullThroughCacheRuleNotFoundException";
|
|
@@ -621,6 +673,9 @@ export interface PullThroughCacheRule {
|
|
|
621
673
|
upstreamRegistryUrl?: string;
|
|
622
674
|
createdAt?: Date;
|
|
623
675
|
registryId?: string;
|
|
676
|
+
credentialArn?: string;
|
|
677
|
+
upstreamRegistry?: UpstreamRegistry;
|
|
678
|
+
updatedAt?: Date;
|
|
624
679
|
}
|
|
625
680
|
export interface DescribePullThroughCacheRulesResponse {
|
|
626
681
|
pullThroughCacheRules?: PullThroughCacheRule[];
|
|
@@ -695,6 +750,16 @@ export declare class LayersNotFoundException extends __BaseException {
|
|
|
695
750
|
opts: __ExceptionOptionType<LayersNotFoundException, __BaseException>
|
|
696
751
|
);
|
|
697
752
|
}
|
|
753
|
+
export declare class UnableToGetUpstreamLayerException extends __BaseException {
|
|
754
|
+
readonly name: "UnableToGetUpstreamLayerException";
|
|
755
|
+
readonly $fault: "client";
|
|
756
|
+
constructor(
|
|
757
|
+
opts: __ExceptionOptionType<
|
|
758
|
+
UnableToGetUpstreamLayerException,
|
|
759
|
+
__BaseException
|
|
760
|
+
>
|
|
761
|
+
);
|
|
762
|
+
}
|
|
698
763
|
export interface GetLifecyclePolicyRequest {
|
|
699
764
|
registryId?: string;
|
|
700
765
|
repositoryName: string | undefined;
|
|
@@ -976,6 +1041,17 @@ export interface UntagResourceRequest {
|
|
|
976
1041
|
tagKeys: string[] | undefined;
|
|
977
1042
|
}
|
|
978
1043
|
export interface UntagResourceResponse {}
|
|
1044
|
+
export interface UpdatePullThroughCacheRuleRequest {
|
|
1045
|
+
registryId?: string;
|
|
1046
|
+
ecrRepositoryPrefix: string | undefined;
|
|
1047
|
+
credentialArn: string | undefined;
|
|
1048
|
+
}
|
|
1049
|
+
export interface UpdatePullThroughCacheRuleResponse {
|
|
1050
|
+
ecrRepositoryPrefix?: string;
|
|
1051
|
+
registryId?: string;
|
|
1052
|
+
updatedAt?: Date;
|
|
1053
|
+
credentialArn?: string;
|
|
1054
|
+
}
|
|
979
1055
|
export declare class InvalidLayerPartException extends __BaseException {
|
|
980
1056
|
readonly name: "InvalidLayerPartException";
|
|
981
1057
|
readonly $fault: "client";
|
|
@@ -1001,3 +1077,15 @@ export interface UploadLayerPartResponse {
|
|
|
1001
1077
|
uploadId?: string;
|
|
1002
1078
|
lastByteReceived?: number;
|
|
1003
1079
|
}
|
|
1080
|
+
export interface ValidatePullThroughCacheRuleRequest {
|
|
1081
|
+
ecrRepositoryPrefix: string | undefined;
|
|
1082
|
+
registryId?: string;
|
|
1083
|
+
}
|
|
1084
|
+
export interface ValidatePullThroughCacheRuleResponse {
|
|
1085
|
+
ecrRepositoryPrefix?: string;
|
|
1086
|
+
registryId?: string;
|
|
1087
|
+
upstreamRegistryUrl?: string;
|
|
1088
|
+
credentialArn?: string;
|
|
1089
|
+
isValid?: boolean;
|
|
1090
|
+
failure?: string;
|
|
1091
|
+
}
|
|
@@ -163,10 +163,18 @@ import {
|
|
|
163
163
|
UntagResourceCommandInput,
|
|
164
164
|
UntagResourceCommandOutput,
|
|
165
165
|
} from "../commands/UntagResourceCommand";
|
|
166
|
+
import {
|
|
167
|
+
UpdatePullThroughCacheRuleCommandInput,
|
|
168
|
+
UpdatePullThroughCacheRuleCommandOutput,
|
|
169
|
+
} from "../commands/UpdatePullThroughCacheRuleCommand";
|
|
166
170
|
import {
|
|
167
171
|
UploadLayerPartCommandInput,
|
|
168
172
|
UploadLayerPartCommandOutput,
|
|
169
173
|
} from "../commands/UploadLayerPartCommand";
|
|
174
|
+
import {
|
|
175
|
+
ValidatePullThroughCacheRuleCommandInput,
|
|
176
|
+
ValidatePullThroughCacheRuleCommandOutput,
|
|
177
|
+
} from "../commands/ValidatePullThroughCacheRuleCommand";
|
|
170
178
|
export declare const se_BatchCheckLayerAvailabilityCommand: (
|
|
171
179
|
input: BatchCheckLayerAvailabilityCommandInput,
|
|
172
180
|
context: __SerdeContext
|
|
@@ -327,10 +335,18 @@ export declare const se_UntagResourceCommand: (
|
|
|
327
335
|
input: UntagResourceCommandInput,
|
|
328
336
|
context: __SerdeContext
|
|
329
337
|
) => Promise<__HttpRequest>;
|
|
338
|
+
export declare const se_UpdatePullThroughCacheRuleCommand: (
|
|
339
|
+
input: UpdatePullThroughCacheRuleCommandInput,
|
|
340
|
+
context: __SerdeContext
|
|
341
|
+
) => Promise<__HttpRequest>;
|
|
330
342
|
export declare const se_UploadLayerPartCommand: (
|
|
331
343
|
input: UploadLayerPartCommandInput,
|
|
332
344
|
context: __SerdeContext
|
|
333
345
|
) => Promise<__HttpRequest>;
|
|
346
|
+
export declare const se_ValidatePullThroughCacheRuleCommand: (
|
|
347
|
+
input: ValidatePullThroughCacheRuleCommandInput,
|
|
348
|
+
context: __SerdeContext
|
|
349
|
+
) => Promise<__HttpRequest>;
|
|
334
350
|
export declare const de_BatchCheckLayerAvailabilityCommand: (
|
|
335
351
|
output: __HttpResponse,
|
|
336
352
|
context: __SerdeContext
|
|
@@ -491,7 +507,15 @@ export declare const de_UntagResourceCommand: (
|
|
|
491
507
|
output: __HttpResponse,
|
|
492
508
|
context: __SerdeContext
|
|
493
509
|
) => Promise<UntagResourceCommandOutput>;
|
|
510
|
+
export declare const de_UpdatePullThroughCacheRuleCommand: (
|
|
511
|
+
output: __HttpResponse,
|
|
512
|
+
context: __SerdeContext
|
|
513
|
+
) => Promise<UpdatePullThroughCacheRuleCommandOutput>;
|
|
494
514
|
export declare const de_UploadLayerPartCommand: (
|
|
495
515
|
output: __HttpResponse,
|
|
496
516
|
context: __SerdeContext
|
|
497
517
|
) => Promise<UploadLayerPartCommandOutput>;
|
|
518
|
+
export declare const de_ValidatePullThroughCacheRuleCommand: (
|
|
519
|
+
output: __HttpResponse,
|
|
520
|
+
context: __SerdeContext
|
|
521
|
+
) => Promise<ValidatePullThroughCacheRuleCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecr",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.454.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.454.0",
|
|
25
25
|
"@aws-sdk/core": "3.451.0",
|
|
26
26
|
"@aws-sdk/credential-provider-node": "3.451.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.451.0",
|