@aws-sdk/client-sso-admin 3.525.0 → 3.529.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/dist-cjs/index.js +69 -110
- package/dist-es/protocols/Aws_json1_1.js +1 -41
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -989,7 +989,7 @@ var de_AttachCustomerManagedPolicyReferenceToPermissionSetCommand = /* @__PURE__
|
|
|
989
989
|
if (output.statusCode >= 300) {
|
|
990
990
|
return de_CommandError(output, context);
|
|
991
991
|
}
|
|
992
|
-
const data = await
|
|
992
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
993
993
|
let contents = {};
|
|
994
994
|
contents = (0, import_smithy_client._json)(data);
|
|
995
995
|
const response = {
|
|
@@ -1002,7 +1002,7 @@ var de_AttachManagedPolicyToPermissionSetCommand = /* @__PURE__ */ __name(async
|
|
|
1002
1002
|
if (output.statusCode >= 300) {
|
|
1003
1003
|
return de_CommandError(output, context);
|
|
1004
1004
|
}
|
|
1005
|
-
const data = await
|
|
1005
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1006
1006
|
let contents = {};
|
|
1007
1007
|
contents = (0, import_smithy_client._json)(data);
|
|
1008
1008
|
const response = {
|
|
@@ -1015,7 +1015,7 @@ var de_CreateAccountAssignmentCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1015
1015
|
if (output.statusCode >= 300) {
|
|
1016
1016
|
return de_CommandError(output, context);
|
|
1017
1017
|
}
|
|
1018
|
-
const data = await
|
|
1018
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1019
1019
|
let contents = {};
|
|
1020
1020
|
contents = de_CreateAccountAssignmentResponse(data, context);
|
|
1021
1021
|
const response = {
|
|
@@ -1028,7 +1028,7 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1028
1028
|
if (output.statusCode >= 300) {
|
|
1029
1029
|
return de_CommandError(output, context);
|
|
1030
1030
|
}
|
|
1031
|
-
const data = await
|
|
1031
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1032
1032
|
let contents = {};
|
|
1033
1033
|
contents = (0, import_smithy_client._json)(data);
|
|
1034
1034
|
const response = {
|
|
@@ -1041,7 +1041,7 @@ var de_CreateApplicationAssignmentCommand = /* @__PURE__ */ __name(async (output
|
|
|
1041
1041
|
if (output.statusCode >= 300) {
|
|
1042
1042
|
return de_CommandError(output, context);
|
|
1043
1043
|
}
|
|
1044
|
-
const data = await
|
|
1044
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1045
1045
|
let contents = {};
|
|
1046
1046
|
contents = (0, import_smithy_client._json)(data);
|
|
1047
1047
|
const response = {
|
|
@@ -1054,7 +1054,7 @@ var de_CreateInstanceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1054
1054
|
if (output.statusCode >= 300) {
|
|
1055
1055
|
return de_CommandError(output, context);
|
|
1056
1056
|
}
|
|
1057
|
-
const data = await
|
|
1057
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1058
1058
|
let contents = {};
|
|
1059
1059
|
contents = (0, import_smithy_client._json)(data);
|
|
1060
1060
|
const response = {
|
|
@@ -1067,7 +1067,7 @@ var de_CreateInstanceAccessControlAttributeConfigurationCommand = /* @__PURE__ *
|
|
|
1067
1067
|
if (output.statusCode >= 300) {
|
|
1068
1068
|
return de_CommandError(output, context);
|
|
1069
1069
|
}
|
|
1070
|
-
const data = await
|
|
1070
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1071
1071
|
let contents = {};
|
|
1072
1072
|
contents = (0, import_smithy_client._json)(data);
|
|
1073
1073
|
const response = {
|
|
@@ -1080,7 +1080,7 @@ var de_CreatePermissionSetCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1080
1080
|
if (output.statusCode >= 300) {
|
|
1081
1081
|
return de_CommandError(output, context);
|
|
1082
1082
|
}
|
|
1083
|
-
const data = await
|
|
1083
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1084
1084
|
let contents = {};
|
|
1085
1085
|
contents = de_CreatePermissionSetResponse(data, context);
|
|
1086
1086
|
const response = {
|
|
@@ -1093,7 +1093,7 @@ var de_CreateTrustedTokenIssuerCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1093
1093
|
if (output.statusCode >= 300) {
|
|
1094
1094
|
return de_CommandError(output, context);
|
|
1095
1095
|
}
|
|
1096
|
-
const data = await
|
|
1096
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1097
1097
|
let contents = {};
|
|
1098
1098
|
contents = (0, import_smithy_client._json)(data);
|
|
1099
1099
|
const response = {
|
|
@@ -1106,7 +1106,7 @@ var de_DeleteAccountAssignmentCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1106
1106
|
if (output.statusCode >= 300) {
|
|
1107
1107
|
return de_CommandError(output, context);
|
|
1108
1108
|
}
|
|
1109
|
-
const data = await
|
|
1109
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1110
1110
|
let contents = {};
|
|
1111
1111
|
contents = de_DeleteAccountAssignmentResponse(data, context);
|
|
1112
1112
|
const response = {
|
|
@@ -1119,7 +1119,7 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1119
1119
|
if (output.statusCode >= 300) {
|
|
1120
1120
|
return de_CommandError(output, context);
|
|
1121
1121
|
}
|
|
1122
|
-
const data = await
|
|
1122
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1123
1123
|
let contents = {};
|
|
1124
1124
|
contents = (0, import_smithy_client._json)(data);
|
|
1125
1125
|
const response = {
|
|
@@ -1142,7 +1142,7 @@ var de_DeleteApplicationAssignmentCommand = /* @__PURE__ */ __name(async (output
|
|
|
1142
1142
|
if (output.statusCode >= 300) {
|
|
1143
1143
|
return de_CommandError(output, context);
|
|
1144
1144
|
}
|
|
1145
|
-
const data = await
|
|
1145
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1146
1146
|
let contents = {};
|
|
1147
1147
|
contents = (0, import_smithy_client._json)(data);
|
|
1148
1148
|
const response = {
|
|
@@ -1175,7 +1175,7 @@ var de_DeleteInlinePolicyFromPermissionSetCommand = /* @__PURE__ */ __name(async
|
|
|
1175
1175
|
if (output.statusCode >= 300) {
|
|
1176
1176
|
return de_CommandError(output, context);
|
|
1177
1177
|
}
|
|
1178
|
-
const data = await
|
|
1178
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1179
1179
|
let contents = {};
|
|
1180
1180
|
contents = (0, import_smithy_client._json)(data);
|
|
1181
1181
|
const response = {
|
|
@@ -1188,7 +1188,7 @@ var de_DeleteInstanceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1188
1188
|
if (output.statusCode >= 300) {
|
|
1189
1189
|
return de_CommandError(output, context);
|
|
1190
1190
|
}
|
|
1191
|
-
const data = await
|
|
1191
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1192
1192
|
let contents = {};
|
|
1193
1193
|
contents = (0, import_smithy_client._json)(data);
|
|
1194
1194
|
const response = {
|
|
@@ -1201,7 +1201,7 @@ var de_DeleteInstanceAccessControlAttributeConfigurationCommand = /* @__PURE__ *
|
|
|
1201
1201
|
if (output.statusCode >= 300) {
|
|
1202
1202
|
return de_CommandError(output, context);
|
|
1203
1203
|
}
|
|
1204
|
-
const data = await
|
|
1204
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1205
1205
|
let contents = {};
|
|
1206
1206
|
contents = (0, import_smithy_client._json)(data);
|
|
1207
1207
|
const response = {
|
|
@@ -1214,7 +1214,7 @@ var de_DeletePermissionsBoundaryFromPermissionSetCommand = /* @__PURE__ */ __nam
|
|
|
1214
1214
|
if (output.statusCode >= 300) {
|
|
1215
1215
|
return de_CommandError(output, context);
|
|
1216
1216
|
}
|
|
1217
|
-
const data = await
|
|
1217
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1218
1218
|
let contents = {};
|
|
1219
1219
|
contents = (0, import_smithy_client._json)(data);
|
|
1220
1220
|
const response = {
|
|
@@ -1227,7 +1227,7 @@ var de_DeletePermissionSetCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1227
1227
|
if (output.statusCode >= 300) {
|
|
1228
1228
|
return de_CommandError(output, context);
|
|
1229
1229
|
}
|
|
1230
|
-
const data = await
|
|
1230
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1231
1231
|
let contents = {};
|
|
1232
1232
|
contents = (0, import_smithy_client._json)(data);
|
|
1233
1233
|
const response = {
|
|
@@ -1240,7 +1240,7 @@ var de_DeleteTrustedTokenIssuerCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1240
1240
|
if (output.statusCode >= 300) {
|
|
1241
1241
|
return de_CommandError(output, context);
|
|
1242
1242
|
}
|
|
1243
|
-
const data = await
|
|
1243
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1244
1244
|
let contents = {};
|
|
1245
1245
|
contents = (0, import_smithy_client._json)(data);
|
|
1246
1246
|
const response = {
|
|
@@ -1253,7 +1253,7 @@ var de_DescribeAccountAssignmentCreationStatusCommand = /* @__PURE__ */ __name(a
|
|
|
1253
1253
|
if (output.statusCode >= 300) {
|
|
1254
1254
|
return de_CommandError(output, context);
|
|
1255
1255
|
}
|
|
1256
|
-
const data = await
|
|
1256
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1257
1257
|
let contents = {};
|
|
1258
1258
|
contents = de_DescribeAccountAssignmentCreationStatusResponse(data, context);
|
|
1259
1259
|
const response = {
|
|
@@ -1266,7 +1266,7 @@ var de_DescribeAccountAssignmentDeletionStatusCommand = /* @__PURE__ */ __name(a
|
|
|
1266
1266
|
if (output.statusCode >= 300) {
|
|
1267
1267
|
return de_CommandError(output, context);
|
|
1268
1268
|
}
|
|
1269
|
-
const data = await
|
|
1269
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1270
1270
|
let contents = {};
|
|
1271
1271
|
contents = de_DescribeAccountAssignmentDeletionStatusResponse(data, context);
|
|
1272
1272
|
const response = {
|
|
@@ -1279,7 +1279,7 @@ var de_DescribeApplicationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1279
1279
|
if (output.statusCode >= 300) {
|
|
1280
1280
|
return de_CommandError(output, context);
|
|
1281
1281
|
}
|
|
1282
|
-
const data = await
|
|
1282
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1283
1283
|
let contents = {};
|
|
1284
1284
|
contents = de_DescribeApplicationResponse(data, context);
|
|
1285
1285
|
const response = {
|
|
@@ -1292,7 +1292,7 @@ var de_DescribeApplicationAssignmentCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1292
1292
|
if (output.statusCode >= 300) {
|
|
1293
1293
|
return de_CommandError(output, context);
|
|
1294
1294
|
}
|
|
1295
|
-
const data = await
|
|
1295
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1296
1296
|
let contents = {};
|
|
1297
1297
|
contents = (0, import_smithy_client._json)(data);
|
|
1298
1298
|
const response = {
|
|
@@ -1305,7 +1305,7 @@ var de_DescribeApplicationProviderCommand = /* @__PURE__ */ __name(async (output
|
|
|
1305
1305
|
if (output.statusCode >= 300) {
|
|
1306
1306
|
return de_CommandError(output, context);
|
|
1307
1307
|
}
|
|
1308
|
-
const data = await
|
|
1308
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1309
1309
|
let contents = {};
|
|
1310
1310
|
contents = (0, import_smithy_client._json)(data);
|
|
1311
1311
|
const response = {
|
|
@@ -1318,7 +1318,7 @@ var de_DescribeInstanceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1318
1318
|
if (output.statusCode >= 300) {
|
|
1319
1319
|
return de_CommandError(output, context);
|
|
1320
1320
|
}
|
|
1321
|
-
const data = await
|
|
1321
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1322
1322
|
let contents = {};
|
|
1323
1323
|
contents = de_DescribeInstanceResponse(data, context);
|
|
1324
1324
|
const response = {
|
|
@@ -1331,7 +1331,7 @@ var de_DescribeInstanceAccessControlAttributeConfigurationCommand = /* @__PURE__
|
|
|
1331
1331
|
if (output.statusCode >= 300) {
|
|
1332
1332
|
return de_CommandError(output, context);
|
|
1333
1333
|
}
|
|
1334
|
-
const data = await
|
|
1334
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1335
1335
|
let contents = {};
|
|
1336
1336
|
contents = (0, import_smithy_client._json)(data);
|
|
1337
1337
|
const response = {
|
|
@@ -1344,7 +1344,7 @@ var de_DescribePermissionSetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1344
1344
|
if (output.statusCode >= 300) {
|
|
1345
1345
|
return de_CommandError(output, context);
|
|
1346
1346
|
}
|
|
1347
|
-
const data = await
|
|
1347
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1348
1348
|
let contents = {};
|
|
1349
1349
|
contents = de_DescribePermissionSetResponse(data, context);
|
|
1350
1350
|
const response = {
|
|
@@ -1357,7 +1357,7 @@ var de_DescribePermissionSetProvisioningStatusCommand = /* @__PURE__ */ __name(a
|
|
|
1357
1357
|
if (output.statusCode >= 300) {
|
|
1358
1358
|
return de_CommandError(output, context);
|
|
1359
1359
|
}
|
|
1360
|
-
const data = await
|
|
1360
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1361
1361
|
let contents = {};
|
|
1362
1362
|
contents = de_DescribePermissionSetProvisioningStatusResponse(data, context);
|
|
1363
1363
|
const response = {
|
|
@@ -1370,7 +1370,7 @@ var de_DescribeTrustedTokenIssuerCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1370
1370
|
if (output.statusCode >= 300) {
|
|
1371
1371
|
return de_CommandError(output, context);
|
|
1372
1372
|
}
|
|
1373
|
-
const data = await
|
|
1373
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1374
1374
|
let contents = {};
|
|
1375
1375
|
contents = (0, import_smithy_client._json)(data);
|
|
1376
1376
|
const response = {
|
|
@@ -1383,7 +1383,7 @@ var de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = /* @__PURE
|
|
|
1383
1383
|
if (output.statusCode >= 300) {
|
|
1384
1384
|
return de_CommandError(output, context);
|
|
1385
1385
|
}
|
|
1386
|
-
const data = await
|
|
1386
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1387
1387
|
let contents = {};
|
|
1388
1388
|
contents = (0, import_smithy_client._json)(data);
|
|
1389
1389
|
const response = {
|
|
@@ -1396,7 +1396,7 @@ var de_DetachManagedPolicyFromPermissionSetCommand = /* @__PURE__ */ __name(asyn
|
|
|
1396
1396
|
if (output.statusCode >= 300) {
|
|
1397
1397
|
return de_CommandError(output, context);
|
|
1398
1398
|
}
|
|
1399
|
-
const data = await
|
|
1399
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1400
1400
|
let contents = {};
|
|
1401
1401
|
contents = (0, import_smithy_client._json)(data);
|
|
1402
1402
|
const response = {
|
|
@@ -1409,7 +1409,7 @@ var de_GetApplicationAccessScopeCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1409
1409
|
if (output.statusCode >= 300) {
|
|
1410
1410
|
return de_CommandError(output, context);
|
|
1411
1411
|
}
|
|
1412
|
-
const data = await
|
|
1412
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1413
1413
|
let contents = {};
|
|
1414
1414
|
contents = (0, import_smithy_client._json)(data);
|
|
1415
1415
|
const response = {
|
|
@@ -1422,7 +1422,7 @@ var de_GetApplicationAssignmentConfigurationCommand = /* @__PURE__ */ __name(asy
|
|
|
1422
1422
|
if (output.statusCode >= 300) {
|
|
1423
1423
|
return de_CommandError(output, context);
|
|
1424
1424
|
}
|
|
1425
|
-
const data = await
|
|
1425
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1426
1426
|
let contents = {};
|
|
1427
1427
|
contents = (0, import_smithy_client._json)(data);
|
|
1428
1428
|
const response = {
|
|
@@ -1435,7 +1435,7 @@ var de_GetApplicationAuthenticationMethodCommand = /* @__PURE__ */ __name(async
|
|
|
1435
1435
|
if (output.statusCode >= 300) {
|
|
1436
1436
|
return de_CommandError(output, context);
|
|
1437
1437
|
}
|
|
1438
|
-
const data = await
|
|
1438
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1439
1439
|
let contents = {};
|
|
1440
1440
|
contents = de_GetApplicationAuthenticationMethodResponse(data, context);
|
|
1441
1441
|
const response = {
|
|
@@ -1448,7 +1448,7 @@ var de_GetApplicationGrantCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1448
1448
|
if (output.statusCode >= 300) {
|
|
1449
1449
|
return de_CommandError(output, context);
|
|
1450
1450
|
}
|
|
1451
|
-
const data = await
|
|
1451
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1452
1452
|
let contents = {};
|
|
1453
1453
|
contents = (0, import_smithy_client._json)(data);
|
|
1454
1454
|
const response = {
|
|
@@ -1461,7 +1461,7 @@ var de_GetInlinePolicyForPermissionSetCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1461
1461
|
if (output.statusCode >= 300) {
|
|
1462
1462
|
return de_CommandError(output, context);
|
|
1463
1463
|
}
|
|
1464
|
-
const data = await
|
|
1464
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1465
1465
|
let contents = {};
|
|
1466
1466
|
contents = (0, import_smithy_client._json)(data);
|
|
1467
1467
|
const response = {
|
|
@@ -1474,7 +1474,7 @@ var de_GetPermissionsBoundaryForPermissionSetCommand = /* @__PURE__ */ __name(as
|
|
|
1474
1474
|
if (output.statusCode >= 300) {
|
|
1475
1475
|
return de_CommandError(output, context);
|
|
1476
1476
|
}
|
|
1477
|
-
const data = await
|
|
1477
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1478
1478
|
let contents = {};
|
|
1479
1479
|
contents = (0, import_smithy_client._json)(data);
|
|
1480
1480
|
const response = {
|
|
@@ -1487,7 +1487,7 @@ var de_ListAccountAssignmentCreationStatusCommand = /* @__PURE__ */ __name(async
|
|
|
1487
1487
|
if (output.statusCode >= 300) {
|
|
1488
1488
|
return de_CommandError(output, context);
|
|
1489
1489
|
}
|
|
1490
|
-
const data = await
|
|
1490
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1491
1491
|
let contents = {};
|
|
1492
1492
|
contents = de_ListAccountAssignmentCreationStatusResponse(data, context);
|
|
1493
1493
|
const response = {
|
|
@@ -1500,7 +1500,7 @@ var de_ListAccountAssignmentDeletionStatusCommand = /* @__PURE__ */ __name(async
|
|
|
1500
1500
|
if (output.statusCode >= 300) {
|
|
1501
1501
|
return de_CommandError(output, context);
|
|
1502
1502
|
}
|
|
1503
|
-
const data = await
|
|
1503
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1504
1504
|
let contents = {};
|
|
1505
1505
|
contents = de_ListAccountAssignmentDeletionStatusResponse(data, context);
|
|
1506
1506
|
const response = {
|
|
@@ -1513,7 +1513,7 @@ var de_ListAccountAssignmentsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1513
1513
|
if (output.statusCode >= 300) {
|
|
1514
1514
|
return de_CommandError(output, context);
|
|
1515
1515
|
}
|
|
1516
|
-
const data = await
|
|
1516
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1517
1517
|
let contents = {};
|
|
1518
1518
|
contents = (0, import_smithy_client._json)(data);
|
|
1519
1519
|
const response = {
|
|
@@ -1526,7 +1526,7 @@ var de_ListAccountAssignmentsForPrincipalCommand = /* @__PURE__ */ __name(async
|
|
|
1526
1526
|
if (output.statusCode >= 300) {
|
|
1527
1527
|
return de_CommandError(output, context);
|
|
1528
1528
|
}
|
|
1529
|
-
const data = await
|
|
1529
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1530
1530
|
let contents = {};
|
|
1531
1531
|
contents = (0, import_smithy_client._json)(data);
|
|
1532
1532
|
const response = {
|
|
@@ -1539,7 +1539,7 @@ var de_ListAccountsForProvisionedPermissionSetCommand = /* @__PURE__ */ __name(a
|
|
|
1539
1539
|
if (output.statusCode >= 300) {
|
|
1540
1540
|
return de_CommandError(output, context);
|
|
1541
1541
|
}
|
|
1542
|
-
const data = await
|
|
1542
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1543
1543
|
let contents = {};
|
|
1544
1544
|
contents = (0, import_smithy_client._json)(data);
|
|
1545
1545
|
const response = {
|
|
@@ -1552,7 +1552,7 @@ var de_ListApplicationAccessScopesCommand = /* @__PURE__ */ __name(async (output
|
|
|
1552
1552
|
if (output.statusCode >= 300) {
|
|
1553
1553
|
return de_CommandError(output, context);
|
|
1554
1554
|
}
|
|
1555
|
-
const data = await
|
|
1555
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1556
1556
|
let contents = {};
|
|
1557
1557
|
contents = (0, import_smithy_client._json)(data);
|
|
1558
1558
|
const response = {
|
|
@@ -1565,7 +1565,7 @@ var de_ListApplicationAssignmentsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1565
1565
|
if (output.statusCode >= 300) {
|
|
1566
1566
|
return de_CommandError(output, context);
|
|
1567
1567
|
}
|
|
1568
|
-
const data = await
|
|
1568
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1569
1569
|
let contents = {};
|
|
1570
1570
|
contents = (0, import_smithy_client._json)(data);
|
|
1571
1571
|
const response = {
|
|
@@ -1578,7 +1578,7 @@ var de_ListApplicationAssignmentsForPrincipalCommand = /* @__PURE__ */ __name(as
|
|
|
1578
1578
|
if (output.statusCode >= 300) {
|
|
1579
1579
|
return de_CommandError(output, context);
|
|
1580
1580
|
}
|
|
1581
|
-
const data = await
|
|
1581
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1582
1582
|
let contents = {};
|
|
1583
1583
|
contents = (0, import_smithy_client._json)(data);
|
|
1584
1584
|
const response = {
|
|
@@ -1591,7 +1591,7 @@ var de_ListApplicationAuthenticationMethodsCommand = /* @__PURE__ */ __name(asyn
|
|
|
1591
1591
|
if (output.statusCode >= 300) {
|
|
1592
1592
|
return de_CommandError(output, context);
|
|
1593
1593
|
}
|
|
1594
|
-
const data = await
|
|
1594
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1595
1595
|
let contents = {};
|
|
1596
1596
|
contents = de_ListApplicationAuthenticationMethodsResponse(data, context);
|
|
1597
1597
|
const response = {
|
|
@@ -1604,7 +1604,7 @@ var de_ListApplicationGrantsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1604
1604
|
if (output.statusCode >= 300) {
|
|
1605
1605
|
return de_CommandError(output, context);
|
|
1606
1606
|
}
|
|
1607
|
-
const data = await
|
|
1607
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1608
1608
|
let contents = {};
|
|
1609
1609
|
contents = (0, import_smithy_client._json)(data);
|
|
1610
1610
|
const response = {
|
|
@@ -1617,7 +1617,7 @@ var de_ListApplicationProvidersCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1617
1617
|
if (output.statusCode >= 300) {
|
|
1618
1618
|
return de_CommandError(output, context);
|
|
1619
1619
|
}
|
|
1620
|
-
const data = await
|
|
1620
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1621
1621
|
let contents = {};
|
|
1622
1622
|
contents = (0, import_smithy_client._json)(data);
|
|
1623
1623
|
const response = {
|
|
@@ -1630,7 +1630,7 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1630
1630
|
if (output.statusCode >= 300) {
|
|
1631
1631
|
return de_CommandError(output, context);
|
|
1632
1632
|
}
|
|
1633
|
-
const data = await
|
|
1633
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1634
1634
|
let contents = {};
|
|
1635
1635
|
contents = de_ListApplicationsResponse(data, context);
|
|
1636
1636
|
const response = {
|
|
@@ -1643,7 +1643,7 @@ var de_ListCustomerManagedPolicyReferencesInPermissionSetCommand = /* @__PURE__
|
|
|
1643
1643
|
if (output.statusCode >= 300) {
|
|
1644
1644
|
return de_CommandError(output, context);
|
|
1645
1645
|
}
|
|
1646
|
-
const data = await
|
|
1646
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1647
1647
|
let contents = {};
|
|
1648
1648
|
contents = (0, import_smithy_client._json)(data);
|
|
1649
1649
|
const response = {
|
|
@@ -1656,7 +1656,7 @@ var de_ListInstancesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1656
1656
|
if (output.statusCode >= 300) {
|
|
1657
1657
|
return de_CommandError(output, context);
|
|
1658
1658
|
}
|
|
1659
|
-
const data = await
|
|
1659
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1660
1660
|
let contents = {};
|
|
1661
1661
|
contents = de_ListInstancesResponse(data, context);
|
|
1662
1662
|
const response = {
|
|
@@ -1669,7 +1669,7 @@ var de_ListManagedPoliciesInPermissionSetCommand = /* @__PURE__ */ __name(async
|
|
|
1669
1669
|
if (output.statusCode >= 300) {
|
|
1670
1670
|
return de_CommandError(output, context);
|
|
1671
1671
|
}
|
|
1672
|
-
const data = await
|
|
1672
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1673
1673
|
let contents = {};
|
|
1674
1674
|
contents = (0, import_smithy_client._json)(data);
|
|
1675
1675
|
const response = {
|
|
@@ -1682,7 +1682,7 @@ var de_ListPermissionSetProvisioningStatusCommand = /* @__PURE__ */ __name(async
|
|
|
1682
1682
|
if (output.statusCode >= 300) {
|
|
1683
1683
|
return de_CommandError(output, context);
|
|
1684
1684
|
}
|
|
1685
|
-
const data = await
|
|
1685
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1686
1686
|
let contents = {};
|
|
1687
1687
|
contents = de_ListPermissionSetProvisioningStatusResponse(data, context);
|
|
1688
1688
|
const response = {
|
|
@@ -1695,7 +1695,7 @@ var de_ListPermissionSetsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1695
1695
|
if (output.statusCode >= 300) {
|
|
1696
1696
|
return de_CommandError(output, context);
|
|
1697
1697
|
}
|
|
1698
|
-
const data = await
|
|
1698
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1699
1699
|
let contents = {};
|
|
1700
1700
|
contents = (0, import_smithy_client._json)(data);
|
|
1701
1701
|
const response = {
|
|
@@ -1708,7 +1708,7 @@ var de_ListPermissionSetsProvisionedToAccountCommand = /* @__PURE__ */ __name(as
|
|
|
1708
1708
|
if (output.statusCode >= 300) {
|
|
1709
1709
|
return de_CommandError(output, context);
|
|
1710
1710
|
}
|
|
1711
|
-
const data = await
|
|
1711
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1712
1712
|
let contents = {};
|
|
1713
1713
|
contents = (0, import_smithy_client._json)(data);
|
|
1714
1714
|
const response = {
|
|
@@ -1721,7 +1721,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1721
1721
|
if (output.statusCode >= 300) {
|
|
1722
1722
|
return de_CommandError(output, context);
|
|
1723
1723
|
}
|
|
1724
|
-
const data = await
|
|
1724
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1725
1725
|
let contents = {};
|
|
1726
1726
|
contents = (0, import_smithy_client._json)(data);
|
|
1727
1727
|
const response = {
|
|
@@ -1734,7 +1734,7 @@ var de_ListTrustedTokenIssuersCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1734
1734
|
if (output.statusCode >= 300) {
|
|
1735
1735
|
return de_CommandError(output, context);
|
|
1736
1736
|
}
|
|
1737
|
-
const data = await
|
|
1737
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1738
1738
|
let contents = {};
|
|
1739
1739
|
contents = (0, import_smithy_client._json)(data);
|
|
1740
1740
|
const response = {
|
|
@@ -1747,7 +1747,7 @@ var de_ProvisionPermissionSetCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1747
1747
|
if (output.statusCode >= 300) {
|
|
1748
1748
|
return de_CommandError(output, context);
|
|
1749
1749
|
}
|
|
1750
|
-
const data = await
|
|
1750
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1751
1751
|
let contents = {};
|
|
1752
1752
|
contents = de_ProvisionPermissionSetResponse(data, context);
|
|
1753
1753
|
const response = {
|
|
@@ -1770,7 +1770,7 @@ var de_PutApplicationAssignmentConfigurationCommand = /* @__PURE__ */ __name(asy
|
|
|
1770
1770
|
if (output.statusCode >= 300) {
|
|
1771
1771
|
return de_CommandError(output, context);
|
|
1772
1772
|
}
|
|
1773
|
-
const data = await
|
|
1773
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1774
1774
|
let contents = {};
|
|
1775
1775
|
contents = (0, import_smithy_client._json)(data);
|
|
1776
1776
|
const response = {
|
|
@@ -1803,7 +1803,7 @@ var de_PutInlinePolicyToPermissionSetCommand = /* @__PURE__ */ __name(async (out
|
|
|
1803
1803
|
if (output.statusCode >= 300) {
|
|
1804
1804
|
return de_CommandError(output, context);
|
|
1805
1805
|
}
|
|
1806
|
-
const data = await
|
|
1806
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1807
1807
|
let contents = {};
|
|
1808
1808
|
contents = (0, import_smithy_client._json)(data);
|
|
1809
1809
|
const response = {
|
|
@@ -1816,7 +1816,7 @@ var de_PutPermissionsBoundaryToPermissionSetCommand = /* @__PURE__ */ __name(asy
|
|
|
1816
1816
|
if (output.statusCode >= 300) {
|
|
1817
1817
|
return de_CommandError(output, context);
|
|
1818
1818
|
}
|
|
1819
|
-
const data = await
|
|
1819
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1820
1820
|
let contents = {};
|
|
1821
1821
|
contents = (0, import_smithy_client._json)(data);
|
|
1822
1822
|
const response = {
|
|
@@ -1829,7 +1829,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1829
1829
|
if (output.statusCode >= 300) {
|
|
1830
1830
|
return de_CommandError(output, context);
|
|
1831
1831
|
}
|
|
1832
|
-
const data = await
|
|
1832
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1833
1833
|
let contents = {};
|
|
1834
1834
|
contents = (0, import_smithy_client._json)(data);
|
|
1835
1835
|
const response = {
|
|
@@ -1842,7 +1842,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1842
1842
|
if (output.statusCode >= 300) {
|
|
1843
1843
|
return de_CommandError(output, context);
|
|
1844
1844
|
}
|
|
1845
|
-
const data = await
|
|
1845
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1846
1846
|
let contents = {};
|
|
1847
1847
|
contents = (0, import_smithy_client._json)(data);
|
|
1848
1848
|
const response = {
|
|
@@ -1855,7 +1855,7 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1855
1855
|
if (output.statusCode >= 300) {
|
|
1856
1856
|
return de_CommandError(output, context);
|
|
1857
1857
|
}
|
|
1858
|
-
const data = await
|
|
1858
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1859
1859
|
let contents = {};
|
|
1860
1860
|
contents = (0, import_smithy_client._json)(data);
|
|
1861
1861
|
const response = {
|
|
@@ -1868,7 +1868,7 @@ var de_UpdateInstanceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1868
1868
|
if (output.statusCode >= 300) {
|
|
1869
1869
|
return de_CommandError(output, context);
|
|
1870
1870
|
}
|
|
1871
|
-
const data = await
|
|
1871
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1872
1872
|
let contents = {};
|
|
1873
1873
|
contents = (0, import_smithy_client._json)(data);
|
|
1874
1874
|
const response = {
|
|
@@ -1881,7 +1881,7 @@ var de_UpdateInstanceAccessControlAttributeConfigurationCommand = /* @__PURE__ *
|
|
|
1881
1881
|
if (output.statusCode >= 300) {
|
|
1882
1882
|
return de_CommandError(output, context);
|
|
1883
1883
|
}
|
|
1884
|
-
const data = await
|
|
1884
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1885
1885
|
let contents = {};
|
|
1886
1886
|
contents = (0, import_smithy_client._json)(data);
|
|
1887
1887
|
const response = {
|
|
@@ -1894,7 +1894,7 @@ var de_UpdatePermissionSetCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1894
1894
|
if (output.statusCode >= 300) {
|
|
1895
1895
|
return de_CommandError(output, context);
|
|
1896
1896
|
}
|
|
1897
|
-
const data = await
|
|
1897
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1898
1898
|
let contents = {};
|
|
1899
1899
|
contents = (0, import_smithy_client._json)(data);
|
|
1900
1900
|
const response = {
|
|
@@ -1907,7 +1907,7 @@ var de_UpdateTrustedTokenIssuerCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1907
1907
|
if (output.statusCode >= 300) {
|
|
1908
1908
|
return de_CommandError(output, context);
|
|
1909
1909
|
}
|
|
1910
|
-
const data = await
|
|
1910
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1911
1911
|
let contents = {};
|
|
1912
1912
|
contents = (0, import_smithy_client._json)(data);
|
|
1913
1913
|
const response = {
|
|
@@ -1919,9 +1919,9 @@ var de_UpdateTrustedTokenIssuerCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1919
1919
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1920
1920
|
const parsedOutput = {
|
|
1921
1921
|
...output,
|
|
1922
|
-
body: await
|
|
1922
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1923
1923
|
};
|
|
1924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1924
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1925
1925
|
switch (errorCode) {
|
|
1926
1926
|
case "AccessDeniedException":
|
|
1927
1927
|
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
@@ -2298,7 +2298,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2298
2298
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2299
2299
|
cfId: output.headers["x-amz-cf-id"]
|
|
2300
2300
|
}), "deserializeMetadata");
|
|
2301
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2302
2301
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SSOAdminServiceException);
|
|
2303
2302
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2304
2303
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2325,46 +2324,6 @@ function sharedHeaders(operation) {
|
|
|
2325
2324
|
};
|
|
2326
2325
|
}
|
|
2327
2326
|
__name(sharedHeaders, "sharedHeaders");
|
|
2328
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2329
|
-
if (encoded.length) {
|
|
2330
|
-
return JSON.parse(encoded);
|
|
2331
|
-
}
|
|
2332
|
-
return {};
|
|
2333
|
-
}), "parseBody");
|
|
2334
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2335
|
-
const value = await parseBody(errorBody, context);
|
|
2336
|
-
value.message = value.message ?? value.Message;
|
|
2337
|
-
return value;
|
|
2338
|
-
}, "parseErrorBody");
|
|
2339
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2340
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2341
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2342
|
-
let cleanValue = rawValue;
|
|
2343
|
-
if (typeof cleanValue === "number") {
|
|
2344
|
-
cleanValue = cleanValue.toString();
|
|
2345
|
-
}
|
|
2346
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2347
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2348
|
-
}
|
|
2349
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2350
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2351
|
-
}
|
|
2352
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2353
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2354
|
-
}
|
|
2355
|
-
return cleanValue;
|
|
2356
|
-
}, "sanitizeErrorCode");
|
|
2357
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2358
|
-
if (headerKey !== void 0) {
|
|
2359
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2360
|
-
}
|
|
2361
|
-
if (data.code !== void 0) {
|
|
2362
|
-
return sanitizeErrorCode(data.code);
|
|
2363
|
-
}
|
|
2364
|
-
if (data["__type"] !== void 0) {
|
|
2365
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2366
|
-
}
|
|
2367
|
-
}, "loadRestJsonErrorCode");
|
|
2368
2327
|
|
|
2369
2328
|
// src/commands/AttachCustomerManagedPolicyReferenceToPermissionSetCommand.ts
|
|
2370
2329
|
var _AttachCustomerManagedPolicyReferenceToPermissionSetCommand = class _AttachCustomerManagedPolicyReferenceToPermissionSetCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
1
|
+
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1791,43 +1791,3 @@ function sharedHeaders(operation) {
|
|
|
1791
1791
|
"x-amz-target": `SWBExternalService.${operation}`,
|
|
1792
1792
|
};
|
|
1793
1793
|
}
|
|
1794
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1795
|
-
if (encoded.length) {
|
|
1796
|
-
return JSON.parse(encoded);
|
|
1797
|
-
}
|
|
1798
|
-
return {};
|
|
1799
|
-
});
|
|
1800
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1801
|
-
const value = await parseBody(errorBody, context);
|
|
1802
|
-
value.message = value.message ?? value.Message;
|
|
1803
|
-
return value;
|
|
1804
|
-
};
|
|
1805
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1806
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1807
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1808
|
-
let cleanValue = rawValue;
|
|
1809
|
-
if (typeof cleanValue === "number") {
|
|
1810
|
-
cleanValue = cleanValue.toString();
|
|
1811
|
-
}
|
|
1812
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1813
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1814
|
-
}
|
|
1815
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1816
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1817
|
-
}
|
|
1818
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1819
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1820
|
-
}
|
|
1821
|
-
return cleanValue;
|
|
1822
|
-
};
|
|
1823
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1824
|
-
if (headerKey !== undefined) {
|
|
1825
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1826
|
-
}
|
|
1827
|
-
if (data.code !== undefined) {
|
|
1828
|
-
return sanitizeErrorCode(data.code);
|
|
1829
|
-
}
|
|
1830
|
-
if (data["__type"] !== undefined) {
|
|
1831
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1832
|
-
}
|
|
1833
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso-admin",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Admin Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.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-admin",
|
|
@@ -20,9 +20,9 @@
|
|
|
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.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|