@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
package/CHANGELOG.md CHANGED
@@ -3,6 +3,48 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
18
+
19
+
20
+ ### Features
21
+
22
+ * **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
29
+
30
+ **Note:** Version bump only for package @aws-sdk/client-ecr
31
+
32
+
33
+
34
+
35
+
36
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
37
+
38
+
39
+ ### Features
40
+
41
+ * **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
42
+ * **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
43
+
44
+
45
+
46
+
47
+
6
48
  # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
7
49
 
8
50
 
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./BatchCheckLayerAvailabilityCommand"), exports);
5
+ tslib_1.__exportStar(require("./BatchDeleteImageCommand"), exports);
6
+ tslib_1.__exportStar(require("./BatchGetImageCommand"), exports);
7
+ tslib_1.__exportStar(require("./CompleteLayerUploadCommand"), exports);
8
+ tslib_1.__exportStar(require("./CreateRepositoryCommand"), exports);
9
+ tslib_1.__exportStar(require("./DeleteLifecyclePolicyCommand"), exports);
10
+ tslib_1.__exportStar(require("./DeleteRegistryPolicyCommand"), exports);
11
+ tslib_1.__exportStar(require("./DeleteRepositoryCommand"), exports);
12
+ tslib_1.__exportStar(require("./DeleteRepositoryPolicyCommand"), exports);
13
+ tslib_1.__exportStar(require("./DescribeImageReplicationStatusCommand"), exports);
14
+ tslib_1.__exportStar(require("./DescribeImageScanFindingsCommand"), exports);
15
+ tslib_1.__exportStar(require("./DescribeImagesCommand"), exports);
16
+ tslib_1.__exportStar(require("./DescribeRegistryCommand"), exports);
17
+ tslib_1.__exportStar(require("./DescribeRepositoriesCommand"), exports);
18
+ tslib_1.__exportStar(require("./GetAuthorizationTokenCommand"), exports);
19
+ tslib_1.__exportStar(require("./GetDownloadUrlForLayerCommand"), exports);
20
+ tslib_1.__exportStar(require("./GetLifecyclePolicyCommand"), exports);
21
+ tslib_1.__exportStar(require("./GetLifecyclePolicyPreviewCommand"), exports);
22
+ tslib_1.__exportStar(require("./GetRegistryPolicyCommand"), exports);
23
+ tslib_1.__exportStar(require("./GetRepositoryPolicyCommand"), exports);
24
+ tslib_1.__exportStar(require("./InitiateLayerUploadCommand"), exports);
25
+ tslib_1.__exportStar(require("./ListImagesCommand"), exports);
26
+ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
27
+ tslib_1.__exportStar(require("./PutImageCommand"), exports);
28
+ tslib_1.__exportStar(require("./PutImageScanningConfigurationCommand"), exports);
29
+ tslib_1.__exportStar(require("./PutImageTagMutabilityCommand"), exports);
30
+ tslib_1.__exportStar(require("./PutLifecyclePolicyCommand"), exports);
31
+ tslib_1.__exportStar(require("./PutRegistryPolicyCommand"), exports);
32
+ tslib_1.__exportStar(require("./PutReplicationConfigurationCommand"), exports);
33
+ tslib_1.__exportStar(require("./SetRepositoryPolicyCommand"), exports);
34
+ tslib_1.__exportStar(require("./StartImageScanCommand"), exports);
35
+ tslib_1.__exportStar(require("./StartLifecyclePolicyPreviewCommand"), exports);
36
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
37
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
38
+ tslib_1.__exportStar(require("./UploadLayerPartCommand"), exports);
@@ -4,163 +4,279 @@ exports.defaultRegionInfoProvider = void 0;
4
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "af-south-1": {
7
- hostname: "api.ecr.af-south-1.amazonaws.com",
7
+ variants: [
8
+ {
9
+ hostname: "api.ecr.af-south-1.amazonaws.com",
10
+ tags: [],
11
+ },
12
+ ],
8
13
  signingRegion: "af-south-1",
9
14
  },
10
15
  "ap-east-1": {
11
- hostname: "api.ecr.ap-east-1.amazonaws.com",
16
+ variants: [
17
+ {
18
+ hostname: "api.ecr.ap-east-1.amazonaws.com",
19
+ tags: [],
20
+ },
21
+ ],
12
22
  signingRegion: "ap-east-1",
13
23
  },
14
24
  "ap-northeast-1": {
15
- hostname: "api.ecr.ap-northeast-1.amazonaws.com",
25
+ variants: [
26
+ {
27
+ hostname: "api.ecr.ap-northeast-1.amazonaws.com",
28
+ tags: [],
29
+ },
30
+ ],
16
31
  signingRegion: "ap-northeast-1",
17
32
  },
18
33
  "ap-northeast-2": {
19
- hostname: "api.ecr.ap-northeast-2.amazonaws.com",
34
+ variants: [
35
+ {
36
+ hostname: "api.ecr.ap-northeast-2.amazonaws.com",
37
+ tags: [],
38
+ },
39
+ ],
20
40
  signingRegion: "ap-northeast-2",
21
41
  },
22
42
  "ap-northeast-3": {
23
- hostname: "api.ecr.ap-northeast-3.amazonaws.com",
43
+ variants: [
44
+ {
45
+ hostname: "api.ecr.ap-northeast-3.amazonaws.com",
46
+ tags: [],
47
+ },
48
+ ],
24
49
  signingRegion: "ap-northeast-3",
25
50
  },
26
51
  "ap-south-1": {
27
- hostname: "api.ecr.ap-south-1.amazonaws.com",
52
+ variants: [
53
+ {
54
+ hostname: "api.ecr.ap-south-1.amazonaws.com",
55
+ tags: [],
56
+ },
57
+ ],
28
58
  signingRegion: "ap-south-1",
29
59
  },
30
60
  "ap-southeast-1": {
31
- hostname: "api.ecr.ap-southeast-1.amazonaws.com",
61
+ variants: [
62
+ {
63
+ hostname: "api.ecr.ap-southeast-1.amazonaws.com",
64
+ tags: [],
65
+ },
66
+ ],
32
67
  signingRegion: "ap-southeast-1",
33
68
  },
34
69
  "ap-southeast-2": {
35
- hostname: "api.ecr.ap-southeast-2.amazonaws.com",
70
+ variants: [
71
+ {
72
+ hostname: "api.ecr.ap-southeast-2.amazonaws.com",
73
+ tags: [],
74
+ },
75
+ ],
36
76
  signingRegion: "ap-southeast-2",
37
77
  },
38
78
  "ca-central-1": {
39
- hostname: "api.ecr.ca-central-1.amazonaws.com",
79
+ variants: [
80
+ {
81
+ hostname: "api.ecr.ca-central-1.amazonaws.com",
82
+ tags: [],
83
+ },
84
+ ],
40
85
  signingRegion: "ca-central-1",
41
86
  },
42
87
  "cn-north-1": {
43
- hostname: "api.ecr.cn-north-1.amazonaws.com.cn",
88
+ variants: [
89
+ {
90
+ hostname: "api.ecr.cn-north-1.amazonaws.com.cn",
91
+ tags: [],
92
+ },
93
+ ],
44
94
  signingRegion: "cn-north-1",
45
95
  },
46
96
  "cn-northwest-1": {
47
- hostname: "api.ecr.cn-northwest-1.amazonaws.com.cn",
97
+ variants: [
98
+ {
99
+ hostname: "api.ecr.cn-northwest-1.amazonaws.com.cn",
100
+ tags: [],
101
+ },
102
+ ],
48
103
  signingRegion: "cn-northwest-1",
49
104
  },
50
105
  "eu-central-1": {
51
- hostname: "api.ecr.eu-central-1.amazonaws.com",
106
+ variants: [
107
+ {
108
+ hostname: "api.ecr.eu-central-1.amazonaws.com",
109
+ tags: [],
110
+ },
111
+ ],
52
112
  signingRegion: "eu-central-1",
53
113
  },
54
114
  "eu-north-1": {
55
- hostname: "api.ecr.eu-north-1.amazonaws.com",
115
+ variants: [
116
+ {
117
+ hostname: "api.ecr.eu-north-1.amazonaws.com",
118
+ tags: [],
119
+ },
120
+ ],
56
121
  signingRegion: "eu-north-1",
57
122
  },
58
123
  "eu-south-1": {
59
- hostname: "api.ecr.eu-south-1.amazonaws.com",
124
+ variants: [
125
+ {
126
+ hostname: "api.ecr.eu-south-1.amazonaws.com",
127
+ tags: [],
128
+ },
129
+ ],
60
130
  signingRegion: "eu-south-1",
61
131
  },
62
132
  "eu-west-1": {
63
- hostname: "api.ecr.eu-west-1.amazonaws.com",
133
+ variants: [
134
+ {
135
+ hostname: "api.ecr.eu-west-1.amazonaws.com",
136
+ tags: [],
137
+ },
138
+ ],
64
139
  signingRegion: "eu-west-1",
65
140
  },
66
141
  "eu-west-2": {
67
- hostname: "api.ecr.eu-west-2.amazonaws.com",
142
+ variants: [
143
+ {
144
+ hostname: "api.ecr.eu-west-2.amazonaws.com",
145
+ tags: [],
146
+ },
147
+ ],
68
148
  signingRegion: "eu-west-2",
69
149
  },
70
150
  "eu-west-3": {
71
- hostname: "api.ecr.eu-west-3.amazonaws.com",
151
+ variants: [
152
+ {
153
+ hostname: "api.ecr.eu-west-3.amazonaws.com",
154
+ tags: [],
155
+ },
156
+ ],
72
157
  signingRegion: "eu-west-3",
73
158
  },
74
- "fips-dkr-us-east-1": {
75
- hostname: "ecr-fips.us-east-1.amazonaws.com",
76
- signingRegion: "us-east-1",
77
- },
78
- "fips-dkr-us-east-2": {
79
- hostname: "ecr-fips.us-east-2.amazonaws.com",
80
- signingRegion: "us-east-2",
81
- },
82
- "fips-dkr-us-gov-east-1": {
83
- hostname: "ecr-fips.us-gov-east-1.amazonaws.com",
84
- signingRegion: "us-gov-east-1",
85
- },
86
- "fips-dkr-us-gov-west-1": {
87
- hostname: "ecr-fips.us-gov-west-1.amazonaws.com",
88
- signingRegion: "us-gov-west-1",
89
- },
90
- "fips-dkr-us-west-1": {
91
- hostname: "ecr-fips.us-west-1.amazonaws.com",
92
- signingRegion: "us-west-1",
93
- },
94
- "fips-dkr-us-west-2": {
95
- hostname: "ecr-fips.us-west-2.amazonaws.com",
96
- signingRegion: "us-west-2",
97
- },
98
- "fips-us-east-1": {
99
- hostname: "ecr-fips.us-east-1.amazonaws.com",
100
- signingRegion: "us-east-1",
101
- },
102
- "fips-us-east-2": {
103
- hostname: "ecr-fips.us-east-2.amazonaws.com",
104
- signingRegion: "us-east-2",
105
- },
106
- "fips-us-gov-east-1": {
107
- hostname: "ecr-fips.us-gov-east-1.amazonaws.com",
108
- signingRegion: "us-gov-east-1",
109
- },
110
- "fips-us-gov-west-1": {
111
- hostname: "ecr-fips.us-gov-west-1.amazonaws.com",
112
- signingRegion: "us-gov-west-1",
113
- },
114
- "fips-us-west-1": {
115
- hostname: "ecr-fips.us-west-1.amazonaws.com",
116
- signingRegion: "us-west-1",
117
- },
118
- "fips-us-west-2": {
119
- hostname: "ecr-fips.us-west-2.amazonaws.com",
120
- signingRegion: "us-west-2",
121
- },
122
159
  "me-south-1": {
123
- hostname: "api.ecr.me-south-1.amazonaws.com",
160
+ variants: [
161
+ {
162
+ hostname: "api.ecr.me-south-1.amazonaws.com",
163
+ tags: [],
164
+ },
165
+ ],
124
166
  signingRegion: "me-south-1",
125
167
  },
126
168
  "sa-east-1": {
127
- hostname: "api.ecr.sa-east-1.amazonaws.com",
169
+ variants: [
170
+ {
171
+ hostname: "api.ecr.sa-east-1.amazonaws.com",
172
+ tags: [],
173
+ },
174
+ ],
128
175
  signingRegion: "sa-east-1",
129
176
  },
130
177
  "us-east-1": {
131
- hostname: "api.ecr.us-east-1.amazonaws.com",
178
+ variants: [
179
+ {
180
+ hostname: "api.ecr.us-east-1.amazonaws.com",
181
+ tags: [],
182
+ },
183
+ {
184
+ hostname: "ecr-fips.us-east-1.amazonaws.com",
185
+ tags: ["fips"],
186
+ },
187
+ ],
132
188
  signingRegion: "us-east-1",
133
189
  },
134
190
  "us-east-2": {
135
- hostname: "api.ecr.us-east-2.amazonaws.com",
191
+ variants: [
192
+ {
193
+ hostname: "api.ecr.us-east-2.amazonaws.com",
194
+ tags: [],
195
+ },
196
+ {
197
+ hostname: "ecr-fips.us-east-2.amazonaws.com",
198
+ tags: ["fips"],
199
+ },
200
+ ],
136
201
  signingRegion: "us-east-2",
137
202
  },
138
203
  "us-gov-east-1": {
139
- hostname: "api.ecr.us-gov-east-1.amazonaws.com",
204
+ variants: [
205
+ {
206
+ hostname: "api.ecr.us-gov-east-1.amazonaws.com",
207
+ tags: [],
208
+ },
209
+ {
210
+ hostname: "ecr-fips.us-gov-east-1.amazonaws.com",
211
+ tags: ["fips"],
212
+ },
213
+ ],
140
214
  signingRegion: "us-gov-east-1",
141
215
  },
142
216
  "us-gov-west-1": {
143
- hostname: "api.ecr.us-gov-west-1.amazonaws.com",
217
+ variants: [
218
+ {
219
+ hostname: "api.ecr.us-gov-west-1.amazonaws.com",
220
+ tags: [],
221
+ },
222
+ {
223
+ hostname: "ecr-fips.us-gov-west-1.amazonaws.com",
224
+ tags: ["fips"],
225
+ },
226
+ ],
144
227
  signingRegion: "us-gov-west-1",
145
228
  },
146
229
  "us-iso-east-1": {
147
- hostname: "api.ecr.us-iso-east-1.c2s.ic.gov",
230
+ variants: [
231
+ {
232
+ hostname: "api.ecr.us-iso-east-1.c2s.ic.gov",
233
+ tags: [],
234
+ },
235
+ ],
148
236
  signingRegion: "us-iso-east-1",
149
237
  },
150
238
  "us-iso-west-1": {
151
- hostname: "api.ecr.us-iso-west-1.c2s.ic.gov",
239
+ variants: [
240
+ {
241
+ hostname: "api.ecr.us-iso-west-1.c2s.ic.gov",
242
+ tags: [],
243
+ },
244
+ ],
152
245
  signingRegion: "us-iso-west-1",
153
246
  },
154
247
  "us-isob-east-1": {
155
- hostname: "api.ecr.us-isob-east-1.sc2s.sgov.gov",
248
+ variants: [
249
+ {
250
+ hostname: "api.ecr.us-isob-east-1.sc2s.sgov.gov",
251
+ tags: [],
252
+ },
253
+ ],
156
254
  signingRegion: "us-isob-east-1",
157
255
  },
158
256
  "us-west-1": {
159
- hostname: "api.ecr.us-west-1.amazonaws.com",
257
+ variants: [
258
+ {
259
+ hostname: "api.ecr.us-west-1.amazonaws.com",
260
+ tags: [],
261
+ },
262
+ {
263
+ hostname: "ecr-fips.us-west-1.amazonaws.com",
264
+ tags: ["fips"],
265
+ },
266
+ ],
160
267
  signingRegion: "us-west-1",
161
268
  },
162
269
  "us-west-2": {
163
- hostname: "api.ecr.us-west-2.amazonaws.com",
270
+ variants: [
271
+ {
272
+ hostname: "api.ecr.us-west-2.amazonaws.com",
273
+ tags: [],
274
+ },
275
+ {
276
+ hostname: "ecr-fips.us-west-2.amazonaws.com",
277
+ tags: ["fips"],
278
+ },
279
+ ],
164
280
  signingRegion: "us-west-2",
165
281
  },
166
282
  };
@@ -176,6 +292,10 @@ const partitionHash = {
176
292
  "ap-southeast-1",
177
293
  "ap-southeast-2",
178
294
  "ca-central-1",
295
+ "dkr-us-east-1",
296
+ "dkr-us-east-2",
297
+ "dkr-us-west-1",
298
+ "dkr-us-west-2",
179
299
  "eu-central-1",
180
300
  "eu-north-1",
181
301
  "eu-south-1",
@@ -197,22 +317,72 @@ const partitionHash = {
197
317
  "us-west-1",
198
318
  "us-west-2",
199
319
  ],
200
- hostname: "api.ecr.{region}.amazonaws.com",
320
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
321
+ variants: [
322
+ {
323
+ hostname: "api.ecr.{region}.amazonaws.com",
324
+ tags: [],
325
+ },
326
+ {
327
+ hostname: "ecr-fips.{region}.amazonaws.com",
328
+ tags: ["fips"],
329
+ },
330
+ ],
201
331
  },
202
332
  "aws-cn": {
203
333
  regions: ["cn-north-1", "cn-northwest-1"],
204
- hostname: "api.ecr.{region}.amazonaws.com.cn",
334
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
335
+ variants: [
336
+ {
337
+ hostname: "api.ecr.{region}.amazonaws.com.cn",
338
+ tags: [],
339
+ },
340
+ {
341
+ hostname: "api.ecr-fips.{region}.amazonaws.com.cn",
342
+ tags: ["fips"],
343
+ },
344
+ {
345
+ hostname: "api.ecr-fips.{region}.api.amazonwebservices.com.cn",
346
+ tags: ["dualstack", "fips"],
347
+ },
348
+ {
349
+ hostname: "api.ecr.{region}.api.amazonwebservices.com.cn",
350
+ tags: ["dualstack"],
351
+ },
352
+ ],
205
353
  },
206
354
  "aws-iso": {
207
355
  regions: ["us-iso-east-1", "us-iso-west-1"],
208
- hostname: "api.ecr.{region}.c2s.ic.gov",
356
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
357
+ variants: [
358
+ {
359
+ hostname: "api.ecr.{region}.c2s.ic.gov",
360
+ tags: [],
361
+ },
362
+ {
363
+ hostname: "api.ecr-fips.{region}.c2s.ic.gov",
364
+ tags: ["fips"],
365
+ },
366
+ ],
209
367
  },
210
368
  "aws-iso-b": {
211
369
  regions: ["us-isob-east-1"],
212
- hostname: "api.ecr.{region}.sc2s.sgov.gov",
370
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
371
+ variants: [
372
+ {
373
+ hostname: "api.ecr.{region}.sc2s.sgov.gov",
374
+ tags: [],
375
+ },
376
+ {
377
+ hostname: "api.ecr-fips.{region}.sc2s.sgov.gov",
378
+ tags: ["fips"],
379
+ },
380
+ ],
213
381
  },
214
382
  "aws-us-gov": {
215
383
  regions: [
384
+ "dkr-us-gov-east-1",
385
+ "dkr-us-gov-west-1",
216
386
  "fips-dkr-us-gov-east-1",
217
387
  "fips-dkr-us-gov-west-1",
218
388
  "fips-us-gov-east-1",
@@ -220,7 +390,17 @@ const partitionHash = {
220
390
  "us-gov-east-1",
221
391
  "us-gov-west-1",
222
392
  ],
223
- hostname: "api.ecr.{region}.amazonaws.com",
393
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
394
+ variants: [
395
+ {
396
+ hostname: "api.ecr.{region}.amazonaws.com",
397
+ tags: [],
398
+ },
399
+ {
400
+ hostname: "ecr-fips.{region}.amazonaws.com",
401
+ tags: ["fips"],
402
+ },
403
+ ],
224
404
  },
225
405
  };
226
406
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
package/dist-cjs/index.js CHANGED
@@ -1,49 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./ECRClient"), exports);
5
4
  tslib_1.__exportStar(require("./ECR"), exports);
6
- tslib_1.__exportStar(require("./commands/BatchCheckLayerAvailabilityCommand"), exports);
7
- tslib_1.__exportStar(require("./commands/BatchDeleteImageCommand"), exports);
8
- tslib_1.__exportStar(require("./commands/BatchGetImageCommand"), exports);
9
- tslib_1.__exportStar(require("./commands/CompleteLayerUploadCommand"), exports);
10
- tslib_1.__exportStar(require("./commands/CreateRepositoryCommand"), exports);
11
- tslib_1.__exportStar(require("./commands/DeleteLifecyclePolicyCommand"), exports);
12
- tslib_1.__exportStar(require("./commands/DeleteRegistryPolicyCommand"), exports);
13
- tslib_1.__exportStar(require("./commands/DeleteRepositoryCommand"), exports);
14
- tslib_1.__exportStar(require("./commands/DeleteRepositoryPolicyCommand"), exports);
15
- tslib_1.__exportStar(require("./commands/DescribeImageReplicationStatusCommand"), exports);
16
- tslib_1.__exportStar(require("./commands/DescribeImagesCommand"), exports);
17
- tslib_1.__exportStar(require("./pagination/DescribeImagesPaginator"), exports);
18
- tslib_1.__exportStar(require("./commands/DescribeImageScanFindingsCommand"), exports);
19
- tslib_1.__exportStar(require("./pagination/DescribeImageScanFindingsPaginator"), exports);
20
- tslib_1.__exportStar(require("./waiters/waitForImageScanComplete"), exports);
21
- tslib_1.__exportStar(require("./commands/DescribeRegistryCommand"), exports);
22
- tslib_1.__exportStar(require("./commands/DescribeRepositoriesCommand"), exports);
23
- tslib_1.__exportStar(require("./pagination/DescribeRepositoriesPaginator"), exports);
24
- tslib_1.__exportStar(require("./commands/GetAuthorizationTokenCommand"), exports);
25
- tslib_1.__exportStar(require("./commands/GetDownloadUrlForLayerCommand"), exports);
26
- tslib_1.__exportStar(require("./commands/GetLifecyclePolicyCommand"), exports);
27
- tslib_1.__exportStar(require("./commands/GetLifecyclePolicyPreviewCommand"), exports);
28
- tslib_1.__exportStar(require("./pagination/GetLifecyclePolicyPreviewPaginator"), exports);
29
- tslib_1.__exportStar(require("./waiters/waitForLifecyclePolicyPreviewComplete"), exports);
30
- tslib_1.__exportStar(require("./commands/GetRegistryPolicyCommand"), exports);
31
- tslib_1.__exportStar(require("./commands/GetRepositoryPolicyCommand"), exports);
32
- tslib_1.__exportStar(require("./commands/InitiateLayerUploadCommand"), exports);
33
- tslib_1.__exportStar(require("./commands/ListImagesCommand"), exports);
34
- tslib_1.__exportStar(require("./pagination/ListImagesPaginator"), exports);
35
- tslib_1.__exportStar(require("./commands/ListTagsForResourceCommand"), exports);
36
- tslib_1.__exportStar(require("./commands/PutImageCommand"), exports);
37
- tslib_1.__exportStar(require("./commands/PutImageScanningConfigurationCommand"), exports);
38
- tslib_1.__exportStar(require("./commands/PutImageTagMutabilityCommand"), exports);
39
- tslib_1.__exportStar(require("./commands/PutLifecyclePolicyCommand"), exports);
40
- tslib_1.__exportStar(require("./commands/PutRegistryPolicyCommand"), exports);
41
- tslib_1.__exportStar(require("./commands/PutReplicationConfigurationCommand"), exports);
42
- tslib_1.__exportStar(require("./commands/SetRepositoryPolicyCommand"), exports);
43
- tslib_1.__exportStar(require("./commands/StartImageScanCommand"), exports);
44
- tslib_1.__exportStar(require("./commands/StartLifecyclePolicyPreviewCommand"), exports);
45
- tslib_1.__exportStar(require("./commands/TagResourceCommand"), exports);
46
- tslib_1.__exportStar(require("./commands/UntagResourceCommand"), exports);
47
- tslib_1.__exportStar(require("./commands/UploadLayerPartCommand"), exports);
48
- tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
49
- tslib_1.__exportStar(require("./models/index"), exports);
5
+ tslib_1.__exportStar(require("./ECRClient"), exports);
6
+ tslib_1.__exportStar(require("./commands"), exports);
7
+ tslib_1.__exportStar(require("./models"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
9
+ tslib_1.__exportStar(require("./waiters"), exports);
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./DescribeImageScanFindingsPaginator"), exports);
5
+ tslib_1.__exportStar(require("./DescribeImagesPaginator"), exports);
6
+ tslib_1.__exportStar(require("./DescribeRepositoriesPaginator"), exports);
7
+ tslib_1.__exportStar(require("./GetLifecyclePolicyPreviewPaginator"), exports);
8
+ tslib_1.__exportStar(require("./Interfaces"), exports);
9
+ tslib_1.__exportStar(require("./ListImagesPaginator"), exports);
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- 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;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
30
31
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
31
32
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
32
33
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
33
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
34
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
35
38
  };
36
39
  };
37
40
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
23
  return {
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
35
35
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
36
36
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
37
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
38
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
40
42
  };
41
43
  };
42
44
  exports.getRuntimeConfig = getRuntimeConfig;