@aws-sdk/client-ecr 3.38.0 → 3.42.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 (51) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/endpoints.js +277 -81
  3. package/dist-cjs/runtimeConfig.browser.js +6 -3
  4. package/dist-cjs/runtimeConfig.js +5 -3
  5. package/dist-es/endpoints.js +277 -81
  6. package/dist-es/runtimeConfig.browser.js +3 -2
  7. package/dist-es/runtimeConfig.js +3 -3
  8. package/dist-types/ECRClient.d.ts +8 -0
  9. package/dist-types/commands/BatchCheckLayerAvailabilityCommand.d.ts +1 -1
  10. package/dist-types/commands/BatchDeleteImageCommand.d.ts +1 -1
  11. package/dist-types/commands/BatchGetImageCommand.d.ts +1 -1
  12. package/dist-types/commands/CompleteLayerUploadCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateRepositoryCommand.d.ts +1 -1
  14. package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +1 -1
  15. package/dist-types/commands/DeleteRegistryPolicyCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteRepositoryCommand.d.ts +1 -1
  17. package/dist-types/commands/DeleteRepositoryPolicyCommand.d.ts +1 -1
  18. package/dist-types/commands/DescribeImageReplicationStatusCommand.d.ts +1 -1
  19. package/dist-types/commands/DescribeImageScanFindingsCommand.d.ts +1 -1
  20. package/dist-types/commands/DescribeImagesCommand.d.ts +1 -1
  21. package/dist-types/commands/DescribeRegistryCommand.d.ts +1 -1
  22. package/dist-types/commands/DescribeRepositoriesCommand.d.ts +1 -1
  23. package/dist-types/commands/GetAuthorizationTokenCommand.d.ts +1 -1
  24. package/dist-types/commands/GetDownloadUrlForLayerCommand.d.ts +1 -1
  25. package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +1 -1
  26. package/dist-types/commands/GetLifecyclePolicyPreviewCommand.d.ts +1 -1
  27. package/dist-types/commands/GetRegistryPolicyCommand.d.ts +1 -1
  28. package/dist-types/commands/GetRepositoryPolicyCommand.d.ts +1 -1
  29. package/dist-types/commands/InitiateLayerUploadCommand.d.ts +1 -1
  30. package/dist-types/commands/ListImagesCommand.d.ts +1 -1
  31. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  32. package/dist-types/commands/PutImageCommand.d.ts +1 -1
  33. package/dist-types/commands/PutImageScanningConfigurationCommand.d.ts +1 -1
  34. package/dist-types/commands/PutImageTagMutabilityCommand.d.ts +1 -1
  35. package/dist-types/commands/PutLifecyclePolicyCommand.d.ts +1 -1
  36. package/dist-types/commands/PutRegistryPolicyCommand.d.ts +1 -1
  37. package/dist-types/commands/PutReplicationConfigurationCommand.d.ts +1 -1
  38. package/dist-types/commands/SetRepositoryPolicyCommand.d.ts +1 -1
  39. package/dist-types/commands/StartImageScanCommand.d.ts +1 -1
  40. package/dist-types/commands/StartLifecyclePolicyPreviewCommand.d.ts +1 -1
  41. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  42. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  43. package/dist-types/commands/UploadLayerPartCommand.d.ts +1 -1
  44. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  45. package/dist-types/runtimeConfig.d.ts +2 -0
  46. package/dist-types/runtimeConfig.native.d.ts +2 -0
  47. package/dist-types/ts3.4/ECRClient.d.ts +4 -0
  48. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  49. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  50. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  51. package/package.json +26 -26
@@ -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,80 @@ 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
+ {
329
+ hostname: "api.ecr-fips.{region}.api.aws",
330
+ tags: ["dualstack", "fips"],
331
+ },
332
+ {
333
+ hostname: "api.ecr.{region}.api.aws",
334
+ tags: ["dualstack"],
335
+ },
336
+ ],
199
337
  },
200
338
  "aws-cn": {
201
339
  regions: ["cn-north-1", "cn-northwest-1"],
202
- hostname: "api.ecr.{region}.amazonaws.com.cn",
340
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
341
+ variants: [
342
+ {
343
+ hostname: "api.ecr.{region}.amazonaws.com.cn",
344
+ tags: [],
345
+ },
346
+ {
347
+ hostname: "api.ecr-fips.{region}.amazonaws.com.cn",
348
+ tags: ["fips"],
349
+ },
350
+ {
351
+ hostname: "api.ecr-fips.{region}.api.amazonwebservices.com.cn",
352
+ tags: ["dualstack", "fips"],
353
+ },
354
+ {
355
+ hostname: "api.ecr.{region}.api.amazonwebservices.com.cn",
356
+ tags: ["dualstack"],
357
+ },
358
+ ],
203
359
  },
204
360
  "aws-iso": {
205
361
  regions: ["us-iso-east-1", "us-iso-west-1"],
206
- hostname: "api.ecr.{region}.c2s.ic.gov",
362
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
363
+ variants: [
364
+ {
365
+ hostname: "api.ecr.{region}.c2s.ic.gov",
366
+ tags: [],
367
+ },
368
+ {
369
+ hostname: "api.ecr-fips.{region}.c2s.ic.gov",
370
+ tags: ["fips"],
371
+ },
372
+ ],
207
373
  },
208
374
  "aws-iso-b": {
209
375
  regions: ["us-isob-east-1"],
210
- hostname: "api.ecr.{region}.sc2s.sgov.gov",
376
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
377
+ variants: [
378
+ {
379
+ hostname: "api.ecr.{region}.sc2s.sgov.gov",
380
+ tags: [],
381
+ },
382
+ {
383
+ hostname: "api.ecr-fips.{region}.sc2s.sgov.gov",
384
+ tags: ["fips"],
385
+ },
386
+ ],
211
387
  },
212
388
  "aws-us-gov": {
213
389
  regions: [
390
+ "dkr-us-gov-east-1",
391
+ "dkr-us-gov-west-1",
214
392
  "fips-dkr-us-gov-east-1",
215
393
  "fips-dkr-us-gov-west-1",
216
394
  "fips-us-gov-east-1",
@@ -218,7 +396,25 @@ var partitionHash = {
218
396
  "us-gov-east-1",
219
397
  "us-gov-west-1",
220
398
  ],
221
- hostname: "api.ecr.{region}.amazonaws.com",
399
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
400
+ variants: [
401
+ {
402
+ hostname: "api.ecr.{region}.amazonaws.com",
403
+ tags: [],
404
+ },
405
+ {
406
+ hostname: "ecr-fips.{region}.amazonaws.com",
407
+ tags: ["fips"],
408
+ },
409
+ {
410
+ hostname: "api.ecr-fips.{region}.api.aws",
411
+ tags: ["dualstack", "fips"],
412
+ },
413
+ {
414
+ hostname: "api.ecr.{region}.api.aws",
415
+ tags: ["dualstack"],
416
+ },
417
+ ],
222
418
  },
223
419
  };
224
420
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
@@ -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
  };
@@ -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> {
@@ -23,7 +23,7 @@ export interface BatchGetImageCommandOutput extends BatchGetImageResponse, __Met
23
23
  *
24
24
  * @see {@link BatchGetImageCommandInput} for command's `input` shape.
25
25
  * @see {@link BatchGetImageCommandOutput} for command's `response` shape.
26
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
26
+ * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
27
27
  *
28
28
  */
29
29
  export declare class BatchGetImageCommand extends $Command<BatchGetImageCommandInput, BatchGetImageCommandOutput, ECRClientResolvedConfig> {
@@ -28,7 +28,7 @@ export interface CompleteLayerUploadCommandOutput extends CompleteLayerUploadRes
28
28
  *
29
29
  * @see {@link CompleteLayerUploadCommandInput} for command's `input` shape.
30
30
  * @see {@link CompleteLayerUploadCommandOutput} for command's `response` shape.
31
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
31
+ * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
32
32
  *
33
33
  */
34
34
  export declare class CompleteLayerUploadCommand extends $Command<CompleteLayerUploadCommandInput, CompleteLayerUploadCommandOutput, ECRClientResolvedConfig> {
@@ -21,7 +21,7 @@ export interface CreateRepositoryCommandOutput extends CreateRepositoryResponse,
21
21
  *
22
22
  * @see {@link CreateRepositoryCommandInput} for command's `input` shape.
23
23
  * @see {@link CreateRepositoryCommandOutput} for command's `response` shape.
24
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
24
+ * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
25
25
  *
26
26
  */
27
27
  export declare class CreateRepositoryCommand extends $Command<CreateRepositoryCommandInput, CreateRepositoryCommandOutput, ECRClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface DeleteLifecyclePolicyCommandOutput extends DeleteLifecyclePolic
20
20
  *
21
21
  * @see {@link DeleteLifecyclePolicyCommandInput} for command's `input` shape.
22
22
  * @see {@link DeleteLifecyclePolicyCommandOutput} for command's `response` shape.
23
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class DeleteLifecyclePolicyCommand extends $Command<DeleteLifecyclePolicyCommandInput, DeleteLifecyclePolicyCommandOutput, ECRClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface DeleteRegistryPolicyCommandOutput extends DeleteRegistryPolicyR
20
20
  *
21
21
  * @see {@link DeleteRegistryPolicyCommandInput} for command's `input` shape.
22
22
  * @see {@link DeleteRegistryPolicyCommandOutput} for command's `response` shape.
23
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class DeleteRegistryPolicyCommand extends $Command<DeleteRegistryPolicyCommandInput, DeleteRegistryPolicyCommandOutput, ECRClientResolvedConfig> {
@@ -22,7 +22,7 @@ export interface DeleteRepositoryCommandOutput extends DeleteRepositoryResponse,
22
22
  *
23
23
  * @see {@link DeleteRepositoryCommandInput} for command's `input` shape.
24
24
  * @see {@link DeleteRepositoryCommandOutput} for command's `response` shape.
25
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
25
+ * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
26
26
  *
27
27
  */
28
28
  export declare class DeleteRepositoryCommand extends $Command<DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput, ECRClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface DeleteRepositoryPolicyCommandOutput extends DeleteRepositoryPol
20
20
  *
21
21
  * @see {@link DeleteRepositoryPolicyCommandInput} for command's `input` shape.
22
22
  * @see {@link DeleteRepositoryPolicyCommandOutput} for command's `response` shape.
23
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class DeleteRepositoryPolicyCommand extends $Command<DeleteRepositoryPolicyCommandInput, DeleteRepositoryPolicyCommandOutput, ECRClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface DescribeImageReplicationStatusCommandOutput extends DescribeIma
20
20
  *
21
21
  * @see {@link DescribeImageReplicationStatusCommandInput} for command's `input` shape.
22
22
  * @see {@link DescribeImageReplicationStatusCommandOutput} for command's `response` shape.
23
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class DescribeImageReplicationStatusCommand extends $Command<DescribeImageReplicationStatusCommandInput, DescribeImageReplicationStatusCommandOutput, ECRClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface DescribeImageScanFindingsCommandOutput extends DescribeImageSca
20
20
  *
21
21
  * @see {@link DescribeImageScanFindingsCommandInput} for command's `input` shape.
22
22
  * @see {@link DescribeImageScanFindingsCommandOutput} for command's `response` shape.
23
- * @see {@link ECRClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class DescribeImageScanFindingsCommand extends $Command<DescribeImageScanFindingsCommandInput, DescribeImageScanFindingsCommandOutput, ECRClientResolvedConfig> {