@cdk8s/awscdk-resolver 0.0.57 → 0.0.58
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/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +191 -1696
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +180 -1685
- package/node_modules/@aws-sdk/client-cloudformation/package.json +14 -14
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +9 -90
- package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +8 -89
- package/node_modules/@aws-sdk/client-sso/package.json +11 -11
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +30 -135
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +29 -134
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +14 -14
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +74 -196
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +17 -15
- package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +30 -178
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +4 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts +11 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultRoleAssumers.d.ts +4 -7
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +11 -3
- package/node_modules/@aws-sdk/client-sts/package.json +12 -12
- package/node_modules/@aws-sdk/core/CHANGELOG.md +11 -0
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +13 -7
- package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +6 -2
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts +10 -2
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +10 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +5 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +28 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +5 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +10 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthConfiguration.js +6 -2
- package/node_modules/@aws-sdk/middleware-signing/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +16 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +3 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/index.js +26 -15
- package/node_modules/@smithy/core/dist-es/pagination/createPaginator.js +12 -1
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +13 -3
- package/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js +1 -1
- package/node_modules/@smithy/util-defaults-mode-node/package.json +1 -1
- package/package.json +5 -5
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/client-cloudformation",
|
3
3
|
"description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
|
4
|
-
"version": "3.
|
4
|
+
"version": "3.511.0",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cloudformation",
|
@@ -20,19 +20,19 @@
|
|
20
20
|
"dependencies": {
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
23
|
-
"@aws-sdk/client-sts": "3.
|
24
|
-
"@aws-sdk/core": "3.
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
32
|
-
"@aws-sdk/types": "3.
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
23
|
+
"@aws-sdk/client-sts": "3.511.0",
|
24
|
+
"@aws-sdk/core": "3.511.0",
|
25
|
+
"@aws-sdk/credential-provider-node": "3.511.0",
|
26
|
+
"@aws-sdk/middleware-host-header": "3.511.0",
|
27
|
+
"@aws-sdk/middleware-logger": "3.511.0",
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.511.0",
|
29
|
+
"@aws-sdk/middleware-signing": "3.511.0",
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.511.0",
|
31
|
+
"@aws-sdk/region-config-resolver": "3.511.0",
|
32
|
+
"@aws-sdk/types": "3.511.0",
|
33
|
+
"@aws-sdk/util-endpoints": "3.511.0",
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.511.0",
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.511.0",
|
36
36
|
"@smithy/config-resolver": "^2.1.1",
|
37
37
|
"@smithy/core": "^1.3.1",
|
38
38
|
"@smithy/fetch-http-handler": "^2.4.1",
|
@@ -305,7 +305,7 @@ var se_LogoutCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
305
305
|
}, "se_LogoutCommand");
|
306
306
|
var de_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
307
307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
308
|
-
return
|
308
|
+
return de_CommandError(output, context);
|
309
309
|
}
|
310
310
|
const contents = (0, import_smithy_client.map)({
|
311
311
|
$metadata: deserializeMetadata(output)
|
@@ -317,37 +317,9 @@ var de_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (output, context
|
|
317
317
|
Object.assign(contents, doc);
|
318
318
|
return contents;
|
319
319
|
}, "de_GetRoleCredentialsCommand");
|
320
|
-
var de_GetRoleCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
321
|
-
const parsedOutput = {
|
322
|
-
...output,
|
323
|
-
body: await parseErrorBody(output.body, context)
|
324
|
-
};
|
325
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
326
|
-
switch (errorCode) {
|
327
|
-
case "InvalidRequestException":
|
328
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
329
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
330
|
-
case "ResourceNotFoundException":
|
331
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
332
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
333
|
-
case "TooManyRequestsException":
|
334
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
335
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
336
|
-
case "UnauthorizedException":
|
337
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
338
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
339
|
-
default:
|
340
|
-
const parsedBody = parsedOutput.body;
|
341
|
-
return throwDefaultError({
|
342
|
-
output,
|
343
|
-
parsedBody,
|
344
|
-
errorCode
|
345
|
-
});
|
346
|
-
}
|
347
|
-
}, "de_GetRoleCredentialsCommandError");
|
348
320
|
var de_ListAccountRolesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
349
321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
350
|
-
return
|
322
|
+
return de_CommandError(output, context);
|
351
323
|
}
|
352
324
|
const contents = (0, import_smithy_client.map)({
|
353
325
|
$metadata: deserializeMetadata(output)
|
@@ -360,37 +332,9 @@ var de_ListAccountRolesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
360
332
|
Object.assign(contents, doc);
|
361
333
|
return contents;
|
362
334
|
}, "de_ListAccountRolesCommand");
|
363
|
-
var de_ListAccountRolesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
364
|
-
const parsedOutput = {
|
365
|
-
...output,
|
366
|
-
body: await parseErrorBody(output.body, context)
|
367
|
-
};
|
368
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
369
|
-
switch (errorCode) {
|
370
|
-
case "InvalidRequestException":
|
371
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
372
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
373
|
-
case "ResourceNotFoundException":
|
374
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
375
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
376
|
-
case "TooManyRequestsException":
|
377
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
378
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
379
|
-
case "UnauthorizedException":
|
380
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
381
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
382
|
-
default:
|
383
|
-
const parsedBody = parsedOutput.body;
|
384
|
-
return throwDefaultError({
|
385
|
-
output,
|
386
|
-
parsedBody,
|
387
|
-
errorCode
|
388
|
-
});
|
389
|
-
}
|
390
|
-
}, "de_ListAccountRolesCommandError");
|
391
335
|
var de_ListAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
392
336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
393
|
-
return
|
337
|
+
return de_CommandError(output, context);
|
394
338
|
}
|
395
339
|
const contents = (0, import_smithy_client.map)({
|
396
340
|
$metadata: deserializeMetadata(output)
|
@@ -403,37 +347,9 @@ var de_ListAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
403
347
|
Object.assign(contents, doc);
|
404
348
|
return contents;
|
405
349
|
}, "de_ListAccountsCommand");
|
406
|
-
var de_ListAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
407
|
-
const parsedOutput = {
|
408
|
-
...output,
|
409
|
-
body: await parseErrorBody(output.body, context)
|
410
|
-
};
|
411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
412
|
-
switch (errorCode) {
|
413
|
-
case "InvalidRequestException":
|
414
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
415
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
416
|
-
case "ResourceNotFoundException":
|
417
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
418
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
419
|
-
case "TooManyRequestsException":
|
420
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
421
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
422
|
-
case "UnauthorizedException":
|
423
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
424
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
425
|
-
default:
|
426
|
-
const parsedBody = parsedOutput.body;
|
427
|
-
return throwDefaultError({
|
428
|
-
output,
|
429
|
-
parsedBody,
|
430
|
-
errorCode
|
431
|
-
});
|
432
|
-
}
|
433
|
-
}, "de_ListAccountsCommandError");
|
434
350
|
var de_LogoutCommand = /* @__PURE__ */ __name(async (output, context) => {
|
435
351
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
436
|
-
return
|
352
|
+
return de_CommandError(output, context);
|
437
353
|
}
|
438
354
|
const contents = (0, import_smithy_client.map)({
|
439
355
|
$metadata: deserializeMetadata(output)
|
@@ -441,7 +357,7 @@ var de_LogoutCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
441
357
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
442
358
|
return contents;
|
443
359
|
}, "de_LogoutCommand");
|
444
|
-
var
|
360
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
445
361
|
const parsedOutput = {
|
446
362
|
...output,
|
447
363
|
body: await parseErrorBody(output.body, context)
|
@@ -451,6 +367,9 @@ var de_LogoutCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
451
367
|
case "InvalidRequestException":
|
452
368
|
case "com.amazonaws.sso#InvalidRequestException":
|
453
369
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
370
|
+
case "ResourceNotFoundException":
|
371
|
+
case "com.amazonaws.sso#ResourceNotFoundException":
|
372
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
454
373
|
case "TooManyRequestsException":
|
455
374
|
case "com.amazonaws.sso#TooManyRequestsException":
|
456
375
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
@@ -465,7 +384,7 @@ var de_LogoutCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
465
384
|
errorCode
|
466
385
|
});
|
467
386
|
}
|
468
|
-
}, "
|
387
|
+
}, "de_CommandError");
|
469
388
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SSOServiceException);
|
470
389
|
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
471
390
|
const contents = (0, import_smithy_client.map)({});
|
@@ -57,7 +57,7 @@ export const se_LogoutCommand = async (input, context) => {
|
|
57
57
|
};
|
58
58
|
export const de_GetRoleCredentialsCommand = async (output, context) => {
|
59
59
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
60
|
-
return
|
60
|
+
return de_CommandError(output, context);
|
61
61
|
}
|
62
62
|
const contents = map({
|
63
63
|
$metadata: deserializeMetadata(output),
|
@@ -69,37 +69,9 @@ export const de_GetRoleCredentialsCommand = async (output, context) => {
|
|
69
69
|
Object.assign(contents, doc);
|
70
70
|
return contents;
|
71
71
|
};
|
72
|
-
const de_GetRoleCredentialsCommandError = async (output, context) => {
|
73
|
-
const parsedOutput = {
|
74
|
-
...output,
|
75
|
-
body: await parseErrorBody(output.body, context),
|
76
|
-
};
|
77
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
78
|
-
switch (errorCode) {
|
79
|
-
case "InvalidRequestException":
|
80
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
81
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
82
|
-
case "ResourceNotFoundException":
|
83
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
84
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
85
|
-
case "TooManyRequestsException":
|
86
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
87
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
88
|
-
case "UnauthorizedException":
|
89
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
90
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
91
|
-
default:
|
92
|
-
const parsedBody = parsedOutput.body;
|
93
|
-
return throwDefaultError({
|
94
|
-
output,
|
95
|
-
parsedBody,
|
96
|
-
errorCode,
|
97
|
-
});
|
98
|
-
}
|
99
|
-
};
|
100
72
|
export const de_ListAccountRolesCommand = async (output, context) => {
|
101
73
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
102
|
-
return
|
74
|
+
return de_CommandError(output, context);
|
103
75
|
}
|
104
76
|
const contents = map({
|
105
77
|
$metadata: deserializeMetadata(output),
|
@@ -112,37 +84,9 @@ export const de_ListAccountRolesCommand = async (output, context) => {
|
|
112
84
|
Object.assign(contents, doc);
|
113
85
|
return contents;
|
114
86
|
};
|
115
|
-
const de_ListAccountRolesCommandError = async (output, context) => {
|
116
|
-
const parsedOutput = {
|
117
|
-
...output,
|
118
|
-
body: await parseErrorBody(output.body, context),
|
119
|
-
};
|
120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
121
|
-
switch (errorCode) {
|
122
|
-
case "InvalidRequestException":
|
123
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
124
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
125
|
-
case "ResourceNotFoundException":
|
126
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
127
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
128
|
-
case "TooManyRequestsException":
|
129
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
130
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
131
|
-
case "UnauthorizedException":
|
132
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
133
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
134
|
-
default:
|
135
|
-
const parsedBody = parsedOutput.body;
|
136
|
-
return throwDefaultError({
|
137
|
-
output,
|
138
|
-
parsedBody,
|
139
|
-
errorCode,
|
140
|
-
});
|
141
|
-
}
|
142
|
-
};
|
143
87
|
export const de_ListAccountsCommand = async (output, context) => {
|
144
88
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
145
|
-
return
|
89
|
+
return de_CommandError(output, context);
|
146
90
|
}
|
147
91
|
const contents = map({
|
148
92
|
$metadata: deserializeMetadata(output),
|
@@ -155,37 +99,9 @@ export const de_ListAccountsCommand = async (output, context) => {
|
|
155
99
|
Object.assign(contents, doc);
|
156
100
|
return contents;
|
157
101
|
};
|
158
|
-
const de_ListAccountsCommandError = async (output, context) => {
|
159
|
-
const parsedOutput = {
|
160
|
-
...output,
|
161
|
-
body: await parseErrorBody(output.body, context),
|
162
|
-
};
|
163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
164
|
-
switch (errorCode) {
|
165
|
-
case "InvalidRequestException":
|
166
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
167
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
168
|
-
case "ResourceNotFoundException":
|
169
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
170
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
171
|
-
case "TooManyRequestsException":
|
172
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
173
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
174
|
-
case "UnauthorizedException":
|
175
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
176
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
177
|
-
default:
|
178
|
-
const parsedBody = parsedOutput.body;
|
179
|
-
return throwDefaultError({
|
180
|
-
output,
|
181
|
-
parsedBody,
|
182
|
-
errorCode,
|
183
|
-
});
|
184
|
-
}
|
185
|
-
};
|
186
102
|
export const de_LogoutCommand = async (output, context) => {
|
187
103
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
188
|
-
return
|
104
|
+
return de_CommandError(output, context);
|
189
105
|
}
|
190
106
|
const contents = map({
|
191
107
|
$metadata: deserializeMetadata(output),
|
@@ -193,7 +109,7 @@ export const de_LogoutCommand = async (output, context) => {
|
|
193
109
|
await collectBody(output.body, context);
|
194
110
|
return contents;
|
195
111
|
};
|
196
|
-
const
|
112
|
+
const de_CommandError = async (output, context) => {
|
197
113
|
const parsedOutput = {
|
198
114
|
...output,
|
199
115
|
body: await parseErrorBody(output.body, context),
|
@@ -203,6 +119,9 @@ const de_LogoutCommandError = async (output, context) => {
|
|
203
119
|
case "InvalidRequestException":
|
204
120
|
case "com.amazonaws.sso#InvalidRequestException":
|
205
121
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
122
|
+
case "ResourceNotFoundException":
|
123
|
+
case "com.amazonaws.sso#ResourceNotFoundException":
|
124
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
206
125
|
case "TooManyRequestsException":
|
207
126
|
case "com.amazonaws.sso#TooManyRequestsException":
|
208
127
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/client-sso",
|
3
3
|
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
4
|
-
"version": "3.
|
4
|
+
"version": "3.511.0",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
@@ -20,16 +20,16 @@
|
|
20
20
|
"dependencies": {
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
23
|
-
"@aws-sdk/core": "3.
|
24
|
-
"@aws-sdk/middleware-host-header": "3.
|
25
|
-
"@aws-sdk/middleware-logger": "3.
|
26
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
27
|
-
"@aws-sdk/middleware-user-agent": "3.
|
28
|
-
"@aws-sdk/region-config-resolver": "3.
|
29
|
-
"@aws-sdk/types": "3.
|
30
|
-
"@aws-sdk/util-endpoints": "3.
|
31
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
32
|
-
"@aws-sdk/util-user-agent-node": "3.
|
23
|
+
"@aws-sdk/core": "3.511.0",
|
24
|
+
"@aws-sdk/middleware-host-header": "3.511.0",
|
25
|
+
"@aws-sdk/middleware-logger": "3.511.0",
|
26
|
+
"@aws-sdk/middleware-recursion-detection": "3.511.0",
|
27
|
+
"@aws-sdk/middleware-user-agent": "3.511.0",
|
28
|
+
"@aws-sdk/region-config-resolver": "3.511.0",
|
29
|
+
"@aws-sdk/types": "3.511.0",
|
30
|
+
"@aws-sdk/util-endpoints": "3.511.0",
|
31
|
+
"@aws-sdk/util-user-agent-browser": "3.511.0",
|
32
|
+
"@aws-sdk/util-user-agent-node": "3.511.0",
|
33
33
|
"@smithy/config-resolver": "^2.1.1",
|
34
34
|
"@smithy/core": "^1.3.1",
|
35
35
|
"@smithy/fetch-http-handler": "^2.4.1",
|
@@ -531,7 +531,7 @@ var se_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (input, co
|
|
531
531
|
}, "se_StartDeviceAuthorizationCommand");
|
532
532
|
var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
533
533
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
534
|
-
return
|
534
|
+
return de_CommandError(output, context);
|
535
535
|
}
|
536
536
|
const contents = (0, import_smithy_client.map)({
|
537
537
|
$metadata: deserializeMetadata(output)
|
@@ -547,58 +547,9 @@ var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
547
547
|
Object.assign(contents, doc);
|
548
548
|
return contents;
|
549
549
|
}, "de_CreateTokenCommand");
|
550
|
-
var de_CreateTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
551
|
-
const parsedOutput = {
|
552
|
-
...output,
|
553
|
-
body: await parseErrorBody(output.body, context)
|
554
|
-
};
|
555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
556
|
-
switch (errorCode) {
|
557
|
-
case "AccessDeniedException":
|
558
|
-
case "com.amazonaws.ssooidc#AccessDeniedException":
|
559
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
560
|
-
case "AuthorizationPendingException":
|
561
|
-
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
562
|
-
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
563
|
-
case "ExpiredTokenException":
|
564
|
-
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
565
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
566
|
-
case "InternalServerException":
|
567
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
568
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
569
|
-
case "InvalidClientException":
|
570
|
-
case "com.amazonaws.ssooidc#InvalidClientException":
|
571
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
572
|
-
case "InvalidGrantException":
|
573
|
-
case "com.amazonaws.ssooidc#InvalidGrantException":
|
574
|
-
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
575
|
-
case "InvalidRequestException":
|
576
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
577
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
578
|
-
case "InvalidScopeException":
|
579
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
580
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
581
|
-
case "SlowDownException":
|
582
|
-
case "com.amazonaws.ssooidc#SlowDownException":
|
583
|
-
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
584
|
-
case "UnauthorizedClientException":
|
585
|
-
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
586
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
587
|
-
case "UnsupportedGrantTypeException":
|
588
|
-
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
589
|
-
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
590
|
-
default:
|
591
|
-
const parsedBody = parsedOutput.body;
|
592
|
-
return throwDefaultError({
|
593
|
-
output,
|
594
|
-
parsedBody,
|
595
|
-
errorCode
|
596
|
-
});
|
597
|
-
}
|
598
|
-
}, "de_CreateTokenCommandError");
|
599
550
|
var de_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (output, context) => {
|
600
551
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
601
|
-
return
|
552
|
+
return de_CommandError(output, context);
|
602
553
|
}
|
603
554
|
const contents = (0, import_smithy_client.map)({
|
604
555
|
$metadata: deserializeMetadata(output)
|
@@ -616,61 +567,9 @@ var de_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (output, context
|
|
616
567
|
Object.assign(contents, doc);
|
617
568
|
return contents;
|
618
569
|
}, "de_CreateTokenWithIAMCommand");
|
619
|
-
var de_CreateTokenWithIAMCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
620
|
-
const parsedOutput = {
|
621
|
-
...output,
|
622
|
-
body: await parseErrorBody(output.body, context)
|
623
|
-
};
|
624
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
625
|
-
switch (errorCode) {
|
626
|
-
case "AccessDeniedException":
|
627
|
-
case "com.amazonaws.ssooidc#AccessDeniedException":
|
628
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
629
|
-
case "AuthorizationPendingException":
|
630
|
-
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
631
|
-
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
632
|
-
case "ExpiredTokenException":
|
633
|
-
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
634
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
635
|
-
case "InternalServerException":
|
636
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
637
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
638
|
-
case "InvalidClientException":
|
639
|
-
case "com.amazonaws.ssooidc#InvalidClientException":
|
640
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
641
|
-
case "InvalidGrantException":
|
642
|
-
case "com.amazonaws.ssooidc#InvalidGrantException":
|
643
|
-
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
644
|
-
case "InvalidRequestException":
|
645
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
646
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
647
|
-
case "InvalidRequestRegionException":
|
648
|
-
case "com.amazonaws.ssooidc#InvalidRequestRegionException":
|
649
|
-
throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
|
650
|
-
case "InvalidScopeException":
|
651
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
652
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
653
|
-
case "SlowDownException":
|
654
|
-
case "com.amazonaws.ssooidc#SlowDownException":
|
655
|
-
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
656
|
-
case "UnauthorizedClientException":
|
657
|
-
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
658
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
659
|
-
case "UnsupportedGrantTypeException":
|
660
|
-
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
661
|
-
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
662
|
-
default:
|
663
|
-
const parsedBody = parsedOutput.body;
|
664
|
-
return throwDefaultError({
|
665
|
-
output,
|
666
|
-
parsedBody,
|
667
|
-
errorCode
|
668
|
-
});
|
669
|
-
}
|
670
|
-
}, "de_CreateTokenWithIAMCommandError");
|
671
570
|
var de_RegisterClientCommand = /* @__PURE__ */ __name(async (output, context) => {
|
672
571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
673
|
-
return
|
572
|
+
return de_CommandError(output, context);
|
674
573
|
}
|
675
574
|
const contents = (0, import_smithy_client.map)({
|
676
575
|
$metadata: deserializeMetadata(output)
|
@@ -687,37 +586,9 @@ var de_RegisterClientCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
687
586
|
Object.assign(contents, doc);
|
688
587
|
return contents;
|
689
588
|
}, "de_RegisterClientCommand");
|
690
|
-
var de_RegisterClientCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
691
|
-
const parsedOutput = {
|
692
|
-
...output,
|
693
|
-
body: await parseErrorBody(output.body, context)
|
694
|
-
};
|
695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
696
|
-
switch (errorCode) {
|
697
|
-
case "InternalServerException":
|
698
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
699
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
700
|
-
case "InvalidClientMetadataException":
|
701
|
-
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
702
|
-
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
703
|
-
case "InvalidRequestException":
|
704
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
705
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
706
|
-
case "InvalidScopeException":
|
707
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
708
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
709
|
-
default:
|
710
|
-
const parsedBody = parsedOutput.body;
|
711
|
-
return throwDefaultError({
|
712
|
-
output,
|
713
|
-
parsedBody,
|
714
|
-
errorCode
|
715
|
-
});
|
716
|
-
}
|
717
|
-
}, "de_RegisterClientCommandError");
|
718
589
|
var de_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
719
590
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
720
|
-
return
|
591
|
+
return de_CommandError(output, context);
|
721
592
|
}
|
722
593
|
const contents = (0, import_smithy_client.map)({
|
723
594
|
$metadata: deserializeMetadata(output)
|
@@ -734,28 +605,52 @@ var de_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (output, c
|
|
734
605
|
Object.assign(contents, doc);
|
735
606
|
return contents;
|
736
607
|
}, "de_StartDeviceAuthorizationCommand");
|
737
|
-
var
|
608
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
738
609
|
const parsedOutput = {
|
739
610
|
...output,
|
740
611
|
body: await parseErrorBody(output.body, context)
|
741
612
|
};
|
742
613
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
743
614
|
switch (errorCode) {
|
615
|
+
case "AccessDeniedException":
|
616
|
+
case "com.amazonaws.ssooidc#AccessDeniedException":
|
617
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
618
|
+
case "AuthorizationPendingException":
|
619
|
+
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
620
|
+
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
621
|
+
case "ExpiredTokenException":
|
622
|
+
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
623
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
744
624
|
case "InternalServerException":
|
745
625
|
case "com.amazonaws.ssooidc#InternalServerException":
|
746
626
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
747
627
|
case "InvalidClientException":
|
748
628
|
case "com.amazonaws.ssooidc#InvalidClientException":
|
749
629
|
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
630
|
+
case "InvalidGrantException":
|
631
|
+
case "com.amazonaws.ssooidc#InvalidGrantException":
|
632
|
+
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
750
633
|
case "InvalidRequestException":
|
751
634
|
case "com.amazonaws.ssooidc#InvalidRequestException":
|
752
635
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
636
|
+
case "InvalidScopeException":
|
637
|
+
case "com.amazonaws.ssooidc#InvalidScopeException":
|
638
|
+
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
753
639
|
case "SlowDownException":
|
754
640
|
case "com.amazonaws.ssooidc#SlowDownException":
|
755
641
|
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
756
642
|
case "UnauthorizedClientException":
|
757
643
|
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
758
644
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
645
|
+
case "UnsupportedGrantTypeException":
|
646
|
+
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
647
|
+
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
648
|
+
case "InvalidRequestRegionException":
|
649
|
+
case "com.amazonaws.ssooidc#InvalidRequestRegionException":
|
650
|
+
throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
|
651
|
+
case "InvalidClientMetadataException":
|
652
|
+
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
653
|
+
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
759
654
|
default:
|
760
655
|
const parsedBody = parsedOutput.body;
|
761
656
|
return throwDefaultError({
|
@@ -764,7 +659,7 @@ var de_StartDeviceAuthorizationCommandError = /* @__PURE__ */ __name(async (outp
|
|
764
659
|
errorCode
|
765
660
|
});
|
766
661
|
}
|
767
|
-
}, "
|
662
|
+
}, "de_CommandError");
|
768
663
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SSOOIDCServiceException);
|
769
664
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
770
665
|
const contents = (0, import_smithy_client.map)({});
|