@aws-sdk/client-ecr-public 3.46.0 → 3.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist-cjs/models/models_0.js +2 -140
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/models/models_0.js +0 -92
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/ECRPUBLICClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -138
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/ECRPUBLICClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -92
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +35 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
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.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-ecr-public
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-ecr-public
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/client-ecr-public
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
42
|
|
|
8
43
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UploadLayerPartResponse = exports.UploadLayerPartRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.SetRepositoryPolicyResponse = exports.SetRepositoryPolicyRequest = exports.PutRepositoryCatalogDataResponse = exports.PutRepositoryCatalogDataRequest = exports.PutRegistryCatalogDataResponse = exports.PutRegistryCatalogDataRequest = exports.
|
|
3
|
+
exports.InitiateLayerUploadResponse = exports.InitiateLayerUploadRequest = exports.Image = exports.GetRepositoryPolicyResponse = exports.GetRepositoryPolicyRequest = exports.GetRepositoryCatalogDataResponse = exports.GetRepositoryCatalogDataRequest = exports.GetRegistryCatalogDataResponse = exports.RegistryCatalogData = exports.GetRegistryCatalogDataRequest = exports.GetAuthorizationTokenResponse = exports.GetAuthorizationTokenRequest = exports.DescribeRepositoriesResponse = exports.DescribeRepositoriesRequest = exports.DescribeRegistriesResponse = exports.Registry = exports.RegistryAlias = exports.RegistryAliasStatus = exports.DescribeRegistriesRequest = exports.DescribeImageTagsResponse = exports.ImageTagDetail = exports.ReferencedImageDetail = exports.DescribeImageTagsRequest = exports.DescribeImagesResponse = exports.ImageDetail = exports.DescribeImagesRequest = exports.DeleteRepositoryPolicyResponse = exports.DeleteRepositoryPolicyRequest = exports.DeleteRepositoryResponse = exports.DeleteRepositoryRequest = exports.CreateRepositoryResponse = exports.Repository = exports.RepositoryCatalogData = exports.CreateRepositoryRequest = exports.Tag = exports.RepositoryCatalogDataInput = exports.CompleteLayerUploadResponse = exports.CompleteLayerUploadRequest = exports.BatchDeleteImageResponse = exports.ImageFailure = exports.ImageFailureCode = exports.BatchDeleteImageRequest = exports.ImageIdentifier = exports.BatchCheckLayerAvailabilityResponse = exports.Layer = exports.LayerAvailability = exports.LayerFailure = exports.LayerFailureCode = exports.BatchCheckLayerAvailabilityRequest = exports.AuthorizationData = void 0;
|
|
4
|
+
exports.UploadLayerPartResponse = exports.UploadLayerPartRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.SetRepositoryPolicyResponse = exports.SetRepositoryPolicyRequest = exports.PutRepositoryCatalogDataResponse = exports.PutRepositoryCatalogDataRequest = exports.PutRegistryCatalogDataResponse = exports.PutRegistryCatalogDataRequest = exports.PutImageResponse = exports.PutImageRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = void 0;
|
|
5
5
|
var AuthorizationData;
|
|
6
6
|
(function (AuthorizationData) {
|
|
7
7
|
AuthorizationData.filterSensitiveLog = (obj) => ({
|
|
@@ -42,30 +42,6 @@ var BatchCheckLayerAvailabilityResponse;
|
|
|
42
42
|
...obj,
|
|
43
43
|
});
|
|
44
44
|
})(BatchCheckLayerAvailabilityResponse = exports.BatchCheckLayerAvailabilityResponse || (exports.BatchCheckLayerAvailabilityResponse = {}));
|
|
45
|
-
var InvalidParameterException;
|
|
46
|
-
(function (InvalidParameterException) {
|
|
47
|
-
InvalidParameterException.filterSensitiveLog = (obj) => ({
|
|
48
|
-
...obj,
|
|
49
|
-
});
|
|
50
|
-
})(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {}));
|
|
51
|
-
var RegistryNotFoundException;
|
|
52
|
-
(function (RegistryNotFoundException) {
|
|
53
|
-
RegistryNotFoundException.filterSensitiveLog = (obj) => ({
|
|
54
|
-
...obj,
|
|
55
|
-
});
|
|
56
|
-
})(RegistryNotFoundException = exports.RegistryNotFoundException || (exports.RegistryNotFoundException = {}));
|
|
57
|
-
var RepositoryNotFoundException;
|
|
58
|
-
(function (RepositoryNotFoundException) {
|
|
59
|
-
RepositoryNotFoundException.filterSensitiveLog = (obj) => ({
|
|
60
|
-
...obj,
|
|
61
|
-
});
|
|
62
|
-
})(RepositoryNotFoundException = exports.RepositoryNotFoundException || (exports.RepositoryNotFoundException = {}));
|
|
63
|
-
var ServerException;
|
|
64
|
-
(function (ServerException) {
|
|
65
|
-
ServerException.filterSensitiveLog = (obj) => ({
|
|
66
|
-
...obj,
|
|
67
|
-
});
|
|
68
|
-
})(ServerException = exports.ServerException || (exports.ServerException = {}));
|
|
69
45
|
var ImageIdentifier;
|
|
70
46
|
(function (ImageIdentifier) {
|
|
71
47
|
ImageIdentifier.filterSensitiveLog = (obj) => ({
|
|
@@ -112,42 +88,6 @@ var CompleteLayerUploadResponse;
|
|
|
112
88
|
...obj,
|
|
113
89
|
});
|
|
114
90
|
})(CompleteLayerUploadResponse = exports.CompleteLayerUploadResponse || (exports.CompleteLayerUploadResponse = {}));
|
|
115
|
-
var EmptyUploadException;
|
|
116
|
-
(function (EmptyUploadException) {
|
|
117
|
-
EmptyUploadException.filterSensitiveLog = (obj) => ({
|
|
118
|
-
...obj,
|
|
119
|
-
});
|
|
120
|
-
})(EmptyUploadException = exports.EmptyUploadException || (exports.EmptyUploadException = {}));
|
|
121
|
-
var InvalidLayerException;
|
|
122
|
-
(function (InvalidLayerException) {
|
|
123
|
-
InvalidLayerException.filterSensitiveLog = (obj) => ({
|
|
124
|
-
...obj,
|
|
125
|
-
});
|
|
126
|
-
})(InvalidLayerException = exports.InvalidLayerException || (exports.InvalidLayerException = {}));
|
|
127
|
-
var LayerAlreadyExistsException;
|
|
128
|
-
(function (LayerAlreadyExistsException) {
|
|
129
|
-
LayerAlreadyExistsException.filterSensitiveLog = (obj) => ({
|
|
130
|
-
...obj,
|
|
131
|
-
});
|
|
132
|
-
})(LayerAlreadyExistsException = exports.LayerAlreadyExistsException || (exports.LayerAlreadyExistsException = {}));
|
|
133
|
-
var LayerPartTooSmallException;
|
|
134
|
-
(function (LayerPartTooSmallException) {
|
|
135
|
-
LayerPartTooSmallException.filterSensitiveLog = (obj) => ({
|
|
136
|
-
...obj,
|
|
137
|
-
});
|
|
138
|
-
})(LayerPartTooSmallException = exports.LayerPartTooSmallException || (exports.LayerPartTooSmallException = {}));
|
|
139
|
-
var UnsupportedCommandException;
|
|
140
|
-
(function (UnsupportedCommandException) {
|
|
141
|
-
UnsupportedCommandException.filterSensitiveLog = (obj) => ({
|
|
142
|
-
...obj,
|
|
143
|
-
});
|
|
144
|
-
})(UnsupportedCommandException = exports.UnsupportedCommandException || (exports.UnsupportedCommandException = {}));
|
|
145
|
-
var UploadNotFoundException;
|
|
146
|
-
(function (UploadNotFoundException) {
|
|
147
|
-
UploadNotFoundException.filterSensitiveLog = (obj) => ({
|
|
148
|
-
...obj,
|
|
149
|
-
});
|
|
150
|
-
})(UploadNotFoundException = exports.UploadNotFoundException || (exports.UploadNotFoundException = {}));
|
|
151
91
|
var RepositoryCatalogDataInput;
|
|
152
92
|
(function (RepositoryCatalogDataInput) {
|
|
153
93
|
RepositoryCatalogDataInput.filterSensitiveLog = (obj) => ({
|
|
@@ -184,30 +124,6 @@ var CreateRepositoryResponse;
|
|
|
184
124
|
...obj,
|
|
185
125
|
});
|
|
186
126
|
})(CreateRepositoryResponse = exports.CreateRepositoryResponse || (exports.CreateRepositoryResponse = {}));
|
|
187
|
-
var InvalidTagParameterException;
|
|
188
|
-
(function (InvalidTagParameterException) {
|
|
189
|
-
InvalidTagParameterException.filterSensitiveLog = (obj) => ({
|
|
190
|
-
...obj,
|
|
191
|
-
});
|
|
192
|
-
})(InvalidTagParameterException = exports.InvalidTagParameterException || (exports.InvalidTagParameterException = {}));
|
|
193
|
-
var LimitExceededException;
|
|
194
|
-
(function (LimitExceededException) {
|
|
195
|
-
LimitExceededException.filterSensitiveLog = (obj) => ({
|
|
196
|
-
...obj,
|
|
197
|
-
});
|
|
198
|
-
})(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
|
|
199
|
-
var RepositoryAlreadyExistsException;
|
|
200
|
-
(function (RepositoryAlreadyExistsException) {
|
|
201
|
-
RepositoryAlreadyExistsException.filterSensitiveLog = (obj) => ({
|
|
202
|
-
...obj,
|
|
203
|
-
});
|
|
204
|
-
})(RepositoryAlreadyExistsException = exports.RepositoryAlreadyExistsException || (exports.RepositoryAlreadyExistsException = {}));
|
|
205
|
-
var TooManyTagsException;
|
|
206
|
-
(function (TooManyTagsException) {
|
|
207
|
-
TooManyTagsException.filterSensitiveLog = (obj) => ({
|
|
208
|
-
...obj,
|
|
209
|
-
});
|
|
210
|
-
})(TooManyTagsException = exports.TooManyTagsException || (exports.TooManyTagsException = {}));
|
|
211
127
|
var DeleteRepositoryRequest;
|
|
212
128
|
(function (DeleteRepositoryRequest) {
|
|
213
129
|
DeleteRepositoryRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -220,12 +136,6 @@ var DeleteRepositoryResponse;
|
|
|
220
136
|
...obj,
|
|
221
137
|
});
|
|
222
138
|
})(DeleteRepositoryResponse = exports.DeleteRepositoryResponse || (exports.DeleteRepositoryResponse = {}));
|
|
223
|
-
var RepositoryNotEmptyException;
|
|
224
|
-
(function (RepositoryNotEmptyException) {
|
|
225
|
-
RepositoryNotEmptyException.filterSensitiveLog = (obj) => ({
|
|
226
|
-
...obj,
|
|
227
|
-
});
|
|
228
|
-
})(RepositoryNotEmptyException = exports.RepositoryNotEmptyException || (exports.RepositoryNotEmptyException = {}));
|
|
229
139
|
var DeleteRepositoryPolicyRequest;
|
|
230
140
|
(function (DeleteRepositoryPolicyRequest) {
|
|
231
141
|
DeleteRepositoryPolicyRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -238,12 +148,6 @@ var DeleteRepositoryPolicyResponse;
|
|
|
238
148
|
...obj,
|
|
239
149
|
});
|
|
240
150
|
})(DeleteRepositoryPolicyResponse = exports.DeleteRepositoryPolicyResponse || (exports.DeleteRepositoryPolicyResponse = {}));
|
|
241
|
-
var RepositoryPolicyNotFoundException;
|
|
242
|
-
(function (RepositoryPolicyNotFoundException) {
|
|
243
|
-
RepositoryPolicyNotFoundException.filterSensitiveLog = (obj) => ({
|
|
244
|
-
...obj,
|
|
245
|
-
});
|
|
246
|
-
})(RepositoryPolicyNotFoundException = exports.RepositoryPolicyNotFoundException || (exports.RepositoryPolicyNotFoundException = {}));
|
|
247
151
|
var DescribeImagesRequest;
|
|
248
152
|
(function (DescribeImagesRequest) {
|
|
249
153
|
DescribeImagesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -262,12 +166,6 @@ var DescribeImagesResponse;
|
|
|
262
166
|
...obj,
|
|
263
167
|
});
|
|
264
168
|
})(DescribeImagesResponse = exports.DescribeImagesResponse || (exports.DescribeImagesResponse = {}));
|
|
265
|
-
var ImageNotFoundException;
|
|
266
|
-
(function (ImageNotFoundException) {
|
|
267
|
-
ImageNotFoundException.filterSensitiveLog = (obj) => ({
|
|
268
|
-
...obj,
|
|
269
|
-
});
|
|
270
|
-
})(ImageNotFoundException = exports.ImageNotFoundException || (exports.ImageNotFoundException = {}));
|
|
271
169
|
var DescribeImageTagsRequest;
|
|
272
170
|
(function (DescribeImageTagsRequest) {
|
|
273
171
|
DescribeImageTagsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -394,24 +292,6 @@ var Image;
|
|
|
394
292
|
...obj,
|
|
395
293
|
});
|
|
396
294
|
})(Image = exports.Image || (exports.Image = {}));
|
|
397
|
-
var ImageAlreadyExistsException;
|
|
398
|
-
(function (ImageAlreadyExistsException) {
|
|
399
|
-
ImageAlreadyExistsException.filterSensitiveLog = (obj) => ({
|
|
400
|
-
...obj,
|
|
401
|
-
});
|
|
402
|
-
})(ImageAlreadyExistsException = exports.ImageAlreadyExistsException || (exports.ImageAlreadyExistsException = {}));
|
|
403
|
-
var ImageDigestDoesNotMatchException;
|
|
404
|
-
(function (ImageDigestDoesNotMatchException) {
|
|
405
|
-
ImageDigestDoesNotMatchException.filterSensitiveLog = (obj) => ({
|
|
406
|
-
...obj,
|
|
407
|
-
});
|
|
408
|
-
})(ImageDigestDoesNotMatchException = exports.ImageDigestDoesNotMatchException || (exports.ImageDigestDoesNotMatchException = {}));
|
|
409
|
-
var ImageTagAlreadyExistsException;
|
|
410
|
-
(function (ImageTagAlreadyExistsException) {
|
|
411
|
-
ImageTagAlreadyExistsException.filterSensitiveLog = (obj) => ({
|
|
412
|
-
...obj,
|
|
413
|
-
});
|
|
414
|
-
})(ImageTagAlreadyExistsException = exports.ImageTagAlreadyExistsException || (exports.ImageTagAlreadyExistsException = {}));
|
|
415
295
|
var InitiateLayerUploadRequest;
|
|
416
296
|
(function (InitiateLayerUploadRequest) {
|
|
417
297
|
InitiateLayerUploadRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -424,18 +304,6 @@ var InitiateLayerUploadResponse;
|
|
|
424
304
|
...obj,
|
|
425
305
|
});
|
|
426
306
|
})(InitiateLayerUploadResponse = exports.InitiateLayerUploadResponse || (exports.InitiateLayerUploadResponse = {}));
|
|
427
|
-
var InvalidLayerPartException;
|
|
428
|
-
(function (InvalidLayerPartException) {
|
|
429
|
-
InvalidLayerPartException.filterSensitiveLog = (obj) => ({
|
|
430
|
-
...obj,
|
|
431
|
-
});
|
|
432
|
-
})(InvalidLayerPartException = exports.InvalidLayerPartException || (exports.InvalidLayerPartException = {}));
|
|
433
|
-
var LayersNotFoundException;
|
|
434
|
-
(function (LayersNotFoundException) {
|
|
435
|
-
LayersNotFoundException.filterSensitiveLog = (obj) => ({
|
|
436
|
-
...obj,
|
|
437
|
-
});
|
|
438
|
-
})(LayersNotFoundException = exports.LayersNotFoundException || (exports.LayersNotFoundException = {}));
|
|
439
307
|
var ListTagsForResourceRequest;
|
|
440
308
|
(function (ListTagsForResourceRequest) {
|
|
441
309
|
ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -460,12 +328,6 @@ var PutImageResponse;
|
|
|
460
328
|
...obj,
|
|
461
329
|
});
|
|
462
330
|
})(PutImageResponse = exports.PutImageResponse || (exports.PutImageResponse = {}));
|
|
463
|
-
var ReferencedImagesNotFoundException;
|
|
464
|
-
(function (ReferencedImagesNotFoundException) {
|
|
465
|
-
ReferencedImagesNotFoundException.filterSensitiveLog = (obj) => ({
|
|
466
|
-
...obj,
|
|
467
|
-
});
|
|
468
|
-
})(ReferencedImagesNotFoundException = exports.ReferencedImagesNotFoundException || (exports.ReferencedImagesNotFoundException = {}));
|
|
469
331
|
var PutRegistryCatalogDataRequest;
|
|
470
332
|
(function (PutRegistryCatalogDataRequest) {
|
|
471
333
|
PutRegistryCatalogDataRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
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)),
|
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
44
|
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),
|
|
@@ -29,22 +29,6 @@ export var BatchCheckLayerAvailabilityResponse;
|
|
|
29
29
|
(function (BatchCheckLayerAvailabilityResponse) {
|
|
30
30
|
BatchCheckLayerAvailabilityResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
31
31
|
})(BatchCheckLayerAvailabilityResponse || (BatchCheckLayerAvailabilityResponse = {}));
|
|
32
|
-
export var InvalidParameterException;
|
|
33
|
-
(function (InvalidParameterException) {
|
|
34
|
-
InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
35
|
-
})(InvalidParameterException || (InvalidParameterException = {}));
|
|
36
|
-
export var RegistryNotFoundException;
|
|
37
|
-
(function (RegistryNotFoundException) {
|
|
38
|
-
RegistryNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
39
|
-
})(RegistryNotFoundException || (RegistryNotFoundException = {}));
|
|
40
|
-
export var RepositoryNotFoundException;
|
|
41
|
-
(function (RepositoryNotFoundException) {
|
|
42
|
-
RepositoryNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
43
|
-
})(RepositoryNotFoundException || (RepositoryNotFoundException = {}));
|
|
44
|
-
export var ServerException;
|
|
45
|
-
(function (ServerException) {
|
|
46
|
-
ServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
47
|
-
})(ServerException || (ServerException = {}));
|
|
48
32
|
export var ImageIdentifier;
|
|
49
33
|
(function (ImageIdentifier) {
|
|
50
34
|
ImageIdentifier.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -79,30 +63,6 @@ export var CompleteLayerUploadResponse;
|
|
|
79
63
|
(function (CompleteLayerUploadResponse) {
|
|
80
64
|
CompleteLayerUploadResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
81
65
|
})(CompleteLayerUploadResponse || (CompleteLayerUploadResponse = {}));
|
|
82
|
-
export var EmptyUploadException;
|
|
83
|
-
(function (EmptyUploadException) {
|
|
84
|
-
EmptyUploadException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
85
|
-
})(EmptyUploadException || (EmptyUploadException = {}));
|
|
86
|
-
export var InvalidLayerException;
|
|
87
|
-
(function (InvalidLayerException) {
|
|
88
|
-
InvalidLayerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
89
|
-
})(InvalidLayerException || (InvalidLayerException = {}));
|
|
90
|
-
export var LayerAlreadyExistsException;
|
|
91
|
-
(function (LayerAlreadyExistsException) {
|
|
92
|
-
LayerAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
93
|
-
})(LayerAlreadyExistsException || (LayerAlreadyExistsException = {}));
|
|
94
|
-
export var LayerPartTooSmallException;
|
|
95
|
-
(function (LayerPartTooSmallException) {
|
|
96
|
-
LayerPartTooSmallException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
97
|
-
})(LayerPartTooSmallException || (LayerPartTooSmallException = {}));
|
|
98
|
-
export var UnsupportedCommandException;
|
|
99
|
-
(function (UnsupportedCommandException) {
|
|
100
|
-
UnsupportedCommandException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
101
|
-
})(UnsupportedCommandException || (UnsupportedCommandException = {}));
|
|
102
|
-
export var UploadNotFoundException;
|
|
103
|
-
(function (UploadNotFoundException) {
|
|
104
|
-
UploadNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
105
|
-
})(UploadNotFoundException || (UploadNotFoundException = {}));
|
|
106
66
|
export var RepositoryCatalogDataInput;
|
|
107
67
|
(function (RepositoryCatalogDataInput) {
|
|
108
68
|
RepositoryCatalogDataInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -127,22 +87,6 @@ export var CreateRepositoryResponse;
|
|
|
127
87
|
(function (CreateRepositoryResponse) {
|
|
128
88
|
CreateRepositoryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
129
89
|
})(CreateRepositoryResponse || (CreateRepositoryResponse = {}));
|
|
130
|
-
export var InvalidTagParameterException;
|
|
131
|
-
(function (InvalidTagParameterException) {
|
|
132
|
-
InvalidTagParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
133
|
-
})(InvalidTagParameterException || (InvalidTagParameterException = {}));
|
|
134
|
-
export var LimitExceededException;
|
|
135
|
-
(function (LimitExceededException) {
|
|
136
|
-
LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
137
|
-
})(LimitExceededException || (LimitExceededException = {}));
|
|
138
|
-
export var RepositoryAlreadyExistsException;
|
|
139
|
-
(function (RepositoryAlreadyExistsException) {
|
|
140
|
-
RepositoryAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
141
|
-
})(RepositoryAlreadyExistsException || (RepositoryAlreadyExistsException = {}));
|
|
142
|
-
export var TooManyTagsException;
|
|
143
|
-
(function (TooManyTagsException) {
|
|
144
|
-
TooManyTagsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
145
|
-
})(TooManyTagsException || (TooManyTagsException = {}));
|
|
146
90
|
export var DeleteRepositoryRequest;
|
|
147
91
|
(function (DeleteRepositoryRequest) {
|
|
148
92
|
DeleteRepositoryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -151,10 +95,6 @@ export var DeleteRepositoryResponse;
|
|
|
151
95
|
(function (DeleteRepositoryResponse) {
|
|
152
96
|
DeleteRepositoryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
153
97
|
})(DeleteRepositoryResponse || (DeleteRepositoryResponse = {}));
|
|
154
|
-
export var RepositoryNotEmptyException;
|
|
155
|
-
(function (RepositoryNotEmptyException) {
|
|
156
|
-
RepositoryNotEmptyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
157
|
-
})(RepositoryNotEmptyException || (RepositoryNotEmptyException = {}));
|
|
158
98
|
export var DeleteRepositoryPolicyRequest;
|
|
159
99
|
(function (DeleteRepositoryPolicyRequest) {
|
|
160
100
|
DeleteRepositoryPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -163,10 +103,6 @@ export var DeleteRepositoryPolicyResponse;
|
|
|
163
103
|
(function (DeleteRepositoryPolicyResponse) {
|
|
164
104
|
DeleteRepositoryPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
165
105
|
})(DeleteRepositoryPolicyResponse || (DeleteRepositoryPolicyResponse = {}));
|
|
166
|
-
export var RepositoryPolicyNotFoundException;
|
|
167
|
-
(function (RepositoryPolicyNotFoundException) {
|
|
168
|
-
RepositoryPolicyNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
169
|
-
})(RepositoryPolicyNotFoundException || (RepositoryPolicyNotFoundException = {}));
|
|
170
106
|
export var DescribeImagesRequest;
|
|
171
107
|
(function (DescribeImagesRequest) {
|
|
172
108
|
DescribeImagesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -179,10 +115,6 @@ export var DescribeImagesResponse;
|
|
|
179
115
|
(function (DescribeImagesResponse) {
|
|
180
116
|
DescribeImagesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
181
117
|
})(DescribeImagesResponse || (DescribeImagesResponse = {}));
|
|
182
|
-
export var ImageNotFoundException;
|
|
183
|
-
(function (ImageNotFoundException) {
|
|
184
|
-
ImageNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
185
|
-
})(ImageNotFoundException || (ImageNotFoundException = {}));
|
|
186
118
|
export var DescribeImageTagsRequest;
|
|
187
119
|
(function (DescribeImageTagsRequest) {
|
|
188
120
|
DescribeImageTagsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -269,18 +201,6 @@ export var Image;
|
|
|
269
201
|
(function (Image) {
|
|
270
202
|
Image.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
271
203
|
})(Image || (Image = {}));
|
|
272
|
-
export var ImageAlreadyExistsException;
|
|
273
|
-
(function (ImageAlreadyExistsException) {
|
|
274
|
-
ImageAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
275
|
-
})(ImageAlreadyExistsException || (ImageAlreadyExistsException = {}));
|
|
276
|
-
export var ImageDigestDoesNotMatchException;
|
|
277
|
-
(function (ImageDigestDoesNotMatchException) {
|
|
278
|
-
ImageDigestDoesNotMatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
279
|
-
})(ImageDigestDoesNotMatchException || (ImageDigestDoesNotMatchException = {}));
|
|
280
|
-
export var ImageTagAlreadyExistsException;
|
|
281
|
-
(function (ImageTagAlreadyExistsException) {
|
|
282
|
-
ImageTagAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
283
|
-
})(ImageTagAlreadyExistsException || (ImageTagAlreadyExistsException = {}));
|
|
284
204
|
export var InitiateLayerUploadRequest;
|
|
285
205
|
(function (InitiateLayerUploadRequest) {
|
|
286
206
|
InitiateLayerUploadRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -289,14 +209,6 @@ export var InitiateLayerUploadResponse;
|
|
|
289
209
|
(function (InitiateLayerUploadResponse) {
|
|
290
210
|
InitiateLayerUploadResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
291
211
|
})(InitiateLayerUploadResponse || (InitiateLayerUploadResponse = {}));
|
|
292
|
-
export var InvalidLayerPartException;
|
|
293
|
-
(function (InvalidLayerPartException) {
|
|
294
|
-
InvalidLayerPartException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
295
|
-
})(InvalidLayerPartException || (InvalidLayerPartException = {}));
|
|
296
|
-
export var LayersNotFoundException;
|
|
297
|
-
(function (LayersNotFoundException) {
|
|
298
|
-
LayersNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
299
|
-
})(LayersNotFoundException || (LayersNotFoundException = {}));
|
|
300
212
|
export var ListTagsForResourceRequest;
|
|
301
213
|
(function (ListTagsForResourceRequest) {
|
|
302
214
|
ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -313,10 +225,6 @@ export var PutImageResponse;
|
|
|
313
225
|
(function (PutImageResponse) {
|
|
314
226
|
PutImageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
315
227
|
})(PutImageResponse || (PutImageResponse = {}));
|
|
316
|
-
export var ReferencedImagesNotFoundException;
|
|
317
|
-
(function (ReferencedImagesNotFoundException) {
|
|
318
|
-
ReferencedImagesNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
319
|
-
})(ReferencedImagesNotFoundException || (ReferencedImagesNotFoundException = {}));
|
|
320
228
|
export var PutRegistryCatalogDataRequest;
|
|
321
229
|
(function (PutRegistryCatalogDataRequest) {
|
|
322
230
|
PutRegistryCatalogDataRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
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
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, 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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), 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 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
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
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
17
|
export var getRuntimeConfig = function (config) {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
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
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, 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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), 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 });
|
|
19
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { BatchCheckLayerAvailabilityCommandInput, BatchCheckLayerAvailabilityCommandOutput } from "./commands/BatchCheckLayerAvailabilityCommand";
|
|
10
10
|
import { BatchDeleteImageCommandInput, BatchDeleteImageCommandOutput } from "./commands/BatchDeleteImageCommand";
|
|
@@ -131,6 +131,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
131
131
|
* @internal
|
|
132
132
|
*/
|
|
133
133
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
134
|
+
/**
|
|
135
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
136
|
+
*/
|
|
137
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
134
138
|
}
|
|
135
139
|
declare type ECRPUBLICClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
136
140
|
/**
|