@cdklabs/cdk-ecs-codedeploy 0.0.130 → 0.0.132
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/.jsii +3 -3
- package/API.md +156 -0
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/protocols/Aws_json1_1.js +561 -2630
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/protocols/Aws_json1_1.js +562 -2631
- package/node_modules/@aws-sdk/client-codedeploy/package.json +6 -6
- package/node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js +50 -94
- package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +36 -80
- package/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js +125 -172
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +111 -158
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +4 -4
- package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +17 -24
- package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +18 -25
- package/node_modules/@aws-sdk/client-sts/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js +7 -1
- package/node_modules/@aws-sdk/smithy-client/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/smithy-client/dist-cjs/serde-json.js +23 -0
- package/node_modules/@aws-sdk/smithy-client/dist-es/default-error-handler.js +5 -0
- package/node_modules/@aws-sdk/smithy-client/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/smithy-client/dist-es/serde-json.js +19 -0
- package/node_modules/@aws-sdk/smithy-client/dist-types/default-error-handler.d.ts +6 -0
- package/node_modules/@aws-sdk/smithy-client/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/smithy-client/dist-types/serde-json.d.ts +10 -0
- package/node_modules/@aws-sdk/smithy-client/dist-types/ts3.4/default-error-handler.d.ts +3 -0
- package/node_modules/@aws-sdk/smithy-client/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/smithy-client/dist-types/ts3.4/serde-json.d.ts +1 -0
- package/node_modules/@aws-sdk/smithy-client/package.json +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +2 -2
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getValueFromTextNode as __getValueFromTextNode, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32,
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getValueFromTextNode as __getValueFromTextNode, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
4
|
import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/models_0";
|
|
5
5
|
import { STSServiceException as __BaseException } from "../models/STSServiceException";
|
|
@@ -94,7 +94,7 @@ export const de_AssumeRoleCommand = async (output, context) => {
|
|
|
94
94
|
$metadata: deserializeMetadata(output),
|
|
95
95
|
...contents,
|
|
96
96
|
};
|
|
97
|
-
return
|
|
97
|
+
return response;
|
|
98
98
|
};
|
|
99
99
|
const de_AssumeRoleCommandError = async (output, context) => {
|
|
100
100
|
const parsedOutput = {
|
|
@@ -117,10 +117,9 @@ const de_AssumeRoleCommandError = async (output, context) => {
|
|
|
117
117
|
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
118
118
|
default:
|
|
119
119
|
const parsedBody = parsedOutput.body;
|
|
120
|
-
throwDefaultError({
|
|
120
|
+
return throwDefaultError({
|
|
121
121
|
output,
|
|
122
122
|
parsedBody: parsedBody.Error,
|
|
123
|
-
exceptionCtor: __BaseException,
|
|
124
123
|
errorCode,
|
|
125
124
|
});
|
|
126
125
|
}
|
|
@@ -136,7 +135,7 @@ export const de_AssumeRoleWithSAMLCommand = async (output, context) => {
|
|
|
136
135
|
$metadata: deserializeMetadata(output),
|
|
137
136
|
...contents,
|
|
138
137
|
};
|
|
139
|
-
return
|
|
138
|
+
return response;
|
|
140
139
|
};
|
|
141
140
|
const de_AssumeRoleWithSAMLCommandError = async (output, context) => {
|
|
142
141
|
const parsedOutput = {
|
|
@@ -165,10 +164,9 @@ const de_AssumeRoleWithSAMLCommandError = async (output, context) => {
|
|
|
165
164
|
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
166
165
|
default:
|
|
167
166
|
const parsedBody = parsedOutput.body;
|
|
168
|
-
throwDefaultError({
|
|
167
|
+
return throwDefaultError({
|
|
169
168
|
output,
|
|
170
169
|
parsedBody: parsedBody.Error,
|
|
171
|
-
exceptionCtor: __BaseException,
|
|
172
170
|
errorCode,
|
|
173
171
|
});
|
|
174
172
|
}
|
|
@@ -184,7 +182,7 @@ export const de_AssumeRoleWithWebIdentityCommand = async (output, context) => {
|
|
|
184
182
|
$metadata: deserializeMetadata(output),
|
|
185
183
|
...contents,
|
|
186
184
|
};
|
|
187
|
-
return
|
|
185
|
+
return response;
|
|
188
186
|
};
|
|
189
187
|
const de_AssumeRoleWithWebIdentityCommandError = async (output, context) => {
|
|
190
188
|
const parsedOutput = {
|
|
@@ -216,10 +214,9 @@ const de_AssumeRoleWithWebIdentityCommandError = async (output, context) => {
|
|
|
216
214
|
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
217
215
|
default:
|
|
218
216
|
const parsedBody = parsedOutput.body;
|
|
219
|
-
throwDefaultError({
|
|
217
|
+
return throwDefaultError({
|
|
220
218
|
output,
|
|
221
219
|
parsedBody: parsedBody.Error,
|
|
222
|
-
exceptionCtor: __BaseException,
|
|
223
220
|
errorCode,
|
|
224
221
|
});
|
|
225
222
|
}
|
|
@@ -235,7 +232,7 @@ export const de_DecodeAuthorizationMessageCommand = async (output, context) => {
|
|
|
235
232
|
$metadata: deserializeMetadata(output),
|
|
236
233
|
...contents,
|
|
237
234
|
};
|
|
238
|
-
return
|
|
235
|
+
return response;
|
|
239
236
|
};
|
|
240
237
|
const de_DecodeAuthorizationMessageCommandError = async (output, context) => {
|
|
241
238
|
const parsedOutput = {
|
|
@@ -249,10 +246,9 @@ const de_DecodeAuthorizationMessageCommandError = async (output, context) => {
|
|
|
249
246
|
throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context);
|
|
250
247
|
default:
|
|
251
248
|
const parsedBody = parsedOutput.body;
|
|
252
|
-
throwDefaultError({
|
|
249
|
+
return throwDefaultError({
|
|
253
250
|
output,
|
|
254
251
|
parsedBody: parsedBody.Error,
|
|
255
|
-
exceptionCtor: __BaseException,
|
|
256
252
|
errorCode,
|
|
257
253
|
});
|
|
258
254
|
}
|
|
@@ -268,7 +264,7 @@ export const de_GetAccessKeyInfoCommand = async (output, context) => {
|
|
|
268
264
|
$metadata: deserializeMetadata(output),
|
|
269
265
|
...contents,
|
|
270
266
|
};
|
|
271
|
-
return
|
|
267
|
+
return response;
|
|
272
268
|
};
|
|
273
269
|
const de_GetAccessKeyInfoCommandError = async (output, context) => {
|
|
274
270
|
const parsedOutput = {
|
|
@@ -277,10 +273,9 @@ const de_GetAccessKeyInfoCommandError = async (output, context) => {
|
|
|
277
273
|
};
|
|
278
274
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
279
275
|
const parsedBody = parsedOutput.body;
|
|
280
|
-
throwDefaultError({
|
|
276
|
+
return throwDefaultError({
|
|
281
277
|
output,
|
|
282
278
|
parsedBody: parsedBody.Error,
|
|
283
|
-
exceptionCtor: __BaseException,
|
|
284
279
|
errorCode,
|
|
285
280
|
});
|
|
286
281
|
};
|
|
@@ -295,7 +290,7 @@ export const de_GetCallerIdentityCommand = async (output, context) => {
|
|
|
295
290
|
$metadata: deserializeMetadata(output),
|
|
296
291
|
...contents,
|
|
297
292
|
};
|
|
298
|
-
return
|
|
293
|
+
return response;
|
|
299
294
|
};
|
|
300
295
|
const de_GetCallerIdentityCommandError = async (output, context) => {
|
|
301
296
|
const parsedOutput = {
|
|
@@ -304,10 +299,9 @@ const de_GetCallerIdentityCommandError = async (output, context) => {
|
|
|
304
299
|
};
|
|
305
300
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
306
301
|
const parsedBody = parsedOutput.body;
|
|
307
|
-
throwDefaultError({
|
|
302
|
+
return throwDefaultError({
|
|
308
303
|
output,
|
|
309
304
|
parsedBody: parsedBody.Error,
|
|
310
|
-
exceptionCtor: __BaseException,
|
|
311
305
|
errorCode,
|
|
312
306
|
});
|
|
313
307
|
};
|
|
@@ -322,7 +316,7 @@ export const de_GetFederationTokenCommand = async (output, context) => {
|
|
|
322
316
|
$metadata: deserializeMetadata(output),
|
|
323
317
|
...contents,
|
|
324
318
|
};
|
|
325
|
-
return
|
|
319
|
+
return response;
|
|
326
320
|
};
|
|
327
321
|
const de_GetFederationTokenCommandError = async (output, context) => {
|
|
328
322
|
const parsedOutput = {
|
|
@@ -342,10 +336,9 @@ const de_GetFederationTokenCommandError = async (output, context) => {
|
|
|
342
336
|
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
343
337
|
default:
|
|
344
338
|
const parsedBody = parsedOutput.body;
|
|
345
|
-
throwDefaultError({
|
|
339
|
+
return throwDefaultError({
|
|
346
340
|
output,
|
|
347
341
|
parsedBody: parsedBody.Error,
|
|
348
|
-
exceptionCtor: __BaseException,
|
|
349
342
|
errorCode,
|
|
350
343
|
});
|
|
351
344
|
}
|
|
@@ -361,7 +354,7 @@ export const de_GetSessionTokenCommand = async (output, context) => {
|
|
|
361
354
|
$metadata: deserializeMetadata(output),
|
|
362
355
|
...contents,
|
|
363
356
|
};
|
|
364
|
-
return
|
|
357
|
+
return response;
|
|
365
358
|
};
|
|
366
359
|
const de_GetSessionTokenCommandError = async (output, context) => {
|
|
367
360
|
const parsedOutput = {
|
|
@@ -375,10 +368,9 @@ const de_GetSessionTokenCommandError = async (output, context) => {
|
|
|
375
368
|
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
376
369
|
default:
|
|
377
370
|
const parsedBody = parsedOutput.body;
|
|
378
|
-
throwDefaultError({
|
|
371
|
+
return throwDefaultError({
|
|
379
372
|
output,
|
|
380
373
|
parsedBody: parsedBody.Error,
|
|
381
|
-
exceptionCtor: __BaseException,
|
|
382
374
|
errorCode,
|
|
383
375
|
});
|
|
384
376
|
}
|
|
@@ -921,6 +913,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
921
913
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
922
914
|
};
|
|
923
915
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
916
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
924
917
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
925
918
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
926
919
|
const contents = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.315.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
26
26
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.315.0",
|
|
28
28
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
29
29
|
"@aws-sdk/hash-node": "3.310.0",
|
|
30
30
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
43
43
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
44
44
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
45
|
-
"@aws-sdk/smithy-client": "3.
|
|
45
|
+
"@aws-sdk/smithy-client": "3.315.0",
|
|
46
46
|
"@aws-sdk/types": "3.310.0",
|
|
47
47
|
"@aws-sdk/url-parser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-base64": "3.310.0",
|
|
49
49
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
50
50
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
51
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
52
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
+
"@aws-sdk/util-defaults-mode-browser": "3.315.0",
|
|
52
|
+
"@aws-sdk/util-defaults-mode-node": "3.315.0",
|
|
53
53
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-retry": "3.310.0",
|
|
55
55
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.315.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@aws-sdk/credential-provider-env": "3.310.0",
|
|
28
28
|
"@aws-sdk/credential-provider-imds": "3.310.0",
|
|
29
29
|
"@aws-sdk/credential-provider-process": "3.310.0",
|
|
30
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
30
|
+
"@aws-sdk/credential-provider-sso": "3.315.0",
|
|
31
31
|
"@aws-sdk/credential-provider-web-identity": "3.310.0",
|
|
32
32
|
"@aws-sdk/property-provider": "3.310.0",
|
|
33
33
|
"@aws-sdk/shared-ini-file-loader": "3.310.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.315.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=14.0.0"
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@aws-sdk/credential-provider-env": "3.310.0",
|
|
31
31
|
"@aws-sdk/credential-provider-imds": "3.310.0",
|
|
32
|
-
"@aws-sdk/credential-provider-ini": "3.
|
|
32
|
+
"@aws-sdk/credential-provider-ini": "3.315.0",
|
|
33
33
|
"@aws-sdk/credential-provider-process": "3.310.0",
|
|
34
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
34
|
+
"@aws-sdk/credential-provider-sso": "3.315.0",
|
|
35
35
|
"@aws-sdk/credential-provider-web-identity": "3.310.0",
|
|
36
36
|
"@aws-sdk/property-provider": "3.310.0",
|
|
37
37
|
"@aws-sdk/shared-ini-file-loader": "3.310.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.315.0",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/client-sso": "3.
|
|
27
|
+
"@aws-sdk/client-sso": "3.315.0",
|
|
28
28
|
"@aws-sdk/property-provider": "3.310.0",
|
|
29
29
|
"@aws-sdk/shared-ini-file-loader": "3.310.0",
|
|
30
|
-
"@aws-sdk/token-providers": "3.
|
|
30
|
+
"@aws-sdk/token-providers": "3.315.0",
|
|
31
31
|
"@aws-sdk/types": "3.310.0",
|
|
32
32
|
"tslib": "^2.5.0"
|
|
33
33
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.throwDefaultError = void 0;
|
|
3
|
+
exports.withBaseException = exports.throwDefaultError = void 0;
|
|
4
4
|
const exceptions_1 = require("./exceptions");
|
|
5
5
|
const throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => {
|
|
6
6
|
const $metadata = deserializeMetadata(output);
|
|
@@ -13,6 +13,12 @@ const throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) =>
|
|
|
13
13
|
throw (0, exceptions_1.decorateServiceException)(response, parsedBody);
|
|
14
14
|
};
|
|
15
15
|
exports.throwDefaultError = throwDefaultError;
|
|
16
|
+
const withBaseException = (ExceptionCtor) => {
|
|
17
|
+
return ({ output, parsedBody, errorCode }) => {
|
|
18
|
+
(0, exports.throwDefaultError)({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode });
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
exports.withBaseException = withBaseException;
|
|
16
22
|
const deserializeMetadata = (output) => {
|
|
17
23
|
var _a, _b;
|
|
18
24
|
return ({
|
|
@@ -18,4 +18,5 @@ tslib_1.__exportStar(require("./object-mapping"), exports);
|
|
|
18
18
|
tslib_1.__exportStar(require("./parse-utils"), exports);
|
|
19
19
|
tslib_1.__exportStar(require("./resolve-path"), exports);
|
|
20
20
|
tslib_1.__exportStar(require("./ser-utils"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./serde-json"), exports);
|
|
21
22
|
tslib_1.__exportStar(require("./split-every"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._json = void 0;
|
|
4
|
+
const _json = (obj) => {
|
|
5
|
+
if (obj == null) {
|
|
6
|
+
return {};
|
|
7
|
+
}
|
|
8
|
+
if (Array.isArray(obj)) {
|
|
9
|
+
return obj.filter((_) => _ != null);
|
|
10
|
+
}
|
|
11
|
+
if (typeof obj === "object") {
|
|
12
|
+
const target = {};
|
|
13
|
+
for (const key of Object.keys(obj)) {
|
|
14
|
+
if (obj[key] == null) {
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
target[key] = (0, exports._json)(obj[key]);
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
}
|
|
21
|
+
return obj;
|
|
22
|
+
};
|
|
23
|
+
exports._json = _json;
|
|
@@ -9,6 +9,11 @@ export const throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode
|
|
|
9
9
|
});
|
|
10
10
|
throw decorateServiceException(response, parsedBody);
|
|
11
11
|
};
|
|
12
|
+
export const withBaseException = (ExceptionCtor) => {
|
|
13
|
+
return ({ output, parsedBody, errorCode }) => {
|
|
14
|
+
throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode });
|
|
15
|
+
};
|
|
16
|
+
};
|
|
12
17
|
const deserializeMetadata = (output) => ({
|
|
13
18
|
httpStatusCode: output.statusCode,
|
|
14
19
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const _json = (obj) => {
|
|
2
|
+
if (obj == null) {
|
|
3
|
+
return {};
|
|
4
|
+
}
|
|
5
|
+
if (Array.isArray(obj)) {
|
|
6
|
+
return obj.filter((_) => _ != null);
|
|
7
|
+
}
|
|
8
|
+
if (typeof obj === "object") {
|
|
9
|
+
const target = {};
|
|
10
|
+
for (const key of Object.keys(obj)) {
|
|
11
|
+
if (obj[key] == null) {
|
|
12
|
+
continue;
|
|
13
|
+
}
|
|
14
|
+
target[key] = _json(obj[key]);
|
|
15
|
+
}
|
|
16
|
+
return target;
|
|
17
|
+
}
|
|
18
|
+
return obj;
|
|
19
|
+
};
|
|
@@ -5,3 +5,9 @@
|
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
7
|
export declare const throwDefaultError: ({ output, parsedBody, exceptionCtor, errorCode }: any) => never;
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*
|
|
11
|
+
* Creates {@link throwDefaultError} with bound ExceptionCtor.
|
|
12
|
+
*/
|
|
13
|
+
export declare const withBaseException: (ExceptionCtor: new (...args: any) => any) => any;
|
|
@@ -15,5 +15,6 @@ export * from "./object-mapping";
|
|
|
15
15
|
export * from "./parse-utils";
|
|
16
16
|
export * from "./resolve-path";
|
|
17
17
|
export * from "./ser-utils";
|
|
18
|
+
export * from "./serde-json";
|
|
18
19
|
export * from "./split-every";
|
|
19
20
|
export type { DocumentType, SdkError, SmithyException } from "@aws-sdk/types";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*
|
|
4
|
+
* Maps an object through the default JSON serde behavior.
|
|
5
|
+
* This means removing nullish fields and un-sparsifying lists.
|
|
6
|
+
*
|
|
7
|
+
* @param obj - to be checked.
|
|
8
|
+
* @returns same object with default serde behavior applied.
|
|
9
|
+
*/
|
|
10
|
+
export declare const _json: (obj: any) => any;
|
|
@@ -15,5 +15,6 @@ export * from "./object-mapping";
|
|
|
15
15
|
export * from "./parse-utils";
|
|
16
16
|
export * from "./resolve-path";
|
|
17
17
|
export * from "./ser-utils";
|
|
18
|
+
export * from "./serde-json";
|
|
18
19
|
export * from "./split-every";
|
|
19
20
|
export { DocumentType, SdkError, SmithyException } from "@aws-sdk/types";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const _json: (obj: any) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.315.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
28
|
+
"@aws-sdk/client-sso-oidc": "3.315.0",
|
|
29
29
|
"@aws-sdk/property-provider": "3.310.0",
|
|
30
30
|
"@aws-sdk/shared-ini-file-loader": "3.310.0",
|
|
31
31
|
"@aws-sdk/types": "3.310.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-defaults-mode-browser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.315.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"tslib": "^2.5.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@aws-sdk/smithy-client": "3.
|
|
28
|
+
"@aws-sdk/smithy-client": "3.315.0",
|
|
29
29
|
"@tsconfig/recommended": "1.0.1",
|
|
30
30
|
"@types/node": "^14.14.31",
|
|
31
31
|
"concurrently": "7.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-defaults-mode-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.315.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"tslib": "^2.5.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@aws-sdk/smithy-client": "3.
|
|
30
|
+
"@aws-sdk/smithy-client": "3.315.0",
|
|
31
31
|
"@tsconfig/recommended": "1.0.1",
|
|
32
32
|
"@types/node": "^14.14.31",
|
|
33
33
|
"concurrently": "7.0.0",
|
package/package.json
CHANGED
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"aws-cdk-lib": "2.71.0",
|
|
74
74
|
"aws-sdk-client-mock": "^2.1.1",
|
|
75
75
|
"aws-sdk-client-mock-jest": "^2.1.1",
|
|
76
|
-
"cdk-nag": "^2.25.
|
|
76
|
+
"cdk-nag": "^2.25.15",
|
|
77
77
|
"constructs": "10.0.5",
|
|
78
78
|
"esbuild": "^0.17.17",
|
|
79
79
|
"eslint": "^8",
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
"jest-junit": "^15",
|
|
85
85
|
"jsii": "1.x",
|
|
86
86
|
"jsii-diff": "^1.80.0",
|
|
87
|
-
"jsii-docgen": "^7.1
|
|
87
|
+
"jsii-docgen": "^7.2.1",
|
|
88
88
|
"jsii-pacmak": "^1.80.0",
|
|
89
89
|
"lambda-tester": "^4.0.1",
|
|
90
90
|
"npm-check-updates": "^16",
|
|
91
|
-
"projen": "0.71.
|
|
91
|
+
"projen": "0.71.16",
|
|
92
92
|
"standard-version": "^9",
|
|
93
93
|
"ts-jest": "^27",
|
|
94
94
|
"ts-node": "^10.9.1",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"constructs": "^10.0.5"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@aws-sdk/client-codedeploy": "^3.
|
|
103
|
+
"@aws-sdk/client-codedeploy": "^3.315.0",
|
|
104
104
|
"jmespath": "^0.16.0"
|
|
105
105
|
},
|
|
106
106
|
"bundledDependencies": [
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"publishConfig": {
|
|
123
123
|
"access": "public"
|
|
124
124
|
},
|
|
125
|
-
"version": "0.0.
|
|
125
|
+
"version": "0.0.132",
|
|
126
126
|
"jest": {
|
|
127
127
|
"testMatch": [
|
|
128
128
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|