@aws-sdk/client-verifiedpermissions 3.549.0 → 3.552.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 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,11 @@ __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,
33
38
  CognitoGroupConfigurationDetailFilterSensitiveLog: () => CognitoGroupConfigurationDetailFilterSensitiveLog,
34
39
  CognitoGroupConfigurationFilterSensitiveLog: () => CognitoGroupConfigurationFilterSensitiveLog,
35
40
  CognitoGroupConfigurationItemFilterSensitiveLog: () => CognitoGroupConfigurationItemFilterSensitiveLog,
@@ -979,11 +984,22 @@ var BatchIsAuthorizedInputItemFilterSensitiveLog = /* @__PURE__ */ __name((obj)
979
984
  ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) },
980
985
  ...obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) }
981
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");
982
993
  var BatchIsAuthorizedOutputItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
983
994
  ...obj,
984
995
  ...obj.request && { request: BatchIsAuthorizedInputItemFilterSensitiveLog(obj.request) },
985
996
  ...obj.errors && { errors: import_smithy_client.SENSITIVE_STRING }
986
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");
987
1003
  var EntitiesDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
988
1004
  if (obj.entityList !== void 0)
989
1005
  return { entityList: obj.entityList.map((item) => EntityItemFilterSensitiveLog(item)) };
@@ -994,6 +1010,13 @@ var BatchIsAuthorizedOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
994
1010
  ...obj,
995
1011
  ...obj.results && { results: obj.results.map((item) => BatchIsAuthorizedOutputItemFilterSensitiveLog(item)) }
996
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");
997
1020
  var IsAuthorizedInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
998
1021
  ...obj,
999
1022
  ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
@@ -1016,6 +1039,15 @@ var BatchIsAuthorizedInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => (
1016
1039
  ...obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) },
1017
1040
  ...obj.requests && { requests: obj.requests.map((item) => BatchIsAuthorizedInputItemFilterSensitiveLog(item)) }
1018
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");
1019
1051
 
1020
1052
  // src/protocols/Aws_json1_0.ts
1021
1053
  var import_core2 = require("@aws-sdk/core");
@@ -1028,6 +1060,12 @@ var se_BatchIsAuthorizedCommand = /* @__PURE__ */ __name(async (input, context)
1028
1060
  body = JSON.stringify(se_BatchIsAuthorizedInput(input, context));
1029
1061
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1030
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");
1031
1069
  var se_CreateIdentitySourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1032
1070
  const headers = sharedHeaders("CreateIdentitySource");
1033
1071
  let body;
@@ -1185,6 +1223,19 @@ var de_BatchIsAuthorizedCommand = /* @__PURE__ */ __name(async (output, context)
1185
1223
  };
1186
1224
  return response;
1187
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");
1188
1239
  var de_CreateIdentitySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1189
1240
  if (output.statusCode >= 300) {
1190
1241
  return de_CommandError(output, context);
@@ -1628,6 +1679,27 @@ var se_BatchIsAuthorizedInputList = /* @__PURE__ */ __name((input, context) => {
1628
1679
  return se_BatchIsAuthorizedInputItem(entry, context);
1629
1680
  });
1630
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");
1631
1703
  var se_ContextDefinition = /* @__PURE__ */ __name((input, context) => {
1632
1704
  return ContextDefinition.visit(input, {
1633
1705
  contextMap: (value) => ({ contextMap: se_ContextMap(value, context) }),
@@ -1789,6 +1861,33 @@ var de_BatchIsAuthorizedOutputList = /* @__PURE__ */ __name((output, context) =>
1789
1861
  });
1790
1862
  return retVal;
1791
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");
1792
1891
  var de_ContextDefinition = /* @__PURE__ */ __name((output, context) => {
1793
1892
  if (output.contextMap != null) {
1794
1893
  return {
@@ -2086,6 +2185,23 @@ var _BatchIsAuthorizedCommand = class _BatchIsAuthorizedCommand extends import_s
2086
2185
  __name(_BatchIsAuthorizedCommand, "BatchIsAuthorizedCommand");
2087
2186
  var BatchIsAuthorizedCommand = _BatchIsAuthorizedCommand;
2088
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
+
2089
2205
  // src/commands/CreateIdentitySourceCommand.ts
2090
2206
 
2091
2207
 
@@ -2497,6 +2613,7 @@ var UpdatePolicyTemplateCommand = _UpdatePolicyTemplateCommand;
2497
2613
  // src/VerifiedPermissions.ts
2498
2614
  var commands = {
2499
2615
  BatchIsAuthorizedCommand,
2616
+ BatchIsAuthorizedWithTokenCommand,
2500
2617
  CreateIdentitySourceCommand,
2501
2618
  CreatePolicyCommand,
2502
2619
  CreatePolicyStoreCommand,
@@ -2552,6 +2669,7 @@ var paginateListPolicyTemplates = (0, import_core.createPaginator)(VerifiedPermi
2552
2669
  VerifiedPermissions,
2553
2670
  $Command,
2554
2671
  BatchIsAuthorizedCommand,
2672
+ BatchIsAuthorizedWithTokenCommand,
2555
2673
  CreateIdentitySourceCommand,
2556
2674
  CreatePolicyCommand,
2557
2675
  CreatePolicyStoreCommand,
@@ -2670,11 +2788,15 @@ var paginateListPolicyTemplates = (0, import_core.createPaginator)(VerifiedPermi
2670
2788
  ContextDefinitionFilterSensitiveLog,
2671
2789
  EntityItemFilterSensitiveLog,
2672
2790
  BatchIsAuthorizedInputItemFilterSensitiveLog,
2791
+ BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog,
2673
2792
  BatchIsAuthorizedOutputItemFilterSensitiveLog,
2793
+ BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog,
2674
2794
  EntitiesDefinitionFilterSensitiveLog,
2675
2795
  BatchIsAuthorizedOutputFilterSensitiveLog,
2796
+ BatchIsAuthorizedWithTokenOutputFilterSensitiveLog,
2676
2797
  IsAuthorizedInputFilterSensitiveLog,
2677
2798
  IsAuthorizedWithTokenInputFilterSensitiveLog,
2678
- BatchIsAuthorizedInputFilterSensitiveLog
2799
+ BatchIsAuthorizedInputFilterSensitiveLog,
2800
+ BatchIsAuthorizedWithTokenInputFilterSensitiveLog
2679
2801
  });
2680
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
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./BatchIsAuthorizedCommand";
2
+ export * from "./BatchIsAuthorizedWithTokenCommand";
2
3
  export * from "./CreateIdentitySourceCommand";
3
4
  export * from "./CreatePolicyCommand";
4
5
  export * from "./CreatePolicyStoreCommand";
@@ -606,11 +606,22 @@ export const BatchIsAuthorizedInputItemFilterSensitiveLog = (obj) => ({
606
606
  ...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
607
607
  ...(obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) }),
608
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
+ });
609
615
  export const BatchIsAuthorizedOutputItemFilterSensitiveLog = (obj) => ({
610
616
  ...obj,
611
617
  ...(obj.request && { request: BatchIsAuthorizedInputItemFilterSensitiveLog(obj.request) }),
612
618
  ...(obj.errors && { errors: SENSITIVE_STRING }),
613
619
  });
620
+ export const BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog = (obj) => ({
621
+ ...obj,
622
+ ...(obj.request && { request: BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog(obj.request) }),
623
+ ...(obj.errors && { errors: SENSITIVE_STRING }),
624
+ });
614
625
  export const EntitiesDefinitionFilterSensitiveLog = (obj) => {
615
626
  if (obj.entityList !== undefined)
616
627
  return { entityList: obj.entityList.map((item) => EntityItemFilterSensitiveLog(item)) };
@@ -621,6 +632,13 @@ export const BatchIsAuthorizedOutputFilterSensitiveLog = (obj) => ({
621
632
  ...obj,
622
633
  ...(obj.results && { results: obj.results.map((item) => BatchIsAuthorizedOutputItemFilterSensitiveLog(item)) }),
623
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
+ });
624
642
  export const IsAuthorizedInputFilterSensitiveLog = (obj) => ({
625
643
  ...obj,
626
644
  ...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
@@ -643,3 +661,12 @@ export const BatchIsAuthorizedInputFilterSensitiveLog = (obj) => ({
643
661
  ...(obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) }),
644
662
  ...(obj.requests && { requests: obj.requests.map((item) => BatchIsAuthorizedInputItemFilterSensitiveLog(item)) }),
645
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
  */