@aws-sdk/client-verifiedpermissions 3.540.0 → 3.550.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/README.md +8 -0
- package/dist-cjs/index.js +165 -6
- package/dist-es/VerifiedPermissions.js +2 -0
- package/dist-es/commands/BatchIsAuthorizedWithTokenCommand.js +25 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +56 -0
- package/dist-es/protocols/Aws_json1_0.js +71 -0
- package/dist-types/VerifiedPermissions.d.ts +7 -0
- package/dist-types/VerifiedPermissionsClient.d.ts +3 -2
- package/dist-types/commands/BatchIsAuthorizedWithTokenCommand.d.ts +285 -0
- package/dist-types/commands/CreateIdentitySourceCommand.d.ts +3 -0
- package/dist-types/commands/GetIdentitySourceCommand.d.ts +3 -0
- package/dist-types/commands/IsAuthorizedWithTokenCommand.d.ts +4 -9
- package/dist-types/commands/ListIdentitySourcesCommand.d.ts +3 -0
- package/dist-types/commands/UpdateIdentitySourceCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +267 -12
- package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
- package/dist-types/ts3.4/VerifiedPermissions.d.ts +17 -0
- package/dist-types/ts3.4/VerifiedPermissionsClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/BatchIsAuthorizedWithTokenCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +63 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -274,6 +274,14 @@ BatchIsAuthorized
|
|
|
274
274
|
|
|
275
275
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/verifiedpermissions/command/BatchIsAuthorizedCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/BatchIsAuthorizedCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/BatchIsAuthorizedCommandOutput/)
|
|
276
276
|
|
|
277
|
+
</details>
|
|
278
|
+
<details>
|
|
279
|
+
<summary>
|
|
280
|
+
BatchIsAuthorizedWithToken
|
|
281
|
+
</summary>
|
|
282
|
+
|
|
283
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/verifiedpermissions/command/BatchIsAuthorizedWithTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/BatchIsAuthorizedWithTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/BatchIsAuthorizedWithTokenCommandOutput/)
|
|
284
|
+
|
|
277
285
|
</details>
|
|
278
286
|
<details>
|
|
279
287
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -30,6 +30,14 @@ __export(src_exports, {
|
|
|
30
30
|
BatchIsAuthorizedInputItemFilterSensitiveLog: () => BatchIsAuthorizedInputItemFilterSensitiveLog,
|
|
31
31
|
BatchIsAuthorizedOutputFilterSensitiveLog: () => BatchIsAuthorizedOutputFilterSensitiveLog,
|
|
32
32
|
BatchIsAuthorizedOutputItemFilterSensitiveLog: () => BatchIsAuthorizedOutputItemFilterSensitiveLog,
|
|
33
|
+
BatchIsAuthorizedWithTokenCommand: () => BatchIsAuthorizedWithTokenCommand,
|
|
34
|
+
BatchIsAuthorizedWithTokenInputFilterSensitiveLog: () => BatchIsAuthorizedWithTokenInputFilterSensitiveLog,
|
|
35
|
+
BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog: () => BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog,
|
|
36
|
+
BatchIsAuthorizedWithTokenOutputFilterSensitiveLog: () => BatchIsAuthorizedWithTokenOutputFilterSensitiveLog,
|
|
37
|
+
BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog: () => BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog,
|
|
38
|
+
CognitoGroupConfigurationDetailFilterSensitiveLog: () => CognitoGroupConfigurationDetailFilterSensitiveLog,
|
|
39
|
+
CognitoGroupConfigurationFilterSensitiveLog: () => CognitoGroupConfigurationFilterSensitiveLog,
|
|
40
|
+
CognitoGroupConfigurationItemFilterSensitiveLog: () => CognitoGroupConfigurationItemFilterSensitiveLog,
|
|
33
41
|
CognitoUserPoolConfigurationDetailFilterSensitiveLog: () => CognitoUserPoolConfigurationDetailFilterSensitiveLog,
|
|
34
42
|
CognitoUserPoolConfigurationFilterSensitiveLog: () => CognitoUserPoolConfigurationFilterSensitiveLog,
|
|
35
43
|
CognitoUserPoolConfigurationItemFilterSensitiveLog: () => CognitoUserPoolConfigurationItemFilterSensitiveLog,
|
|
@@ -121,6 +129,7 @@ __export(src_exports, {
|
|
|
121
129
|
TemplateLinkedPolicyDefinitionFilterSensitiveLog: () => TemplateLinkedPolicyDefinitionFilterSensitiveLog,
|
|
122
130
|
TemplateLinkedPolicyDefinitionItemFilterSensitiveLog: () => TemplateLinkedPolicyDefinitionItemFilterSensitiveLog,
|
|
123
131
|
ThrottlingException: () => ThrottlingException,
|
|
132
|
+
UpdateCognitoGroupConfigurationFilterSensitiveLog: () => UpdateCognitoGroupConfigurationFilterSensitiveLog,
|
|
124
133
|
UpdateCognitoUserPoolConfigurationFilterSensitiveLog: () => UpdateCognitoUserPoolConfigurationFilterSensitiveLog,
|
|
125
134
|
UpdateConfiguration: () => UpdateConfiguration,
|
|
126
135
|
UpdateConfigurationFilterSensitiveLog: () => UpdateConfigurationFilterSensitiveLog,
|
|
@@ -609,17 +618,38 @@ var EntityIdentifierFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
609
618
|
var EvaluationErrorItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
610
619
|
...obj
|
|
611
620
|
}), "EvaluationErrorItemFilterSensitiveLog");
|
|
621
|
+
var CognitoGroupConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
622
|
+
...obj,
|
|
623
|
+
...obj.groupEntityType && { groupEntityType: import_smithy_client.SENSITIVE_STRING }
|
|
624
|
+
}), "CognitoGroupConfigurationFilterSensitiveLog");
|
|
625
|
+
var CognitoGroupConfigurationDetailFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
626
|
+
...obj,
|
|
627
|
+
...obj.groupEntityType && { groupEntityType: import_smithy_client.SENSITIVE_STRING }
|
|
628
|
+
}), "CognitoGroupConfigurationDetailFilterSensitiveLog");
|
|
629
|
+
var CognitoGroupConfigurationItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
630
|
+
...obj,
|
|
631
|
+
...obj.groupEntityType && { groupEntityType: import_smithy_client.SENSITIVE_STRING }
|
|
632
|
+
}), "CognitoGroupConfigurationItemFilterSensitiveLog");
|
|
612
633
|
var CognitoUserPoolConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
613
634
|
...obj,
|
|
614
|
-
...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING }
|
|
635
|
+
...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING },
|
|
636
|
+
...obj.groupConfiguration && {
|
|
637
|
+
groupConfiguration: CognitoGroupConfigurationFilterSensitiveLog(obj.groupConfiguration)
|
|
638
|
+
}
|
|
615
639
|
}), "CognitoUserPoolConfigurationFilterSensitiveLog");
|
|
616
640
|
var CognitoUserPoolConfigurationDetailFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
617
641
|
...obj,
|
|
618
|
-
...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING }
|
|
642
|
+
...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING },
|
|
643
|
+
...obj.groupConfiguration && {
|
|
644
|
+
groupConfiguration: CognitoGroupConfigurationDetailFilterSensitiveLog(obj.groupConfiguration)
|
|
645
|
+
}
|
|
619
646
|
}), "CognitoUserPoolConfigurationDetailFilterSensitiveLog");
|
|
620
647
|
var CognitoUserPoolConfigurationItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
621
648
|
...obj,
|
|
622
|
-
...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING }
|
|
649
|
+
...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING },
|
|
650
|
+
...obj.groupConfiguration && {
|
|
651
|
+
groupConfiguration: CognitoGroupConfigurationItemFilterSensitiveLog(obj.groupConfiguration)
|
|
652
|
+
}
|
|
623
653
|
}), "CognitoUserPoolConfigurationItemFilterSensitiveLog");
|
|
624
654
|
var ConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
625
655
|
if (obj.cognitoUserPoolConfiguration !== void 0)
|
|
@@ -770,9 +800,16 @@ var ListIdentitySourcesOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) =
|
|
|
770
800
|
identitySources: obj.identitySources.map((item) => IdentitySourceItemFilterSensitiveLog(item))
|
|
771
801
|
}
|
|
772
802
|
}), "ListIdentitySourcesOutputFilterSensitiveLog");
|
|
803
|
+
var UpdateCognitoGroupConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
804
|
+
...obj,
|
|
805
|
+
...obj.groupEntityType && { groupEntityType: import_smithy_client.SENSITIVE_STRING }
|
|
806
|
+
}), "UpdateCognitoGroupConfigurationFilterSensitiveLog");
|
|
773
807
|
var UpdateCognitoUserPoolConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
774
808
|
...obj,
|
|
775
|
-
...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING }
|
|
809
|
+
...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING },
|
|
810
|
+
...obj.groupConfiguration && {
|
|
811
|
+
groupConfiguration: UpdateCognitoGroupConfigurationFilterSensitiveLog(obj.groupConfiguration)
|
|
812
|
+
}
|
|
776
813
|
}), "UpdateCognitoUserPoolConfigurationFilterSensitiveLog");
|
|
777
814
|
var UpdateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
778
815
|
if (obj.cognitoUserPoolConfiguration !== void 0)
|
|
@@ -797,7 +834,8 @@ var IsAuthorizedOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
797
834
|
}), "IsAuthorizedOutputFilterSensitiveLog");
|
|
798
835
|
var IsAuthorizedWithTokenOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
799
836
|
...obj,
|
|
800
|
-
...obj.errors && { errors: import_smithy_client.SENSITIVE_STRING }
|
|
837
|
+
...obj.errors && { errors: import_smithy_client.SENSITIVE_STRING },
|
|
838
|
+
...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }
|
|
801
839
|
}), "IsAuthorizedWithTokenOutputFilterSensitiveLog");
|
|
802
840
|
var PolicyFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
803
841
|
...obj,
|
|
@@ -946,11 +984,22 @@ var BatchIsAuthorizedInputItemFilterSensitiveLog = /* @__PURE__ */ __name((obj)
|
|
|
946
984
|
...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) },
|
|
947
985
|
...obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) }
|
|
948
986
|
}), "BatchIsAuthorizedInputItemFilterSensitiveLog");
|
|
987
|
+
var BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
988
|
+
...obj,
|
|
989
|
+
...obj.action && { action: ActionIdentifierFilterSensitiveLog(obj.action) },
|
|
990
|
+
...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) },
|
|
991
|
+
...obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) }
|
|
992
|
+
}), "BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog");
|
|
949
993
|
var BatchIsAuthorizedOutputItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
950
994
|
...obj,
|
|
951
995
|
...obj.request && { request: BatchIsAuthorizedInputItemFilterSensitiveLog(obj.request) },
|
|
952
996
|
...obj.errors && { errors: import_smithy_client.SENSITIVE_STRING }
|
|
953
997
|
}), "BatchIsAuthorizedOutputItemFilterSensitiveLog");
|
|
998
|
+
var BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
999
|
+
...obj,
|
|
1000
|
+
...obj.request && { request: BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog(obj.request) },
|
|
1001
|
+
...obj.errors && { errors: import_smithy_client.SENSITIVE_STRING }
|
|
1002
|
+
}), "BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog");
|
|
954
1003
|
var EntitiesDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
955
1004
|
if (obj.entityList !== void 0)
|
|
956
1005
|
return { entityList: obj.entityList.map((item) => EntityItemFilterSensitiveLog(item)) };
|
|
@@ -961,6 +1010,13 @@ var BatchIsAuthorizedOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
|
|
|
961
1010
|
...obj,
|
|
962
1011
|
...obj.results && { results: obj.results.map((item) => BatchIsAuthorizedOutputItemFilterSensitiveLog(item)) }
|
|
963
1012
|
}), "BatchIsAuthorizedOutputFilterSensitiveLog");
|
|
1013
|
+
var BatchIsAuthorizedWithTokenOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1014
|
+
...obj,
|
|
1015
|
+
...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
|
|
1016
|
+
...obj.results && {
|
|
1017
|
+
results: obj.results.map((item) => BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog(item))
|
|
1018
|
+
}
|
|
1019
|
+
}), "BatchIsAuthorizedWithTokenOutputFilterSensitiveLog");
|
|
964
1020
|
var IsAuthorizedInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
965
1021
|
...obj,
|
|
966
1022
|
...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
|
|
@@ -983,6 +1039,15 @@ var BatchIsAuthorizedInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => (
|
|
|
983
1039
|
...obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) },
|
|
984
1040
|
...obj.requests && { requests: obj.requests.map((item) => BatchIsAuthorizedInputItemFilterSensitiveLog(item)) }
|
|
985
1041
|
}), "BatchIsAuthorizedInputFilterSensitiveLog");
|
|
1042
|
+
var BatchIsAuthorizedWithTokenInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1043
|
+
...obj,
|
|
1044
|
+
...obj.identityToken && { identityToken: import_smithy_client.SENSITIVE_STRING },
|
|
1045
|
+
...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING },
|
|
1046
|
+
...obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) },
|
|
1047
|
+
...obj.requests && {
|
|
1048
|
+
requests: obj.requests.map((item) => BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog(item))
|
|
1049
|
+
}
|
|
1050
|
+
}), "BatchIsAuthorizedWithTokenInputFilterSensitiveLog");
|
|
986
1051
|
|
|
987
1052
|
// src/protocols/Aws_json1_0.ts
|
|
988
1053
|
var import_core2 = require("@aws-sdk/core");
|
|
@@ -995,6 +1060,12 @@ var se_BatchIsAuthorizedCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
995
1060
|
body = JSON.stringify(se_BatchIsAuthorizedInput(input, context));
|
|
996
1061
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
997
1062
|
}, "se_BatchIsAuthorizedCommand");
|
|
1063
|
+
var se_BatchIsAuthorizedWithTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1064
|
+
const headers = sharedHeaders("BatchIsAuthorizedWithToken");
|
|
1065
|
+
let body;
|
|
1066
|
+
body = JSON.stringify(se_BatchIsAuthorizedWithTokenInput(input, context));
|
|
1067
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1068
|
+
}, "se_BatchIsAuthorizedWithTokenCommand");
|
|
998
1069
|
var se_CreateIdentitySourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
999
1070
|
const headers = sharedHeaders("CreateIdentitySource");
|
|
1000
1071
|
let body;
|
|
@@ -1152,6 +1223,19 @@ var de_BatchIsAuthorizedCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1152
1223
|
};
|
|
1153
1224
|
return response;
|
|
1154
1225
|
}, "de_BatchIsAuthorizedCommand");
|
|
1226
|
+
var de_BatchIsAuthorizedWithTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1227
|
+
if (output.statusCode >= 300) {
|
|
1228
|
+
return de_CommandError(output, context);
|
|
1229
|
+
}
|
|
1230
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1231
|
+
let contents = {};
|
|
1232
|
+
contents = de_BatchIsAuthorizedWithTokenOutput(data, context);
|
|
1233
|
+
const response = {
|
|
1234
|
+
$metadata: deserializeMetadata(output),
|
|
1235
|
+
...contents
|
|
1236
|
+
};
|
|
1237
|
+
return response;
|
|
1238
|
+
}, "de_BatchIsAuthorizedWithTokenCommand");
|
|
1155
1239
|
var de_CreateIdentitySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1156
1240
|
if (output.statusCode >= 300) {
|
|
1157
1241
|
return de_CommandError(output, context);
|
|
@@ -1595,6 +1679,27 @@ var se_BatchIsAuthorizedInputList = /* @__PURE__ */ __name((input, context) => {
|
|
|
1595
1679
|
return se_BatchIsAuthorizedInputItem(entry, context);
|
|
1596
1680
|
});
|
|
1597
1681
|
}, "se_BatchIsAuthorizedInputList");
|
|
1682
|
+
var se_BatchIsAuthorizedWithTokenInput = /* @__PURE__ */ __name((input, context) => {
|
|
1683
|
+
return (0, import_smithy_client.take)(input, {
|
|
1684
|
+
accessToken: [],
|
|
1685
|
+
entities: (_) => se_EntitiesDefinition(_, context),
|
|
1686
|
+
identityToken: [],
|
|
1687
|
+
policyStoreId: [],
|
|
1688
|
+
requests: (_) => se_BatchIsAuthorizedWithTokenInputList(_, context)
|
|
1689
|
+
});
|
|
1690
|
+
}, "se_BatchIsAuthorizedWithTokenInput");
|
|
1691
|
+
var se_BatchIsAuthorizedWithTokenInputItem = /* @__PURE__ */ __name((input, context) => {
|
|
1692
|
+
return (0, import_smithy_client.take)(input, {
|
|
1693
|
+
action: import_smithy_client._json,
|
|
1694
|
+
context: (_) => se_ContextDefinition(_, context),
|
|
1695
|
+
resource: import_smithy_client._json
|
|
1696
|
+
});
|
|
1697
|
+
}, "se_BatchIsAuthorizedWithTokenInputItem");
|
|
1698
|
+
var se_BatchIsAuthorizedWithTokenInputList = /* @__PURE__ */ __name((input, context) => {
|
|
1699
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
1700
|
+
return se_BatchIsAuthorizedWithTokenInputItem(entry, context);
|
|
1701
|
+
});
|
|
1702
|
+
}, "se_BatchIsAuthorizedWithTokenInputList");
|
|
1598
1703
|
var se_ContextDefinition = /* @__PURE__ */ __name((input, context) => {
|
|
1599
1704
|
return ContextDefinition.visit(input, {
|
|
1600
1705
|
contextMap: (value) => ({ contextMap: se_ContextMap(value, context) }),
|
|
@@ -1756,6 +1861,33 @@ var de_BatchIsAuthorizedOutputList = /* @__PURE__ */ __name((output, context) =>
|
|
|
1756
1861
|
});
|
|
1757
1862
|
return retVal;
|
|
1758
1863
|
}, "de_BatchIsAuthorizedOutputList");
|
|
1864
|
+
var de_BatchIsAuthorizedWithTokenInputItem = /* @__PURE__ */ __name((output, context) => {
|
|
1865
|
+
return (0, import_smithy_client.take)(output, {
|
|
1866
|
+
action: import_smithy_client._json,
|
|
1867
|
+
context: (_) => de_ContextDefinition((0, import_core2.awsExpectUnion)(_), context),
|
|
1868
|
+
resource: import_smithy_client._json
|
|
1869
|
+
});
|
|
1870
|
+
}, "de_BatchIsAuthorizedWithTokenInputItem");
|
|
1871
|
+
var de_BatchIsAuthorizedWithTokenOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1872
|
+
return (0, import_smithy_client.take)(output, {
|
|
1873
|
+
principal: import_smithy_client._json,
|
|
1874
|
+
results: (_) => de_BatchIsAuthorizedWithTokenOutputList(_, context)
|
|
1875
|
+
});
|
|
1876
|
+
}, "de_BatchIsAuthorizedWithTokenOutput");
|
|
1877
|
+
var de_BatchIsAuthorizedWithTokenOutputItem = /* @__PURE__ */ __name((output, context) => {
|
|
1878
|
+
return (0, import_smithy_client.take)(output, {
|
|
1879
|
+
decision: import_smithy_client.expectString,
|
|
1880
|
+
determiningPolicies: import_smithy_client._json,
|
|
1881
|
+
errors: import_smithy_client._json,
|
|
1882
|
+
request: (_) => de_BatchIsAuthorizedWithTokenInputItem(_, context)
|
|
1883
|
+
});
|
|
1884
|
+
}, "de_BatchIsAuthorizedWithTokenOutputItem");
|
|
1885
|
+
var de_BatchIsAuthorizedWithTokenOutputList = /* @__PURE__ */ __name((output, context) => {
|
|
1886
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1887
|
+
return de_BatchIsAuthorizedWithTokenOutputItem(entry, context);
|
|
1888
|
+
});
|
|
1889
|
+
return retVal;
|
|
1890
|
+
}, "de_BatchIsAuthorizedWithTokenOutputList");
|
|
1759
1891
|
var de_ContextDefinition = /* @__PURE__ */ __name((output, context) => {
|
|
1760
1892
|
if (output.contextMap != null) {
|
|
1761
1893
|
return {
|
|
@@ -2053,6 +2185,23 @@ var _BatchIsAuthorizedCommand = class _BatchIsAuthorizedCommand extends import_s
|
|
|
2053
2185
|
__name(_BatchIsAuthorizedCommand, "BatchIsAuthorizedCommand");
|
|
2054
2186
|
var BatchIsAuthorizedCommand = _BatchIsAuthorizedCommand;
|
|
2055
2187
|
|
|
2188
|
+
// src/commands/BatchIsAuthorizedWithTokenCommand.ts
|
|
2189
|
+
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
var _BatchIsAuthorizedWithTokenCommand = class _BatchIsAuthorizedWithTokenCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2194
|
+
...commonParams
|
|
2195
|
+
}).m(function(Command, cs, config, o) {
|
|
2196
|
+
return [
|
|
2197
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2198
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2199
|
+
];
|
|
2200
|
+
}).s("VerifiedPermissions", "BatchIsAuthorizedWithToken", {}).n("VerifiedPermissionsClient", "BatchIsAuthorizedWithTokenCommand").f(BatchIsAuthorizedWithTokenInputFilterSensitiveLog, BatchIsAuthorizedWithTokenOutputFilterSensitiveLog).ser(se_BatchIsAuthorizedWithTokenCommand).de(de_BatchIsAuthorizedWithTokenCommand).build() {
|
|
2201
|
+
};
|
|
2202
|
+
__name(_BatchIsAuthorizedWithTokenCommand, "BatchIsAuthorizedWithTokenCommand");
|
|
2203
|
+
var BatchIsAuthorizedWithTokenCommand = _BatchIsAuthorizedWithTokenCommand;
|
|
2204
|
+
|
|
2056
2205
|
// src/commands/CreateIdentitySourceCommand.ts
|
|
2057
2206
|
|
|
2058
2207
|
|
|
@@ -2464,6 +2613,7 @@ var UpdatePolicyTemplateCommand = _UpdatePolicyTemplateCommand;
|
|
|
2464
2613
|
// src/VerifiedPermissions.ts
|
|
2465
2614
|
var commands = {
|
|
2466
2615
|
BatchIsAuthorizedCommand,
|
|
2616
|
+
BatchIsAuthorizedWithTokenCommand,
|
|
2467
2617
|
CreateIdentitySourceCommand,
|
|
2468
2618
|
CreatePolicyCommand,
|
|
2469
2619
|
CreatePolicyStoreCommand,
|
|
@@ -2519,6 +2669,7 @@ var paginateListPolicyTemplates = (0, import_core.createPaginator)(VerifiedPermi
|
|
|
2519
2669
|
VerifiedPermissions,
|
|
2520
2670
|
$Command,
|
|
2521
2671
|
BatchIsAuthorizedCommand,
|
|
2672
|
+
BatchIsAuthorizedWithTokenCommand,
|
|
2522
2673
|
CreateIdentitySourceCommand,
|
|
2523
2674
|
CreatePolicyCommand,
|
|
2524
2675
|
CreatePolicyStoreCommand,
|
|
@@ -2575,6 +2726,9 @@ var paginateListPolicyTemplates = (0, import_core.createPaginator)(VerifiedPermi
|
|
|
2575
2726
|
ActionIdentifierFilterSensitiveLog,
|
|
2576
2727
|
EntityIdentifierFilterSensitiveLog,
|
|
2577
2728
|
EvaluationErrorItemFilterSensitiveLog,
|
|
2729
|
+
CognitoGroupConfigurationFilterSensitiveLog,
|
|
2730
|
+
CognitoGroupConfigurationDetailFilterSensitiveLog,
|
|
2731
|
+
CognitoGroupConfigurationItemFilterSensitiveLog,
|
|
2578
2732
|
CognitoUserPoolConfigurationFilterSensitiveLog,
|
|
2579
2733
|
CognitoUserPoolConfigurationDetailFilterSensitiveLog,
|
|
2580
2734
|
CognitoUserPoolConfigurationItemFilterSensitiveLog,
|
|
@@ -2604,6 +2758,7 @@ var paginateListPolicyTemplates = (0, import_core.createPaginator)(VerifiedPermi
|
|
|
2604
2758
|
IdentitySourceItemDetailsFilterSensitiveLog,
|
|
2605
2759
|
IdentitySourceItemFilterSensitiveLog,
|
|
2606
2760
|
ListIdentitySourcesOutputFilterSensitiveLog,
|
|
2761
|
+
UpdateCognitoGroupConfigurationFilterSensitiveLog,
|
|
2607
2762
|
UpdateCognitoUserPoolConfigurationFilterSensitiveLog,
|
|
2608
2763
|
UpdateConfigurationFilterSensitiveLog,
|
|
2609
2764
|
UpdateIdentitySourceInputFilterSensitiveLog,
|
|
@@ -2633,11 +2788,15 @@ var paginateListPolicyTemplates = (0, import_core.createPaginator)(VerifiedPermi
|
|
|
2633
2788
|
ContextDefinitionFilterSensitiveLog,
|
|
2634
2789
|
EntityItemFilterSensitiveLog,
|
|
2635
2790
|
BatchIsAuthorizedInputItemFilterSensitiveLog,
|
|
2791
|
+
BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog,
|
|
2636
2792
|
BatchIsAuthorizedOutputItemFilterSensitiveLog,
|
|
2793
|
+
BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog,
|
|
2637
2794
|
EntitiesDefinitionFilterSensitiveLog,
|
|
2638
2795
|
BatchIsAuthorizedOutputFilterSensitiveLog,
|
|
2796
|
+
BatchIsAuthorizedWithTokenOutputFilterSensitiveLog,
|
|
2639
2797
|
IsAuthorizedInputFilterSensitiveLog,
|
|
2640
2798
|
IsAuthorizedWithTokenInputFilterSensitiveLog,
|
|
2641
|
-
BatchIsAuthorizedInputFilterSensitiveLog
|
|
2799
|
+
BatchIsAuthorizedInputFilterSensitiveLog,
|
|
2800
|
+
BatchIsAuthorizedWithTokenInputFilterSensitiveLog
|
|
2642
2801
|
});
|
|
2643
2802
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { BatchIsAuthorizedCommand, } from "./commands/BatchIsAuthorizedCommand";
|
|
3
|
+
import { BatchIsAuthorizedWithTokenCommand, } from "./commands/BatchIsAuthorizedWithTokenCommand";
|
|
3
4
|
import { CreateIdentitySourceCommand, } from "./commands/CreateIdentitySourceCommand";
|
|
4
5
|
import { CreatePolicyCommand, } from "./commands/CreatePolicyCommand";
|
|
5
6
|
import { CreatePolicyStoreCommand, } from "./commands/CreatePolicyStoreCommand";
|
|
@@ -27,6 +28,7 @@ import { UpdatePolicyTemplateCommand, } from "./commands/UpdatePolicyTemplateCom
|
|
|
27
28
|
import { VerifiedPermissionsClient } from "./VerifiedPermissionsClient";
|
|
28
29
|
const commands = {
|
|
29
30
|
BatchIsAuthorizedCommand,
|
|
31
|
+
BatchIsAuthorizedWithTokenCommand,
|
|
30
32
|
CreateIdentitySourceCommand,
|
|
31
33
|
CreatePolicyCommand,
|
|
32
34
|
CreatePolicyStoreCommand,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { BatchIsAuthorizedWithTokenInputFilterSensitiveLog, BatchIsAuthorizedWithTokenOutputFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_BatchIsAuthorizedWithTokenCommand, se_BatchIsAuthorizedWithTokenCommand } from "../protocols/Aws_json1_0";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class BatchIsAuthorizedWithTokenCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("VerifiedPermissions", "BatchIsAuthorizedWithToken", {})
|
|
20
|
+
.n("VerifiedPermissionsClient", "BatchIsAuthorizedWithTokenCommand")
|
|
21
|
+
.f(BatchIsAuthorizedWithTokenInputFilterSensitiveLog, BatchIsAuthorizedWithTokenOutputFilterSensitiveLog)
|
|
22
|
+
.ser(se_BatchIsAuthorizedWithTokenCommand)
|
|
23
|
+
.de(de_BatchIsAuthorizedWithTokenCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -255,17 +255,38 @@ export const EntityIdentifierFilterSensitiveLog = (obj) => ({
|
|
|
255
255
|
export const EvaluationErrorItemFilterSensitiveLog = (obj) => ({
|
|
256
256
|
...obj,
|
|
257
257
|
});
|
|
258
|
+
export const CognitoGroupConfigurationFilterSensitiveLog = (obj) => ({
|
|
259
|
+
...obj,
|
|
260
|
+
...(obj.groupEntityType && { groupEntityType: SENSITIVE_STRING }),
|
|
261
|
+
});
|
|
262
|
+
export const CognitoGroupConfigurationDetailFilterSensitiveLog = (obj) => ({
|
|
263
|
+
...obj,
|
|
264
|
+
...(obj.groupEntityType && { groupEntityType: SENSITIVE_STRING }),
|
|
265
|
+
});
|
|
266
|
+
export const CognitoGroupConfigurationItemFilterSensitiveLog = (obj) => ({
|
|
267
|
+
...obj,
|
|
268
|
+
...(obj.groupEntityType && { groupEntityType: SENSITIVE_STRING }),
|
|
269
|
+
});
|
|
258
270
|
export const CognitoUserPoolConfigurationFilterSensitiveLog = (obj) => ({
|
|
259
271
|
...obj,
|
|
260
272
|
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
273
|
+
...(obj.groupConfiguration && {
|
|
274
|
+
groupConfiguration: CognitoGroupConfigurationFilterSensitiveLog(obj.groupConfiguration),
|
|
275
|
+
}),
|
|
261
276
|
});
|
|
262
277
|
export const CognitoUserPoolConfigurationDetailFilterSensitiveLog = (obj) => ({
|
|
263
278
|
...obj,
|
|
264
279
|
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
280
|
+
...(obj.groupConfiguration && {
|
|
281
|
+
groupConfiguration: CognitoGroupConfigurationDetailFilterSensitiveLog(obj.groupConfiguration),
|
|
282
|
+
}),
|
|
265
283
|
});
|
|
266
284
|
export const CognitoUserPoolConfigurationItemFilterSensitiveLog = (obj) => ({
|
|
267
285
|
...obj,
|
|
268
286
|
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
287
|
+
...(obj.groupConfiguration && {
|
|
288
|
+
groupConfiguration: CognitoGroupConfigurationItemFilterSensitiveLog(obj.groupConfiguration),
|
|
289
|
+
}),
|
|
269
290
|
});
|
|
270
291
|
export const ConfigurationFilterSensitiveLog = (obj) => {
|
|
271
292
|
if (obj.cognitoUserPoolConfiguration !== undefined)
|
|
@@ -412,9 +433,16 @@ export const ListIdentitySourcesOutputFilterSensitiveLog = (obj) => ({
|
|
|
412
433
|
identitySources: obj.identitySources.map((item) => IdentitySourceItemFilterSensitiveLog(item)),
|
|
413
434
|
}),
|
|
414
435
|
});
|
|
436
|
+
export const UpdateCognitoGroupConfigurationFilterSensitiveLog = (obj) => ({
|
|
437
|
+
...obj,
|
|
438
|
+
...(obj.groupEntityType && { groupEntityType: SENSITIVE_STRING }),
|
|
439
|
+
});
|
|
415
440
|
export const UpdateCognitoUserPoolConfigurationFilterSensitiveLog = (obj) => ({
|
|
416
441
|
...obj,
|
|
417
442
|
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
443
|
+
...(obj.groupConfiguration && {
|
|
444
|
+
groupConfiguration: UpdateCognitoGroupConfigurationFilterSensitiveLog(obj.groupConfiguration),
|
|
445
|
+
}),
|
|
418
446
|
});
|
|
419
447
|
export const UpdateConfigurationFilterSensitiveLog = (obj) => {
|
|
420
448
|
if (obj.cognitoUserPoolConfiguration !== undefined)
|
|
@@ -438,6 +466,7 @@ export const IsAuthorizedOutputFilterSensitiveLog = (obj) => ({
|
|
|
438
466
|
export const IsAuthorizedWithTokenOutputFilterSensitiveLog = (obj) => ({
|
|
439
467
|
...obj,
|
|
440
468
|
...(obj.errors && { errors: SENSITIVE_STRING }),
|
|
469
|
+
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
441
470
|
});
|
|
442
471
|
export const PolicyFilterFilterSensitiveLog = (obj) => ({
|
|
443
472
|
...obj,
|
|
@@ -577,11 +606,22 @@ export const BatchIsAuthorizedInputItemFilterSensitiveLog = (obj) => ({
|
|
|
577
606
|
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
578
607
|
...(obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) }),
|
|
579
608
|
});
|
|
609
|
+
export const BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog = (obj) => ({
|
|
610
|
+
...obj,
|
|
611
|
+
...(obj.action && { action: ActionIdentifierFilterSensitiveLog(obj.action) }),
|
|
612
|
+
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
613
|
+
...(obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) }),
|
|
614
|
+
});
|
|
580
615
|
export const BatchIsAuthorizedOutputItemFilterSensitiveLog = (obj) => ({
|
|
581
616
|
...obj,
|
|
582
617
|
...(obj.request && { request: BatchIsAuthorizedInputItemFilterSensitiveLog(obj.request) }),
|
|
583
618
|
...(obj.errors && { errors: SENSITIVE_STRING }),
|
|
584
619
|
});
|
|
620
|
+
export const BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog = (obj) => ({
|
|
621
|
+
...obj,
|
|
622
|
+
...(obj.request && { request: BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog(obj.request) }),
|
|
623
|
+
...(obj.errors && { errors: SENSITIVE_STRING }),
|
|
624
|
+
});
|
|
585
625
|
export const EntitiesDefinitionFilterSensitiveLog = (obj) => {
|
|
586
626
|
if (obj.entityList !== undefined)
|
|
587
627
|
return { entityList: obj.entityList.map((item) => EntityItemFilterSensitiveLog(item)) };
|
|
@@ -592,6 +632,13 @@ export const BatchIsAuthorizedOutputFilterSensitiveLog = (obj) => ({
|
|
|
592
632
|
...obj,
|
|
593
633
|
...(obj.results && { results: obj.results.map((item) => BatchIsAuthorizedOutputItemFilterSensitiveLog(item)) }),
|
|
594
634
|
});
|
|
635
|
+
export const BatchIsAuthorizedWithTokenOutputFilterSensitiveLog = (obj) => ({
|
|
636
|
+
...obj,
|
|
637
|
+
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
638
|
+
...(obj.results && {
|
|
639
|
+
results: obj.results.map((item) => BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog(item)),
|
|
640
|
+
}),
|
|
641
|
+
});
|
|
595
642
|
export const IsAuthorizedInputFilterSensitiveLog = (obj) => ({
|
|
596
643
|
...obj,
|
|
597
644
|
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
@@ -614,3 +661,12 @@ export const BatchIsAuthorizedInputFilterSensitiveLog = (obj) => ({
|
|
|
614
661
|
...(obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) }),
|
|
615
662
|
...(obj.requests && { requests: obj.requests.map((item) => BatchIsAuthorizedInputItemFilterSensitiveLog(item)) }),
|
|
616
663
|
});
|
|
664
|
+
export const BatchIsAuthorizedWithTokenInputFilterSensitiveLog = (obj) => ({
|
|
665
|
+
...obj,
|
|
666
|
+
...(obj.identityToken && { identityToken: SENSITIVE_STRING }),
|
|
667
|
+
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
668
|
+
...(obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) }),
|
|
669
|
+
...(obj.requests && {
|
|
670
|
+
requests: obj.requests.map((item) => BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog(item)),
|
|
671
|
+
}),
|
|
672
|
+
});
|
|
@@ -10,6 +10,12 @@ export const se_BatchIsAuthorizedCommand = async (input, context) => {
|
|
|
10
10
|
body = JSON.stringify(se_BatchIsAuthorizedInput(input, context));
|
|
11
11
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
12
|
};
|
|
13
|
+
export const se_BatchIsAuthorizedWithTokenCommand = async (input, context) => {
|
|
14
|
+
const headers = sharedHeaders("BatchIsAuthorizedWithToken");
|
|
15
|
+
let body;
|
|
16
|
+
body = JSON.stringify(se_BatchIsAuthorizedWithTokenInput(input, context));
|
|
17
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
+
};
|
|
13
19
|
export const se_CreateIdentitySourceCommand = async (input, context) => {
|
|
14
20
|
const headers = sharedHeaders("CreateIdentitySource");
|
|
15
21
|
let body;
|
|
@@ -167,6 +173,19 @@ export const de_BatchIsAuthorizedCommand = async (output, context) => {
|
|
|
167
173
|
};
|
|
168
174
|
return response;
|
|
169
175
|
};
|
|
176
|
+
export const de_BatchIsAuthorizedWithTokenCommand = async (output, context) => {
|
|
177
|
+
if (output.statusCode >= 300) {
|
|
178
|
+
return de_CommandError(output, context);
|
|
179
|
+
}
|
|
180
|
+
const data = await parseBody(output.body, context);
|
|
181
|
+
let contents = {};
|
|
182
|
+
contents = de_BatchIsAuthorizedWithTokenOutput(data, context);
|
|
183
|
+
const response = {
|
|
184
|
+
$metadata: deserializeMetadata(output),
|
|
185
|
+
...contents,
|
|
186
|
+
};
|
|
187
|
+
return response;
|
|
188
|
+
};
|
|
170
189
|
export const de_CreateIdentitySourceCommand = async (output, context) => {
|
|
171
190
|
if (output.statusCode >= 300) {
|
|
172
191
|
return de_CommandError(output, context);
|
|
@@ -612,6 +631,29 @@ const se_BatchIsAuthorizedInputList = (input, context) => {
|
|
|
612
631
|
return se_BatchIsAuthorizedInputItem(entry, context);
|
|
613
632
|
});
|
|
614
633
|
};
|
|
634
|
+
const se_BatchIsAuthorizedWithTokenInput = (input, context) => {
|
|
635
|
+
return take(input, {
|
|
636
|
+
accessToken: [],
|
|
637
|
+
entities: (_) => se_EntitiesDefinition(_, context),
|
|
638
|
+
identityToken: [],
|
|
639
|
+
policyStoreId: [],
|
|
640
|
+
requests: (_) => se_BatchIsAuthorizedWithTokenInputList(_, context),
|
|
641
|
+
});
|
|
642
|
+
};
|
|
643
|
+
const se_BatchIsAuthorizedWithTokenInputItem = (input, context) => {
|
|
644
|
+
return take(input, {
|
|
645
|
+
action: _json,
|
|
646
|
+
context: (_) => se_ContextDefinition(_, context),
|
|
647
|
+
resource: _json,
|
|
648
|
+
});
|
|
649
|
+
};
|
|
650
|
+
const se_BatchIsAuthorizedWithTokenInputList = (input, context) => {
|
|
651
|
+
return input
|
|
652
|
+
.filter((e) => e != null)
|
|
653
|
+
.map((entry) => {
|
|
654
|
+
return se_BatchIsAuthorizedWithTokenInputItem(entry, context);
|
|
655
|
+
});
|
|
656
|
+
};
|
|
615
657
|
const se_ContextDefinition = (input, context) => {
|
|
616
658
|
return ContextDefinition.visit(input, {
|
|
617
659
|
contextMap: (value) => ({ contextMap: se_ContextMap(value, context) }),
|
|
@@ -779,6 +821,35 @@ const de_BatchIsAuthorizedOutputList = (output, context) => {
|
|
|
779
821
|
});
|
|
780
822
|
return retVal;
|
|
781
823
|
};
|
|
824
|
+
const de_BatchIsAuthorizedWithTokenInputItem = (output, context) => {
|
|
825
|
+
return take(output, {
|
|
826
|
+
action: _json,
|
|
827
|
+
context: (_) => de_ContextDefinition(__expectUnion(_), context),
|
|
828
|
+
resource: _json,
|
|
829
|
+
});
|
|
830
|
+
};
|
|
831
|
+
const de_BatchIsAuthorizedWithTokenOutput = (output, context) => {
|
|
832
|
+
return take(output, {
|
|
833
|
+
principal: _json,
|
|
834
|
+
results: (_) => de_BatchIsAuthorizedWithTokenOutputList(_, context),
|
|
835
|
+
});
|
|
836
|
+
};
|
|
837
|
+
const de_BatchIsAuthorizedWithTokenOutputItem = (output, context) => {
|
|
838
|
+
return take(output, {
|
|
839
|
+
decision: __expectString,
|
|
840
|
+
determiningPolicies: _json,
|
|
841
|
+
errors: _json,
|
|
842
|
+
request: (_) => de_BatchIsAuthorizedWithTokenInputItem(_, context),
|
|
843
|
+
});
|
|
844
|
+
};
|
|
845
|
+
const de_BatchIsAuthorizedWithTokenOutputList = (output, context) => {
|
|
846
|
+
const retVal = (output || [])
|
|
847
|
+
.filter((e) => e != null)
|
|
848
|
+
.map((entry) => {
|
|
849
|
+
return de_BatchIsAuthorizedWithTokenOutputItem(entry, context);
|
|
850
|
+
});
|
|
851
|
+
return retVal;
|
|
852
|
+
};
|
|
782
853
|
const de_ContextDefinition = (output, context) => {
|
|
783
854
|
if (output.contextMap != null) {
|
|
784
855
|
return {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { BatchIsAuthorizedCommandInput, BatchIsAuthorizedCommandOutput } from "./commands/BatchIsAuthorizedCommand";
|
|
3
|
+
import { BatchIsAuthorizedWithTokenCommandInput, BatchIsAuthorizedWithTokenCommandOutput } from "./commands/BatchIsAuthorizedWithTokenCommand";
|
|
3
4
|
import { CreateIdentitySourceCommandInput, CreateIdentitySourceCommandOutput } from "./commands/CreateIdentitySourceCommand";
|
|
4
5
|
import { CreatePolicyCommandInput, CreatePolicyCommandOutput } from "./commands/CreatePolicyCommand";
|
|
5
6
|
import { CreatePolicyStoreCommandInput, CreatePolicyStoreCommandOutput } from "./commands/CreatePolicyStoreCommand";
|
|
@@ -32,6 +33,12 @@ export interface VerifiedPermissions {
|
|
|
32
33
|
batchIsAuthorized(args: BatchIsAuthorizedCommandInput, options?: __HttpHandlerOptions): Promise<BatchIsAuthorizedCommandOutput>;
|
|
33
34
|
batchIsAuthorized(args: BatchIsAuthorizedCommandInput, cb: (err: any, data?: BatchIsAuthorizedCommandOutput) => void): void;
|
|
34
35
|
batchIsAuthorized(args: BatchIsAuthorizedCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchIsAuthorizedCommandOutput) => void): void;
|
|
36
|
+
/**
|
|
37
|
+
* @see {@link BatchIsAuthorizedWithTokenCommand}
|
|
38
|
+
*/
|
|
39
|
+
batchIsAuthorizedWithToken(args: BatchIsAuthorizedWithTokenCommandInput, options?: __HttpHandlerOptions): Promise<BatchIsAuthorizedWithTokenCommandOutput>;
|
|
40
|
+
batchIsAuthorizedWithToken(args: BatchIsAuthorizedWithTokenCommandInput, cb: (err: any, data?: BatchIsAuthorizedWithTokenCommandOutput) => void): void;
|
|
41
|
+
batchIsAuthorizedWithToken(args: BatchIsAuthorizedWithTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchIsAuthorizedWithTokenCommandOutput) => void): void;
|
|
35
42
|
/**
|
|
36
43
|
* @see {@link CreateIdentitySourceCommand}
|
|
37
44
|
*/
|
|
@@ -8,6 +8,7 @@ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration
|
|
|
8
8
|
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { BatchIsAuthorizedCommandInput, BatchIsAuthorizedCommandOutput } from "./commands/BatchIsAuthorizedCommand";
|
|
11
|
+
import { BatchIsAuthorizedWithTokenCommandInput, BatchIsAuthorizedWithTokenCommandOutput } from "./commands/BatchIsAuthorizedWithTokenCommand";
|
|
11
12
|
import { CreateIdentitySourceCommandInput, CreateIdentitySourceCommandOutput } from "./commands/CreateIdentitySourceCommand";
|
|
12
13
|
import { CreatePolicyCommandInput, CreatePolicyCommandOutput } from "./commands/CreatePolicyCommand";
|
|
13
14
|
import { CreatePolicyStoreCommandInput, CreatePolicyStoreCommandOutput } from "./commands/CreatePolicyStoreCommand";
|
|
@@ -38,11 +39,11 @@ export { __Client };
|
|
|
38
39
|
/**
|
|
39
40
|
* @public
|
|
40
41
|
*/
|
|
41
|
-
export type ServiceInputTypes = BatchIsAuthorizedCommandInput | CreateIdentitySourceCommandInput | CreatePolicyCommandInput | CreatePolicyStoreCommandInput | CreatePolicyTemplateCommandInput | DeleteIdentitySourceCommandInput | DeletePolicyCommandInput | DeletePolicyStoreCommandInput | DeletePolicyTemplateCommandInput | GetIdentitySourceCommandInput | GetPolicyCommandInput | GetPolicyStoreCommandInput | GetPolicyTemplateCommandInput | GetSchemaCommandInput | IsAuthorizedCommandInput | IsAuthorizedWithTokenCommandInput | ListIdentitySourcesCommandInput | ListPoliciesCommandInput | ListPolicyStoresCommandInput | ListPolicyTemplatesCommandInput | PutSchemaCommandInput | UpdateIdentitySourceCommandInput | UpdatePolicyCommandInput | UpdatePolicyStoreCommandInput | UpdatePolicyTemplateCommandInput;
|
|
42
|
+
export type ServiceInputTypes = BatchIsAuthorizedCommandInput | BatchIsAuthorizedWithTokenCommandInput | CreateIdentitySourceCommandInput | CreatePolicyCommandInput | CreatePolicyStoreCommandInput | CreatePolicyTemplateCommandInput | DeleteIdentitySourceCommandInput | DeletePolicyCommandInput | DeletePolicyStoreCommandInput | DeletePolicyTemplateCommandInput | GetIdentitySourceCommandInput | GetPolicyCommandInput | GetPolicyStoreCommandInput | GetPolicyTemplateCommandInput | GetSchemaCommandInput | IsAuthorizedCommandInput | IsAuthorizedWithTokenCommandInput | ListIdentitySourcesCommandInput | ListPoliciesCommandInput | ListPolicyStoresCommandInput | ListPolicyTemplatesCommandInput | PutSchemaCommandInput | UpdateIdentitySourceCommandInput | UpdatePolicyCommandInput | UpdatePolicyStoreCommandInput | UpdatePolicyTemplateCommandInput;
|
|
42
43
|
/**
|
|
43
44
|
* @public
|
|
44
45
|
*/
|
|
45
|
-
export type ServiceOutputTypes = BatchIsAuthorizedCommandOutput | CreateIdentitySourceCommandOutput | CreatePolicyCommandOutput | CreatePolicyStoreCommandOutput | CreatePolicyTemplateCommandOutput | DeleteIdentitySourceCommandOutput | DeletePolicyCommandOutput | DeletePolicyStoreCommandOutput | DeletePolicyTemplateCommandOutput | GetIdentitySourceCommandOutput | GetPolicyCommandOutput | GetPolicyStoreCommandOutput | GetPolicyTemplateCommandOutput | GetSchemaCommandOutput | IsAuthorizedCommandOutput | IsAuthorizedWithTokenCommandOutput | ListIdentitySourcesCommandOutput | ListPoliciesCommandOutput | ListPolicyStoresCommandOutput | ListPolicyTemplatesCommandOutput | PutSchemaCommandOutput | UpdateIdentitySourceCommandOutput | UpdatePolicyCommandOutput | UpdatePolicyStoreCommandOutput | UpdatePolicyTemplateCommandOutput;
|
|
46
|
+
export type ServiceOutputTypes = BatchIsAuthorizedCommandOutput | BatchIsAuthorizedWithTokenCommandOutput | CreateIdentitySourceCommandOutput | CreatePolicyCommandOutput | CreatePolicyStoreCommandOutput | CreatePolicyTemplateCommandOutput | DeleteIdentitySourceCommandOutput | DeletePolicyCommandOutput | DeletePolicyStoreCommandOutput | DeletePolicyTemplateCommandOutput | GetIdentitySourceCommandOutput | GetPolicyCommandOutput | GetPolicyStoreCommandOutput | GetPolicyTemplateCommandOutput | GetSchemaCommandOutput | IsAuthorizedCommandOutput | IsAuthorizedWithTokenCommandOutput | ListIdentitySourcesCommandOutput | ListPoliciesCommandOutput | ListPolicyStoresCommandOutput | ListPolicyTemplatesCommandOutput | PutSchemaCommandOutput | UpdateIdentitySourceCommandOutput | UpdatePolicyCommandOutput | UpdatePolicyStoreCommandOutput | UpdatePolicyTemplateCommandOutput;
|
|
46
47
|
/**
|
|
47
48
|
* @public
|
|
48
49
|
*/
|