@aws-sdk/client-verifiedpermissions 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 +89 -70
- package/dist-es/models/models_0.js +42 -0
- package/dist-es/protocols/Aws_json1_0.js +3 -41
- package/dist-types/commands/CreateIdentitySourceCommand.d.ts +1 -1
- package/dist-types/commands/CreatePolicyCommand.d.ts +1 -1
- package/dist-types/commands/CreatePolicyStoreCommand.d.ts +1 -1
- package/dist-types/commands/CreatePolicyTemplateCommand.d.ts +1 -1
- package/dist-types/commands/GetIdentitySourceCommand.d.ts +9 -0
- package/dist-types/commands/ListIdentitySourcesCommand.d.ts +9 -0
- package/dist-types/commands/PutSchemaCommand.d.ts +1 -1
- package/dist-types/commands/UpdateIdentitySourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePolicyCommand.d.ts +2 -2
- package/dist-types/commands/UpdatePolicyStoreCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePolicyTemplateCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +234 -19
- package/dist-types/ts3.4/models/models_0.d.ts +66 -2
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -30,9 +30,15 @@ __export(src_exports, {
|
|
|
30
30
|
BatchIsAuthorizedInputItemFilterSensitiveLog: () => BatchIsAuthorizedInputItemFilterSensitiveLog,
|
|
31
31
|
BatchIsAuthorizedOutputFilterSensitiveLog: () => BatchIsAuthorizedOutputFilterSensitiveLog,
|
|
32
32
|
BatchIsAuthorizedOutputItemFilterSensitiveLog: () => BatchIsAuthorizedOutputItemFilterSensitiveLog,
|
|
33
|
+
CognitoUserPoolConfigurationDetailFilterSensitiveLog: () => CognitoUserPoolConfigurationDetailFilterSensitiveLog,
|
|
33
34
|
CognitoUserPoolConfigurationFilterSensitiveLog: () => CognitoUserPoolConfigurationFilterSensitiveLog,
|
|
35
|
+
CognitoUserPoolConfigurationItemFilterSensitiveLog: () => CognitoUserPoolConfigurationItemFilterSensitiveLog,
|
|
34
36
|
Configuration: () => Configuration,
|
|
37
|
+
ConfigurationDetail: () => ConfigurationDetail,
|
|
38
|
+
ConfigurationDetailFilterSensitiveLog: () => ConfigurationDetailFilterSensitiveLog,
|
|
35
39
|
ConfigurationFilterSensitiveLog: () => ConfigurationFilterSensitiveLog,
|
|
40
|
+
ConfigurationItem: () => ConfigurationItem,
|
|
41
|
+
ConfigurationItemFilterSensitiveLog: () => ConfigurationItemFilterSensitiveLog,
|
|
36
42
|
ConflictException: () => ConflictException,
|
|
37
43
|
ContextDefinition: () => ContextDefinition,
|
|
38
44
|
ContextDefinitionFilterSensitiveLog: () => ContextDefinitionFilterSensitiveLog,
|
|
@@ -426,6 +432,22 @@ var Configuration;
|
|
|
426
432
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
427
433
|
}, "visit");
|
|
428
434
|
})(Configuration || (Configuration = {}));
|
|
435
|
+
var ConfigurationDetail;
|
|
436
|
+
((ConfigurationDetail2) => {
|
|
437
|
+
ConfigurationDetail2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
438
|
+
if (value.cognitoUserPoolConfiguration !== void 0)
|
|
439
|
+
return visitor.cognitoUserPoolConfiguration(value.cognitoUserPoolConfiguration);
|
|
440
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
441
|
+
}, "visit");
|
|
442
|
+
})(ConfigurationDetail || (ConfigurationDetail = {}));
|
|
443
|
+
var ConfigurationItem;
|
|
444
|
+
((ConfigurationItem2) => {
|
|
445
|
+
ConfigurationItem2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
446
|
+
if (value.cognitoUserPoolConfiguration !== void 0)
|
|
447
|
+
return visitor.cognitoUserPoolConfiguration(value.cognitoUserPoolConfiguration);
|
|
448
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
449
|
+
}, "visit");
|
|
450
|
+
})(ConfigurationItem || (ConfigurationItem = {}));
|
|
429
451
|
var _ConflictException = class _ConflictException extends VerifiedPermissionsServiceException {
|
|
430
452
|
/**
|
|
431
453
|
* @internal
|
|
@@ -591,6 +613,14 @@ var CognitoUserPoolConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj
|
|
|
591
613
|
...obj,
|
|
592
614
|
...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING }
|
|
593
615
|
}), "CognitoUserPoolConfigurationFilterSensitiveLog");
|
|
616
|
+
var CognitoUserPoolConfigurationDetailFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
617
|
+
...obj,
|
|
618
|
+
...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING }
|
|
619
|
+
}), "CognitoUserPoolConfigurationDetailFilterSensitiveLog");
|
|
620
|
+
var CognitoUserPoolConfigurationItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
621
|
+
...obj,
|
|
622
|
+
...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING }
|
|
623
|
+
}), "CognitoUserPoolConfigurationItemFilterSensitiveLog");
|
|
594
624
|
var ConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
595
625
|
if (obj.cognitoUserPoolConfiguration !== void 0)
|
|
596
626
|
return {
|
|
@@ -599,6 +629,26 @@ var ConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
599
629
|
if (obj.$unknown !== void 0)
|
|
600
630
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
601
631
|
}, "ConfigurationFilterSensitiveLog");
|
|
632
|
+
var ConfigurationDetailFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
633
|
+
if (obj.cognitoUserPoolConfiguration !== void 0)
|
|
634
|
+
return {
|
|
635
|
+
cognitoUserPoolConfiguration: CognitoUserPoolConfigurationDetailFilterSensitiveLog(
|
|
636
|
+
obj.cognitoUserPoolConfiguration
|
|
637
|
+
)
|
|
638
|
+
};
|
|
639
|
+
if (obj.$unknown !== void 0)
|
|
640
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
641
|
+
}, "ConfigurationDetailFilterSensitiveLog");
|
|
642
|
+
var ConfigurationItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
643
|
+
if (obj.cognitoUserPoolConfiguration !== void 0)
|
|
644
|
+
return {
|
|
645
|
+
cognitoUserPoolConfiguration: CognitoUserPoolConfigurationItemFilterSensitiveLog(
|
|
646
|
+
obj.cognitoUserPoolConfiguration
|
|
647
|
+
)
|
|
648
|
+
};
|
|
649
|
+
if (obj.$unknown !== void 0)
|
|
650
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
651
|
+
}, "ConfigurationItemFilterSensitiveLog");
|
|
602
652
|
var CreateIdentitySourceInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
603
653
|
...obj,
|
|
604
654
|
...obj.configuration && { configuration: ConfigurationFilterSensitiveLog(obj.configuration) },
|
|
@@ -655,7 +705,8 @@ var IdentitySourceDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
655
705
|
var GetIdentitySourceOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
656
706
|
...obj,
|
|
657
707
|
...obj.details && { details: IdentitySourceDetailsFilterSensitiveLog(obj.details) },
|
|
658
|
-
...obj.principalEntityType && { principalEntityType: import_smithy_client.SENSITIVE_STRING }
|
|
708
|
+
...obj.principalEntityType && { principalEntityType: import_smithy_client.SENSITIVE_STRING },
|
|
709
|
+
...obj.configuration && { configuration: ConfigurationDetailFilterSensitiveLog(obj.configuration) }
|
|
659
710
|
}), "GetIdentitySourceOutputFilterSensitiveLog");
|
|
660
711
|
var StaticPolicyDefinitionDetailFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
661
712
|
...obj,
|
|
@@ -710,7 +761,8 @@ var IdentitySourceItemDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) =
|
|
|
710
761
|
var IdentitySourceItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
711
762
|
...obj,
|
|
712
763
|
...obj.details && { details: IdentitySourceItemDetailsFilterSensitiveLog(obj.details) },
|
|
713
|
-
...obj.principalEntityType && { principalEntityType: import_smithy_client.SENSITIVE_STRING }
|
|
764
|
+
...obj.principalEntityType && { principalEntityType: import_smithy_client.SENSITIVE_STRING },
|
|
765
|
+
...obj.configuration && { configuration: ConfigurationItemFilterSensitiveLog(obj.configuration) }
|
|
714
766
|
}), "IdentitySourceItemFilterSensitiveLog");
|
|
715
767
|
var ListIdentitySourcesOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
716
768
|
...obj,
|
|
@@ -1091,7 +1143,7 @@ var de_BatchIsAuthorizedCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1091
1143
|
if (output.statusCode >= 300) {
|
|
1092
1144
|
return de_CommandError(output, context);
|
|
1093
1145
|
}
|
|
1094
|
-
const data = await
|
|
1146
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1095
1147
|
let contents = {};
|
|
1096
1148
|
contents = de_BatchIsAuthorizedOutput(data, context);
|
|
1097
1149
|
const response = {
|
|
@@ -1104,7 +1156,7 @@ var de_CreateIdentitySourceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1104
1156
|
if (output.statusCode >= 300) {
|
|
1105
1157
|
return de_CommandError(output, context);
|
|
1106
1158
|
}
|
|
1107
|
-
const data = await
|
|
1159
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1108
1160
|
let contents = {};
|
|
1109
1161
|
contents = de_CreateIdentitySourceOutput(data, context);
|
|
1110
1162
|
const response = {
|
|
@@ -1117,7 +1169,7 @@ var de_CreatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1117
1169
|
if (output.statusCode >= 300) {
|
|
1118
1170
|
return de_CommandError(output, context);
|
|
1119
1171
|
}
|
|
1120
|
-
const data = await
|
|
1172
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1121
1173
|
let contents = {};
|
|
1122
1174
|
contents = de_CreatePolicyOutput(data, context);
|
|
1123
1175
|
const response = {
|
|
@@ -1130,7 +1182,7 @@ var de_CreatePolicyStoreCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1130
1182
|
if (output.statusCode >= 300) {
|
|
1131
1183
|
return de_CommandError(output, context);
|
|
1132
1184
|
}
|
|
1133
|
-
const data = await
|
|
1185
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1134
1186
|
let contents = {};
|
|
1135
1187
|
contents = de_CreatePolicyStoreOutput(data, context);
|
|
1136
1188
|
const response = {
|
|
@@ -1143,7 +1195,7 @@ var de_CreatePolicyTemplateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1143
1195
|
if (output.statusCode >= 300) {
|
|
1144
1196
|
return de_CommandError(output, context);
|
|
1145
1197
|
}
|
|
1146
|
-
const data = await
|
|
1198
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1147
1199
|
let contents = {};
|
|
1148
1200
|
contents = de_CreatePolicyTemplateOutput(data, context);
|
|
1149
1201
|
const response = {
|
|
@@ -1156,7 +1208,7 @@ var de_DeleteIdentitySourceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1156
1208
|
if (output.statusCode >= 300) {
|
|
1157
1209
|
return de_CommandError(output, context);
|
|
1158
1210
|
}
|
|
1159
|
-
const data = await
|
|
1211
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1160
1212
|
let contents = {};
|
|
1161
1213
|
contents = (0, import_smithy_client._json)(data);
|
|
1162
1214
|
const response = {
|
|
@@ -1169,7 +1221,7 @@ var de_DeletePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1169
1221
|
if (output.statusCode >= 300) {
|
|
1170
1222
|
return de_CommandError(output, context);
|
|
1171
1223
|
}
|
|
1172
|
-
const data = await
|
|
1224
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1173
1225
|
let contents = {};
|
|
1174
1226
|
contents = (0, import_smithy_client._json)(data);
|
|
1175
1227
|
const response = {
|
|
@@ -1182,7 +1234,7 @@ var de_DeletePolicyStoreCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1182
1234
|
if (output.statusCode >= 300) {
|
|
1183
1235
|
return de_CommandError(output, context);
|
|
1184
1236
|
}
|
|
1185
|
-
const data = await
|
|
1237
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1186
1238
|
let contents = {};
|
|
1187
1239
|
contents = (0, import_smithy_client._json)(data);
|
|
1188
1240
|
const response = {
|
|
@@ -1195,7 +1247,7 @@ var de_DeletePolicyTemplateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1195
1247
|
if (output.statusCode >= 300) {
|
|
1196
1248
|
return de_CommandError(output, context);
|
|
1197
1249
|
}
|
|
1198
|
-
const data = await
|
|
1250
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1199
1251
|
let contents = {};
|
|
1200
1252
|
contents = (0, import_smithy_client._json)(data);
|
|
1201
1253
|
const response = {
|
|
@@ -1208,7 +1260,7 @@ var de_GetIdentitySourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1208
1260
|
if (output.statusCode >= 300) {
|
|
1209
1261
|
return de_CommandError(output, context);
|
|
1210
1262
|
}
|
|
1211
|
-
const data = await
|
|
1263
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1212
1264
|
let contents = {};
|
|
1213
1265
|
contents = de_GetIdentitySourceOutput(data, context);
|
|
1214
1266
|
const response = {
|
|
@@ -1221,7 +1273,7 @@ var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1221
1273
|
if (output.statusCode >= 300) {
|
|
1222
1274
|
return de_CommandError(output, context);
|
|
1223
1275
|
}
|
|
1224
|
-
const data = await
|
|
1276
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1225
1277
|
let contents = {};
|
|
1226
1278
|
contents = de_GetPolicyOutput(data, context);
|
|
1227
1279
|
const response = {
|
|
@@ -1234,7 +1286,7 @@ var de_GetPolicyStoreCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1234
1286
|
if (output.statusCode >= 300) {
|
|
1235
1287
|
return de_CommandError(output, context);
|
|
1236
1288
|
}
|
|
1237
|
-
const data = await
|
|
1289
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1238
1290
|
let contents = {};
|
|
1239
1291
|
contents = de_GetPolicyStoreOutput(data, context);
|
|
1240
1292
|
const response = {
|
|
@@ -1247,7 +1299,7 @@ var de_GetPolicyTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1247
1299
|
if (output.statusCode >= 300) {
|
|
1248
1300
|
return de_CommandError(output, context);
|
|
1249
1301
|
}
|
|
1250
|
-
const data = await
|
|
1302
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1251
1303
|
let contents = {};
|
|
1252
1304
|
contents = de_GetPolicyTemplateOutput(data, context);
|
|
1253
1305
|
const response = {
|
|
@@ -1260,7 +1312,7 @@ var de_GetSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1260
1312
|
if (output.statusCode >= 300) {
|
|
1261
1313
|
return de_CommandError(output, context);
|
|
1262
1314
|
}
|
|
1263
|
-
const data = await
|
|
1315
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1264
1316
|
let contents = {};
|
|
1265
1317
|
contents = de_GetSchemaOutput(data, context);
|
|
1266
1318
|
const response = {
|
|
@@ -1273,7 +1325,7 @@ var de_IsAuthorizedCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1273
1325
|
if (output.statusCode >= 300) {
|
|
1274
1326
|
return de_CommandError(output, context);
|
|
1275
1327
|
}
|
|
1276
|
-
const data = await
|
|
1328
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1277
1329
|
let contents = {};
|
|
1278
1330
|
contents = (0, import_smithy_client._json)(data);
|
|
1279
1331
|
const response = {
|
|
@@ -1286,7 +1338,7 @@ var de_IsAuthorizedWithTokenCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1286
1338
|
if (output.statusCode >= 300) {
|
|
1287
1339
|
return de_CommandError(output, context);
|
|
1288
1340
|
}
|
|
1289
|
-
const data = await
|
|
1341
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1290
1342
|
let contents = {};
|
|
1291
1343
|
contents = (0, import_smithy_client._json)(data);
|
|
1292
1344
|
const response = {
|
|
@@ -1299,7 +1351,7 @@ var de_ListIdentitySourcesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1299
1351
|
if (output.statusCode >= 300) {
|
|
1300
1352
|
return de_CommandError(output, context);
|
|
1301
1353
|
}
|
|
1302
|
-
const data = await
|
|
1354
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1303
1355
|
let contents = {};
|
|
1304
1356
|
contents = de_ListIdentitySourcesOutput(data, context);
|
|
1305
1357
|
const response = {
|
|
@@ -1312,7 +1364,7 @@ var de_ListPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1312
1364
|
if (output.statusCode >= 300) {
|
|
1313
1365
|
return de_CommandError(output, context);
|
|
1314
1366
|
}
|
|
1315
|
-
const data = await
|
|
1367
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1316
1368
|
let contents = {};
|
|
1317
1369
|
contents = de_ListPoliciesOutput(data, context);
|
|
1318
1370
|
const response = {
|
|
@@ -1325,7 +1377,7 @@ var de_ListPolicyStoresCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1325
1377
|
if (output.statusCode >= 300) {
|
|
1326
1378
|
return de_CommandError(output, context);
|
|
1327
1379
|
}
|
|
1328
|
-
const data = await
|
|
1380
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1329
1381
|
let contents = {};
|
|
1330
1382
|
contents = de_ListPolicyStoresOutput(data, context);
|
|
1331
1383
|
const response = {
|
|
@@ -1338,7 +1390,7 @@ var de_ListPolicyTemplatesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1338
1390
|
if (output.statusCode >= 300) {
|
|
1339
1391
|
return de_CommandError(output, context);
|
|
1340
1392
|
}
|
|
1341
|
-
const data = await
|
|
1393
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1342
1394
|
let contents = {};
|
|
1343
1395
|
contents = de_ListPolicyTemplatesOutput(data, context);
|
|
1344
1396
|
const response = {
|
|
@@ -1351,7 +1403,7 @@ var de_PutSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1351
1403
|
if (output.statusCode >= 300) {
|
|
1352
1404
|
return de_CommandError(output, context);
|
|
1353
1405
|
}
|
|
1354
|
-
const data = await
|
|
1406
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1355
1407
|
let contents = {};
|
|
1356
1408
|
contents = de_PutSchemaOutput(data, context);
|
|
1357
1409
|
const response = {
|
|
@@ -1364,7 +1416,7 @@ var de_UpdateIdentitySourceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1364
1416
|
if (output.statusCode >= 300) {
|
|
1365
1417
|
return de_CommandError(output, context);
|
|
1366
1418
|
}
|
|
1367
|
-
const data = await
|
|
1419
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1368
1420
|
let contents = {};
|
|
1369
1421
|
contents = de_UpdateIdentitySourceOutput(data, context);
|
|
1370
1422
|
const response = {
|
|
@@ -1377,7 +1429,7 @@ var de_UpdatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1377
1429
|
if (output.statusCode >= 300) {
|
|
1378
1430
|
return de_CommandError(output, context);
|
|
1379
1431
|
}
|
|
1380
|
-
const data = await
|
|
1432
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1381
1433
|
let contents = {};
|
|
1382
1434
|
contents = de_UpdatePolicyOutput(data, context);
|
|
1383
1435
|
const response = {
|
|
@@ -1390,7 +1442,7 @@ var de_UpdatePolicyStoreCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1390
1442
|
if (output.statusCode >= 300) {
|
|
1391
1443
|
return de_CommandError(output, context);
|
|
1392
1444
|
}
|
|
1393
|
-
const data = await
|
|
1445
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1394
1446
|
let contents = {};
|
|
1395
1447
|
contents = de_UpdatePolicyStoreOutput(data, context);
|
|
1396
1448
|
const response = {
|
|
@@ -1403,7 +1455,7 @@ var de_UpdatePolicyTemplateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1403
1455
|
if (output.statusCode >= 300) {
|
|
1404
1456
|
return de_CommandError(output, context);
|
|
1405
1457
|
}
|
|
1406
|
-
const data = await
|
|
1458
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1407
1459
|
let contents = {};
|
|
1408
1460
|
contents = de_UpdatePolicyTemplateOutput(data, context);
|
|
1409
1461
|
const response = {
|
|
@@ -1415,9 +1467,9 @@ var de_UpdatePolicyTemplateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1415
1467
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1416
1468
|
const parsedOutput = {
|
|
1417
1469
|
...output,
|
|
1418
|
-
body: await
|
|
1470
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1419
1471
|
};
|
|
1420
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1421
1473
|
switch (errorCode) {
|
|
1422
1474
|
case "AccessDeniedException":
|
|
1423
1475
|
case "com.amazonaws.verifiedpermissions#AccessDeniedException":
|
|
@@ -1758,6 +1810,7 @@ var de_CreatePolicyTemplateOutput = /* @__PURE__ */ __name((output, context) =>
|
|
|
1758
1810
|
}, "de_CreatePolicyTemplateOutput");
|
|
1759
1811
|
var de_GetIdentitySourceOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1760
1812
|
return (0, import_smithy_client.take)(output, {
|
|
1813
|
+
configuration: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1761
1814
|
createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1762
1815
|
details: import_smithy_client._json,
|
|
1763
1816
|
identitySourceId: import_smithy_client.expectString,
|
|
@@ -1809,6 +1862,7 @@ var de_GetSchemaOutput = /* @__PURE__ */ __name((output, context) => {
|
|
|
1809
1862
|
}, "de_GetSchemaOutput");
|
|
1810
1863
|
var de_IdentitySourceItem = /* @__PURE__ */ __name((output, context) => {
|
|
1811
1864
|
return (0, import_smithy_client.take)(output, {
|
|
1865
|
+
configuration: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1812
1866
|
createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1813
1867
|
details: import_smithy_client._json,
|
|
1814
1868
|
identitySourceId: import_smithy_client.expectString,
|
|
@@ -1959,7 +2013,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1959
2013
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1960
2014
|
cfId: output.headers["x-amz-cf-id"]
|
|
1961
2015
|
}), "deserializeMetadata");
|
|
1962
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1963
2016
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(VerifiedPermissionsServiceException);
|
|
1964
2017
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1965
2018
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1986,46 +2039,6 @@ function sharedHeaders(operation) {
|
|
|
1986
2039
|
};
|
|
1987
2040
|
}
|
|
1988
2041
|
__name(sharedHeaders, "sharedHeaders");
|
|
1989
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1990
|
-
if (encoded.length) {
|
|
1991
|
-
return JSON.parse(encoded);
|
|
1992
|
-
}
|
|
1993
|
-
return {};
|
|
1994
|
-
}), "parseBody");
|
|
1995
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1996
|
-
const value = await parseBody(errorBody, context);
|
|
1997
|
-
value.message = value.message ?? value.Message;
|
|
1998
|
-
return value;
|
|
1999
|
-
}, "parseErrorBody");
|
|
2000
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2001
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2002
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2003
|
-
let cleanValue = rawValue;
|
|
2004
|
-
if (typeof cleanValue === "number") {
|
|
2005
|
-
cleanValue = cleanValue.toString();
|
|
2006
|
-
}
|
|
2007
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2008
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2009
|
-
}
|
|
2010
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2011
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2012
|
-
}
|
|
2013
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2014
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2015
|
-
}
|
|
2016
|
-
return cleanValue;
|
|
2017
|
-
}, "sanitizeErrorCode");
|
|
2018
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2019
|
-
if (headerKey !== void 0) {
|
|
2020
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2021
|
-
}
|
|
2022
|
-
if (data.code !== void 0) {
|
|
2023
|
-
return sanitizeErrorCode(data.code);
|
|
2024
|
-
}
|
|
2025
|
-
if (data["__type"] !== void 0) {
|
|
2026
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2027
|
-
}
|
|
2028
|
-
}, "loadRestJsonErrorCode");
|
|
2029
2042
|
|
|
2030
2043
|
// src/commands/BatchIsAuthorizedCommand.ts
|
|
2031
2044
|
var _BatchIsAuthorizedCommand = class _BatchIsAuthorizedCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -2545,6 +2558,8 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
2545
2558
|
ThrottlingException,
|
|
2546
2559
|
ValidationException,
|
|
2547
2560
|
Configuration,
|
|
2561
|
+
ConfigurationDetail,
|
|
2562
|
+
ConfigurationItem,
|
|
2548
2563
|
ConflictException,
|
|
2549
2564
|
ServiceQuotaExceededException,
|
|
2550
2565
|
PolicyDefinition,
|
|
@@ -2564,7 +2579,11 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
2564
2579
|
EntityIdentifierFilterSensitiveLog,
|
|
2565
2580
|
EvaluationErrorItemFilterSensitiveLog,
|
|
2566
2581
|
CognitoUserPoolConfigurationFilterSensitiveLog,
|
|
2582
|
+
CognitoUserPoolConfigurationDetailFilterSensitiveLog,
|
|
2583
|
+
CognitoUserPoolConfigurationItemFilterSensitiveLog,
|
|
2567
2584
|
ConfigurationFilterSensitiveLog,
|
|
2585
|
+
ConfigurationDetailFilterSensitiveLog,
|
|
2586
|
+
ConfigurationItemFilterSensitiveLog,
|
|
2568
2587
|
CreateIdentitySourceInputFilterSensitiveLog,
|
|
2569
2588
|
StaticPolicyDefinitionFilterSensitiveLog,
|
|
2570
2589
|
TemplateLinkedPolicyDefinitionFilterSensitiveLog,
|
|
@@ -88,6 +88,22 @@ export var Configuration;
|
|
|
88
88
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
89
89
|
};
|
|
90
90
|
})(Configuration || (Configuration = {}));
|
|
91
|
+
export var ConfigurationDetail;
|
|
92
|
+
(function (ConfigurationDetail) {
|
|
93
|
+
ConfigurationDetail.visit = (value, visitor) => {
|
|
94
|
+
if (value.cognitoUserPoolConfiguration !== undefined)
|
|
95
|
+
return visitor.cognitoUserPoolConfiguration(value.cognitoUserPoolConfiguration);
|
|
96
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
97
|
+
};
|
|
98
|
+
})(ConfigurationDetail || (ConfigurationDetail = {}));
|
|
99
|
+
export var ConfigurationItem;
|
|
100
|
+
(function (ConfigurationItem) {
|
|
101
|
+
ConfigurationItem.visit = (value, visitor) => {
|
|
102
|
+
if (value.cognitoUserPoolConfiguration !== undefined)
|
|
103
|
+
return visitor.cognitoUserPoolConfiguration(value.cognitoUserPoolConfiguration);
|
|
104
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
105
|
+
};
|
|
106
|
+
})(ConfigurationItem || (ConfigurationItem = {}));
|
|
91
107
|
export class ConflictException extends __BaseException {
|
|
92
108
|
constructor(opts) {
|
|
93
109
|
super({
|
|
@@ -243,6 +259,14 @@ export const CognitoUserPoolConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
243
259
|
...obj,
|
|
244
260
|
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
245
261
|
});
|
|
262
|
+
export const CognitoUserPoolConfigurationDetailFilterSensitiveLog = (obj) => ({
|
|
263
|
+
...obj,
|
|
264
|
+
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
265
|
+
});
|
|
266
|
+
export const CognitoUserPoolConfigurationItemFilterSensitiveLog = (obj) => ({
|
|
267
|
+
...obj,
|
|
268
|
+
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
269
|
+
});
|
|
246
270
|
export const ConfigurationFilterSensitiveLog = (obj) => {
|
|
247
271
|
if (obj.cognitoUserPoolConfiguration !== undefined)
|
|
248
272
|
return {
|
|
@@ -251,6 +275,22 @@ export const ConfigurationFilterSensitiveLog = (obj) => {
|
|
|
251
275
|
if (obj.$unknown !== undefined)
|
|
252
276
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
253
277
|
};
|
|
278
|
+
export const ConfigurationDetailFilterSensitiveLog = (obj) => {
|
|
279
|
+
if (obj.cognitoUserPoolConfiguration !== undefined)
|
|
280
|
+
return {
|
|
281
|
+
cognitoUserPoolConfiguration: CognitoUserPoolConfigurationDetailFilterSensitiveLog(obj.cognitoUserPoolConfiguration),
|
|
282
|
+
};
|
|
283
|
+
if (obj.$unknown !== undefined)
|
|
284
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
285
|
+
};
|
|
286
|
+
export const ConfigurationItemFilterSensitiveLog = (obj) => {
|
|
287
|
+
if (obj.cognitoUserPoolConfiguration !== undefined)
|
|
288
|
+
return {
|
|
289
|
+
cognitoUserPoolConfiguration: CognitoUserPoolConfigurationItemFilterSensitiveLog(obj.cognitoUserPoolConfiguration),
|
|
290
|
+
};
|
|
291
|
+
if (obj.$unknown !== undefined)
|
|
292
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
293
|
+
};
|
|
254
294
|
export const CreateIdentitySourceInputFilterSensitiveLog = (obj) => ({
|
|
255
295
|
...obj,
|
|
256
296
|
...(obj.configuration && { configuration: ConfigurationFilterSensitiveLog(obj.configuration) }),
|
|
@@ -308,6 +348,7 @@ export const GetIdentitySourceOutputFilterSensitiveLog = (obj) => ({
|
|
|
308
348
|
...obj,
|
|
309
349
|
...(obj.details && { details: IdentitySourceDetailsFilterSensitiveLog(obj.details) }),
|
|
310
350
|
...(obj.principalEntityType && { principalEntityType: SENSITIVE_STRING }),
|
|
351
|
+
...(obj.configuration && { configuration: ConfigurationDetailFilterSensitiveLog(obj.configuration) }),
|
|
311
352
|
});
|
|
312
353
|
export const StaticPolicyDefinitionDetailFilterSensitiveLog = (obj) => ({
|
|
313
354
|
...obj,
|
|
@@ -363,6 +404,7 @@ export const IdentitySourceItemFilterSensitiveLog = (obj) => ({
|
|
|
363
404
|
...obj,
|
|
364
405
|
...(obj.details && { details: IdentitySourceItemDetailsFilterSensitiveLog(obj.details) }),
|
|
365
406
|
...(obj.principalEntityType && { principalEntityType: SENSITIVE_STRING }),
|
|
407
|
+
...(obj.configuration && { configuration: ConfigurationItemFilterSensitiveLog(obj.configuration) }),
|
|
366
408
|
});
|
|
367
409
|
export const ListIdentitySourcesOutputFilterSensitiveLog = (obj) => ({
|
|
368
410
|
...obj,
|
|
@@ -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, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectString as __expectString, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -833,6 +833,7 @@ const de_CreatePolicyTemplateOutput = (output, context) => {
|
|
|
833
833
|
};
|
|
834
834
|
const de_GetIdentitySourceOutput = (output, context) => {
|
|
835
835
|
return take(output, {
|
|
836
|
+
configuration: (_) => _json(__expectUnion(_)),
|
|
836
837
|
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
837
838
|
details: _json,
|
|
838
839
|
identitySourceId: __expectString,
|
|
@@ -884,6 +885,7 @@ const de_GetSchemaOutput = (output, context) => {
|
|
|
884
885
|
};
|
|
885
886
|
const de_IdentitySourceItem = (output, context) => {
|
|
886
887
|
return take(output, {
|
|
888
|
+
configuration: (_) => _json(__expectUnion(_)),
|
|
887
889
|
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
888
890
|
details: _json,
|
|
889
891
|
identitySourceId: __expectString,
|
|
@@ -1070,43 +1072,3 @@ function sharedHeaders(operation) {
|
|
|
1070
1072
|
"x-amz-target": `VerifiedPermissions.${operation}`,
|
|
1071
1073
|
};
|
|
1072
1074
|
}
|
|
1073
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1074
|
-
if (encoded.length) {
|
|
1075
|
-
return JSON.parse(encoded);
|
|
1076
|
-
}
|
|
1077
|
-
return {};
|
|
1078
|
-
});
|
|
1079
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1080
|
-
const value = await parseBody(errorBody, context);
|
|
1081
|
-
value.message = value.message ?? value.Message;
|
|
1082
|
-
return value;
|
|
1083
|
-
};
|
|
1084
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1085
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1086
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1087
|
-
let cleanValue = rawValue;
|
|
1088
|
-
if (typeof cleanValue === "number") {
|
|
1089
|
-
cleanValue = cleanValue.toString();
|
|
1090
|
-
}
|
|
1091
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1092
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1093
|
-
}
|
|
1094
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1095
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1096
|
-
}
|
|
1097
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1098
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1099
|
-
}
|
|
1100
|
-
return cleanValue;
|
|
1101
|
-
};
|
|
1102
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1103
|
-
if (headerKey !== undefined) {
|
|
1104
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1105
|
-
}
|
|
1106
|
-
if (data.code !== undefined) {
|
|
1107
|
-
return sanitizeErrorCode(data.code);
|
|
1108
|
-
}
|
|
1109
|
-
if (data["__type"] !== undefined) {
|
|
1110
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
@@ -55,7 +55,7 @@ declare const CreateIdentitySourceCommand_base: {
|
|
|
55
55
|
* <note>
|
|
56
56
|
* <p>Verified Permissions is <i>
|
|
57
57
|
* <a href="https://wikipedia.org/wiki/Eventual_consistency">eventually consistent</a>
|
|
58
|
-
* </i>. It can take a few seconds for a new or changed element to
|
|
58
|
+
* </i>. It can take a few seconds for a new or changed element to propagate through
|
|
59
59
|
* the service and be visible in the results of other Verified Permissions operations.</p>
|
|
60
60
|
* </note>
|
|
61
61
|
* @example
|
|
@@ -50,7 +50,7 @@ declare const CreatePolicyCommand_base: {
|
|
|
50
50
|
* <note>
|
|
51
51
|
* <p>Verified Permissions is <i>
|
|
52
52
|
* <a href="https://wikipedia.org/wiki/Eventual_consistency">eventually consistent</a>
|
|
53
|
-
* </i>. It can take a few seconds for a new or changed element to
|
|
53
|
+
* </i>. It can take a few seconds for a new or changed element to propagate through
|
|
54
54
|
* the service and be visible in the results of other Verified Permissions operations.</p>
|
|
55
55
|
* </note>
|
|
56
56
|
* @example
|
|
@@ -34,7 +34,7 @@ declare const CreatePolicyStoreCommand_base: {
|
|
|
34
34
|
* <note>
|
|
35
35
|
* <p>Verified Permissions is <i>
|
|
36
36
|
* <a href="https://wikipedia.org/wiki/Eventual_consistency">eventually consistent</a>
|
|
37
|
-
* </i>. It can take a few seconds for a new or changed element to
|
|
37
|
+
* </i>. It can take a few seconds for a new or changed element to propagate through
|
|
38
38
|
* the service and be visible in the results of other Verified Permissions operations.</p>
|
|
39
39
|
* </note>
|
|
40
40
|
* @example
|
|
@@ -36,7 +36,7 @@ declare const CreatePolicyTemplateCommand_base: {
|
|
|
36
36
|
* <note>
|
|
37
37
|
* <p>Verified Permissions is <i>
|
|
38
38
|
* <a href="https://wikipedia.org/wiki/Eventual_consistency">eventually consistent</a>
|
|
39
|
-
* </i>. It can take a few seconds for a new or changed element to
|
|
39
|
+
* </i>. It can take a few seconds for a new or changed element to propagate through
|
|
40
40
|
* the service and be visible in the results of other Verified Permissions operations.</p>
|
|
41
41
|
* </note>
|
|
42
42
|
* @example
|
|
@@ -53,6 +53,15 @@ declare const GetIdentitySourceCommand_base: {
|
|
|
53
53
|
* // lastUpdatedDate: new Date("TIMESTAMP"), // required
|
|
54
54
|
* // policyStoreId: "STRING_VALUE", // required
|
|
55
55
|
* // principalEntityType: "STRING_VALUE", // required
|
|
56
|
+
* // configuration: { // ConfigurationDetail Union: only one key present
|
|
57
|
+
* // cognitoUserPoolConfiguration: { // CognitoUserPoolConfigurationDetail
|
|
58
|
+
* // userPoolArn: "STRING_VALUE", // required
|
|
59
|
+
* // clientIds: [ // required
|
|
60
|
+
* // "STRING_VALUE",
|
|
61
|
+
* // ],
|
|
62
|
+
* // issuer: "STRING_VALUE", // required
|
|
63
|
+
* // },
|
|
64
|
+
* // },
|
|
56
65
|
* // };
|
|
57
66
|
*
|
|
58
67
|
* ```
|
|
@@ -62,6 +62,15 @@ declare const ListIdentitySourcesCommand_base: {
|
|
|
62
62
|
* // lastUpdatedDate: new Date("TIMESTAMP"), // required
|
|
63
63
|
* // policyStoreId: "STRING_VALUE", // required
|
|
64
64
|
* // principalEntityType: "STRING_VALUE", // required
|
|
65
|
+
* // configuration: { // ConfigurationItem Union: only one key present
|
|
66
|
+
* // cognitoUserPoolConfiguration: { // CognitoUserPoolConfigurationItem
|
|
67
|
+
* // userPoolArn: "STRING_VALUE", // required
|
|
68
|
+
* // clientIds: [ // required
|
|
69
|
+
* // "STRING_VALUE",
|
|
70
|
+
* // ],
|
|
71
|
+
* // issuer: "STRING_VALUE", // required
|
|
72
|
+
* // },
|
|
73
|
+
* // },
|
|
65
74
|
* // },
|
|
66
75
|
* // ],
|
|
67
76
|
* // };
|
|
@@ -34,7 +34,7 @@ declare const PutSchemaCommand_base: {
|
|
|
34
34
|
* <note>
|
|
35
35
|
* <p>Verified Permissions is <i>
|
|
36
36
|
* <a href="https://wikipedia.org/wiki/Eventual_consistency">eventually consistent</a>
|
|
37
|
-
* </i>. It can take a few seconds for a new or changed element to
|
|
37
|
+
* </i>. It can take a few seconds for a new or changed element to propagate through
|
|
38
38
|
* the service and be visible in the results of other Verified Permissions operations.</p>
|
|
39
39
|
* </note>
|
|
40
40
|
* @example
|
|
@@ -31,7 +31,7 @@ declare const UpdateIdentitySourceCommand_base: {
|
|
|
31
31
|
* <note>
|
|
32
32
|
* <p>Verified Permissions is <i>
|
|
33
33
|
* <a href="https://wikipedia.org/wiki/Eventual_consistency">eventually consistent</a>
|
|
34
|
-
* </i>. It can take a few seconds for a new or changed element to
|
|
34
|
+
* </i>. It can take a few seconds for a new or changed element to propagate through
|
|
35
35
|
* the service and be visible in the results of other Verified Permissions operations.</p>
|
|
36
36
|
* </note>
|
|
37
37
|
* @example
|
|
@@ -38,7 +38,7 @@ declare const UpdatePolicyCommand_base: {
|
|
|
38
38
|
* stored.</p>
|
|
39
39
|
* </li>
|
|
40
40
|
* <li>
|
|
41
|
-
* <p>When you edit a static policy,
|
|
41
|
+
* <p>When you edit a static policy, you can change only certain elements of a static
|
|
42
42
|
* policy:</p>
|
|
43
43
|
* <ul>
|
|
44
44
|
* <li>
|
|
@@ -74,7 +74,7 @@ declare const UpdatePolicyCommand_base: {
|
|
|
74
74
|
* <note>
|
|
75
75
|
* <p>Verified Permissions is <i>
|
|
76
76
|
* <a href="https://wikipedia.org/wiki/Eventual_consistency">eventually consistent</a>
|
|
77
|
-
* </i>. It can take a few seconds for a new or changed element to
|
|
77
|
+
* </i>. It can take a few seconds for a new or changed element to propagate through
|
|
78
78
|
* the service and be visible in the results of other Verified Permissions operations.</p>
|
|
79
79
|
* </note>
|
|
80
80
|
* @example
|
|
@@ -30,7 +30,7 @@ declare const UpdatePolicyStoreCommand_base: {
|
|
|
30
30
|
* <note>
|
|
31
31
|
* <p>Verified Permissions is <i>
|
|
32
32
|
* <a href="https://wikipedia.org/wiki/Eventual_consistency">eventually consistent</a>
|
|
33
|
-
* </i>. It can take a few seconds for a new or changed element to
|
|
33
|
+
* </i>. It can take a few seconds for a new or changed element to propagate through
|
|
34
34
|
* the service and be visible in the results of other Verified Permissions operations.</p>
|
|
35
35
|
* </note>
|
|
36
36
|
* @example
|
|
@@ -36,7 +36,7 @@ declare const UpdatePolicyTemplateCommand_base: {
|
|
|
36
36
|
* <note>
|
|
37
37
|
* <p>Verified Permissions is <i>
|
|
38
38
|
* <a href="https://wikipedia.org/wiki/Eventual_consistency">eventually consistent</a>
|
|
39
|
-
* </i>. It can take a few seconds for a new or changed element to
|
|
39
|
+
* </i>. It can take a few seconds for a new or changed element to propagate through
|
|
40
40
|
* the service and be visible in the results of other Verified Permissions operations.</p>
|
|
41
41
|
* </note>
|
|
42
42
|
* @example
|
|
@@ -297,7 +297,7 @@ export declare class ValidationException extends __BaseException {
|
|
|
297
297
|
* <p>The configuration for an identity source that represents a connection to an Amazon Cognito user pool used
|
|
298
298
|
* as an identity provider for Verified Permissions.</p>
|
|
299
299
|
* <p>This data type is used as a field that is part of an <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_Configuration.html">Configuration</a> structure that is
|
|
300
|
-
* used as a parameter to
|
|
300
|
+
* used as a parameter to <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html">CreateIdentitySource</a>.</p>
|
|
301
301
|
* <p>Example:<code>"CognitoUserPoolConfiguration":\{"UserPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","ClientIds":
|
|
302
302
|
* ["a1b2c3d4e5f6g7h8i9j0kalbmc"]\}</code>
|
|
303
303
|
* </p>
|
|
@@ -321,6 +321,82 @@ export interface CognitoUserPoolConfiguration {
|
|
|
321
321
|
*/
|
|
322
322
|
clientIds?: string[];
|
|
323
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* @public
|
|
326
|
+
* <p>The configuration for an identity source that represents a connection to an Amazon Cognito user pool used
|
|
327
|
+
* as an identity provider for Verified Permissions.</p>
|
|
328
|
+
* <p>This data type is used as a field that is part of an <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ConfigurationDetail.html">ConfigurationDetail</a> structure that is
|
|
329
|
+
* part of the response to <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetIdentitySource.html">GetIdentitySource</a>.</p>
|
|
330
|
+
* <p>Example:<code>"CognitoUserPoolConfiguration":\{"UserPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","ClientIds":
|
|
331
|
+
* ["a1b2c3d4e5f6g7h8i9j0kalbmc"]\}</code>
|
|
332
|
+
* </p>
|
|
333
|
+
*/
|
|
334
|
+
export interface CognitoUserPoolConfigurationDetail {
|
|
335
|
+
/**
|
|
336
|
+
* @public
|
|
337
|
+
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of the Amazon Cognito user pool that contains the identities to be
|
|
338
|
+
* authorized.</p>
|
|
339
|
+
* <p>Example: <code>"userPoolArn":
|
|
340
|
+
* "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"</code>
|
|
341
|
+
* </p>
|
|
342
|
+
*/
|
|
343
|
+
userPoolArn: string | undefined;
|
|
344
|
+
/**
|
|
345
|
+
* @public
|
|
346
|
+
* <p>The unique application client IDs that are associated with the specified Amazon Cognito user
|
|
347
|
+
* pool.</p>
|
|
348
|
+
* <p>Example: <code>"clientIds": ["&ExampleCogClientId;"]</code>
|
|
349
|
+
* </p>
|
|
350
|
+
*/
|
|
351
|
+
clientIds: string[] | undefined;
|
|
352
|
+
/**
|
|
353
|
+
* @public
|
|
354
|
+
* <p>The OpenID Connect (OIDC) <code>issuer</code> ID of the Amazon Cognito user pool that contains the identities to be
|
|
355
|
+
* authorized.</p>
|
|
356
|
+
* <p>Example: <code>"issuer":
|
|
357
|
+
* "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_1a2b3c4d5"</code>
|
|
358
|
+
* </p>
|
|
359
|
+
*/
|
|
360
|
+
issuer: string | undefined;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* @public
|
|
364
|
+
* <p>The configuration for an identity source that represents a connection to an Amazon Cognito user pool used
|
|
365
|
+
* as an identity provider for Verified Permissions.</p>
|
|
366
|
+
* <p>This data type is used as a field that is part of the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ConfigurationItem.html">ConfigurationItem</a> structure that is
|
|
367
|
+
* part of the response to <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListIdentitySources.html">ListIdentitySources</a>.</p>
|
|
368
|
+
* <p>Example:<code>"CognitoUserPoolConfiguration":\{"UserPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","ClientIds":
|
|
369
|
+
* ["a1b2c3d4e5f6g7h8i9j0kalbmc"]\}</code>
|
|
370
|
+
* </p>
|
|
371
|
+
*/
|
|
372
|
+
export interface CognitoUserPoolConfigurationItem {
|
|
373
|
+
/**
|
|
374
|
+
* @public
|
|
375
|
+
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of the Amazon Cognito user pool that contains the identities to be
|
|
376
|
+
* authorized.</p>
|
|
377
|
+
* <p>Example: <code>"userPoolArn":
|
|
378
|
+
* "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"</code>
|
|
379
|
+
* </p>
|
|
380
|
+
*/
|
|
381
|
+
userPoolArn: string | undefined;
|
|
382
|
+
/**
|
|
383
|
+
* @public
|
|
384
|
+
* <p>The unique application client IDs that are associated with the specified Amazon Cognito user
|
|
385
|
+
* pool.</p>
|
|
386
|
+
* <p>Example: <code>"clientIds": ["&ExampleCogClientId;"]</code>
|
|
387
|
+
* </p>
|
|
388
|
+
*/
|
|
389
|
+
clientIds: string[] | undefined;
|
|
390
|
+
/**
|
|
391
|
+
* @public
|
|
392
|
+
* <p>The OpenID Connect (OIDC) <code>issuer</code> ID of the Amazon Cognito user pool that contains the identities to be
|
|
393
|
+
* authorized.</p>
|
|
394
|
+
* <p>Example: <code>"issuer":
|
|
395
|
+
* "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_1a2b3c4d5"</code>
|
|
396
|
+
* </p>
|
|
397
|
+
*/
|
|
398
|
+
issuer: string | undefined;
|
|
399
|
+
}
|
|
324
400
|
/**
|
|
325
401
|
* @public
|
|
326
402
|
* <p>Contains configuration information used when creating a new identity source.</p>
|
|
@@ -365,6 +441,82 @@ export declare namespace Configuration {
|
|
|
365
441
|
}
|
|
366
442
|
const visit: <T>(value: Configuration, visitor: Visitor<T>) => T;
|
|
367
443
|
}
|
|
444
|
+
/**
|
|
445
|
+
* @public
|
|
446
|
+
* <p>Contains configuration information about an identity source.</p>
|
|
447
|
+
* <p>This data type is a response parameter to the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetIdentitySource.html">GetIdentitySource</a>
|
|
448
|
+
* operation.</p>
|
|
449
|
+
*/
|
|
450
|
+
export type ConfigurationDetail = ConfigurationDetail.CognitoUserPoolConfigurationMember | ConfigurationDetail.$UnknownMember;
|
|
451
|
+
/**
|
|
452
|
+
* @public
|
|
453
|
+
*/
|
|
454
|
+
export declare namespace ConfigurationDetail {
|
|
455
|
+
/**
|
|
456
|
+
* @public
|
|
457
|
+
* <p>Contains configuration details of a Amazon Cognito user pool that Verified Permissions can use as a source of
|
|
458
|
+
* authenticated identities as entities. It specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of a Amazon Cognito user pool
|
|
459
|
+
* and one or more application client IDs.</p>
|
|
460
|
+
* <p>Example:
|
|
461
|
+
* <code>"configuration":\{"cognitoUserPoolConfiguration":\{"userPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","clientIds":
|
|
462
|
+
* ["a1b2c3d4e5f6g7h8i9j0kalbmc"]\}\}</code>
|
|
463
|
+
* </p>
|
|
464
|
+
*/
|
|
465
|
+
interface CognitoUserPoolConfigurationMember {
|
|
466
|
+
cognitoUserPoolConfiguration: CognitoUserPoolConfigurationDetail;
|
|
467
|
+
$unknown?: never;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* @public
|
|
471
|
+
*/
|
|
472
|
+
interface $UnknownMember {
|
|
473
|
+
cognitoUserPoolConfiguration?: never;
|
|
474
|
+
$unknown: [string, any];
|
|
475
|
+
}
|
|
476
|
+
interface Visitor<T> {
|
|
477
|
+
cognitoUserPoolConfiguration: (value: CognitoUserPoolConfigurationDetail) => T;
|
|
478
|
+
_: (name: string, value: any) => T;
|
|
479
|
+
}
|
|
480
|
+
const visit: <T>(value: ConfigurationDetail, visitor: Visitor<T>) => T;
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* @public
|
|
484
|
+
* <p>Contains configuration information about an identity source.</p>
|
|
485
|
+
* <p>This data type is a response parameter to the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListIdentitySources.html">ListIdentitySources</a>
|
|
486
|
+
* operation.</p>
|
|
487
|
+
*/
|
|
488
|
+
export type ConfigurationItem = ConfigurationItem.CognitoUserPoolConfigurationMember | ConfigurationItem.$UnknownMember;
|
|
489
|
+
/**
|
|
490
|
+
* @public
|
|
491
|
+
*/
|
|
492
|
+
export declare namespace ConfigurationItem {
|
|
493
|
+
/**
|
|
494
|
+
* @public
|
|
495
|
+
* <p>Contains configuration details of a Amazon Cognito user pool that Verified Permissions can use as a source of
|
|
496
|
+
* authenticated identities as entities. It specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of a Amazon Cognito user pool
|
|
497
|
+
* and one or more application client IDs.</p>
|
|
498
|
+
* <p>Example:
|
|
499
|
+
* <code>"configuration":\{"cognitoUserPoolConfiguration":\{"userPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","clientIds":
|
|
500
|
+
* ["a1b2c3d4e5f6g7h8i9j0kalbmc"]\}\}</code>
|
|
501
|
+
* </p>
|
|
502
|
+
*/
|
|
503
|
+
interface CognitoUserPoolConfigurationMember {
|
|
504
|
+
cognitoUserPoolConfiguration: CognitoUserPoolConfigurationItem;
|
|
505
|
+
$unknown?: never;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* @public
|
|
509
|
+
*/
|
|
510
|
+
interface $UnknownMember {
|
|
511
|
+
cognitoUserPoolConfiguration?: never;
|
|
512
|
+
$unknown: [string, any];
|
|
513
|
+
}
|
|
514
|
+
interface Visitor<T> {
|
|
515
|
+
cognitoUserPoolConfiguration: (value: CognitoUserPoolConfigurationItem) => T;
|
|
516
|
+
_: (name: string, value: any) => T;
|
|
517
|
+
}
|
|
518
|
+
const visit: <T>(value: ConfigurationItem, visitor: Visitor<T>) => T;
|
|
519
|
+
}
|
|
368
520
|
/**
|
|
369
521
|
* @public
|
|
370
522
|
* <p>Contains information about a resource conflict.</p>
|
|
@@ -414,8 +566,11 @@ export interface CreateIdentitySourceInput {
|
|
|
414
566
|
* <p>If you don't provide this value, then Amazon Web Services generates a random one for
|
|
415
567
|
* you.</p>
|
|
416
568
|
* <p>If you retry the operation with the same <code>ClientToken</code>, but with
|
|
417
|
-
* different parameters, the retry fails with an <code>
|
|
569
|
+
* different parameters, the retry fails with an <code>ConflictException</code>
|
|
418
570
|
* error.</p>
|
|
571
|
+
* <p>Verified Permissions recognizes a <code>ClientToken</code> for eight hours. After eight hours,
|
|
572
|
+
* the next request with the same parameters performs the operation again regardless of
|
|
573
|
+
* the value of <code>ClientToken</code>.</p>
|
|
419
574
|
*/
|
|
420
575
|
clientToken?: string;
|
|
421
576
|
/**
|
|
@@ -610,8 +765,11 @@ export interface CreatePolicyInput {
|
|
|
610
765
|
* <p>If you don't provide this value, then Amazon Web Services generates a random one for
|
|
611
766
|
* you.</p>
|
|
612
767
|
* <p>If you retry the operation with the same <code>ClientToken</code>, but with
|
|
613
|
-
* different parameters, the retry fails with an <code>
|
|
768
|
+
* different parameters, the retry fails with an <code>ConflictException</code>
|
|
614
769
|
* error.</p>
|
|
770
|
+
* <p>Verified Permissions recognizes a <code>ClientToken</code> for eight hours. After eight hours,
|
|
771
|
+
* the next request with the same parameters performs the operation again regardless of
|
|
772
|
+
* the value of <code>ClientToken</code>.</p>
|
|
615
773
|
*/
|
|
616
774
|
clientToken?: string;
|
|
617
775
|
/**
|
|
@@ -743,8 +901,11 @@ export interface CreatePolicyStoreInput {
|
|
|
743
901
|
* <p>If you don't provide this value, then Amazon Web Services generates a random one for
|
|
744
902
|
* you.</p>
|
|
745
903
|
* <p>If you retry the operation with the same <code>ClientToken</code>, but with
|
|
746
|
-
* different parameters, the retry fails with an <code>
|
|
904
|
+
* different parameters, the retry fails with an <code>ConflictException</code>
|
|
747
905
|
* error.</p>
|
|
906
|
+
* <p>Verified Permissions recognizes a <code>ClientToken</code> for eight hours. After eight hours,
|
|
907
|
+
* the next request with the same parameters performs the operation again regardless of
|
|
908
|
+
* the value of <code>ClientToken</code>.</p>
|
|
748
909
|
*/
|
|
749
910
|
clientToken?: string;
|
|
750
911
|
/**
|
|
@@ -806,8 +967,11 @@ export interface CreatePolicyTemplateInput {
|
|
|
806
967
|
* <p>If you don't provide this value, then Amazon Web Services generates a random one for
|
|
807
968
|
* you.</p>
|
|
808
969
|
* <p>If you retry the operation with the same <code>ClientToken</code>, but with
|
|
809
|
-
* different parameters, the retry fails with an <code>
|
|
970
|
+
* different parameters, the retry fails with an <code>ConflictException</code>
|
|
810
971
|
* error.</p>
|
|
972
|
+
* <p>Verified Permissions recognizes a <code>ClientToken</code> for eight hours. After eight hours,
|
|
973
|
+
* the next request with the same parameters performs the operation again regardless of
|
|
974
|
+
* the value of <code>ClientToken</code>.</p>
|
|
811
975
|
*/
|
|
812
976
|
clientToken?: string;
|
|
813
977
|
/**
|
|
@@ -1003,25 +1167,33 @@ export declare const OpenIdIssuer: {
|
|
|
1003
1167
|
export type OpenIdIssuer = (typeof OpenIdIssuer)[keyof typeof OpenIdIssuer];
|
|
1004
1168
|
/**
|
|
1005
1169
|
* @public
|
|
1170
|
+
* @deprecated
|
|
1171
|
+
*
|
|
1006
1172
|
* <p>A structure that contains configuration of the identity source.</p>
|
|
1007
|
-
* <p>This data type
|
|
1008
|
-
* operation
|
|
1173
|
+
* <p>This data type was a response parameter for the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetIdentitySource.html">GetIdentitySource</a>
|
|
1174
|
+
* operation. Replaced by <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ConfigurationDetail.html">ConfigurationDetail</a>.</p>
|
|
1009
1175
|
*/
|
|
1010
1176
|
export interface IdentitySourceDetails {
|
|
1011
1177
|
/**
|
|
1012
1178
|
* @public
|
|
1179
|
+
* @deprecated
|
|
1180
|
+
*
|
|
1013
1181
|
* <p>The application client IDs associated with the specified Amazon Cognito user pool that are
|
|
1014
1182
|
* enabled for this identity source.</p>
|
|
1015
1183
|
*/
|
|
1016
1184
|
clientIds?: string[];
|
|
1017
1185
|
/**
|
|
1018
1186
|
* @public
|
|
1187
|
+
* @deprecated
|
|
1188
|
+
*
|
|
1019
1189
|
* <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of the Amazon Cognito user pool whose identities are accessible to this Verified Permissions
|
|
1020
1190
|
* policy store.</p>
|
|
1021
1191
|
*/
|
|
1022
1192
|
userPoolArn?: string;
|
|
1023
1193
|
/**
|
|
1024
1194
|
* @public
|
|
1195
|
+
* @deprecated
|
|
1196
|
+
*
|
|
1025
1197
|
* <p>The well-known URL that points to this user pool's OIDC discovery endpoint. This is a
|
|
1026
1198
|
* URL string in the following format. This URL replaces the placeholders for both the
|
|
1027
1199
|
* Amazon Web Services Region and the user pool identifier with those appropriate for this user
|
|
@@ -1033,6 +1205,8 @@ export interface IdentitySourceDetails {
|
|
|
1033
1205
|
discoveryUrl?: string;
|
|
1034
1206
|
/**
|
|
1035
1207
|
* @public
|
|
1208
|
+
* @deprecated
|
|
1209
|
+
*
|
|
1036
1210
|
* <p>A string that identifies the type of OIDC service represented by this identity source. </p>
|
|
1037
1211
|
* <p>At this time, the only valid value is <code>cognito</code>.</p>
|
|
1038
1212
|
*/
|
|
@@ -1049,9 +1223,11 @@ export interface GetIdentitySourceOutput {
|
|
|
1049
1223
|
createdDate: Date | undefined;
|
|
1050
1224
|
/**
|
|
1051
1225
|
* @public
|
|
1226
|
+
* @deprecated
|
|
1227
|
+
*
|
|
1052
1228
|
* <p>A structure that describes the configuration of the identity source.</p>
|
|
1053
1229
|
*/
|
|
1054
|
-
details
|
|
1230
|
+
details?: IdentitySourceDetails;
|
|
1055
1231
|
/**
|
|
1056
1232
|
* @public
|
|
1057
1233
|
* <p>The ID of the identity source.</p>
|
|
@@ -1073,6 +1249,11 @@ export interface GetIdentitySourceOutput {
|
|
|
1073
1249
|
* identity source.</p>
|
|
1074
1250
|
*/
|
|
1075
1251
|
principalEntityType: string | undefined;
|
|
1252
|
+
/**
|
|
1253
|
+
* @public
|
|
1254
|
+
* <p>Contains configuration information about an identity source.</p>
|
|
1255
|
+
*/
|
|
1256
|
+
configuration?: ConfigurationDetail;
|
|
1076
1257
|
}
|
|
1077
1258
|
/**
|
|
1078
1259
|
* @public
|
|
@@ -1111,10 +1292,7 @@ export interface StaticPolicyDefinitionDetail {
|
|
|
1111
1292
|
}
|
|
1112
1293
|
/**
|
|
1113
1294
|
* @public
|
|
1114
|
-
* <p>Contains information about a policy that was </p>
|
|
1115
|
-
* <p/>
|
|
1116
|
-
* <p>created by instantiating a policy template. </p>
|
|
1117
|
-
* <p>This </p>
|
|
1295
|
+
* <p>Contains information about a policy that was created by instantiating a policy template. </p>
|
|
1118
1296
|
*/
|
|
1119
1297
|
export interface TemplateLinkedPolicyDefinitionDetail {
|
|
1120
1298
|
/**
|
|
@@ -1369,7 +1547,7 @@ export interface GetSchemaOutput {
|
|
|
1369
1547
|
* @public
|
|
1370
1548
|
* <p>A structure that defines characteristics of an identity source that you can use to
|
|
1371
1549
|
* filter.</p>
|
|
1372
|
-
* <p>This data type is
|
|
1550
|
+
* <p>This data type is a request parameter for the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListIdentityStores.html">ListIdentityStores</a>
|
|
1373
1551
|
* operation.</p>
|
|
1374
1552
|
*/
|
|
1375
1553
|
export interface IdentitySourceFilter {
|
|
@@ -1421,24 +1599,32 @@ export interface ListIdentitySourcesInput {
|
|
|
1421
1599
|
}
|
|
1422
1600
|
/**
|
|
1423
1601
|
* @public
|
|
1602
|
+
* @deprecated
|
|
1603
|
+
*
|
|
1424
1604
|
* <p>A structure that contains configuration of the identity source.</p>
|
|
1425
|
-
* <p>This data type
|
|
1426
|
-
* operation
|
|
1605
|
+
* <p>This data type was a response parameter for the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListIdentitySources.html">ListIdentitySources</a>
|
|
1606
|
+
* operation. Replaced by <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ConfigurationItem.html">ConfigurationItem</a>.</p>
|
|
1427
1607
|
*/
|
|
1428
1608
|
export interface IdentitySourceItemDetails {
|
|
1429
1609
|
/**
|
|
1430
1610
|
* @public
|
|
1611
|
+
* @deprecated
|
|
1612
|
+
*
|
|
1431
1613
|
* <p>The application client IDs associated with the specified Amazon Cognito user pool that are
|
|
1432
1614
|
* enabled for this identity source.</p>
|
|
1433
1615
|
*/
|
|
1434
1616
|
clientIds?: string[];
|
|
1435
1617
|
/**
|
|
1436
1618
|
* @public
|
|
1619
|
+
* @deprecated
|
|
1620
|
+
*
|
|
1437
1621
|
* <p>The Amazon Cognito user pool whose identities are accessible to this Verified Permissions policy store.</p>
|
|
1438
1622
|
*/
|
|
1439
1623
|
userPoolArn?: string;
|
|
1440
1624
|
/**
|
|
1441
1625
|
* @public
|
|
1626
|
+
* @deprecated
|
|
1627
|
+
*
|
|
1442
1628
|
* <p>The well-known URL that points to this user pool's OIDC discovery endpoint. This is a
|
|
1443
1629
|
* URL string in the following format. This URL replaces the placeholders for both the
|
|
1444
1630
|
* Amazon Web Services Region and the user pool identifier with those appropriate for this user
|
|
@@ -1450,6 +1636,8 @@ export interface IdentitySourceItemDetails {
|
|
|
1450
1636
|
discoveryUrl?: string;
|
|
1451
1637
|
/**
|
|
1452
1638
|
* @public
|
|
1639
|
+
* @deprecated
|
|
1640
|
+
*
|
|
1453
1641
|
* <p>A string that identifies the type of OIDC service represented by this identity source. </p>
|
|
1454
1642
|
* <p>At this time, the only valid value is <code>cognito</code>.</p>
|
|
1455
1643
|
*/
|
|
@@ -1458,7 +1646,7 @@ export interface IdentitySourceItemDetails {
|
|
|
1458
1646
|
/**
|
|
1459
1647
|
* @public
|
|
1460
1648
|
* <p>A structure that defines an identity source.</p>
|
|
1461
|
-
* <p>This data type is
|
|
1649
|
+
* <p>This data type is a response parameter to the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListIdentitySources.html">ListIdentitySources</a>
|
|
1462
1650
|
* operation.</p>
|
|
1463
1651
|
*/
|
|
1464
1652
|
export interface IdentitySourceItem {
|
|
@@ -1469,10 +1657,12 @@ export interface IdentitySourceItem {
|
|
|
1469
1657
|
createdDate: Date | undefined;
|
|
1470
1658
|
/**
|
|
1471
1659
|
* @public
|
|
1660
|
+
* @deprecated
|
|
1661
|
+
*
|
|
1472
1662
|
* <p>A structure that contains the details of the associated identity provider
|
|
1473
1663
|
* (IdP).</p>
|
|
1474
1664
|
*/
|
|
1475
|
-
details
|
|
1665
|
+
details?: IdentitySourceItemDetails;
|
|
1476
1666
|
/**
|
|
1477
1667
|
* @public
|
|
1478
1668
|
* <p>The unique identifier of the identity source.</p>
|
|
@@ -1494,6 +1684,11 @@ export interface IdentitySourceItem {
|
|
|
1494
1684
|
* identity source.</p>
|
|
1495
1685
|
*/
|
|
1496
1686
|
principalEntityType: string | undefined;
|
|
1687
|
+
/**
|
|
1688
|
+
* @public
|
|
1689
|
+
* <p>Contains configuration information about an identity source.</p>
|
|
1690
|
+
*/
|
|
1691
|
+
configuration?: ConfigurationItem;
|
|
1497
1692
|
}
|
|
1498
1693
|
/**
|
|
1499
1694
|
* @public
|
|
@@ -2810,16 +3005,20 @@ export interface IsAuthorizedWithTokenInput {
|
|
|
2810
3005
|
* @public
|
|
2811
3006
|
* <p>Specifies an identity token for the principal to be authorized. This token is provided
|
|
2812
3007
|
* to you by the identity provider (IdP) associated with the specified identity source. You must
|
|
2813
|
-
* specify either an <code>
|
|
3008
|
+
* specify either an <code>accessToken</code>, an <code>identityToken</code>, or
|
|
2814
3009
|
* both.</p>
|
|
3010
|
+
* <p>Must be an ID token. Verified Permissions returns an error if the <code>token_use</code> claim in the
|
|
3011
|
+
* submitted token isn't <code>id</code>.</p>
|
|
2815
3012
|
*/
|
|
2816
3013
|
identityToken?: string;
|
|
2817
3014
|
/**
|
|
2818
3015
|
* @public
|
|
2819
3016
|
* <p>Specifies an access token for the principal to be authorized. This token is provided
|
|
2820
3017
|
* to you by the identity provider (IdP) associated with the specified identity source. You must
|
|
2821
|
-
* specify either an <code>
|
|
3018
|
+
* specify either an <code>accessToken</code>, an <code>identityToken</code>, or
|
|
2822
3019
|
* both.</p>
|
|
3020
|
+
* <p>Must be an access token. Verified Permissions returns an error if the <code>token_use</code> claim in
|
|
3021
|
+
* the submitted token isn't <code>access</code>.</p>
|
|
2823
3022
|
*/
|
|
2824
3023
|
accessToken?: string;
|
|
2825
3024
|
/**
|
|
@@ -2907,10 +3106,26 @@ export declare const EvaluationErrorItemFilterSensitiveLog: (obj: EvaluationErro
|
|
|
2907
3106
|
* @internal
|
|
2908
3107
|
*/
|
|
2909
3108
|
export declare const CognitoUserPoolConfigurationFilterSensitiveLog: (obj: CognitoUserPoolConfiguration) => any;
|
|
3109
|
+
/**
|
|
3110
|
+
* @internal
|
|
3111
|
+
*/
|
|
3112
|
+
export declare const CognitoUserPoolConfigurationDetailFilterSensitiveLog: (obj: CognitoUserPoolConfigurationDetail) => any;
|
|
3113
|
+
/**
|
|
3114
|
+
* @internal
|
|
3115
|
+
*/
|
|
3116
|
+
export declare const CognitoUserPoolConfigurationItemFilterSensitiveLog: (obj: CognitoUserPoolConfigurationItem) => any;
|
|
2910
3117
|
/**
|
|
2911
3118
|
* @internal
|
|
2912
3119
|
*/
|
|
2913
3120
|
export declare const ConfigurationFilterSensitiveLog: (obj: Configuration) => any;
|
|
3121
|
+
/**
|
|
3122
|
+
* @internal
|
|
3123
|
+
*/
|
|
3124
|
+
export declare const ConfigurationDetailFilterSensitiveLog: (obj: ConfigurationDetail) => any;
|
|
3125
|
+
/**
|
|
3126
|
+
* @internal
|
|
3127
|
+
*/
|
|
3128
|
+
export declare const ConfigurationItemFilterSensitiveLog: (obj: ConfigurationItem) => any;
|
|
2914
3129
|
/**
|
|
2915
3130
|
* @internal
|
|
2916
3131
|
*/
|
|
@@ -79,6 +79,16 @@ export interface CognitoUserPoolConfiguration {
|
|
|
79
79
|
userPoolArn: string | undefined;
|
|
80
80
|
clientIds?: string[];
|
|
81
81
|
}
|
|
82
|
+
export interface CognitoUserPoolConfigurationDetail {
|
|
83
|
+
userPoolArn: string | undefined;
|
|
84
|
+
clientIds: string[] | undefined;
|
|
85
|
+
issuer: string | undefined;
|
|
86
|
+
}
|
|
87
|
+
export interface CognitoUserPoolConfigurationItem {
|
|
88
|
+
userPoolArn: string | undefined;
|
|
89
|
+
clientIds: string[] | undefined;
|
|
90
|
+
issuer: string | undefined;
|
|
91
|
+
}
|
|
82
92
|
export type Configuration =
|
|
83
93
|
| Configuration.CognitoUserPoolConfigurationMember
|
|
84
94
|
| Configuration.$UnknownMember;
|
|
@@ -97,6 +107,46 @@ export declare namespace Configuration {
|
|
|
97
107
|
}
|
|
98
108
|
const visit: <T>(value: Configuration, visitor: Visitor<T>) => T;
|
|
99
109
|
}
|
|
110
|
+
export type ConfigurationDetail =
|
|
111
|
+
| ConfigurationDetail.CognitoUserPoolConfigurationMember
|
|
112
|
+
| ConfigurationDetail.$UnknownMember;
|
|
113
|
+
export declare namespace ConfigurationDetail {
|
|
114
|
+
interface CognitoUserPoolConfigurationMember {
|
|
115
|
+
cognitoUserPoolConfiguration: CognitoUserPoolConfigurationDetail;
|
|
116
|
+
$unknown?: never;
|
|
117
|
+
}
|
|
118
|
+
interface $UnknownMember {
|
|
119
|
+
cognitoUserPoolConfiguration?: never;
|
|
120
|
+
$unknown: [string, any];
|
|
121
|
+
}
|
|
122
|
+
interface Visitor<T> {
|
|
123
|
+
cognitoUserPoolConfiguration: (
|
|
124
|
+
value: CognitoUserPoolConfigurationDetail
|
|
125
|
+
) => T;
|
|
126
|
+
_: (name: string, value: any) => T;
|
|
127
|
+
}
|
|
128
|
+
const visit: <T>(value: ConfigurationDetail, visitor: Visitor<T>) => T;
|
|
129
|
+
}
|
|
130
|
+
export type ConfigurationItem =
|
|
131
|
+
| ConfigurationItem.CognitoUserPoolConfigurationMember
|
|
132
|
+
| ConfigurationItem.$UnknownMember;
|
|
133
|
+
export declare namespace ConfigurationItem {
|
|
134
|
+
interface CognitoUserPoolConfigurationMember {
|
|
135
|
+
cognitoUserPoolConfiguration: CognitoUserPoolConfigurationItem;
|
|
136
|
+
$unknown?: never;
|
|
137
|
+
}
|
|
138
|
+
interface $UnknownMember {
|
|
139
|
+
cognitoUserPoolConfiguration?: never;
|
|
140
|
+
$unknown: [string, any];
|
|
141
|
+
}
|
|
142
|
+
interface Visitor<T> {
|
|
143
|
+
cognitoUserPoolConfiguration: (
|
|
144
|
+
value: CognitoUserPoolConfigurationItem
|
|
145
|
+
) => T;
|
|
146
|
+
_: (name: string, value: any) => T;
|
|
147
|
+
}
|
|
148
|
+
const visit: <T>(value: ConfigurationItem, visitor: Visitor<T>) => T;
|
|
149
|
+
}
|
|
100
150
|
export interface ResourceConflict {
|
|
101
151
|
resourceId: string | undefined;
|
|
102
152
|
resourceType: ResourceType | undefined;
|
|
@@ -279,11 +329,12 @@ export interface IdentitySourceDetails {
|
|
|
279
329
|
}
|
|
280
330
|
export interface GetIdentitySourceOutput {
|
|
281
331
|
createdDate: Date | undefined;
|
|
282
|
-
details
|
|
332
|
+
details?: IdentitySourceDetails;
|
|
283
333
|
identitySourceId: string | undefined;
|
|
284
334
|
lastUpdatedDate: Date | undefined;
|
|
285
335
|
policyStoreId: string | undefined;
|
|
286
336
|
principalEntityType: string | undefined;
|
|
337
|
+
configuration?: ConfigurationDetail;
|
|
287
338
|
}
|
|
288
339
|
export interface GetPolicyInput {
|
|
289
340
|
policyStoreId: string | undefined;
|
|
@@ -385,11 +436,12 @@ export interface IdentitySourceItemDetails {
|
|
|
385
436
|
}
|
|
386
437
|
export interface IdentitySourceItem {
|
|
387
438
|
createdDate: Date | undefined;
|
|
388
|
-
details
|
|
439
|
+
details?: IdentitySourceItemDetails;
|
|
389
440
|
identitySourceId: string | undefined;
|
|
390
441
|
lastUpdatedDate: Date | undefined;
|
|
391
442
|
policyStoreId: string | undefined;
|
|
392
443
|
principalEntityType: string | undefined;
|
|
444
|
+
configuration?: ConfigurationItem;
|
|
393
445
|
}
|
|
394
446
|
export interface ListIdentitySourcesOutput {
|
|
395
447
|
nextToken?: string;
|
|
@@ -793,9 +845,21 @@ export declare const EvaluationErrorItemFilterSensitiveLog: (
|
|
|
793
845
|
export declare const CognitoUserPoolConfigurationFilterSensitiveLog: (
|
|
794
846
|
obj: CognitoUserPoolConfiguration
|
|
795
847
|
) => any;
|
|
848
|
+
export declare const CognitoUserPoolConfigurationDetailFilterSensitiveLog: (
|
|
849
|
+
obj: CognitoUserPoolConfigurationDetail
|
|
850
|
+
) => any;
|
|
851
|
+
export declare const CognitoUserPoolConfigurationItemFilterSensitiveLog: (
|
|
852
|
+
obj: CognitoUserPoolConfigurationItem
|
|
853
|
+
) => any;
|
|
796
854
|
export declare const ConfigurationFilterSensitiveLog: (
|
|
797
855
|
obj: Configuration
|
|
798
856
|
) => any;
|
|
857
|
+
export declare const ConfigurationDetailFilterSensitiveLog: (
|
|
858
|
+
obj: ConfigurationDetail
|
|
859
|
+
) => any;
|
|
860
|
+
export declare const ConfigurationItemFilterSensitiveLog: (
|
|
861
|
+
obj: ConfigurationItem
|
|
862
|
+
) => any;
|
|
799
863
|
export declare const CreateIdentitySourceInputFilterSensitiveLog: (
|
|
800
864
|
obj: CreateIdentitySourceInput
|
|
801
865
|
) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-verifiedpermissions",
|
|
3
3
|
"description": "AWS SDK for JavaScript Verifiedpermissions 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-verifiedpermissions",
|
|
@@ -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",
|