Skip to content

Commit ec2e0d5

Browse files
author
awstools
committed
feat(client-verifiedpermissions): Adding BatchIsAuthorized API which supports multiple authorization requests against a PolicyStore
1 parent 26fab56 commit ec2e0d5

File tree

8 files changed

+1280
-326
lines changed

8 files changed

+1280
-326
lines changed

clients/client-verifiedpermissions/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,14 @@ see LICENSE for more information.
267267

268268
## Client Commands (Operations List)
269269

270+
<details>
271+
<summary>
272+
BatchIsAuthorized
273+
</summary>
274+
275+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-verifiedpermissions/classes/batchisauthorizedcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-verifiedpermissions/interfaces/batchisauthorizedcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-verifiedpermissions/interfaces/batchisauthorizedcommandoutput.html)
276+
277+
</details>
270278
<details>
271279
<summary>
272280
CreateIdentitySource

clients/client-verifiedpermissions/src/VerifiedPermissions.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
import { createAggregatedClient } from "@smithy/smithy-client";
33
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
44

5+
import {
6+
BatchIsAuthorizedCommand,
7+
BatchIsAuthorizedCommandInput,
8+
BatchIsAuthorizedCommandOutput,
9+
} from "./commands/BatchIsAuthorizedCommand";
510
import {
611
CreateIdentitySourceCommand,
712
CreateIdentitySourceCommandInput,
@@ -113,6 +118,7 @@ import {
113118
import { VerifiedPermissionsClient, VerifiedPermissionsClientConfig } from "./VerifiedPermissionsClient";
114119

115120
const commands = {
121+
BatchIsAuthorizedCommand,
116122
CreateIdentitySourceCommand,
117123
CreatePolicyCommand,
118124
CreatePolicyStoreCommand,
@@ -140,6 +146,23 @@ const commands = {
140146
};
141147

142148
export interface VerifiedPermissions {
149+
/**
150+
* @see {@link BatchIsAuthorizedCommand}
151+
*/
152+
batchIsAuthorized(
153+
args: BatchIsAuthorizedCommandInput,
154+
options?: __HttpHandlerOptions
155+
): Promise<BatchIsAuthorizedCommandOutput>;
156+
batchIsAuthorized(
157+
args: BatchIsAuthorizedCommandInput,
158+
cb: (err: any, data?: BatchIsAuthorizedCommandOutput) => void
159+
): void;
160+
batchIsAuthorized(
161+
args: BatchIsAuthorizedCommandInput,
162+
options: __HttpHandlerOptions,
163+
cb: (err: any, data?: BatchIsAuthorizedCommandOutput) => void
164+
): void;
165+
143166
/**
144167
* @see {@link CreateIdentitySourceCommand}
145168
*/

clients/client-verifiedpermissions/src/VerifiedPermissionsClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ import {
5050
UserAgent as __UserAgent,
5151
} from "@smithy/types";
5252

53+
import { BatchIsAuthorizedCommandInput, BatchIsAuthorizedCommandOutput } from "./commands/BatchIsAuthorizedCommand";
5354
import {
5455
CreateIdentitySourceCommandInput,
5556
CreateIdentitySourceCommandOutput,
@@ -116,6 +117,7 @@ export { __Client };
116117
* @public
117118
*/
118119
export type ServiceInputTypes =
120+
| BatchIsAuthorizedCommandInput
119121
| CreateIdentitySourceCommandInput
120122
| CreatePolicyCommandInput
121123
| CreatePolicyStoreCommandInput
@@ -145,6 +147,7 @@ export type ServiceInputTypes =
145147
* @public
146148
*/
147149
export type ServiceOutputTypes =
150+
| BatchIsAuthorizedCommandOutput
148151
| CreateIdentitySourceCommandOutput
149152
| CreatePolicyCommandOutput
150153
| CreatePolicyStoreCommandOutput

0 commit comments

Comments
 (0)