@aws-sdk/client-ecr 3.37.0 → 3.41.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 (67) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/commands/index.js +38 -0
  3. package/dist-cjs/endpoints.js +261 -81
  4. package/dist-cjs/index.js +5 -45
  5. package/dist-cjs/pagination/index.js +9 -0
  6. package/dist-cjs/runtimeConfig.browser.js +6 -3
  7. package/dist-cjs/runtimeConfig.js +5 -3
  8. package/dist-cjs/waiters/index.js +5 -0
  9. package/dist-es/commands/index.js +35 -0
  10. package/dist-es/endpoints.js +261 -81
  11. package/dist-es/index.js +5 -45
  12. package/dist-es/pagination/index.js +6 -0
  13. package/dist-es/runtimeConfig.browser.js +3 -2
  14. package/dist-es/runtimeConfig.js +3 -3
  15. package/dist-es/waiters/index.js +2 -0
  16. package/dist-types/ECRClient.d.ts +8 -0
  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/CompleteLayerUploadCommand.d.ts +1 -1
  21. package/dist-types/commands/CreateRepositoryCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteRegistryPolicyCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteRepositoryCommand.d.ts +1 -1
  25. package/dist-types/commands/DeleteRepositoryPolicyCommand.d.ts +1 -1
  26. package/dist-types/commands/DescribeImageReplicationStatusCommand.d.ts +1 -1
  27. package/dist-types/commands/DescribeImageScanFindingsCommand.d.ts +1 -1
  28. package/dist-types/commands/DescribeImagesCommand.d.ts +1 -1
  29. package/dist-types/commands/DescribeRegistryCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeRepositoriesCommand.d.ts +1 -1
  31. package/dist-types/commands/GetAuthorizationTokenCommand.d.ts +1 -1
  32. package/dist-types/commands/GetDownloadUrlForLayerCommand.d.ts +1 -1
  33. package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +1 -1
  34. package/dist-types/commands/GetLifecyclePolicyPreviewCommand.d.ts +1 -1
  35. package/dist-types/commands/GetRegistryPolicyCommand.d.ts +1 -1
  36. package/dist-types/commands/GetRepositoryPolicyCommand.d.ts +1 -1
  37. package/dist-types/commands/InitiateLayerUploadCommand.d.ts +1 -1
  38. package/dist-types/commands/ListImagesCommand.d.ts +1 -1
  39. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  40. package/dist-types/commands/PutImageCommand.d.ts +1 -1
  41. package/dist-types/commands/PutImageScanningConfigurationCommand.d.ts +1 -1
  42. package/dist-types/commands/PutImageTagMutabilityCommand.d.ts +1 -1
  43. package/dist-types/commands/PutLifecyclePolicyCommand.d.ts +1 -1
  44. package/dist-types/commands/PutRegistryPolicyCommand.d.ts +1 -1
  45. package/dist-types/commands/PutReplicationConfigurationCommand.d.ts +1 -1
  46. package/dist-types/commands/SetRepositoryPolicyCommand.d.ts +1 -1
  47. package/dist-types/commands/StartImageScanCommand.d.ts +1 -1
  48. package/dist-types/commands/StartLifecyclePolicyPreviewCommand.d.ts +1 -1
  49. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  50. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  51. package/dist-types/commands/UploadLayerPartCommand.d.ts +1 -1
  52. package/dist-types/commands/index.d.ts +35 -0
  53. package/dist-types/index.d.ts +5 -45
  54. package/dist-types/pagination/index.d.ts +6 -0
  55. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  56. package/dist-types/runtimeConfig.d.ts +2 -0
  57. package/dist-types/runtimeConfig.native.d.ts +2 -0
  58. package/dist-types/ts3.4/ECRClient.d.ts +4 -0
  59. package/dist-types/ts3.4/commands/index.d.ts +35 -0
  60. package/dist-types/ts3.4/index.d.ts +5 -45
  61. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  62. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  63. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  64. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  65. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  66. package/dist-types/waiters/index.d.ts +2 -0
  67. package/package.json +27 -27
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./waitForImageScanComplete"), exports);
5
+ tslib_1.__exportStar(require("./waitForLifecyclePolicyPreviewComplete"), exports);
@@ -0,0 +1,35 @@
1
+ export * from "./BatchCheckLayerAvailabilityCommand";
2
+ export * from "./BatchDeleteImageCommand";
3
+ export * from "./BatchGetImageCommand";
4
+ export * from "./CompleteLayerUploadCommand";
5
+ export * from "./CreateRepositoryCommand";
6
+ export * from "./DeleteLifecyclePolicyCommand";
7
+ export * from "./DeleteRegistryPolicyCommand";
8
+ export * from "./DeleteRepositoryCommand";
9
+ export * from "./DeleteRepositoryPolicyCommand";
10
+ export * from "./DescribeImageReplicationStatusCommand";
11
+ export * from "./DescribeImageScanFindingsCommand";
12
+ export * from "./DescribeImagesCommand";
13
+ export * from "./DescribeRegistryCommand";
14
+ export * from "./DescribeRepositoriesCommand";
15
+ export * from "./GetAuthorizationTokenCommand";
16
+ export * from "./GetDownloadUrlForLayerCommand";
17
+ export * from "./GetLifecyclePolicyCommand";
18
+ export * from "./GetLifecyclePolicyPreviewCommand";
19
+ export * from "./GetRegistryPolicyCommand";
20
+ export * from "./GetRepositoryPolicyCommand";
21
+ export * from "./InitiateLayerUploadCommand";
22
+ export * from "./ListImagesCommand";
23
+ export * from "./ListTagsForResourceCommand";
24
+ export * from "./PutImageCommand";
25
+ export * from "./PutImageScanningConfigurationCommand";
26
+ export * from "./PutImageTagMutabilityCommand";
27
+ export * from "./PutLifecyclePolicyCommand";
28
+ export * from "./PutRegistryPolicyCommand";
29
+ export * from "./PutReplicationConfigurationCommand";
30
+ export * from "./SetRepositoryPolicyCommand";
31
+ export * from "./StartImageScanCommand";
32
+ export * from "./StartLifecyclePolicyPreviewCommand";
33
+ export * from "./TagResourceCommand";
34
+ export * from "./UntagResourceCommand";
35
+ export * from "./UploadLayerPartCommand";
@@ -2,163 +2,279 @@ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
4
  "af-south-1": {
5
- hostname: "api.ecr.af-south-1.amazonaws.com",
5
+ variants: [
6
+ {
7
+ hostname: "api.ecr.af-south-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ ],
6
11
  signingRegion: "af-south-1",
7
12
  },
8
13
  "ap-east-1": {
9
- hostname: "api.ecr.ap-east-1.amazonaws.com",
14
+ variants: [
15
+ {
16
+ hostname: "api.ecr.ap-east-1.amazonaws.com",
17
+ tags: [],
18
+ },
19
+ ],
10
20
  signingRegion: "ap-east-1",
11
21
  },
12
22
  "ap-northeast-1": {
13
- hostname: "api.ecr.ap-northeast-1.amazonaws.com",
23
+ variants: [
24
+ {
25
+ hostname: "api.ecr.ap-northeast-1.amazonaws.com",
26
+ tags: [],
27
+ },
28
+ ],
14
29
  signingRegion: "ap-northeast-1",
15
30
  },
16
31
  "ap-northeast-2": {
17
- hostname: "api.ecr.ap-northeast-2.amazonaws.com",
32
+ variants: [
33
+ {
34
+ hostname: "api.ecr.ap-northeast-2.amazonaws.com",
35
+ tags: [],
36
+ },
37
+ ],
18
38
  signingRegion: "ap-northeast-2",
19
39
  },
20
40
  "ap-northeast-3": {
21
- hostname: "api.ecr.ap-northeast-3.amazonaws.com",
41
+ variants: [
42
+ {
43
+ hostname: "api.ecr.ap-northeast-3.amazonaws.com",
44
+ tags: [],
45
+ },
46
+ ],
22
47
  signingRegion: "ap-northeast-3",
23
48
  },
24
49
  "ap-south-1": {
25
- hostname: "api.ecr.ap-south-1.amazonaws.com",
50
+ variants: [
51
+ {
52
+ hostname: "api.ecr.ap-south-1.amazonaws.com",
53
+ tags: [],
54
+ },
55
+ ],
26
56
  signingRegion: "ap-south-1",
27
57
  },
28
58
  "ap-southeast-1": {
29
- hostname: "api.ecr.ap-southeast-1.amazonaws.com",
59
+ variants: [
60
+ {
61
+ hostname: "api.ecr.ap-southeast-1.amazonaws.com",
62
+ tags: [],
63
+ },
64
+ ],
30
65
  signingRegion: "ap-southeast-1",
31
66
  },
32
67
  "ap-southeast-2": {
33
- hostname: "api.ecr.ap-southeast-2.amazonaws.com",
68
+ variants: [
69
+ {
70
+ hostname: "api.ecr.ap-southeast-2.amazonaws.com",
71
+ tags: [],
72
+ },
73
+ ],
34
74
  signingRegion: "ap-southeast-2",
35
75
  },
36
76
  "ca-central-1": {
37
- hostname: "api.ecr.ca-central-1.amazonaws.com",
77
+ variants: [
78
+ {
79
+ hostname: "api.ecr.ca-central-1.amazonaws.com",
80
+ tags: [],
81
+ },
82
+ ],
38
83
  signingRegion: "ca-central-1",
39
84
  },
40
85
  "cn-north-1": {
41
- hostname: "api.ecr.cn-north-1.amazonaws.com.cn",
86
+ variants: [
87
+ {
88
+ hostname: "api.ecr.cn-north-1.amazonaws.com.cn",
89
+ tags: [],
90
+ },
91
+ ],
42
92
  signingRegion: "cn-north-1",
43
93
  },
44
94
  "cn-northwest-1": {
45
- hostname: "api.ecr.cn-northwest-1.amazonaws.com.cn",
95
+ variants: [
96
+ {
97
+ hostname: "api.ecr.cn-northwest-1.amazonaws.com.cn",
98
+ tags: [],
99
+ },
100
+ ],
46
101
  signingRegion: "cn-northwest-1",
47
102
  },
48
103
  "eu-central-1": {
49
- hostname: "api.ecr.eu-central-1.amazonaws.com",
104
+ variants: [
105
+ {
106
+ hostname: "api.ecr.eu-central-1.amazonaws.com",
107
+ tags: [],
108
+ },
109
+ ],
50
110
  signingRegion: "eu-central-1",
51
111
  },
52
112
  "eu-north-1": {
53
- hostname: "api.ecr.eu-north-1.amazonaws.com",
113
+ variants: [
114
+ {
115
+ hostname: "api.ecr.eu-north-1.amazonaws.com",
116
+ tags: [],
117
+ },
118
+ ],
54
119
  signingRegion: "eu-north-1",
55
120
  },
56
121
  "eu-south-1": {
57
- hostname: "api.ecr.eu-south-1.amazonaws.com",
122
+ variants: [
123
+ {
124
+ hostname: "api.ecr.eu-south-1.amazonaws.com",
125
+ tags: [],
126
+ },
127
+ ],
58
128
  signingRegion: "eu-south-1",
59
129
  },
60
130
  "eu-west-1": {
61
- hostname: "api.ecr.eu-west-1.amazonaws.com",
131
+ variants: [
132
+ {
133
+ hostname: "api.ecr.eu-west-1.amazonaws.com",
134
+ tags: [],
135
+ },
136
+ ],
62
137
  signingRegion: "eu-west-1",
63
138
  },
64
139
  "eu-west-2": {
65
- hostname: "api.ecr.eu-west-2.amazonaws.com",
140
+ variants: [
141
+ {
142
+ hostname: "api.ecr.eu-west-2.amazonaws.com",
143
+ tags: [],
144
+ },
145
+ ],
66
146
  signingRegion: "eu-west-2",
67
147
  },
68
148
  "eu-west-3": {
69
- hostname: "api.ecr.eu-west-3.amazonaws.com",
149
+ variants: [
150
+ {
151
+ hostname: "api.ecr.eu-west-3.amazonaws.com",
152
+ tags: [],
153
+ },
154
+ ],
70
155
  signingRegion: "eu-west-3",
71
156
  },
72
- "fips-dkr-us-east-1": {
73
- hostname: "ecr-fips.us-east-1.amazonaws.com",
74
- signingRegion: "us-east-1",
75
- },
76
- "fips-dkr-us-east-2": {
77
- hostname: "ecr-fips.us-east-2.amazonaws.com",
78
- signingRegion: "us-east-2",
79
- },
80
- "fips-dkr-us-gov-east-1": {
81
- hostname: "ecr-fips.us-gov-east-1.amazonaws.com",
82
- signingRegion: "us-gov-east-1",
83
- },
84
- "fips-dkr-us-gov-west-1": {
85
- hostname: "ecr-fips.us-gov-west-1.amazonaws.com",
86
- signingRegion: "us-gov-west-1",
87
- },
88
- "fips-dkr-us-west-1": {
89
- hostname: "ecr-fips.us-west-1.amazonaws.com",
90
- signingRegion: "us-west-1",
91
- },
92
- "fips-dkr-us-west-2": {
93
- hostname: "ecr-fips.us-west-2.amazonaws.com",
94
- signingRegion: "us-west-2",
95
- },
96
- "fips-us-east-1": {
97
- hostname: "ecr-fips.us-east-1.amazonaws.com",
98
- signingRegion: "us-east-1",
99
- },
100
- "fips-us-east-2": {
101
- hostname: "ecr-fips.us-east-2.amazonaws.com",
102
- signingRegion: "us-east-2",
103
- },
104
- "fips-us-gov-east-1": {
105
- hostname: "ecr-fips.us-gov-east-1.amazonaws.com",
106
- signingRegion: "us-gov-east-1",
107
- },
108
- "fips-us-gov-west-1": {
109
- hostname: "ecr-fips.us-gov-west-1.amazonaws.com",
110
- signingRegion: "us-gov-west-1",
111
- },
112
- "fips-us-west-1": {
113
- hostname: "ecr-fips.us-west-1.amazonaws.com",
114
- signingRegion: "us-west-1",
115
- },
116
- "fips-us-west-2": {
117
- hostname: "ecr-fips.us-west-2.amazonaws.com",
118
- signingRegion: "us-west-2",
119
- },
120
157
  "me-south-1": {
121
- hostname: "api.ecr.me-south-1.amazonaws.com",
158
+ variants: [
159
+ {
160
+ hostname: "api.ecr.me-south-1.amazonaws.com",
161
+ tags: [],
162
+ },
163
+ ],
122
164
  signingRegion: "me-south-1",
123
165
  },
124
166
  "sa-east-1": {
125
- hostname: "api.ecr.sa-east-1.amazonaws.com",
167
+ variants: [
168
+ {
169
+ hostname: "api.ecr.sa-east-1.amazonaws.com",
170
+ tags: [],
171
+ },
172
+ ],
126
173
  signingRegion: "sa-east-1",
127
174
  },
128
175
  "us-east-1": {
129
- hostname: "api.ecr.us-east-1.amazonaws.com",
176
+ variants: [
177
+ {
178
+ hostname: "api.ecr.us-east-1.amazonaws.com",
179
+ tags: [],
180
+ },
181
+ {
182
+ hostname: "ecr-fips.us-east-1.amazonaws.com",
183
+ tags: ["fips"],
184
+ },
185
+ ],
130
186
  signingRegion: "us-east-1",
131
187
  },
132
188
  "us-east-2": {
133
- hostname: "api.ecr.us-east-2.amazonaws.com",
189
+ variants: [
190
+ {
191
+ hostname: "api.ecr.us-east-2.amazonaws.com",
192
+ tags: [],
193
+ },
194
+ {
195
+ hostname: "ecr-fips.us-east-2.amazonaws.com",
196
+ tags: ["fips"],
197
+ },
198
+ ],
134
199
  signingRegion: "us-east-2",
135
200
  },
136
201
  "us-gov-east-1": {
137
- hostname: "api.ecr.us-gov-east-1.amazonaws.com",
202
+ variants: [
203
+ {
204
+ hostname: "api.ecr.us-gov-east-1.amazonaws.com",
205
+ tags: [],
206
+ },
207
+ {
208
+ hostname: "ecr-fips.us-gov-east-1.amazonaws.com",
209
+ tags: ["fips"],
210
+ },
211
+ ],
138
212
  signingRegion: "us-gov-east-1",
139
213
  },
140
214
  "us-gov-west-1": {
141
- hostname: "api.ecr.us-gov-west-1.amazonaws.com",
215
+ variants: [
216
+ {
217
+ hostname: "api.ecr.us-gov-west-1.amazonaws.com",
218
+ tags: [],
219
+ },
220
+ {
221
+ hostname: "ecr-fips.us-gov-west-1.amazonaws.com",
222
+ tags: ["fips"],
223
+ },
224
+ ],
142
225
  signingRegion: "us-gov-west-1",
143
226
  },
144
227
  "us-iso-east-1": {
145
- hostname: "api.ecr.us-iso-east-1.c2s.ic.gov",
228
+ variants: [
229
+ {
230
+ hostname: "api.ecr.us-iso-east-1.c2s.ic.gov",
231
+ tags: [],
232
+ },
233
+ ],
146
234
  signingRegion: "us-iso-east-1",
147
235
  },
148
236
  "us-iso-west-1": {
149
- hostname: "api.ecr.us-iso-west-1.c2s.ic.gov",
237
+ variants: [
238
+ {
239
+ hostname: "api.ecr.us-iso-west-1.c2s.ic.gov",
240
+ tags: [],
241
+ },
242
+ ],
150
243
  signingRegion: "us-iso-west-1",
151
244
  },
152
245
  "us-isob-east-1": {
153
- hostname: "api.ecr.us-isob-east-1.sc2s.sgov.gov",
246
+ variants: [
247
+ {
248
+ hostname: "api.ecr.us-isob-east-1.sc2s.sgov.gov",
249
+ tags: [],
250
+ },
251
+ ],
154
252
  signingRegion: "us-isob-east-1",
155
253
  },
156
254
  "us-west-1": {
157
- hostname: "api.ecr.us-west-1.amazonaws.com",
255
+ variants: [
256
+ {
257
+ hostname: "api.ecr.us-west-1.amazonaws.com",
258
+ tags: [],
259
+ },
260
+ {
261
+ hostname: "ecr-fips.us-west-1.amazonaws.com",
262
+ tags: ["fips"],
263
+ },
264
+ ],
158
265
  signingRegion: "us-west-1",
159
266
  },
160
267
  "us-west-2": {
161
- hostname: "api.ecr.us-west-2.amazonaws.com",
268
+ variants: [
269
+ {
270
+ hostname: "api.ecr.us-west-2.amazonaws.com",
271
+ tags: [],
272
+ },
273
+ {
274
+ hostname: "ecr-fips.us-west-2.amazonaws.com",
275
+ tags: ["fips"],
276
+ },
277
+ ],
162
278
  signingRegion: "us-west-2",
163
279
  },
164
280
  };
@@ -174,6 +290,10 @@ var partitionHash = {
174
290
  "ap-southeast-1",
175
291
  "ap-southeast-2",
176
292
  "ca-central-1",
293
+ "dkr-us-east-1",
294
+ "dkr-us-east-2",
295
+ "dkr-us-west-1",
296
+ "dkr-us-west-2",
177
297
  "eu-central-1",
178
298
  "eu-north-1",
179
299
  "eu-south-1",
@@ -195,22 +315,72 @@ var partitionHash = {
195
315
  "us-west-1",
196
316
  "us-west-2",
197
317
  ],
198
- hostname: "api.ecr.{region}.amazonaws.com",
318
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
319
+ variants: [
320
+ {
321
+ hostname: "api.ecr.{region}.amazonaws.com",
322
+ tags: [],
323
+ },
324
+ {
325
+ hostname: "ecr-fips.{region}.amazonaws.com",
326
+ tags: ["fips"],
327
+ },
328
+ ],
199
329
  },
200
330
  "aws-cn": {
201
331
  regions: ["cn-north-1", "cn-northwest-1"],
202
- hostname: "api.ecr.{region}.amazonaws.com.cn",
332
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
333
+ variants: [
334
+ {
335
+ hostname: "api.ecr.{region}.amazonaws.com.cn",
336
+ tags: [],
337
+ },
338
+ {
339
+ hostname: "api.ecr-fips.{region}.amazonaws.com.cn",
340
+ tags: ["fips"],
341
+ },
342
+ {
343
+ hostname: "api.ecr-fips.{region}.api.amazonwebservices.com.cn",
344
+ tags: ["dualstack", "fips"],
345
+ },
346
+ {
347
+ hostname: "api.ecr.{region}.api.amazonwebservices.com.cn",
348
+ tags: ["dualstack"],
349
+ },
350
+ ],
203
351
  },
204
352
  "aws-iso": {
205
353
  regions: ["us-iso-east-1", "us-iso-west-1"],
206
- hostname: "api.ecr.{region}.c2s.ic.gov",
354
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
355
+ variants: [
356
+ {
357
+ hostname: "api.ecr.{region}.c2s.ic.gov",
358
+ tags: [],
359
+ },
360
+ {
361
+ hostname: "api.ecr-fips.{region}.c2s.ic.gov",
362
+ tags: ["fips"],
363
+ },
364
+ ],
207
365
  },
208
366
  "aws-iso-b": {
209
367
  regions: ["us-isob-east-1"],
210
- hostname: "api.ecr.{region}.sc2s.sgov.gov",
368
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
369
+ variants: [
370
+ {
371
+ hostname: "api.ecr.{region}.sc2s.sgov.gov",
372
+ tags: [],
373
+ },
374
+ {
375
+ hostname: "api.ecr-fips.{region}.sc2s.sgov.gov",
376
+ tags: ["fips"],
377
+ },
378
+ ],
211
379
  },
212
380
  "aws-us-gov": {
213
381
  regions: [
382
+ "dkr-us-gov-east-1",
383
+ "dkr-us-gov-west-1",
214
384
  "fips-dkr-us-gov-east-1",
215
385
  "fips-dkr-us-gov-west-1",
216
386
  "fips-us-gov-east-1",
@@ -218,7 +388,17 @@ var partitionHash = {
218
388
  "us-gov-east-1",
219
389
  "us-gov-west-1",
220
390
  ],
221
- hostname: "api.ecr.{region}.amazonaws.com",
391
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
392
+ variants: [
393
+ {
394
+ hostname: "api.ecr.{region}.amazonaws.com",
395
+ tags: [],
396
+ },
397
+ {
398
+ hostname: "ecr-fips.{region}.amazonaws.com",
399
+ tags: ["fips"],
400
+ },
401
+ ],
222
402
  },
223
403
  };
224
404
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
package/dist-es/index.js CHANGED
@@ -1,46 +1,6 @@
1
- export * from "./ECRClient";
2
1
  export * from "./ECR";
3
- export * from "./commands/BatchCheckLayerAvailabilityCommand";
4
- export * from "./commands/BatchDeleteImageCommand";
5
- export * from "./commands/BatchGetImageCommand";
6
- export * from "./commands/CompleteLayerUploadCommand";
7
- export * from "./commands/CreateRepositoryCommand";
8
- export * from "./commands/DeleteLifecyclePolicyCommand";
9
- export * from "./commands/DeleteRegistryPolicyCommand";
10
- export * from "./commands/DeleteRepositoryCommand";
11
- export * from "./commands/DeleteRepositoryPolicyCommand";
12
- export * from "./commands/DescribeImageReplicationStatusCommand";
13
- export * from "./commands/DescribeImagesCommand";
14
- export * from "./pagination/DescribeImagesPaginator";
15
- export * from "./commands/DescribeImageScanFindingsCommand";
16
- export * from "./pagination/DescribeImageScanFindingsPaginator";
17
- export * from "./waiters/waitForImageScanComplete";
18
- export * from "./commands/DescribeRegistryCommand";
19
- export * from "./commands/DescribeRepositoriesCommand";
20
- export * from "./pagination/DescribeRepositoriesPaginator";
21
- export * from "./commands/GetAuthorizationTokenCommand";
22
- export * from "./commands/GetDownloadUrlForLayerCommand";
23
- export * from "./commands/GetLifecyclePolicyCommand";
24
- export * from "./commands/GetLifecyclePolicyPreviewCommand";
25
- export * from "./pagination/GetLifecyclePolicyPreviewPaginator";
26
- export * from "./waiters/waitForLifecyclePolicyPreviewComplete";
27
- export * from "./commands/GetRegistryPolicyCommand";
28
- export * from "./commands/GetRepositoryPolicyCommand";
29
- export * from "./commands/InitiateLayerUploadCommand";
30
- export * from "./commands/ListImagesCommand";
31
- export * from "./pagination/ListImagesPaginator";
32
- export * from "./commands/ListTagsForResourceCommand";
33
- export * from "./commands/PutImageCommand";
34
- export * from "./commands/PutImageScanningConfigurationCommand";
35
- export * from "./commands/PutImageTagMutabilityCommand";
36
- export * from "./commands/PutLifecyclePolicyCommand";
37
- export * from "./commands/PutRegistryPolicyCommand";
38
- export * from "./commands/PutReplicationConfigurationCommand";
39
- export * from "./commands/SetRepositoryPolicyCommand";
40
- export * from "./commands/StartImageScanCommand";
41
- export * from "./commands/StartLifecyclePolicyPreviewCommand";
42
- export * from "./commands/TagResourceCommand";
43
- export * from "./commands/UntagResourceCommand";
44
- export * from "./commands/UploadLayerPartCommand";
45
- export * from "./pagination/Interfaces";
46
- export * from "./models/index";
2
+ export * from "./ECRClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
@@ -0,0 +1,6 @@
1
+ export * from "./DescribeImageScanFindingsPaginator";
2
+ export * from "./DescribeImagesPaginator";
3
+ export * from "./DescribeRepositoriesPaginator";
4
+ export * from "./GetLifecyclePolicyPreviewPaginator";
5
+ export * from "./Interfaces";
6
+ export * from "./ListImagesPaginator";
@@ -1,6 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
5
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  export var getRuntimeConfig = function (config) {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
14
15
  var clientSharedValues = getSharedRuntimeConfig(config);
15
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
16
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
16
17
  };
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
21
  };
@@ -0,0 +1,2 @@
1
+ export * from "./waitForImageScanComplete";
2
+ export * from "./waitForLifecyclePolicyPreviewComplete";
@@ -111,6 +111,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
111
111
  * Optional logger for logging debug/info/warn/error.
112
112
  */
113
113
  logger?: __Logger;
114
+ /**
115
+ * Enables IPv6/IPv4 dualstack endpoint.
116
+ */
117
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
118
+ /**
119
+ * Enables FIPS compatible endpoints.
120
+ */
121
+ useFipsEndpoint?: boolean | __Provider<boolean>;
114
122
  /**
115
123
  * Unique service identifier.
116
124
  * @internal
@@ -27,7 +27,7 @@ export interface BatchCheckLayerAvailabilityCommandOutput extends BatchCheckLaye
27
27
  *
28
28
  * @see {@link BatchCheckLayerAvailabilityCommandInput} for command's `input` shape.
29
29
  * @see {@link BatchCheckLayerAvailabilityCommandOutput} for command's `response` shape.
30
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
30
+ * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
31
31
  *
32
32
  */
33
33
  export declare class BatchCheckLayerAvailabilityCommand extends $Command<BatchCheckLayerAvailabilityCommandInput, BatchCheckLayerAvailabilityCommandOutput, ECRClientResolvedConfig> {
@@ -25,7 +25,7 @@ export interface BatchDeleteImageCommandOutput extends BatchDeleteImageResponse,
25
25
  *
26
26
  * @see {@link BatchDeleteImageCommandInput} for command's `input` shape.
27
27
  * @see {@link BatchDeleteImageCommandOutput} for command's `response` shape.
28
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
28
+ * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
29
29
  *
30
30
  */
31
31
  export declare class BatchDeleteImageCommand extends $Command<BatchDeleteImageCommandInput, BatchDeleteImageCommandOutput, ECRClientResolvedConfig> {